/* =====================================================================
   LANDING PAGES (single-landing_page.php + template-parts/landing/*)
   Uses the site's tokens from style.css (--primary-blue, --accent-gold,
   --bg-cream, Lexend, .hero-btn) and the header-aligned width from
   layout.css (--site-width). Loaded only on landing pages.
   ===================================================================== */

.lp-container {
  width: calc(100% - 30px);           /* mobile: 15px sides, as other pages */
  max-width: var(--container-width);
  margin: 0 auto;
}
@media (min-width: 769px) {
  .lp-container { width: var(--site-width); }  /* same edges as the header */
}

.lp-section { padding: clamp(56px, 8vw, 120px) 0; }
.lp-bg-white { background: #fff; }
.lp-bg-cream { background: var(--bg-cream); }
.lp-bg-blue  { background: linear-gradient(274.33deg, #00467C 2.16%, #002746 100.71%); color: #fff; }

.lp-eyebrow { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; color: #000; margin-bottom: 12px; }
.lp-title {
  font-size: clamp(30px, 3.6vw, 55px);
  font-weight: 600;
  line-height: 1.17;
  color: var(--primary-blue);
  margin-bottom: 24px;
}
.lp-bg-blue .lp-title, .lp-bg-blue .lp-eyebrow { color: #fff; }
.lp-copy p { font-size: clamp(16px, 1.3vw, 20px); font-weight: 300; line-height: 1.6; margin-bottom: 16px; }
.lp-cta-line { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; color: #CF9529; margin: 28px 0 16px; }
.lp-center { text-align: center; }
.lp-center .lp-btn { margin-inline: auto; }
.lp-head { max-width: 860px; margin: 0 auto clamp(32px, 4vw, 60px); text-align: center; }
.lp-btn { display: inline-flex; }

/* ---------------- HERO ---------------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(274.33deg, #00467C 2.16%, #002746 100.71%);
  color: #fff;
  padding-top: 120px;                 /* room for the fixed header */
}
.lp-hero::after {                      /* same soft glow as the inner pages */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 35%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.lp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.lp-hero__content { padding-bottom: clamp(48px, 7vw, 110px); align-self: center; }
.lp-hero__title {
  font-size: clamp(34px, 4.4vw, 66px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 20px;
}
.lp-hero__highlight { display: block; color: var(--accent-gold); }
.lp-hero__text { font-size: clamp(17px, 1.5vw, 24px); font-weight: 300; color: rgba(255,255,255,0.88); margin-bottom: 32px; max-width: 640px; }
.lp-hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  margin-top: clamp(32px, 4vw, 56px);
}
.lp-hero__stats li { display: flex; flex-direction: column; padding: 0 clamp(16px, 2vw, 32px); border-left: 1px solid rgba(255,255,255,0.3); }
.lp-hero__stats li:first-child { padding-left: 0; border-left: 0; }
.lp-hero__stats strong { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; line-height: 1.2; }
.lp-hero__stats span { font-size: clamp(13px, 1vw, 16px); color: rgba(255,255,255,0.8); }
.lp-hero__media { display: flex; justify-content: center; align-self: end; }
.lp-hero__img { width: 100%; max-width: 520px; height: auto; display: block; }

/* Desktop: the hero fills the first screen like the home page */
@media (min-width: 1024px) {
  .lp-hero { min-height: min(100svh, 980px); display: flex; align-items: flex-end; }
  .lp-hero > .lp-container { width: var(--site-width); }
  .lp-hero__img { max-height: calc(100svh - 120px); width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
}

/* ---------------- IMAGE & TEXT ---------------- */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.lp-split--img-left .lp-split__media { order: -1; }
.lp-split__media img { width: 100%; height: auto; border-radius: 28px; display: block; }
.lp-split__text .lp-btn { margin-top: 8px; }

/* ---------------- STEPS / CARDS ---------------- */
.lp-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.lp-card {
  background: #fff;
  border-radius: 26px;
  padding: clamp(24px, 2.4vw, 40px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.lp-bg-white .lp-card { background: var(--bg-cream); box-shadow: none; }
.lp-card:hover { background: #0B3A6A; box-shadow: 0 22px 50px rgba(0,0,0,0.22); transform: translateY(-4px); }
.lp-card:hover .lp-card__title, .lp-card:hover .lp-card__text, .lp-card:hover .lp-card__num { color: #fff; }
.lp-card__num { display: block; font-size: clamp(40px, 3.6vw, 56px); font-weight: 600; line-height: 1; color: var(--accent-gold); margin-bottom: 18px; transition: color .3s; }
.lp-card__title { font-size: clamp(19px, 1.5vw, 24px); font-weight: 600; color: var(--primary-blue); line-height: 1.25; margin-bottom: 10px; transition: color .3s; }
.lp-card__text { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: #323232; transition: color .3s; }
.lp-after { margin-top: clamp(32px, 4vw, 56px); }
.lp-after .lp-cta-line { margin-top: 0; }

/* ---------------- FORM ---------------- */
.lp-form-section { background: radial-gradient(80% 80% at 10% 10%, #0B3A6F 0%, #06294F 100%); color: #fff; scroll-margin-top: 90px; }
.lp-form-section .lp-title { color: #fff; }
.lp-form-section .lp-copy p { color: rgba(255,255,255,0.85); }
.lp-form-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.lp-form-card {
  border-radius: 28px;
  padding: clamp(24px, 3.4vw, 56px);
  background: linear-gradient(275.09deg, rgba(255,255,255,0.16) -34.71%, rgba(255,255,255,0.028) 70.8%), rgba(3,3,3,0.2);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.lp-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lp-field--full { grid-column: 1 / -1; }
.lp-field span { font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.9); }
.lp-field input, .lp-field select, .lp-field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;                    /* 16px stops iOS zooming into fields */
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.lp-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F6C56A' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.lp-field select option { color: #000; }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus { border-color: var(--accent-gold); background: rgba(255,255,255,0.12); }
.lp-form .lp-btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.lp-form-note { font-size: 14px; color: rgba(255,255,255,0.75); }
.lp-form-msg { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 16px; }
.lp-form-msg--ok { background: rgba(246,197,106,0.18); border: 1px solid var(--accent-gold); }
.lp-form-msg--error { background: rgba(255,90,90,0.15); border: 1px solid #ff8a8a; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- FAQ (reuses home FAQ styles) ---------------- */
.lp-faq__list { display: flex; flex-direction: column; gap: 22px; max-width: 900px; margin: 0 auto; }
.lp-faq .faq-question { text-align: left; font-family: inherit; }
.lp-faq .faq-item.active .faq-answer { max-height: 600px; }
.lp-faq .faq-answer p { font-size: 16px; line-height: 1.6; }

/* ---------------- TESTIMONIALS ---------------- */
.lp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 32px); }
.lp-quote { background: #fff; border-radius: 26px; padding: clamp(24px, 2.4vw, 40px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); margin: 0; }
.lp-quote blockquote { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; margin-bottom: 20px; }
.lp-quote blockquote::before { content: "\201C"; display: block; font-size: 56px; line-height: .6; color: var(--accent-gold); margin-bottom: 8px; }
.lp-quote figcaption strong { display: block; color: var(--primary-blue); }
.lp-quote figcaption span { font-size: 14px; color: #555; }

/* ---------------- CTA ---------------- */
.lp-cta .lp-copy { max-width: 760px; margin: 0 auto 24px; }

/* ---------------- TABLET & MOBILE ---------------- */
@media (max-width: 1023px) {
  .lp-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .lp-hero__content { padding-bottom: 0; }
  .lp-hero__text { margin-inline: auto; }
  .lp-hero .lp-btn { margin-inline: auto; }
  .lp-hero__stats { justify-content: center; }
  .lp-hero__img { max-width: 360px; }
  .lp-split, .lp-form-grid { grid-template-columns: 1fr; }
  .lp-split--img-left .lp-split__media { order: 0; }
}
@media (max-width: 768px) {
  .lp-hero { padding-top: 100px; }
  .lp-hero__img { max-width: 280px; }
  .lp-hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .lp-hero__stats li { padding: 0 6px; }
  .lp-hero__stats strong { font-size: 22px; }
  .lp-hero__stats span { font-size: 12px; line-height: 1.3; }
  .lp-form { grid-template-columns: 1fr; }
  .lp-form .lp-btn { justify-self: stretch; }
  .lp-faq .faq-question { padding: 18px 16px; }
  /* the global mobile rule left-aligns all text; keep landing centre blocks centred */
  .lp-center .lp-title, .lp-head .lp-title, .lp-head .lp-copy p, .lp-hero h1, .lp-hero h2, .lp-hero p, .lp-cta .lp-copy p, .lp-center .lp-cta-line { text-align: center !important; }
}

/* =====================================================================
   COMPACT FORM — fits one screen on desktop (built-in form + Contact Form 7)
   Grid: 4 columns on wide screens, 2 on tablet/small laptop, 1 on phones.
   .lp-col-2 = half width, .lp-field--full = full width.
   ===================================================================== */
.lp-form-section { padding: clamp(40px, 5vh, 72px) 0; }
.lp-form-section .lp-title { font-size: clamp(28px, 3vw, 46px); margin-bottom: 16px; }
.lp-form-card { padding: clamp(20px, 2.2vw, 32px); }
.lp-form { gap: 12px 14px; }
.lp-field { gap: 5px; }
.lp-field span { font-size: 13px; }
.lp-field input, .lp-field select, .lp-field textarea,
.lp-form-card .wpcf7 input:not([type=submit]):not([type=hidden]),
.lp-form-card .wpcf7 select, .lp-form-card .wpcf7 textarea { padding: 9px 12px; border-radius: 10px; }
.lp-field textarea, .lp-form-card .wpcf7 textarea { height: 64px; min-height: 0; resize: vertical; }
.lp-form .lp-btn { min-height: 48px; padding: 12px 32px; }
.lp-form-note { margin: 0; font-size: 13px; }

@media (min-width: 1200px) {
  .lp-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-col-2 { grid-column: span 2; }
  .lp-form-grid { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); align-items: center; }
  .lp-form-section { min-height: 100svh; display: flex; align-items: center; } /* whole section = one screen */
  .lp-form-section > .lp-container { width: var(--site-width); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .lp-form-grid { grid-template-columns: 1fr; gap: 20px; }   /* heading above, form uses full width */
  .lp-form-intro .lp-copy p { margin-bottom: 0; }
  .lp-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-col-2 { grid-column: span 2; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .lp-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-col-2 { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .lp-col-2 { grid-column: 1 / -1; }
}

/* ---- Contact Form 7 inside the landing form card ---- */
.lp-form-card .wpcf7 { color: #fff; }
.lp-form-card .wpcf7 .lp-form > p:not([class]) { display: contents; }   /* CF7 auto-paragraphs: keep the grid */
.lp-form-card .wpcf7 .lp-form br { display: none; }
.lp-form-card .wpcf7-form-control-wrap { display: block; }
.lp-form-card .wpcf7 input:not([type=submit]):not([type=hidden]),
.lp-form-card .wpcf7 select,
.lp-form-card .wpcf7 textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  outline: none;
}
.lp-form-card .wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F6C56A' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.lp-form-card .wpcf7 select option { color: #000; }
.lp-form-card .wpcf7 input:focus, .lp-form-card .wpcf7 select:focus, .lp-form-card .wpcf7 textarea:focus { border-color: var(--accent-gold); }
.lp-form-card .wpcf7 input[type=submit] {
  min-height: 48px; padding: 12px 32px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 17px; color: #111;
  background: linear-gradient(200.42deg, #FFE4B3 13.57%, #F6C56A 98.35%);
  transition: background .3s ease, box-shadow .3s ease;
}
.lp-form-card .wpcf7 input[type=submit]:hover { background: linear-gradient(120.8deg, #CF9529 -24.4%, #F6C56A 53.43%); box-shadow: -6px 6px 17.2px rgba(207,149,41,0.35); }
.lp-form-card .wpcf7-not-valid-tip { font-size: 12px; color: #ffb3b3; margin-top: 4px; }
.lp-form-card .wpcf7-spinner { margin: 0 0 0 12px; }
.lp-form-card .wpcf7 form .wpcf7-response-output { margin: 14px 0 0; border-radius: 10px; padding: 10px 14px; color: #fff; font-size: 14px; }

/* ===== TWO-STEP CONSULTATION (CF7 Step 1 / Step 2 / BMI result) ===== */
.lp-steps [hidden] { display: none !important; }
.lp-step-label { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-gold); }
.lp-step:focus { outline: none; }
.lp-step-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; grid-column: 1 / -1; }
.lp-step-actions .wpcf7-spinner { margin: 0; }
.lp-form-card .lp-back {
  padding: 13px 26px; border-radius: 50px; border: 1px solid rgba(255,255,255,.6);
  background: transparent; color: #fff; font: inherit; font-size: 16px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lp-form-card .lp-back:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lp-form-card .lp-back:focus-visible,
.lp-form-card .wpcf7 input[type=submit]:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
.lp-form-card .wpcf7.submitting input[type=submit] { opacity: .6; cursor: progress; }
.lp-result-kicker { margin: 0; font-size: 15px; color: rgba(255,255,255,.75); }
.lp-result-bmi { margin: 4px 0 10px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.lp-result-bmi strong { font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--accent-gold); }
.lp-result-bmi span { font-size: 20px; font-weight: 500; }
.lp-result-note { margin: 0 0 18px; font-size: 14px; color: rgba(255,255,255,.75); }
.lp-result .lp-form-msg { margin: 0; }
