/* ============================================================
   MAGNOLIA WELLNESS VILLA — Design System
   A digital concierge, not a website.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --sage:          #4A5D4E;
  --sage-deep:     #3A4B3E;
  --sage-dark:     #2E3D31;
  --sage-mist:     #E8EDE5;
  --sage-pale:     #C5CFC3;
  --gold:          #C4A55A;
  --gold-light:    #D4BA7A;
  --gold-glow:     #E8D5A0;
  --cream:         #FAF7F2;
  --cream-warm:    #F5F0E8;
  --magnolia:      #F5E6E0;
  --charcoal:      #2C2C2C;
  --charcoal-soft: #3D3D3D;
  --text:          #2C2C2C;
  --text-light:    #5A5A5A;
  --text-muted:    #8A8A8A;
  --white:         #FFFFFF;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Montserrat', 'Segoe UI', sans-serif;

  --section-pad:   6rem;
  --container-max: 1280px;
  --nav-height:    80px;

  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:        0.3s;
  --t-med:         0.5s;
  --t-slow:        0.8s;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl:     0 16px 64px rgba(0,0,0,0.16);
  --shadow-gold:   0 4px 20px rgba(196,165,90,0.25);

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--white); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage-pale); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--t-fast) var(--ease-smooth); }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }

/* --- Preloader --- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--sage-dark);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { width: 120px; height: auto; margin-bottom: 2rem; animation: preloaderPulse 1.5s ease-in-out infinite; }
.preloader-text { font-family: var(--font-display); color: var(--gold-light); font-size: 1.1rem; font-style: italic; letter-spacing: 0.08em; opacity: 0.8; }
@keyframes preloaderPulse { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1); } }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }

.subtitle { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); font-style: italic; color: var(--text-light); font-weight: 300; }
.section-label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1rem; display: block; }
.divider { width: 60px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 1.5rem auto; border-radius: 1px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--radius-full);
  transition: all var(--t-fast) var(--ease-smooth); position: relative; overflow: hidden; cursor: pointer;
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.1); transform: translateX(-100%); transition: transform var(--t-med) var(--ease-out); }
.btn:hover::after { transform: translateX(0); }

.btn-primary { background: var(--gold); color: var(--white); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: var(--shadow-gold); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-dark { background: transparent; color: var(--sage); border: 2px solid var(--sage); }
.btn-outline-dark:hover { background: var(--sage); color: var(--white); transform: translateY(-2px); }

.btn-sage { background: var(--sage); color: var(--white); border: 2px solid var(--sage); }
.btn-sage:hover { background: var(--sage-deep); border-color: var(--sage-deep); transform: translateY(-2px); }

.btn-lg { padding: 1.1rem 2.8rem; font-size: 0.9rem; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.8rem 0; transition: all var(--t-med) var(--ease-smooth);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 0.75rem; z-index: 1001; }
.nav-logo img { height: 55px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--white); line-height: 1.1; transition: color var(--t-fast); }
.nav-tagline { font-family: var(--font-display); font-size: 0.7rem; font-style: italic; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; transition: color var(--t-fast); }

.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.85); padding: 0.5rem 1rem; border-radius: var(--radius-full); transition: all var(--t-fast) var(--ease-smooth); }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.12); }

.nav-visit { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); padding: 0.5rem 1.2rem; border: 1.5px solid var(--gold-light); border-radius: var(--radius-full); cursor: pointer; transition: all var(--t-fast) var(--ease-smooth); }
.nav-visit:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.nav-visit svg { width: 18px; height: 18px; stroke: currentColor; }

.cart-count { background: var(--gold); color: var(--white); font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform var(--t-fast) var(--ease-spring); }
.cart-count.bump { animation: cartBump 0.4s var(--ease-spring); }
@keyframes cartBump { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* Navbar scrolled */
.navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 20px rgba(0,0,0,0.06); padding: 0.4rem 0; }
.navbar.scrolled .nav-brand { color: var(--sage-dark); }
.navbar.scrolled .nav-tagline { color: var(--text-muted); }
.navbar.scrolled .nav-links a { color: var(--text-light); }
.navbar.scrolled .nav-links a:hover, .navbar.scrolled .nav-links a.active { color: var(--sage); background: var(--sage-mist); }
.navbar.scrolled .nav-visit { color: var(--gold); border-color: var(--gold); }
.navbar.scrolled .nav-visit:hover { background: var(--gold); color: var(--white); }
.navbar.scrolled .nav-logo img { height: 55px; }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 5px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--t-fast) var(--ease-smooth); }
.navbar.scrolled .nav-hamburger span { background: var(--charcoal); }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero { position: relative; height: 100vh; min-height: 700px; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.05); animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,20,0.4) 0%, rgba(20,25,20,0.3) 40%, rgba(20,25,20,0.6) 100%); z-index: 1; }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 850px; padding: 0 2rem; }

.hero-pillars { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.hero-pillar { font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); opacity: 0; transform: translateY(10px); animation: pillarIn 0.6s var(--ease-out) forwards; }
.hero-pillar:nth-child(1) { animation-delay: 0.8s; }
.hero-pillar:nth-child(3) { animation-delay: 0.95s; }
.hero-pillar:nth-child(5) { animation-delay: 1.1s; }
.hero-pillar:nth-child(7) { animation-delay: 1.25s; }
.hero-pillar:nth-child(9) { animation-delay: 1.4s; }
.hero-pillar-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); display: inline-block; opacity: 0; animation: pillarIn 0.6s var(--ease-out) forwards; }
.hero-pillar-dot:nth-child(2) { animation-delay: 0.88s; }
.hero-pillar-dot:nth-child(4) { animation-delay: 1.03s; }
.hero-pillar-dot:nth-child(6) { animation-delay: 1.18s; }
.hero-pillar-dot:nth-child(8) { animation-delay: 1.33s; }
@keyframes pillarIn { to { opacity: 1; transform: translateY(0); } }

.hero h1 { color: var(--white); font-weight: 400; margin-bottom: 0.5rem; opacity: 0; animation: heroTextIn 1s var(--ease-out) 0.3s forwards; }
.hero h1 strong { font-weight: 600; }

.hero-quote { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); font-style: italic; color: rgba(255,255,255,0.85); max-width: 600px; margin: 1.5rem auto 2.5rem; line-height: 1.6; opacity: 0; animation: heroTextIn 1s var(--ease-out) 0.6s forwards; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; animation: heroTextIn 1s var(--ease-out) 0.9s forwards; }

@keyframes heroTextIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; animation: heroTextIn 1s var(--ease-out) 1.2s forwards; opacity: 0; }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* --- Page Hero (subpages) --- */
.page-hero { position: relative; height: 50vh; min-height: 350px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-hero .hero-media { position: absolute; inset: 0; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-overlay { position: absolute; inset: 0; background: rgba(20,25,20,0.7); }
.page-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 2rem; }
.page-hero-content h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero-content .subtitle { color: rgba(255,255,255,0.8); }

/* --- Sections --- */
.section { padding: var(--section-pad) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header .subtitle { margin-top: 0.5rem; }
.section-dark { background: var(--sage-dark); color: var(--white); }
.section-sage { background: var(--sage-mist); }
.section-cream { background: var(--cream-warm); }

/* --- Concierge / Pillar Selector --- */
.concierge { padding: var(--section-pad) 0; background: var(--white); }
.concierge-question { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-align: center; color: var(--sage-dark); margin-bottom: 3rem; }

.pillar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.pillar-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; aspect-ratio: 3/4; transition: all var(--t-med) var(--ease-out); }
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.pillar-card-img { position: absolute; inset: 0; }
.pillar-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.pillar-card:hover .pillar-card-img img { transform: scale(1.08); }
.pillar-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,25,20,0.85) 100%); transition: background var(--t-med); }
.pillar-card:hover .pillar-card-overlay { background: linear-gradient(180deg, transparent 10%, rgba(20,25,20,0.9) 100%); }
.pillar-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; z-index: 1; }
.pillar-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.3rem; }
.pillar-card p { color: rgba(255,255,255,0.75); font-family: var(--font-display); font-style: italic; font-size: 0.95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pillar-card .pillar-explore { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); opacity: 0; transform: translateY(8px); transition: all var(--t-fast) var(--ease-out); }
.pillar-card:hover .pillar-explore { opacity: 1; transform: translateY(0); }
.pillar-explore svg { width: 14px; height: 14px; stroke: currentColor; transition: transform var(--t-fast); }
.pillar-card:hover .pillar-explore svg { transform: translateX(3px); }

/* --- Signature Journey --- */
.signature { background: var(--sage-dark); padding: var(--section-pad) 0; overflow: hidden; }
.signature-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.signature-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.signature-visual img { width: 100%; height: 100%; object-fit: cover; }
.signature-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--gold); color: var(--white); font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.5rem 1.2rem; border-radius: var(--radius-full); }
.signature-content { color: var(--white); }
.signature-content .section-label { color: var(--gold-light); }
.signature-content h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
.signature-content > p { color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.8; }

.signature-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.sig-step { display: flex; align-items: flex-start; gap: 1rem; }
.sig-step-num { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1rem; color: var(--gold-light); margin-top: 2px; }
.sig-step-text h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.2rem; }
.sig-step-text p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

.signature-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(196,165,90,0.25); }
.signature-price .price-from { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.signature-price .price-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; color: var(--gold-light); }
.signature-price .price-detail { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* --- Membership --- */
.membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.membership-card { background: var(--sage-dark); border-radius: var(--radius-lg); padding: 2.5rem; color: var(--white); position: relative; overflow: hidden; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.membership-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.membership-card.featured { border: 2px solid var(--gold); }
.membership-card.featured::before { content: 'Most Popular'; position: absolute; top: 1.2rem; right: -2rem; background: var(--gold); color: var(--white); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 2.5rem; transform: rotate(45deg); }

.membership-tier { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.5rem; }
.membership-name { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1rem; }
.membership-price-row { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.membership-price-row .amount { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-light); }
.membership-price-row .period { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.membership-benefits { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.membership-benefit { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.membership-benefit svg { width: 18px; height: 18px; min-width: 18px; stroke: var(--gold-light); margin-top: 2px; }

/* --- Treatment Cards --- */
.treatment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.treatment-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t-med) var(--ease-out); border: 1px solid rgba(0,0,0,0.04); }
.treatment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.treatment-card-img { height: 200px; overflow: hidden; }
.treatment-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.treatment-card:hover .treatment-card-img img { transform: scale(1.06); }
.treatment-card-body { padding: 1.5rem; }
.treatment-card-pillar { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.treatment-card-body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--sage-dark); }
.treatment-card-body .desc { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; }

.treatment-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.treatment-option { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; background: var(--cream); border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; transition: all var(--t-fast); border: 1.5px solid transparent; }
.treatment-option:hover { border-color: var(--sage-pale); }
.treatment-option.selected { border-color: var(--sage); background: var(--sage-mist); }
.treatment-option .duration { color: var(--text-light); }
.treatment-option .price { font-weight: 600; color: var(--sage-dark); }

.btn-add-visit { width: 100%; padding: 0.7rem; background: var(--sage); color: var(--white); border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all var(--t-fast) var(--ease-smooth); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-add-visit:hover { background: var(--sage-deep); }
.btn-add-visit.added { background: var(--gold); }
.btn-add-visit svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

/* --- Pillar Filter Tabs --- */
.pillar-tabs { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 3rem; position: sticky; top: calc(var(--nav-height) - 10px); z-index: 100; background: var(--cream); padding: 1rem 0; }
.pillar-tab { padding: 0.6rem 1.4rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-full); cursor: pointer; transition: all var(--t-fast) var(--ease-smooth); color: var(--text-light); background: var(--white); border: 1.5px solid rgba(0,0,0,0.08); }
.pillar-tab:hover { border-color: var(--sage); color: var(--sage); }
.pillar-tab.active { background: var(--sage); color: var(--white); border-color: var(--sage); }

/* --- Product Grid (Boutique) --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t-med) var(--ease-out); border: 1px solid rgba(0,0,0,0.04); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img { height: 220px; background: var(--cream-warm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 1.3rem; }
.product-card-body h4 { font-size: 1.15rem; margin-bottom: 0.3rem; color: var(--sage-dark); }
.product-card-body .product-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.8rem; line-height: 1.5; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--sage-dark); font-weight: 500; }
.btn-add-small { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t-fast) var(--ease-smooth); border: none; }
.btn-add-small:hover { background: var(--gold); transform: scale(1.1); }
.btn-add-small svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

/* --- Cart Drawer --- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2000; opacity: 0; visibility: hidden; transition: all var(--t-fast); backdrop-filter: blur(4px); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; width: min(440px, 90vw); height: 100vh; background: var(--white); z-index: 2001; transform: translateX(100%); transition: transform var(--t-med) var(--ease-out); display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,0.12); }
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.06); }
.cart-drawer-header h3 { font-size: 1.3rem; color: var(--sage-dark); }
.cart-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background var(--t-fast); }
.cart-close:hover { background: var(--sage-mist); }
.cart-close svg { width: 20px; height: 20px; stroke: var(--text-light); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-empty svg { width: 48px; height: 48px; stroke: var(--sage-pale); margin-bottom: 1rem; }
.cart-empty p { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; }

.cart-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; font-size: 0.95rem; color: var(--sage-dark); margin-bottom: 0.2rem; }
.cart-item-detail { font-size: 0.82rem; color: var(--text-muted); }
.cart-item-price { font-weight: 600; color: var(--sage-dark); font-size: 0.95rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--sage-pale); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--text-light); cursor: pointer; transition: all var(--t-fast); }
.cart-qty-btn:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }
.cart-item-remove { font-size: 0.75rem; color: var(--text-muted); cursor: pointer; transition: color var(--t-fast); margin-left: auto; }
.cart-item-remove:hover { color: #c0392b; }

.cart-footer { padding: 1.5rem; border-top: 1px solid rgba(0,0,0,0.06); background: var(--cream); }
.cart-time { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.8rem; }
.cart-time svg { width: 16px; height: 16px; stroke: var(--sage); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-total span:first-child { font-weight: 600; font-size: 0.9rem; }
.cart-total-amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--sage-dark); }
.cart-checkout-btn { width: 100%; text-align: center; }

/* --- Checkout --- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.checkout-form h3 { margin-bottom: 1.5rem; color: var(--sage-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-light); margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 0.9rem; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius-sm); background: var(--white); transition: border-color var(--t-fast); color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(74,93,78,0.1); }
.form-group textarea { resize: vertical; min-height: 80px; }

.checkout-summary { background: var(--cream-warm); border-radius: var(--radius-md); padding: 2rem; align-self: start; position: sticky; top: calc(var(--nav-height) + 1rem); }
.checkout-summary h3 { margin-bottom: 1.5rem; color: var(--sage-dark); }
.checkout-item { display: flex; justify-content: space-between; padding: 0.6rem 0; font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.checkout-total { display: flex; justify-content: space-between; padding-top: 1rem; margin-top: 0.5rem; font-weight: 600; font-size: 1.1rem; border-top: 2px solid var(--sage-pale); }
.payfast-badge { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.8rem; background: var(--white); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-muted); }
.payfast-badge svg { width: 16px; height: 16px; stroke: var(--sage); }

/* --- CTA Banner --- */
.cta-banner { background: var(--sage-dark); padding: 4rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.7); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-bottom: 2rem; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; background: var(--sage-mist); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 20px; height: 20px; stroke: var(--sage); }
.contact-item h5 { font-size: 0.75rem; margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { font-size: 0.95rem; color: var(--text-light); }
.contact-item a:hover { color: var(--gold); }
.contact-map { border-radius: var(--radius-md); overflow: hidden; height: 100%; min-height: 350px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* --- About --- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-story-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.about-story-img img { width: 100%; height: 100%; object-fit: cover; }
.about-story-content h2 { margin-bottom: 1rem; }
.about-story-content p { color: var(--text-light); margin-bottom: 1.2rem; line-height: 1.8; }

.about-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.about-value { text-align: center; padding: 1.5rem; }
.about-value-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sage-mist); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.about-value-icon svg { width: 24px; height: 24px; stroke: var(--sage); }
.about-value h4 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.about-value p { font-size: 0.85rem; color: var(--text-light); }

/* --- Policy Pages --- */
.policy-content { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.policy-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--sage-dark); }
.policy-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--sage); }
.policy-content p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
.policy-content ul { margin: 0.5rem 0 1.5rem 1.5rem; list-style: disc; }
.policy-content ul li { color: var(--text-light); margin-bottom: 0.5rem; line-height: 1.6; }

/* --- Footer --- */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand img { height: 60px; margin-bottom: 0.8rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--gold-light); font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-brand > p:last-child { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col h5 { color: var(--white); margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a, .footer-col ul li { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--t-fast); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 2rem 0; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--gold-light); }

/* --- Toast --- */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--sage-dark); color: var(--white); padding: 0.8rem 1.5rem; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 9999; opacity: 0; transition: all var(--t-fast) var(--ease-out); pointer-events: none; display: flex; align-items: center; gap: 0.5rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; stroke: var(--gold-light); }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 999; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all var(--t-fast) var(--ease-smooth); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

/* --- Massage Add-On Selector --- */
.addon-selector { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--sage-pale); }
.addon-selector-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.addon-selector-title svg { width: 14px; height: 14px; stroke: var(--gold); }
.addon-categories { display: flex; flex-direction: column; gap: 0.6rem; }
.addon-category { border: 1.5px solid rgba(0,0,0,0.06); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--t-fast); }
.addon-category:hover { border-color: var(--sage-pale); }
.addon-category-header { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; background: var(--cream); cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--sage-dark); transition: background var(--t-fast); }
.addon-category-header:hover { background: var(--sage-mist); }
.addon-category-header svg { width: 14px; height: 14px; stroke: var(--text-muted); transition: transform var(--t-fast); }
.addon-category.open .addon-category-header svg { transform: rotate(180deg); }
.addon-options { display: none; padding: 0.5rem 0.8rem; flex-direction: column; gap: 0.4rem; }
.addon-category.open .addon-options { display: flex; }
.addon-option { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--t-fast); }
.addon-option:hover { background: var(--cream); }
.addon-option.selected { background: var(--sage-mist); }
.addon-option input[type="radio"] { margin-top: 3px; accent-color: var(--sage); }
.addon-option-info { flex: 1; }
.addon-option-name { font-size: 0.82rem; font-weight: 500; color: var(--sage-dark); display: block; }
.addon-option-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; margin-top: 2px; display: block; }
.addon-selected-summary { margin-top: 0.8rem; padding: 0.6rem 0.8rem; background: var(--sage-mist); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--sage-dark); display: none; }
.addon-selected-summary.visible { display: flex; align-items: center; gap: 0.5rem; }
.addon-selected-summary svg { width: 14px; height: 14px; stroke: var(--gold); min-width: 14px; }

/* --- Membership Form --- */
.membership-form-section { background: var(--cream-warm); border-radius: var(--radius-lg); padding: 3rem; margin-top: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.membership-form-section h3 { text-align: center; margin-bottom: 0.5rem; color: var(--sage-dark); }
.membership-form-section .subtitle { text-align: center; margin-bottom: 2rem; display: block; }
.membership-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.membership-form .form-group { margin-bottom: 1.2rem; }
.membership-form .form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-light); margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.membership-form .form-group input,
.membership-form .form-group select { width: 100%; padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 0.9rem; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius-sm); background: var(--white); transition: border-color var(--t-fast); color: var(--text); }
.membership-form .form-group input:focus,
.membership-form .form-group select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(74,93,78,0.1); }
.membership-form .btn-submit { width: 100%; padding: 1rem; background: var(--gold); color: var(--white); border: none; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all var(--t-fast) var(--ease-smooth); }
.membership-form .btn-submit:hover { background: var(--gold-light); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.membership-form-success { text-align: center; padding: 2rem; display: none; }
.membership-form-success.visible { display: block; }
.membership-form-success svg { width: 48px; height: 48px; stroke: var(--sage); margin-bottom: 1rem; }
.membership-form-success h4 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--sage-dark); }
.membership-form-success p { color: var(--text-light); }

/* --- Desktop Enhancements --- */
@media (min-width: 1025px) {
  body { font-size: 17px; }
  .container { padding: 0 3rem; }
  .section-header { max-width: 800px; }
  .treatment-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 2rem; }
  .treatment-card-body { padding: 1.8rem; }
  .treatment-card-body h3 { font-size: 1.4rem; }
  .treatment-card-body .desc { font-size: 0.92rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
  .pillar-card-content { padding: 2rem; }
  .pillar-card h3 { font-size: 1.6rem; }
  .pillar-card p { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
  .signature-layout { gap: 5rem; }
  .signature-content h2 { font-size: 2.8rem; }
  .signature-content > p { font-size: 1.05rem; }
  .footer-grid { gap: 4rem; }
  .cta-banner { padding: 5rem 0; }
  .cta-banner h2 { font-size: 2.8rem; }
  .about-story { gap: 5rem; }
  .about-story-content p { font-size: 1rem; }
  .contact-grid { gap: 4rem; }
  .membership-grid { max-width: 1000px; gap: 2.5rem; }
  .membership-card { padding: 3rem; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .signature-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .signature-visual { max-height: 400px; aspect-ratio: auto; }
  .checkout-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4rem; --nav-height: 70px; }
  .nav-links { position: fixed; top: 0; right: 0; width: min(320px, 85vw); height: 100vh; background: var(--white); flex-direction: column; padding: 5rem 2rem 2rem; gap: 0; transform: translateX(100%); transition: transform var(--t-med) var(--ease-out); box-shadow: -8px 0 40px rgba(0,0,0,0.1); z-index: 1000; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--text) !important; padding: 0.8rem 1rem; width: 100%; border-radius: var(--radius-sm); font-size: 0.9rem; }
  .nav-links a:hover, .nav-links a.active { background: var(--sage-mist) !important; color: var(--sage) !important; }
  .nav-visit { color: var(--gold) !important; border-color: var(--gold) !important; justify-content: center; margin-top: 0.5rem; }
  .nav-hamburger { display: flex; }
  .hero { min-height: 600px; }
  .pillar-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .membership-grid { grid-template-columns: 1fr; max-width: 500px; }
  .treatment-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .membership-form .form-row { grid-template-columns: 1fr; }
  .membership-form-section { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  :root { --section-pad: 3rem; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { aspect-ratio: 16/9; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
  .whatsapp-float { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}
