/* ============================================================
   components.css — Boundless You v2
   Shared UI components: nav, footer, buttons, cards, tags.
   Defined once, used on every page.
   Import AFTER tokens.css and layout.css.
   v2.0 | Sprint 1
   ============================================================ */


/* ── NAVIGATION ─────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(18,26,47,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214,217,222,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}
.nav-logo:hover { opacity: 0.82; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;   /* tightened for 8 top-level items */
  list-style: none;
  margin: 0 0.75rem;
}

.nav-links li a {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(214,217,222,0.65);
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links li a:hover { color: var(--silver); }
.nav-links li.active a {
  color: var(--gold);
}

/* ── DROPDOWN NAV ────────────────────────────────────────────── */

.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  position: relative;
}

/* Chevron indicator on the parent link */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.5rem;
  opacity: 0.45;
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 1px;
}

.dropdown {
  /* Use visibility+opacity instead of display:none so we can apply a
     hide-delay — this gives the mouse a grace window when travelling
     from the nav link down to the dropdown panel */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  transition-delay: 0.18s;          /* delay before hiding */

  position: absolute;
  top: calc(100% + 8px);            /* tighter gap — less distance to cross */
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-mid);
  border: 1px solid rgba(214,217,222,0.15);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 210px;
  z-index: 300;
}

/* Extend the dropdown's own hit-area upward to bridge the gap */
.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;                        /* matches the gap above */
  left: 0;
  right: 0;
  height: 8px;
}

.dropdown li { border-bottom: none !important; }

.dropdown li a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(214,217,222,0.65);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.dropdown li a:hover {
  color: var(--silver);
  background: rgba(214,217,222,0.06);
}
.dropdown li.active a {
  color: var(--gold);
}

/* Show on hover (desktop) — reveal immediately, hide with delay */
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;             /* show immediately on hover-in */
}

.nav-cta {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
  font-family: var(--sans);
}
.nav-cta:hover { background: var(--gold-soft); }

/* Mobile-only CTA inside hamburger menu — hidden on desktop */
.nav-links .nav-cta-mobile { display: none; }

/* Hamburger icon (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  aria-label: "Toggle navigation";
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
}
/* Hamburger → X animation when open */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ── MOBILE NAV ─────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(18,26,47,0.99);
    padding: 1.5rem 5vw 2rem;
    border-bottom: 1px solid rgba(214,217,222,0.1);
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(214,217,222,0.1);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.75rem;
    color: rgba(214,217,222,0.75);
  }
  /* Hide the desktop CTA in nav — mobile uses a link in the dropdown instead */
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Dropdown: flat inline list inside hamburger menu */
  .has-dropdown > a::before { display: none; } /* bridge not needed on mobile */
  .has-dropdown > a::after { display: none; }
  .dropdown {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(214,217,222,0.15);
    padding: 0 0 0.4rem 1rem;
    min-width: 0;
    margin: 0 0 0.4rem 0.4rem;
    background: transparent;
  }
  .dropdown::before { display: none; }
  .dropdown li a {
    padding: 0.5rem 0;
    font-size: 0.72rem;
    color: rgba(214,217,222,0.6);
  }

  /* Mobile CTA appended inside .nav-links */
  .nav-links .nav-cta-mobile {
    display: block;
    margin-top: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.6rem;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
  }
  .nav-links .nav-cta-mobile:hover { background: var(--gold-soft); }
}


/* ── FOOTER ─────────────────────────────────────────────────── */

footer {
  background: var(--obsidian);
  padding: 4.5rem 6vw 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.ft-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--silver);
  text-decoration: none;
}
.ft-logo:hover { color: var(--gold); }

.ft-tag {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(214,217,222,0.5);
  letter-spacing: 0.04em;
  max-width: 400px;
}

.ft-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.ft-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214,217,222,0.45);
  transition: color 0.2s;
  text-decoration: none;
}
.ft-nav a:hover { color: var(--silver); }

.ft-divider {
  width: 36px;
  height: 1px;
  background: rgba(214,217,222,0.15);
}

.ft-copy {
  font-size: 0.68rem;
  color: rgba(214,217,222,0.3);
}

.ft-email {
  font-size: 0.75rem;
  color: rgba(214,217,222,0.5);
  letter-spacing: 0.06em;
  transition: color 0.2s;
  text-decoration: none;
}
.ft-email:hover { color: var(--silver); }

@media (max-width: 1120px) {
  footer { padding: 3.5rem 5vw 2.5rem; }
  .ft-nav { gap: 1.2rem; }
}



/* ── FOOTER SOCIAL ICONS ─────────────────────────────────────── */

.ft-social {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
}

.ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(214,217,222,0.45);
  transition: color 0.2s;
  text-decoration: none;
}
.ft-social a:hover { color: var(--silver); }

.ft-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 1.05rem 3rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, transform 0.18s;
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* Legacy alias — kept for v1 compatibility in carried-over pages */
.btn { display: inline-block; font-family: var(--sans); font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); background: var(--gold);
  padding: 1.05rem 3rem; border: none; cursor: pointer; text-decoration: none;
  transition: background 0.22s, transform 0.18s; }
.btn:hover { background: var(--gold-soft); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: transparent;
  padding: 1.05rem 3rem;
  border: 1.5px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, transform 0.18s;
}
.btn-outline:hover {
  background: var(--green);
  color: var(--ivory);
  transform: translateY(-1px);
}

/* Silver outline variant (on dark/obsidian backgrounds) */
.btn-outline-ivory {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  background: transparent;
  padding: 1.05rem 3rem;
  border: 1.5px solid rgba(214,217,222,0.55);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, transform 0.18s;
}
.btn-outline-ivory:hover {
  background: rgba(214,217,222,0.08);
  border-color: var(--silver);
  transform: translateY(-1px);
}


/* ── COACH CARD ─────────────────────────────────────────────── */

.coach-card {
  background: var(--stone);
  border: 1px solid rgba(214,217,222,0.08);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.coach-card:hover {
  border-color: rgba(198,169,107,0.3);
  box-shadow: 0 6px 32px rgba(0,0,0,0.45);
  transform: translateY(-3px);
}

.coach-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background: var(--stone);
}

/* Placeholder headshot (initials on gold circle) */
.coach-card__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: rgba(18,26,47,0.75);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.coach-card__body {
  padding: 1.4rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.coach-card__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}

.coach-card__intro {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.coach-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.coach-card__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,169,107,0.35);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.coach-card__cta:hover {
  color: var(--green-h);
  border-color: var(--green);
}


/* ── SPECIALTY TAG PILL ──────────────────────────────────────── */

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  line-height: 1;
}


/* ── CREDENTIAL BADGE ────────────────────────────────────────── */

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(214,217,222,0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}
.credential-badge svg { width: 14px; height: 14px; opacity: 0.6; }


/* ── STAR RATING ─────────────────────────────────────────────── */

.star-rating {
  display: flex;
  gap: 0.2rem;
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1;
}


/* ── TESTIMONIAL CARD ────────────────────────────────────────── */

.testimonial-card {
  background: var(--stone);
  border: 1px solid rgba(214,217,222,0.1);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card__quote {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
}
.testimonial-card__author {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ── PROCESS STEP ────────────────────────────────────────────── */

.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.process-step__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: rgba(198,169,107,0.55);
  line-height: 1;
}
.process-step__title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--charcoal);
}
.process-step__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}


/* ── PLACEHOLDER BLOCKS ──────────────────────────────────────── */

/* Generic placeholder (calendly, video, etc.) */
.placeholder-block {
  background: var(--stone);
  border: 1px dashed rgba(214,217,222,0.2);
  border-radius: var(--card-radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}
.placeholder-block__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.6rem;
}
.placeholder-block__text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}


/* ── OFFERINGS TABLE ─────────────────────────────────────────── */

.offerings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.offerings-table th {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(198,169,107,0.35);
  text-align: left;
}
.offerings-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(214,217,222,0.1);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.5;
  vertical-align: top;
}
.offerings-table tr:last-child td { border-bottom: none; }
.offerings-table td.price {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--green);
  white-space: nowrap;
}


/* ── TALLY FORM WRAP ─────────────────────────────────────────── */

.tally-wrap {
  background: var(--stone);
  padding: 1rem 0;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.tally-wrap iframe { display: block; min-height: 520px; }
