/* css/components.css */

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--secondary { background: var(--muted-stone); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--near-black); color: var(--near-black); }
.btn--outline-light { background: transparent; border-color: white; color: var(--white); }

/* =====================
   NAVIGATION
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav--transparent { background: transparent; }
.nav--scrolled {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.3s ease, padding 0.3s ease;
}
.nav--scrolled .nav__inner {
  padding: 14px 0;
  border-bottom-color: transparent;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}
.nav--scrolled .nav__logo { color: var(--near-black); }
.nav__logo-mark {
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s ease;
  position: relative;
}
.nav--scrolled .nav__link { color: var(--warm-grey); }
.nav__link:hover { color: var(--green); }
.nav__cta { margin-left: 8px; }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 2px;
  padding: 12px 0 8px;
  z-index: 200;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.nav__dropdown-menu a:hover { background: var(--warm-cream); color: var(--green); }

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: background 0.3s ease;
  border-radius: 2px;
}
.nav--scrolled .nav__hamburger span { background: var(--near-black); }

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--near-black);
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav__mobile-menu.is-open { display: flex; }
.nav__mobile-menu a {
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 300;
}
.nav__mobile-menu a:hover { color: var(--green); }
.nav__mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* =====================
   HERO — CINEMATIC VIDEO
   ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.55));
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 var(--gutter);
  color: var(--white);
}
.hero__content h1 { color: var(--white); margin-bottom: 24px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Hero banner (used on non-home pages — 50vh, image bg) */
.hero-banner {
  position: relative;
  height: 50vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.6));
  z-index: 1;
}
.hero-banner__content {
  position: relative;
  z-index: 2;
  padding: 40px var(--gutter);
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  color: var(--white);
}
.hero-banner__content h1 { color: var(--white); font-size: clamp(24px, 4vw, 42px); }

/* =====================
   S1 — TEXT + IMAGE
   ===================== */
.s-text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.s-text-image--reversed { direction: rtl; }
.s-text-image--reversed > * { direction: ltr; }
.s-text-image__text { display: flex; flex-direction: column; gap: 16px; }
.s-text-image__image { border-radius: 4px; overflow: hidden; height: 400px; }
.s-text-image__image img { width: 100%; height: 100%; object-fit: cover; }

/* =====================
   S2 — CARD GRID
   ===================== */
.s-cards { }
.s-cards__header { text-align: center; margin-bottom: 48px; }
.card-grid {
  display: grid;
  gap: var(--card-gap);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card__image { aspect-ratio: 4/3; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card__image img { transform: scale(1.03); }
.card__body { padding: 24px; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { font-size: 15px; margin-bottom: 16px; }
.card__overline {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}
.card__link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 600;
}
.card__link::after { content: ' →'; }

/* =====================
   S3 — FEATURE STRIP
   ===================== */
.s-features { }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.feature-item { }
.feature-item__icon {
  width: 48px; height: 48px;
  background: var(--green);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}
.feature-item h3 { font-size: 15px; margin-bottom: 8px; }

/* =====================
   S4 — CTA BANNER
   ===================== */
.s-cta-banner {
  text-align: center;
  padding: var(--section-padding) var(--gutter);
}
.s-cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.s-cta-banner p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 32px; }

/* =====================
   S5 — PRICING TABLE
   ===================== */
.pricing-grid {
  display: grid;
  gap: 24px;
}
.pricing-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pricing-card {
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
}
.pricing-card--featured { border-color: var(--green); border-width: 2px; }
.pricing-card__badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.pricing-card__price {
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-heading);
  line-height: 1;
}
.pricing-card__period {
  font-size: 13px;
  color: var(--warm-grey);
  margin-bottom: 20px;
}
.pricing-card__features {
  text-align: left;
  margin-bottom: 28px;
}
.pricing-card__features li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-grey);
  color: var(--warm-grey);
}
.pricing-card__features li::before { content: '✓  '; color: var(--green); }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.75);
  padding: 64px var(--gutter) 32px;
}
.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand { }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.footer__logo-mark {
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer__tagline { font-size: 13px; margin-bottom: 12px; }
.footer__address { font-size: 12px; line-height: 1.8; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 13px; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { font-size: 12px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.footer__social a:hover { border-color: var(--green); color: var(--green); }

/* =====================
   CONTACT FORM
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--near-black);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-grey);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--near-black);
  background: var(--white);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-info { padding: 40px; background: var(--warm-cream); border-radius: 4px; }
.contact-info h3 { margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; font-size: 14px; }

/* =====================
   RESPONSIVE — SHARED
   ===================== */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile, 48px);
  }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .s-text-image { grid-template-columns: 1fr; gap: 32px; }
  .s-text-image--reversed { direction: ltr; }
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid--3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pricing-grid--2 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
}

/* =====================
   UTILITIES
   ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.checklist {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.checklist li {
  font-size: 14px;
  color: var(--warm-grey);
  padding-left: 16px;
  position: relative;
}
.checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* =====================
   HERO BANNER — SERVICE META
   ===================== */
.hero-banner__meta {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 0;
}

/* =====================
   SHOW-MORE (details/summary)
   ===================== */
.treatment-more {
  text-align: center;
  margin-top: 40px;
}
.treatment-more > summary {
  list-style: none;
  display: inline-block;
  cursor: pointer;
}
.treatment-more > summary::-webkit-details-marker { display: none; }
.treatment-more > summary::marker { display: none; }
.treatment-more[open] > summary { display: none; }
.treatment-more__grid {
  margin-top: 32px;
  text-align: left;
}

/* =====================
   TREATMENT CARDS
   ===================== */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.treatment-card {
  background: var(--white);
  border: 1.5px solid var(--light-grey);
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.treatment-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.treatment-card--featured {
  border-color: var(--green);
  background: var(--warm-cream);
}
.treatment-card__badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.treatment-card__duration {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 6px;
}
.treatment-card__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 8px;
  line-height: 1.3;
}
.treatment-card__price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 300;
  color: var(--near-black);
  margin-bottom: 10px;
}
.treatment-card__desc {
  font-size: 14px;
  color: var(--warm-grey);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.treatment-card .btn { align-self: flex-start; }
@media (max-width: 768px) { .treatment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .treatment-grid { grid-template-columns: 1fr; } }

/* =====================
   BOOKING WIDGET SECTION
   ===================== */
.booking-widget {
  text-align: center;
  padding: var(--section-padding) var(--gutter);
  background: var(--bg-sage);
}
.booking-widget h2 { margin-bottom: 8px; }
.booking-widget p { max-width: 560px; margin: 0 auto 32px; color: var(--warm-grey); }
.booking-widget__embed {
  background: var(--white);
  border-radius: 4px;
  padding: 48px 32px;
  max-width: 700px;
  margin: 0 auto;
}
.booking-widget__embed p { color: var(--warm-grey); margin-bottom: 24px; }

/* =====================
   BOOKING IFRAME
   ===================== */
.booking-iframe-wrap {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 860px;
  margin: 0 auto;
}
.booking-iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: none;
}

/* =====================
   TRUST STRIP
   ===================== */
.trust-strip {
  display: flex;
  justify-content: center;
  background: var(--green);
  padding: 0 var(--gutter);
  flex-wrap: wrap;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 32px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.trust-strip__item:last-child { border-right: none; }
.trust-strip__icon {
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-strip { flex-direction: column; align-items: center; }
  .trust-strip__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.25); padding: 14px 24px; }
  .trust-strip__item:last-child { border-bottom: none; }
}

/* =====================
   FAQ ACCORDION
   ===================== */
.faq__item {
  border-bottom: 1px solid var(--light-grey);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--near-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p {
  padding: 0 0 20px;
  color: var(--warm-grey);
  line-height: 1.75;
  margin: 0;
  font-size: 15px;
}

/* Logo swap — white on transparent nav, colour on scrolled nav */
.nav--transparent .nav__logo-white { display: inline-block !important; }
.nav--transparent .nav__logo-colour { display: none !important; }
.nav--scrolled .nav__logo-white { display: none !important; }
.nav--scrolled .nav__logo-colour { display: inline-block !important; }

.nav__links .nav__dropdown {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Pillar cards — full width stack on mobile */
@media (max-width: 768px) {
  .pillar-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .pillar-grid a {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 28px 24px !important;
  }
}
