/* =============================================
   LONGEVITY THERAPY — MASTER STYLES 
   "The Ethereal Sanctuary" Design System
   ============================================= */

/* ---- TOKENS & VARIABLES ---- */
:root {
  --primary:           #476250;
  --primary-hover:     #3a5143;
  --primary-container: #5f7b68;
  --secondary:         #8e4b44;
  --secondary-dim:     #ffb4ab;
  --surface:           #fcf9f4;
  --surface-low:       #f6f3ee;
  --surface-card:      #ffffff;
  --surface-high:      #e5e2dd;
  --on-surface:        #1c1c19;
  --on-surface-sub:    #444939;
  --outline-variant:   #c4c9b4;
  --chip-bg:           #cbead3;
  --error:             #ba1a1a;
  --error-bg:          #fff0ee;
  --success:           #2e6b49;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans:  'Manrope', system-ui, sans-serif;

  --nav-height: 80px;
}

/* ---- BASE RESET ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* =============================================
   NAVBAR (Floating Capsule Style)
   ============================================= */
.navbar {
  position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
  width: calc(100% - 4rem); max-width: 1300px; z-index: 1000;
  background: rgba(252, 249, 244, 0.6);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.navbar--scrolled {
  top: 1rem;
  width: calc(100% - 2rem);
  background: rgba(252, 249, 244, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(71, 98, 80, 0.1);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2.8rem;
}

.nav-logo { transition: transform 0.3s ease; display: flex; align-items: center; }
.nav-logo:hover { transform: scale(1.02); }

.logo-img { 
  height: 52px; width: auto; 
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.06)) contrast(1.1);
  transition: transform 0.3s ease;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.75rem; font-weight: 600; 
  color: var(--on-surface-sub); letter-spacing: 0.08em; text-transform: uppercase;
  transition: 0.3s; padding: 0.5rem 0.2rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* NAV MENU WRAPPER */
.nav-menu-wrapper { display: flex; align-items: center; gap: 3rem; }

.nav-mobile-toggle { 
  display: none; cursor: pointer; flex-direction: column; gap: 6px; 
  padding: 10px; margin-right: -10px; z-index: 1001; 
}
.nav-mobile-toggle span { width: 24px; height: 2px; background: var(--primary); transition: 0.3s; display: block; }
.nav-mobile-toggle.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }




/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; min-height: 95vh; display: flex; align-items: center;
  background-image: radial-gradient(ellipse at 100% 50%, rgba(71,98,80,0.06) 0%, transparent 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 1400px; margin: 0 auto; width: 100%;
  padding-top: 100px; /* Space for fixed navbar */
}
.hero-text { padding: 2rem 5rem 0 6.5rem; }

.label-tag {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary);
  background: rgba(71,98,80,0.08); padding: 0.5rem 1.2rem; border-radius: 50px; margin-bottom: 2rem;
}
.display-lg { font-family: var(--font-serif); font-size: clamp(3rem, 5vw, 5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; }
.display-lg em { font-style: italic; color: var(--primary); }
.hero-body { font-size: 1.1rem; font-weight: 300; color: var(--on-surface-sub); max-width: 45ch; margin-bottom: 2.5rem; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: white; padding: 1rem 2.2rem; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(71,98,80,0.25); transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(71,98,80,0.3); opacity: 0.95; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none;
  background: white; border: 1.5px solid var(--outline-variant);
  color: var(--primary); padding: 0.9rem 2.2rem; border-radius: 12px;
  font-weight: 700; font-size: 0.9rem; transition: 0.3s;
}
.btn-secondary:hover { background: var(--surface-low); border-color: var(--primary); transform: translateY(-2px); }

.hero-visual { 
  position: relative; height: 85vh; border-radius: 40px 0 0 40px; overflow: hidden; 
  box-shadow: -20px 20px 60px rgba(0,0,0,0.1);
}
.hero-img-wrap { width: 100%; height: 100%; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-visual:hover .hero-img { transform: scale(1.03); }

/* HERO COMPONENTS */
.hero-actions { display: flex; align-items: center; gap: 2.5rem; margin-bottom: 4rem; }

.btn-tertiary, .btn-tertiary-light { 
  text-decoration: none; color: var(--primary); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.05em; transition: 0.3s; position: relative;
  display: inline-flex; align-items: center;
}
.btn-tertiary-light { color: white; }

.btn-tertiary::after, .btn-tertiary-light::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 30px; height: 1.5px;
  background: var(--primary); transition: width 0.3s ease;
}
.btn-tertiary-light::after { background: white; }

.btn-tertiary:hover, .btn-tertiary-light:hover { color: var(--primary); transform: translateX(5px); }
.btn-tertiary-light:hover { color: white; }


.hero-chips { display: flex; flex-wrap: wrap; gap: 1rem; }
.chip {
  font-size: 0.75rem; font-weight: 600; color: var(--on-surface-sub);
  background: white; border: 1px solid var(--outline-variant); 
  padding: 0.6rem 1.2rem; border-radius: 50px; opacity: 0.8;
  transition: 0.3s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); opacity: 1; transform: translateY(-2px); }

.hero-badge {
  position: absolute; bottom: 3rem; left: 3rem; background: white;
  padding: 1.5rem 2rem; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 1rem; max-width: 250px;
  animation: floatBadge 4s ease-in-out infinite;
}
.badge-icon { font-size: 1.5rem; }
.hero-badge p { font-size: 0.8rem; font-weight: 600; line-height: 1.3; color: var(--on-surface-sub); }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip { background: var(--surface-low); padding: 4rem 0; border-bottom: 1px solid var(--outline-variant); }
.stats-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; padding: 0 2rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 2.5rem; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-surface-sub); }
.stat-divider { width: 1px; height: 40px; background: var(--outline-variant); opacity: 0.5; }

/* =============================================
   SANCTUARY & GLOBAL IMAGERY
   ============================================= */
.sanctuary { padding: 120px 0; background: white; }
.sanctuary-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; align-items: center; padding: 0 5rem; }

.sanctuary-imgs { position: relative; display: flex; align-items: flex-end; }
.sanc-img-main { 
  width: 100%; max-height: 700px; object-fit: cover; border-radius: 32px; 
  box-shadow: 20px 30px 60px rgba(0,0,0,0.08);
}
.sanc-card { 
  position: absolute; bottom: 40px; left: -40px; background: var(--primary); color: white;
  padding: 3rem; border-radius: 24px; max-width: 350px; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.sanc-card-icon { font-size: 2rem; display: block; margin-bottom: 1rem; color: var(--secondary-dim); }
.sanc-card-text { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; margin-bottom: 1rem; line-height: 1.4; }
.sanc-card-author { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }

.headline-lg { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.1; margin: 1.5rem 0 2rem; }
.headline-lg em { color: var(--primary); font-style: italic; }
.body-text { font-size: 1.1rem; color: var(--on-surface-sub); margin-bottom: 2rem; max-width: 50ch; }


/* =============================================
   SERVICES
   ============================================= */
.services { padding: 120px 0; background: var(--surface-low); }
.services-header { text-align: center; margin-bottom: 80px; }
.services-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0 5rem; }
.service-card { 
  background: white; padding: 4rem 3rem; border-radius: 32px; transition: 0.4s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: center; text-align: center;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.service-icon { font-size: 3rem; margin-bottom: 2rem; }
.service-card h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary); }
.service-card p { font-size: 0.95rem; color: var(--on-surface-sub); margin-bottom: 2rem; }

.service-card--featured { background: var(--primary); color: white; }
.service-card--featured h3 { color: var(--secondary-dim); }
.service-card--featured p { color: rgba(255,255,255,0.8); }

/* =============================================
   APPROACH & STEPS
   ============================================= */
.approach { padding: 120px 0; background: white; }
.approach-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: flex-start; padding: 0 5rem; }

.approach-steps { margin-top: 4rem; position: relative; }

.step { 
  display: flex; gap: 3rem; margin-bottom: 5rem; position: relative;
  transition: 0.4s;
}

/* Vertical line connecting steps */
.step:not(:last-child)::after {
  content: ''; position: absolute; left: 24px; top: 60px; width: 1px; height: calc(100% - 20px);
  background: var(--outline-variant); opacity: 0.5;
}

.step-num { 
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 300; color: var(--primary);
  width: 50px; height: 50px; border-radius: 50%; background: var(--surface-low);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid var(--outline-variant); position: relative; z-index: 2;
  transition: 0.4s;
}

.step:hover .step-num { background: var(--primary); color: white; transform: scale(1.1); border-color: var(--primary); }

.step-content h4 { 
  font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 0.8rem; color: var(--primary);
  font-weight: 400;
}
.step-content p { font-size: 1rem; color: var(--on-surface-sub); max-width: 40ch; line-height: 1.7; }

.approach-img-wrap { 
  position: relative; border-radius: 40px; overflow: hidden; height: 750px;
  box-shadow: 30px 40px 80px rgba(0,0,0,0.1);
}
.approach-img { width: 100%; height: 100%; object-fit: cover; transition: 1s ease; }
.approach-img-wrap:hover .approach-img { transform: scale(1.05); }

/* Decorative dot for the end of the line */
.approach-steps::after {
  content: ''; position: absolute; left: 22px; bottom: -40px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--primary); opacity: 0.6;
}


/* =============================================
   BOOKING SECTION (Calendly)
   ============================================= */
.booking-section { padding: 120px 0; background: var(--surface-low); }
.booking-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; padding: 0 5rem; align-items: center; }
.booking-widget-wrap { background: white; border-radius: 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid rgba(0,0,0,0.03); }

/* =============================================
   CONTACT & FORM
   ============================================= */
.contact { padding: 120px 0; background: white; }
.contact-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; padding: 0 5rem; }
.contact-form-wrap { background: white; padding: 4rem; border-radius: 40px; box-shadow: 0 30px 80px rgba(28,28,25,0.08); border: 1px solid rgba(0,0,0,0.02); }
.form-group { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-link {
  text-decoration: none; color: var(--on-surface); font-weight: 500; font-size: 1rem;
  transition: 0.3s; position: relative;
}
.contact-link:hover { color: var(--primary); }

.channel-icon-circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--surface-low);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  border: 1px solid var(--outline-variant); color: var(--primary);
}

/* =============================================
   WHATSAPP FLOAT (Redesigned)
   ============================================= */
.whatsapp-float { 
  position: fixed; bottom: 40px; right: 40px; z-index: 2000; 
  text-decoration: none; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-bubble {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 8px 10px 8px 24px;
  border-radius: 100px;
  border: 1px solid rgba(71, 98, 80, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.whatsapp-text {
  font-size: 0.85rem; font-weight: 700; color: var(--primary);
  letter-spacing: 0.05em; text-transform: uppercase;
}

.whatsapp-icon-bg {
  width: 44px; height: 44px; background: #25D366; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  position: relative;
}

/* Elegant Pulse Effect */
.whatsapp-icon-bg::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%; background: #25D366; opacity: 0.4;
  animation: pulseGreen 2s infinite; z-index: -1;
}

@keyframes pulseGreen {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-float:hover { transform: scale(1.05) translateY(-5px); }
.whatsapp-float:hover .whatsapp-bubble { background: rgba(255, 255, 255, 0.95); border-color: var(--primary); }


/* FOOTER */
.footer { padding: 80px 0 40px; background: var(--surface-low); border-top: 1px solid var(--outline-variant); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 5rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo { 
  height: 60px; margin-bottom: 2rem; 
  filter: contrast(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}
.footer-copy { font-size: 0.85rem; color: var(--on-surface-sub); margin-bottom: 2rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { text-decoration: none; font-size: 0.8rem; color: var(--on-surface-sub); font-weight: 600; }

/* =============================================
   RESPONSIVE DESIGN SYSTEM
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid, .sanctuary-grid, .booking-grid, .contact-grid, .approach-grid { 
    grid-template-columns: 1fr; gap: 60px; padding: 0 5%;
  }
  .hero-text { padding: 8rem 5% 4rem; text-align: center; }
  .hero-actions { justify-content: center; flex-direction: column; gap: 1.5rem; }
  .hero-visual { height: 60vh; border-radius: 40px; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: 2rem; width: 80%; max-width: 300px; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 5%; }
  
  .sanc-card { position: static; margin-top: -60px; width: 95%; margin-left: auto; margin-right: auto; }
  .approach-img-wrap { height: 500px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }
  .navbar { top: 0; width: 100%; border-radius: 0; border: none; border-bottom: 1px solid rgba(0,0,0,0.05); background: var(--surface); }
  
  .nav-mobile-toggle { display: flex; z-index: 1001; }
  .nav-menu-wrapper {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--surface); flex-direction: column; justify-content: center;
    padding: 2rem; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }
  .nav-menu-wrapper.active { right: 0; }
  .nav-links { flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; margin-bottom: 2.5rem; }
  .nav-links a { font-size: 1.4rem; font-weight: 500; }
  .nav-cta { align-self: center; width: auto; min-width: 200px; display: flex; justify-content: center; }
  
  .logo-img { height: 28px; }
  .nav-inner { padding: 1rem 1.5rem; width: 100%; max-width: 100vw; box-sizing: border-box; }
  
  .display-lg { font-size: 2.6rem; letter-spacing: -0.02em; }
  .hero-text { padding: 7rem 7% 3rem; text-align: center; }
  .hero-chips { flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 2rem; }
  .hero-actions { justify-content: center; align-items: center; flex-direction: column; gap: 1rem; }
  .hero-visual { height: 50vh; margin-top: 2rem; }
  .hero-badge { right: 1rem; bottom: 1rem; transform: none; left: auto; width: auto; font-size: 0.7rem; }
  
  .services-grid { grid-template-columns: 1fr; padding: 0 7%; }
  .stats-inner { flex-wrap: wrap; gap: 30px; justify-content: center; }
  .stat-item { width: 45%; }
  .stat-divider { display: none; }
  
  .sanctuary-imgs { flex-direction: column; align-items: center; }
  .sanc-img-main { max-height: 450px; border-radius: 24px; margin-bottom: 1rem; }
  .sanc-card { 
    position: relative; margin-top: -60px; width: 90%; 
    padding: 2rem; border-radius: 20px; z-index: 2;
    text-align: center; left: auto; bottom: auto; transform: none;
  }
  .sanc-card-text { font-size: 1.1rem; }
  
  .contact-grid { gap: 40px; padding: 0 5% 5rem; }
  .contact-form { padding: 2.5rem 1.5rem; border-radius: 30px; }
  .form-row { grid-template-columns: 1fr; gap: 15px; margin-bottom: 1.5rem; }
  .contact-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .contact-item h4 { font-size: 1.2rem; word-break: break-all; }
  .contact-item p { word-break: break-all; font-size: 0.9rem; }
  .contact-form .btn-primary { width: 100%; justify-content: center; }
  
  .whatsapp-float { bottom: 100px; right: 1.5rem; z-index: 9999; }
  .whatsapp-bubble { padding: 4px 4px 4px 16px; gap: 8px; }
  .whatsapp-text { font-size: 0.7rem; }
  .whatsapp-icon-bg { width: 38px; height: 38px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .display-lg { font-size: 2.2rem; }
  .footer-inner { padding: 0 1.5rem; }
  .hero-text { padding-top: 6rem; }
}
