/* ============================================
   The One Family Spa — Design tokens
   ============================================ */
:root {
  --blue: #2c4ea8;
  --violet: #7c4fc9;
  --magenta: #b84fd8;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--violet) 55%, var(--magenta) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(44,78,168,0.10) 0%, rgba(184,79,216,0.10) 100%);

  --ivory: #fbf7f2;
  --ivory-alt: #f4eefb;
  --white: #ffffff;
  --ink: #241f33;
  --ink-soft: #5b5468;

  --whatsapp: #25d366;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(44, 30, 90, 0.10);
  --shadow-lg: 0 20px 50px rgba(44, 30, 90, 0.18);

  --font-head: 'DM Serif Display', serif;
  --font-body: 'Manrope', sans-serif;

  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

main section[id],
.service-card[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--gradient-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 79, 201, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(124, 79, 201, 0.45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #ffffff;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(44, 30, 90, 0.10);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img { height: 46px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .logo img { height: 38px; }

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.header-cta { padding: 11px 22px; font-size: 0.88rem; }

/* ============================================
   Services dropdown
   Mobile: static in-flow accordion, driven by max-height.
   Desktop (min-width:769px): absolute overlay, driven by
   opacity/visibility/pointer-events. Each breakpoint owns a
   different set of properties for the same .open class, so
   there is never a specificity fight over `display`.
   ============================================ */
.nav-item.has-dropdown { position: relative; }

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
.dropdown-caret { font-size: 0.68rem; transition: transform 0.25s ease; }
.nav-item.has-dropdown.open .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: static;
  max-height: 0;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: max-height 0.35s ease;
}
.nav-item.has-dropdown.open .dropdown-menu { max-height: 700px; }

.dropdown-link {
  display: block;
  padding: 12px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid #f0ebf7;
}
.dropdown-link:hover { color: var(--violet); }

@media (min-width: 769px) {
  .nav-item.has-dropdown:hover .dropdown-toggle::after,
  .nav-item.has-dropdown.open .dropdown-toggle::after { width: 100%; }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    max-height: none;
    overflow: visible;
    padding: 10px 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .dropdown-link { padding: 10px 24px; border-bottom: none; }
  .dropdown-link:hover { background: var(--ivory-alt); }

  .nav-item.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  padding-top: var(--header-h);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(231 226 252 / 0%) 10%, rgb(0 0 0 / 21%) 55%, rgb(0 0 0 / 35%) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-content h1 { color: #fff; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.hero-actions .btn-primary {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6), 0 12px 30px rgba(0,0,0,0.35);
}
.hero-actions .btn-primary:hover {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8), 0 16px 36px rgba(0,0,0,0.4);
}

@media (min-width: 901px) {
  .hero { justify-content: center; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
}

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================
   About
   ============================================ */
.about { padding: 110px 0 90px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img:first-child {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.about-decor {
  position: absolute;
  width: 130px;
  top: -40px;
  right: -30px;
  opacity: 0.5;
  z-index: -1;
}

/* ============================================
   Services
   ============================================ */
.services { padding: 90px 0; background: var(--ivory-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-img { height: 220px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { margin-bottom: 10px; }
.service-body p { flex: 1; font-size: 0.94rem; }
.service-body .btn { align-self: flex-start; margin-top: 8px; }

/* ============================================
   Why Choose Us
   ============================================ */
.why-choose { padding: 90px 0; }
.why-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-media > img { width: 100%; height: 460px; object-fit: cover; }
.why-cards {
  position: relative;
  margin-top: -70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 32px 32px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.why-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; margin: 0; }

/* ============================================
   Contact + Appointment
   ============================================ */
.contact { padding: 100px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0.16;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}
.contact h2 { color: #fff; }
.contact-item { display: flex; gap: 18px; margin-bottom: 30px; }
.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.05rem;
}
.contact-item h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: rgba(255,255,255,0.78); margin: 0; }
.contact-item a:hover { color: #fff; }

.appointment-form {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.appointment-form h2 { font-size: 1.5rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e4dfee;
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--violet);
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

/* ============================================
   Map
   ============================================ */
.map-section { padding: 90px 0; background: var(--ivory-alt); }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe { width: 100%; display: block; }

/* ============================================
   CTA banner
   ============================================ */
.cta-banner {
  background: var(--gradient);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 24px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.cta-banner .btn-primary:hover { color: var(--blue); }

/* ============================================
   Footer
   ============================================ */
.site-footer { background: #1a1628; color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--magenta); margin-top: 4px; }
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--magenta); font-weight: 600; }
.footer-bottom i { color: var(--magenta); }

/* ============================================
   Floating buttons
   ============================================ */
.float-btn {
  position: fixed;
  left: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 400;
  transition: transform 0.25s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp { background: var(--whatsapp); bottom: 96px; }
.float-call { background: var(--gradient); bottom: 24px; }

/* ============================================
   Mobile nav
   ============================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cards { grid-template-columns: 1fr; margin-top: -40px; }
  .why-media > img { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(44,30,90,0.12);
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: calc(100vh - var(--header-h)); }
  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    align-items: start;
  }
  .main-nav > ul > li { border-bottom: 1px solid #f0ebf7; }
  .main-nav > ul > li > a { display: block; padding: 16px 0; }

  .nav-item.has-dropdown { border-bottom: 1px solid #f0ebf7; }
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
  }
  .dropdown-menu { padding-left: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
  .about-decor { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .appointment-form { padding: 28px 20px; }
  .float-btn { width: 50px; height: 50px; font-size: 1.3rem; left: 16px; }
  .float-whatsapp { bottom: 84px; }
  .float-call { bottom: 16px; }
}
