/* ==========================================================================
   Lee's Custom Tailoring — Master Tailor Knowledge Page Additions
   Loaded after style.css. Contains ONLY rules specific to knowledge.html;
   the approved Homepage, Wedding, Difficult Fit, Fit Correction, Georgia,
   and Indiana pages are not affected by this file.
   ========================================================================== */

/* -------------------- Active nav state (this page) -------------------- */
.nav-link-active::after {
  width: 100%;
}

/* -------------------- Wider hamburger-nav range for this page's 10-item nav --------------------
   The shared 900px breakpoint in style.css was tuned for a 9-item nav.
   This page's nav has 10 items (includes "Knowledge"), so it needs a
   wider range before the horizontal nav has room. Scoped to this page
   only via knowledge.css — style.css itself is not modified. */
@media (min-width: 901px) and (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-off-white);
    border-bottom: 1px solid var(--color-warm-gray-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.open { max-height: 400px; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 10px 32px 26px; }
  .primary-nav li { border-bottom: 1px solid var(--color-warm-gray-light); }
  .primary-nav li:last-child { border-bottom: none; }
  .nav-link { display: block; padding: 14px 0; }
}

/* -------------------- Hero lead copy -------------------- */
.hero-lead {
  font-size: 1.15rem;
  color: var(--color-warm-gray-light);
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* -------------------- Section 2: The Four Foundations of Fit -------------------- */
.foundations {
  padding: 120px 0;
  background-color: var(--color-white);
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-top: 56px;
}

.foundation-card {
  min-width: 0;
  text-align: center;
  padding: 8px 12px;
}

.foundation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-gold-soft);
  border-radius: 50%;
  color: var(--color-gold);
  margin-bottom: 22px;
}

.foundation-icon svg {
  width: 30px;
  height: 30px;
}

.foundation-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.foundation-card p {
  color: var(--color-charcoal-light);
  font-size: 0.9rem;
}

/* -------------------- Shared prominent statement --------------------
   Used for the trust-line-style statements throughout this page. */
.knowledge-statement {
  margin-top: 50px;
  padding: 46px 20px;
  text-align: center;
  border-top: 1px solid var(--color-gold-soft);
  border-bottom: 1px solid var(--color-gold-soft);
}

.knowledge-statement p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-black);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.4;
}

/* -------------------- Section 3: Shoulder Slope -------------------- */
.shoulder-slope {
  padding: 120px 0;
  background-color: var(--color-off-white);
}

.shoulder-slope-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.shoulder-slope-text p {
  color: var(--color-charcoal-light);
  margin-bottom: 16px;
}

.shoulder-slope-text p:last-child {
  margin-bottom: 0;
}

.photo-placeholder {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--color-gold-soft);
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.photo-placeholder-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-black);
}

.photo-placeholder-label {
  font-size: 0.92rem;
  color: var(--color-charcoal-light);
  max-width: 320px;
  line-height: 1.5;
}

.photo-placeholder-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-gold-deep);
}

/* -------------------- Section 4: Forward Neck Depth -------------------- */
.forward-neck-depth {
  padding: 120px 0;
  background-color: var(--color-white);
}

.neck-depth-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.neck-depth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--color-gold-soft);
  border-radius: 50%;
  color: var(--color-gold);
  flex-shrink: 0;
}

.neck-depth-icon svg {
  width: 44px;
  height: 44px;
}

.neck-depth-text p {
  color: var(--color-charcoal-light);
  margin-bottom: 12px;
}

.reference-line {
  margin-top: 16px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-gold-deep);
}

/* -------------------- Section 5: Waist Depth / Seat Prominence -------------------- */
.waist-depth {
  padding: 120px 0;
  background-color: var(--color-off-white);
}

.waist-depth-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.waist-depth-inner p {
  color: var(--color-charcoal-light);
  margin-bottom: 14px;
}

.waist-depth-diagram {
  max-width: 460px;
  margin: 40px auto 0;
  border: 1px solid var(--color-warm-gray-light);
  background-color: var(--color-white);
  padding: 4px;
}

.waist-depth-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.waist-depth-diagram.waist-depth-placeholder {
  min-height: 280px;
  border: 1px solid var(--color-gold-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  text-align: center;
}

.waist-depth-placeholder-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-black);
}

.waist-depth-placeholder-reference {
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
}

.waist-depth-placeholder-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-gold-deep);
  max-width: 380px;
  line-height: 1.5;
}

/* -------------------- Section 6: Why Measurements Alone Are Not Enough -------------------- */
.why-measurements {
  padding: 120px 0;
  background-color: var(--color-white);
}

.why-measurements-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.why-measurements-inner p {
  color: var(--color-charcoal-light);
}

/* -------------------- Section 7: From Body to Pattern -------------------- */
.body-to-pattern {
  padding: 120px 0;
  background-color: var(--color-off-white);
}

.body-to-pattern-intro {
  text-align: center;
  color: var(--color-charcoal-light);
  max-width: 680px;
  margin: 0 auto;
}

.body-to-pattern .journey-mini-chain {
  margin-top: 44px;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 14px;
  column-gap: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

.body-to-pattern .journey-mini-chain li:not(:last-child)::after {
  margin-left: 10px;
  font-size: 1rem;
}

/* -------------------- Section 8: Who Benefits Most -------------------- */
.who-benefits {
  padding: 120px 0;
  background-color: var(--color-white);
}

.who-list {
  list-style: none;
  max-width: 640px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.who-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-charcoal-light);
  font-size: 1rem;
  line-height: 1.5;
}

.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
}

/* -------------------- Section 9: Link to Services --------------------
   Reuses the global .pathways / .pathway-card system from style.css;
   only the column count is overridden here for a 3-card row. */
#knowledge-services .pathway-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* -------------------- Section 11: Final CTA -------------------- */
.knowledge-final-cta {
  padding: 130px 0;
  background-color: var(--color-charcoal);
  color: var(--color-off-white);
  text-align: center;
}

.knowledge-final-cta h2 {
  color: var(--color-white);
  font-size: 2.2rem;
  max-width: 720px;
  margin: 0 auto 20px;
}

.knowledge-final-cta p {
  color: var(--color-warm-gray-light);
  max-width: 560px;
  margin: 0 auto 38px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
  .foundation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shoulder-slope-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .neck-depth-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  #knowledge-services .pathway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .foundations,
  .shoulder-slope,
  .forward-neck-depth,
  .waist-depth,
  .why-measurements,
  .body-to-pattern,
  .who-benefits {
    padding: 80px 0;
  }

  .knowledge-final-cta {
    padding: 90px 0;
  }

  .knowledge-statement {
    margin-top: 40px;
    padding-top: 34px;
  }

  .foundation-grid {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-final-cta h2 {
    font-size: 1.6rem;
  }
}
