/* ============================================================
   Landing Page Labs — Proposal Template Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix #1 & #2: Inter body text — no italic, -0.01em letter-spacing globally */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222222;
  background: #f5f5f5;
  line-height: 1.6;
  font-size: 16px;
  font-style: normal;
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #0000FF; text-decoration: underline; }
a:hover { opacity: 0.8; }

/* ---------- Section Base ---------- */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.section--white {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.section--white + .section--white {
  border-top: 8px solid #f5f5f5;
}

.section__inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 48px 100px;
  flex: 1;
}

/* ---------- Section Header ---------- */
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

/* F37 Sonic headings keep their italic (it's the font style, not Inter) */
.section__heading {
  font-family: 'F37 Sonic', 'Inter', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 28px;
  color: #000000;
  letter-spacing: -0.02em;
}

.section__header-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-client-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-client-logo__text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  font-style: normal;
  color: #000;
}

.header-lpl-logo {
  display: flex;
  align-items: center;
}

.header-lpl-logo img {
  height: 28px;
  width: auto;
}

.section__divider {
  border: none;
  border-top: 1.5px dashed #D7D7D7;
  margin-bottom: 30px;
}

/* ============================================================
   COVER SECTION
   ============================================================ */
.section--cover {
  background: linear-gradient(180deg, #DFDAFF 0%, #FFE8F5 57%, #FEF7F5 100%);
  justify-content: space-between;
  align-items: center;
  padding: 40px 40px 50px;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.cover__confidential {
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  color: #171620;
  text-transform: capitalize;
  letter-spacing: 0;
  width: 100%;
  text-align: center;
}

.cover__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 25vh;
}

/* F37 Sonic cover title — italic is correct here (it's the font design) */
.cover__title {
  font-family: 'F37 Sonic', 'Inter', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1.02;
  color: #171620;
  letter-spacing: -0.02em;
}

.cover__subtitle {
  font-family: 'F37 Sonic', 'Inter', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(16px, 2.5vw, 22px);
  color: #000000;
}

.cover__logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-block--client .client-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 16px;
  color: #000;
}

.logo-block--lpl { gap: 0; }

.lpl-logo-img {
  height: 36px;
  width: auto;
}

/* ============================================================
   PROPOSAL LETTER
   ============================================================ */
.proposal-letter__body {
  font-size: 15px;
  line-height: 1.7;
  font-style: normal;
  color: #171620;
}

.proposal-letter__body p {
  margin-bottom: 16px;
}

.proposal-letter__body ul {
  margin: 0 0 16px 24px;
  list-style: disc;
}

.proposal-letter__body ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ============================================================
   PROJECT DETAILS — Table-style boxes
   ============================================================ */
.details-box {
  border: 1px solid #D7D7D7;
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}

.details-box__header-strip {
  background: #F9F9F9;
  border-bottom: 1px solid #D7D7D7;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 15px;
  color: #171620;
}

.details-box__body {
  padding: 24px 28px;
  background: #ffffff;
}

.details-box__body--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Fix #1: Remove italic from deliverable page titles (Inter) */
.details-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: #171620;
  margin-bottom: 10px;
  margin-top: 20px;
}

.details-col h4:first-child {
  margin-top: 0;
}

.details-col ul {
  margin: 0 0 0 20px;
  list-style: disc;
}

.details-col ul li {
  font-size: 13px;
  line-height: 1.6;
  color: #222;
  margin-bottom: 4px;
}

.details-col h5 {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: #171620;
  margin-top: 20px;
  margin-bottom: 10px;
}

.process-step {
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
  color: #222;
  margin-bottom: 4px;
}

.process-timeline {
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: #171620;
  margin-top: 16px;
}

.investment-amount {
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  color: #171620;
  margin-bottom: 4px;
}

.investment-terms {
  font-size: 13px;
  font-style: normal;
  color: #727070;
}

.investment-divider {
  border: none;
  border-top: 1.5px dashed #D7D7D7;
  margin: 24px 0;
}

/* Fix #3: Soften social proof card borders */
.social-proof-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.proof-card {
  background: #F7F7F7;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Fix #1: Remove italic from proof card quote */
.proof-card__quote {
  font-size: 12.5px;
  line-height: 1.6;
  font-style: normal;
  color: #1A1A1A;
  margin-bottom: 16px;
  flex: 1;
}

.proof-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.proof-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.proof-card__info {
  flex: 1;
  min-width: 0;
}

.proof-card__name-line {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: #09090B;
  line-height: 1.3;
}

.proof-card__stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

/* ============================================================
   STARS
   ============================================================ */
.star {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #F59E0B;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star--sm {
  width: 14px;
  height: 14px;
}

/* ============================================================
   TESTIMONIALS — 3-column masonry
   ============================================================ */
.testimonials-grid {
  columns: 3;
  column-gap: 20px;
}

/* Fix #3: Soften testimonial card borders */
.testimonial-card {
  background: #F7F7F7;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
}

.testimonial-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
}

.testimonial-card__stars .star {
  width: 18px;
  height: 18px;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  color: #41424D;
}

.verified-badge__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fix #1: Remove italic from testimonial quotes */
.testimonial-card__quote {
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
  color: #1A1A1A;
  margin-bottom: 20px;
  white-space: pre-line;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: #09090B;
}

.testimonial-card__company {
  font-size: 12px;
  font-style: normal;
  color: #41424D;
}

/* ============================================================
   PORTFOLIO — 3-column grid, image on top, text below, no frame
   ============================================================ */
.portfolio__intro {
  font-size: 15px;
  font-style: normal;
  color: #171620;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px 24px;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Natural aspect ratio — no cropping, full screenshot visible */
.portfolio-item__thumb {
  width: 100%;
  line-height: 0;
}

.portfolio-item__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}

.portfolio-item__info {
  text-align: left;
}

.portfolio-item__name {
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  color: #000;
  margin-bottom: 4px;
}

.portfolio-item__detail {
  font-size: 13px;
  font-style: normal;
  color: #222;
  margin-bottom: 2px;
  line-height: 1.5;
}

.portfolio-item__link {
  color: #0000FF;
  text-decoration: underline;
  font-weight: 500;
  font-style: normal;
}

/* ============================================================
   NEXT STEPS
   ============================================================ */
.next-steps__body {
  font-size: 15px;
  line-height: 1.7;
  font-style: normal;
  color: #171620;
}

.next-steps__body p {
  margin-bottom: 16px;
}

.next-steps__body ol {
  margin: 0 0 24px 24px;
  list-style: decimal;
  padding-left: 0;
}

.next-steps__body ol li {
  margin-bottom: 12px;
}

.next-steps__signature {
  margin-top: 40px;
}

/* Natural Signature font — italic is fine here, it's a script font */
.signature-name {
  font-family: 'Natural Signature', cursive;
  font-size: 28px;
  color: #171620;
  margin-bottom: 4px;
  line-height: 1;
}

.signature-title {
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: #171620;
  margin-bottom: 24px;
}

.clutch-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.clutch-badge {
  height: 48px;
  width: auto;
}

.clutch-text {
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  color: #41424D;
}

.next-steps__cta {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.next-steps__cta p {
  font-size: 15px;
  margin-bottom: 12px;
}

.next-steps__cta a {
  font-size: 16px;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */
@media (max-width: 900px) {
  .section__inner {
    padding: 48px 24px 64px;
  }

  .details-box__body--two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .social-proof-pair {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    columns: 2;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cover__logos {
    flex-direction: column;
    gap: 32px;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .section__inner {
    padding: 40px 20px 56px;
  }

  .testimonials-grid {
    columns: 1;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .cover__title {
    font-size: 40px;
  }

  .cover__subtitle {
    font-size: 14px;
  }
}

/* ============================================================
   MOBILE-ONLY FIXES (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Fix #1: Center-align section headings and logo row on mobile */
  .section__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section__heading {
    text-align: center;
  }

  .section__header-logos {
    justify-content: center;
  }

  /* Fix #4: More spacing between signature and title on mobile */
  .signature-name {
    margin-bottom: 12px;
  }

  /* Load More buttons — mobile only */
  .load-more-btn {
    display: block;
    margin: 24px auto 0;
    padding: 12px 32px;
    background: #ffffff;
    border: 1.5px solid #D7D7D7;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.01em;
    color: #171620;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }

  .load-more-btn:hover {
    background: #f5f5f5;
    border-color: #aaa;
  }

  /* Hidden items on mobile before Load More is clicked */
  .mobile-hidden {
    display: none !important;
  }
}

/* On desktop, always hide the Load More buttons */
@media (min-width: 769px) {
  .load-more-btn {
    display: none !important;
  }
}
