/*
Theme Name: TroyZen
Author: TroyZen LLC
Description: Custom theme matching the TroyZen static site (homepage + Find a Coach calendar).
Version: 1.0.0
Text Domain: troyzen
*/

/* Keep WordPress from adding default page padding/margins */
.wp-site-blocks,
.entry-content,
.page,
.site {
  margin: 0;
  padding: 0;
  max-width: none;
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

:root {
      --terracotta: #8e3a1f;
      --terracotta-hover: #7a3119;
      --charcoal: #2d2d2d;
      --nav-muted: #3a3532;
      --white: #ffffff;
      --sage: #535a4e;
      --cream: #f3eee6;
      --sand: #e8e0d4;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Montserrat", sans-serif;
      color: var(--charcoal);
      background: #f3eee6;
      -webkit-font-smoothing: antialiased;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* ——— Sticky navigation ——— */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(248, 244, 238, 0.94);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .nav {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0.95rem 1.75rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }

    .logo {
      font-family: "Montserrat", sans-serif;
      font-size: 1.365rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      color: var(--terracotta);
      text-transform: uppercase;
      flex-shrink: 0;
    }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.65rem;
      list-style: none;
      flex: 1;
    }

    .nav-links a {
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.02em;
      color: var(--nav-muted);
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    .nav-links a:hover {
      color: var(--terracotta);
    }

    .nav-links a.active {
      color: var(--terracotta);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--terracotta);
      color: var(--white);
      font-family: "Montserrat", sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.72rem 1.25rem;
      border: none;
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.2s ease;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .btn:hover {
      background: var(--terracotta-hover);
    }

    .btn-hero {
      font-size: 0.8rem;
      padding: 0.95rem 1.65rem;
      letter-spacing: 0.14em;
      margin-top: 0.35rem;
    }

    .nav-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.35rem;
      flex-direction: column;
      gap: 5px;
    }

    .nav-toggle span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--charcoal);
    }

    /* ——— Hero ——— */
    .hero {
      position: relative;
      min-height: 100vh;
      margin-top: -64px;
      padding-top: 64px;
      display: flex;
      align-items: flex-start;
      background-color: #c4a882;
      background-image: url("assets/hero.jpg");
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        100deg,
        rgba(255, 250, 242, 0.42) 0%,
        rgba(255, 248, 238, 0.18) 34%,
        transparent 58%
      );
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      max-width: 1180px;
      width: 100%;
      margin: 0 auto;
      padding: 4.75rem 1.75rem 6rem;
    }

    .hero-headline {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 600;
      font-size: clamp(3.1rem, 6.2vw, 4.75rem);
      line-height: 1.08;
      letter-spacing: -0.01em;
      color: var(--charcoal);
      max-width: 12ch;
    }

    .hero-rule {
      display: block;
      width: 3.25rem;
      height: 2px;
      background: var(--terracotta);
      border: none;
      margin: 1.35rem 0 1.2rem;
    }

    .hero-sub {
      font-size: clamp(0.95rem, 1.5vw, 1.1rem);
      font-weight: 400;
      line-height: 1.55;
      color: var(--charcoal);
      max-width: 28rem;
      margin-bottom: 1.75rem;
    }

    /* ——— Our Mission ——— */
    .mission {
      background: var(--sage);
      color: var(--white);
      padding: 4.25rem 1.75rem;
      box-shadow: inset 0 8px 16px -12px rgba(0, 0, 0, 0.35);
    }

    .mission-inner {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2.75rem;
      padding-left: 6.5rem;
    }

    .mission-icon {
      width: 130px;
      height: auto;
      display: block;
      margin: 0;
      overflow: visible;
    }

    .mission-visual {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      line-height: 0;
      background: transparent;
    }

    .mission-copy {
      max-width: none;
    }

    .mission-title {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 600;
      font-size: clamp(1.9rem, 3vw, 2.4rem);
      line-height: 1.1;
      color: var(--white);
      letter-spacing: 0.01em;
    }

    .mission-rule {
      display: block;
      width: 2.35rem;
      height: 1px;
      background: var(--white);
      border: none;
      margin: 0.7rem 0 1rem;
      opacity: 1;
    }

    .mission-text {
      font-size: clamp(0.95rem, 1.35vw, 1.08rem);
      font-weight: 400;
      line-height: 1.65;
      color: rgba(255, 255, 255, 0.95);
    }

    /* ——— The TroyZen Group / Program ——— */
    .program {
      background: var(--cream);
      padding: 5.5rem 1.75rem 4rem;
    }

    .program-inner {
      max-width: 1080px;
      margin: 0 auto;
    }

    .program-eyebrow {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--terracotta);
      text-align: center;
      margin-bottom: 0.85rem;
    }

    .program-title {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 600;
      font-size: clamp(2.15rem, 4vw, 3rem);
      line-height: 1.15;
      color: var(--charcoal);
      text-align: center;
    }

    .program-rule {
      display: block;
      width: 2.75rem;
      height: 1.5px;
      background: var(--terracotta);
      border: none;
      margin: 1.1rem auto 3.25rem;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem 1.75rem;
      list-style: none;
      margin-bottom: 0;
    }

    .step {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .step-icon {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      background: var(--sand);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.35rem;
      overflow: hidden;
    }

    .step-icon img {
      width: 64px;
      height: 64px;
      object-fit: contain;
      display: block;
    }

    .step-icon svg {
      width: 58px;
      height: 58px;
      stroke: var(--terracotta);
      fill: none;
      stroke-width: 1.45;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .step-heading {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 0.65rem;
      letter-spacing: 0.01em;
    }

    .step-text {
      font-size: 0.86rem;
      font-weight: 400;
      line-height: 1.55;
      color: #4a4542;
      max-width: 15rem;
    }

    .step-rule {
      display: block;
      width: 2rem;
      height: 1.5px;
      background: var(--terracotta);
      border: none;
      margin: 1.15rem auto 0;
    }

    /* ——— One Hour / How it Works ——— */
    .weekly {
      background: var(--sand);
      padding: 4rem 1.75rem 5.5rem;
    }

    .weekly-inner {
      max-width: 980px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 0 3rem;
      align-items: center;
    }

    .weekly-divider {
      width: 1.5px;
      align-self: stretch;
      background: var(--terracotta);
      min-height: 100%;
      opacity: 0.9;
    }

    .weekly-lead {
      padding-right: 0.5rem;
    }

    .weekly-title {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 600;
      font-size: clamp(2rem, 3.5vw, 2.75rem);
      line-height: 1.15;
      color: var(--charcoal);
      margin-bottom: 0;
    }

    .weekly-rule {
      display: block;
      width: 2.5rem;
      height: 1.5px;
      background: var(--terracotta);
      border: none;
      margin: 1.15rem 0 1.15rem;
    }

    .weekly-sub {
      font-size: 0.98rem;
      line-height: 1.6;
      color: #4a4542;
      max-width: 22rem;
    }

    .weekly-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1.05rem;
      padding-left: 0.5rem;
    }

    .weekly-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.85rem;
      font-size: 0.95rem;
      line-height: 1.45;
      color: var(--charcoal);
    }

    .weekly-check {
      flex-shrink: 0;
      width: 1.35rem;
      height: 1.35rem;
      margin-top: 0.1rem;
    }

    .weekly-check circle {
      fill: none;
      stroke: var(--terracotta);
      stroke-width: 1.5;
    }

    .weekly-check path {
      fill: none;
      stroke: var(--terracotta);
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ——— Ready to Take Control ——— */
    .cta {
      background: var(--terracotta);
      padding: 3.25rem 1.75rem;
    }

    .cta-inner {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2.5rem;
    }

    .cta-lead {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      min-width: 0;
    }

    .cta-sprig {
      width: auto;
      height: 7.5rem;
      display: block;
    }

    .cta-title {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 600;
      font-size: clamp(1.85rem, 3.2vw, 2.55rem);
      line-height: 1.2;
      color: var(--white);
    }

    .cta-rule {
      display: block;
      width: 2.5rem;
      height: 1.5px;
      background: var(--white);
      border: none;
      margin: 0.95rem 0 0.95rem;
    }

    .cta-sub {
      font-size: 0.95rem;
      line-height: 1.55;
      color: var(--white);
      max-width: 34rem;
    }

    .btn.btn-on-dark {
      background: var(--cream);
      color: var(--terracotta);
    }

    .btn.btn-on-dark:hover {
      background: var(--white);
    }

    /* ——— Footer ——— */
    .site-footer {
      background: var(--cream);
      padding: 3.25rem 1.75rem 2.25rem;
      color: var(--charcoal);
    }

    .footer-inner {
      max-width: 1080px;
      margin: 0 auto;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 1.5rem;
      margin-bottom: 2.75rem;
    }

    .footer-brand {
      justify-self: start;
    }

    .footer-logo {
      font-family: "Montserrat", sans-serif;
      font-size: 1.15rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--terracotta);
      display: inline-block;
      margin-bottom: 0.45rem;
    }

    .footer-tagline {
      font-size: 0.78rem;
      font-weight: 400;
      color: #5a5450;
      letter-spacing: 0.01em;
    }

    .footer-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      list-style: none;
      justify-self: center;
    }

    .footer-nav a {
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--nav-muted);
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    .footer-nav a:hover {
      color: var(--terracotta);
    }

    .footer-phone {
      justify-self: end;
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      color: var(--terracotta);
      white-space: nowrap;
    }

    .footer-phone:hover {
      color: var(--terracotta-hover);
    }

    .footer-bottom {
      text-align: center;
      max-width: 42rem;
      margin: 0 auto;
    }

    .footer-disclaimer {
      font-size: 0.72rem;
      line-height: 1.55;
      color: #6a6460;
      margin-bottom: 0.85rem;
    }

    .footer-copy {
      font-size: 0.7rem;
      color: #6a6460;
    }

    /* ——— Mobile ——— */
    @media (max-width: 900px) {
      .nav-toggle {
        display: flex;
      }

      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(248, 244, 238, 0.97);
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(45, 45, 45, 0.08);
      }

      .nav-links.open {
        display: flex;
      }

      .nav-links li {
        width: 100%;
      }

      .nav-links a {
        display: block;
        padding: 0.85rem 1.75rem;
        font-size: 0.85rem;
      }

      .nav {
        position: relative;
        flex-wrap: wrap;
      }

      .nav .btn {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
      }

      .nav-toggle {
        order: 3;
      }

      .hero-inner {
        padding: 3.5rem 1.5rem 5rem;
      }

      .mission {
        padding: 4rem 1.5rem;
      }

      .mission-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding-left: 0;
      }

      .mission-visual {
        justify-content: center;
      }

      .mission-icon {
        width: 96px;
      }

      .mission-copy {
        max-width: none;
      }

      .mission-rule {
        margin-left: auto;
        margin-right: auto;
      }

      .program {
        padding: 4rem 1.5rem 3.5rem;
      }

      .steps {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem;
        margin-bottom: 0;
      }

      .weekly {
        padding: 3rem 1.5rem 4rem;
      }

      .weekly-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
      }

      .weekly-divider {
        width: 100%;
        height: 1px;
        min-height: 0;
      }

      .weekly-lead {
        padding-right: 0;
      }

      .weekly-rule {
        margin-left: auto;
        margin-right: auto;
      }

      .weekly-sub {
        max-width: none;
        margin: 0 auto;
      }

      .weekly-list {
        padding-left: 0;
        align-items: center;
      }

      .weekly-list li {
        text-align: left;
        max-width: 22rem;
      }

      .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
      }

      .cta-lead {
        flex-direction: column;
        gap: 1.15rem;
      }

      .cta-rule {
        margin-left: auto;
        margin-right: auto;
      }

      .cta-sub {
        max-width: 26rem;
      }

      .footer-top {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.75rem;
        margin-bottom: 2.25rem;
      }

      .footer-brand,
      .footer-nav,
      .footer-phone {
        justify-self: center;
      }

      .footer-nav {
        flex-wrap: wrap;
        gap: 0.85rem 1.25rem;
      }
    }

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

    @media (max-width: 480px) {
      .nav .btn {
        font-size: 0.62rem;
        padding: 0.6rem 0.85rem;
      }

      .logo {
        font-size: 1.17rem;
        letter-spacing: 0.14em;
      }
    }

/* ——— Booking page (matches Find a Coach mockup) ——— */
    .booking {
      padding: 2.75rem 1.75rem 3.5rem;
    }

    .booking-inner {
      max-width: 1120px;
      margin: 0 auto;
    }

    .booking-panel {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(340px, 440px);
      gap: 2.75rem 3rem;
      align-items: center;
      background: var(--sand);
      border-radius: 28px;
      padding: 2.75rem 2.75rem 2.75rem 3rem;
    }

    .booking-copy {
      text-align: left;
      padding: 0.35rem 0.25rem 0.35rem 0;
    }

    .booking-eyebrow {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--terracotta);
      margin-bottom: 1.1rem;
    }

    .booking-title {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 600;
      font-size: clamp(2.15rem, 3.6vw, 2.85rem);
      line-height: 1.12;
      color: var(--charcoal);
      margin-bottom: 1.25rem;
      max-width: 11ch;
    }

    .booking-lead {
      font-size: 0.94rem;
      line-height: 1.7;
      color: #4a4542;
      max-width: 28rem;
      margin-bottom: 2.35rem;
    }

    .reassure {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.9rem 1.65rem;
      list-style: none;
    }

    .reassure li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.86rem;
      font-weight: 500;
      color: var(--terracotta);
    }

    .reassure-icon {
      width: 1.35rem;
      height: 1.35rem;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1.5px solid var(--terracotta);
      border-radius: 4px;
    }

    .reassure-icon svg {
      width: 0.78rem;
      height: 0.78rem;
      stroke: var(--terracotta);
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .booking-calendar {
      background: var(--white);
      border-radius: 20px;
      padding: 0.35rem;
      box-shadow: 0 8px 28px rgba(45, 45, 45, 0.08);
      min-height: 580px;
      overflow: hidden;
    }

    .zeeg-inline-widget {
      width: 100%;
      min-width: 280px;
      min-height: 700px;
      border: 0;
      border-radius: 16px;
      display: block;
    }

@media (max-width: 900px) {
  .booking {
    padding: 2rem 1.25rem 3rem;
  }

  .booking-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.85rem 1.35rem;
    border-radius: 22px;
  }

  .booking-title {
    max-width: none;
  }

  .booking-calendar {
    min-height: 520px;
    border-radius: 16px;
  }

  .zeeg-inline-widget {
    min-height: 640px;
  }
}

@media (max-width: 480px) {
  .reassure {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

body.page-find-a-coach .site-footer {
  border-top: 1px solid rgba(45, 45, 45, 0.06);
}
