/* ============================================================
   LILAC Med Travel Georgia — Static Export Stylesheet
   Brand: #2E2C70 primary · #8552A1 secondary · #00A79D CTA
   Fonts: Playfair Display (headings) · Nunito Sans (body) · IBM Plex Mono (mono)
   ============================================================ */

:root {
  --navy: #2E2C70;
  --purple: #8552A1;
  --teal: #00A79D;
  --white: #FFFFFF;
  --radius: 0.375rem;
  --maxw: 1440px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--navy); background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

.section { padding: 7rem 0; }
@media (min-width: 768px) { .section { padding: 10rem 0; } }
.section.dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.rel { position: relative; }

.eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.75rem; }
.eyebrow.purple { color: var(--purple); }
.section-title { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; }
.section-title.light { color: #fff; }
.section-head { margin-bottom: 3rem; }
.accent { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.4rem; background: var(--teal); color: #fff; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; border-radius: var(--radius); border: none; cursor: pointer; transition: transform 0.2s; }
.btn-cta:hover { transform: scale(1.03); }
.btn-pulse { animation: pulse-stroke 2s ease-in-out infinite; }
@keyframes pulse-stroke { 0%,100% { box-shadow: 0 0 0 0 rgba(0,167,157,0.4); } 50% { box-shadow: 0 0 0 4px rgba(0,167,157,0.15); } }

/* ---------- Navbar ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 1.25rem 0; transition: all 0.4s; }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.logo { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: #fff; transition: color 0.4s; }
.brand-sub { font-size: 0.65rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.8); margin-top: 0.15rem; transition: color 0.4s; }
.nav-links { display: none; align-items: center; gap: 2.5rem; }
.nav-links a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: all 0.3s; }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-menu { display: none; flex-direction: column; gap: 1.25rem; padding: 1.5rem 1.5rem 2rem; }
.mobile-menu a { color: var(--navy); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.mobile-menu.open { display: flex; }

/* Scrolled state — glass background + dark text (readable over content) */
.navbar.scrolled { background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(46,44,112,0.08); padding: 0.75rem 0; }
.navbar.scrolled .brand-name { color: var(--purple); }
.navbar.scrolled .brand-sub { color: var(--purple); }
.navbar.scrolled .nav-links a { color: rgba(46,44,112,0.7); }
.navbar.scrolled .nav-links a:hover { color: var(--purple); }
.navbar.scrolled .nav-toggle span { background: var(--navy); }
.navbar.scrolled .mobile-menu { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.parallax-layer { will-change: transform; }
.hero-bg .parallax-layer { position: absolute; inset: -5%; animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
@keyframes hero-parallax { to { transform: translateY(12%); } }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-r { position: absolute; inset: 0; background: linear-gradient(to right, rgba(46,44,112,0.7), rgba(46,44,112,0.4), transparent); }
.hero-overlay-b { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,44,112,0.5), transparent); }
.hero-rules { position: absolute; inset: 0; pointer-events: none; }
.vrule { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.06); }
.hero-content { position: relative; z-index: 10; max-width: var(--maxw); margin: 0 auto; padding: 8rem 1.5rem 5rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; gap: 2.5rem; }
@media (min-width: 768px) { .hero-content { padding: 8rem 2.5rem 7rem; flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.hero-left { flex: 0 0 65%; }
.hero-title { font-size: clamp(2.25rem, 7vw, 4.5rem); font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -0.02em; margin: 1.5rem 0; }
.hero-sub { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 36rem; }
.hero-card { flex: 0 0 30%; background: rgba(46,44,112,0.85); backdrop-filter: blur(16px); border: 1px solid rgba(133,82,161,0.15); border-radius: var(--radius); padding: 2rem; }
.card-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple); margin-bottom: 1rem; }
.card-desc { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 1.25rem; }
.proc-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.proc { text-align: left; padding: 0.75rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 500; border: none; cursor: pointer; transition: all 0.2s; }
.proc:hover { background: rgba(255,255,255,0.1); color: #fff; }
.card-btn { width: 100%; justify-content: center; padding: 0.9rem; }

/* ---------- Treatment Gallery (flat icons) ---------- */
.gallery { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery::-webkit-scrollbar { height: 4px; }
.gallery::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }
.tcard { flex: 0 0 280px; scroll-snap-align: start; position: relative; cursor: pointer; }
@media (min-width: 768px) { .tcard { flex-basis: 310px; } }
.tcard-icon { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(to bottom, #F5F3F9, #ECE8F2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.5rem; text-align: center; }
.tcard-badge { width: 6rem; height: 6rem; border-radius: 50%; background: #fff; border: 1px solid rgba(133,82,161,0.15); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(46,44,112,0.06); transition: transform 0.5s; }
.tcard:hover .tcard-badge { transform: scale(1.1); }
.ticon { width: 44px; height: 44px; stroke: var(--purple); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tcard-text { display: flex; flex-direction: column; gap: 0.5rem; }
.tcard-sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(133,82,161,0.7); }
.tcard-text h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.tcard-overlay { position: absolute; inset: 0; padding: 1.5rem; background: var(--navy); display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transition: opacity 0.5s; }
.tcard:hover .tcard-overlay { opacity: 1; }
.tcard-overlay p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 1.25rem; }
.tcard-meta { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tcard-meta li { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255,255,255,0.8); }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline-line { position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: rgba(133,82,161,0.2); transform-origin: top; animation: draw-line linear both; animation-timeline: view(); animation-range: entry 5% exit 95%; }
@keyframes draw-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (min-width: 768px) { .timeline-line { left: 32px; } }
.phase { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 4rem; }
@media (min-width: 768px) { .phase { gap: 3rem; margin-bottom: 6rem; } }
.phase-node { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(133,82,161,0.1); border: 1px solid rgba(133,82,161,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
@media (min-width: 768px) { .phase-node { width: 64px; height: 64px; font-size: 1.5rem; } }
.phase-body { flex: 1; max-width: 42rem; }
.phase-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(133,82,161,0.6); }
.phase-body h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0.75rem 0; }
@media (min-width: 768px) { .phase-body h3 { font-size: 1.9rem; } }
.phase-body p { color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.phase-detail { font-family: var(--font-mono); font-size: 0.75rem; color: var(--purple); }
.timeline-cta { margin-top: 5rem; padding-left: 3.5rem; }
@media (min-width: 768px) { .timeline-cta { padding-left: 7rem; } }
.rules-dark { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 2rem; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(46,44,112,0.1); } }
.pricing-left { padding: 2rem; background: var(--navy); border-radius: var(--radius); }
@media (min-width: 768px) { .pricing-left { padding: 3rem; } }
.pricing-left h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 2rem; }
.field { margin-bottom: 2rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.75rem; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.opt { text-align: left; padding: 0.75rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); font-size: 0.85rem; border: none; cursor: pointer; transition: all 0.2s; }
.opt:hover { background: rgba(255,255,255,0.1); }
.opt.active { background: var(--teal); color: #fff; font-weight: 500; }
.tier-row { display: flex; gap: 0.75rem; }
.tier { flex: 1; padding: 0.9rem; border-radius: var(--radius); font-size: 0.85rem; font-weight: 500; text-transform: capitalize; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s; }
.tier.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.tier-note { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-top: 0.75rem; }
.price-display { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.price-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 0.5rem; }
.price-row { display: flex; align-items: baseline; gap: 0.75rem; }
.price-big { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--purple); }
.price-save { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.pricing-right { padding: 2rem; background: #fff; }
@media (min-width: 768px) { .pricing-right { padding: 3rem; } }
.pricing-right h3 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 2rem; }
.comp-sub { color: rgba(46,44,112,0.5); font-size: 0.85rem; margin-bottom: 2rem; }
.comp-list { display: flex; flex-direction: column; gap: 1.25rem; }
.comp-row { padding: 1.25rem; border: 1px solid rgba(46,44,112,0.1); border-radius: var(--radius); }
.comp-row.georgia { background: var(--navy); border: none; display: flex; justify-content: space-between; align-items: center; }
.comp-row.georgia .comp-country { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.comp-row.georgia .comp-tier-label { color: #fff; font-size: 0.85rem; text-transform: capitalize; margin-top: 0.25rem; }
.comp-row.georgia .comp-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--purple); }
.comp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.comp-top span { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.comp-amt { font-family: var(--font-mono); font-size: 0.85rem; color: rgba(46,44,112,0.7); }
.bar { height: 6px; background: rgba(46,44,112,0.05); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--purple); border-radius: 999px; transition: width 0.6s ease; }
.comp-save { font-family: var(--font-mono); font-size: 0.75rem; color: var(--purple); margin-top: 0.5rem; }

/* ---------- Trust ---------- */
.trust { position: relative; overflow: hidden; }
.trust-bg { position: absolute; top: 0; right: 0; width: 50%; height: 500px; opacity: 0.1; }
.trust-bg img { width: 100%; height: 100%; object-fit: cover; }
.trust-bg .parallax-layer { position: absolute; inset: -10%; animation: trust-parallax linear both; animation-timeline: view(); animation-range: entry exit; }
@keyframes trust-parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
.trust-bg-fade { position: absolute; inset: 0; background: linear-gradient(to left, transparent, #fff); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.5rem 2rem; border: 1px solid rgba(46,44,112,0.08); border-radius: var(--radius); }
.stat-icon { font-size: 1.25rem; }
.stat-value { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--navy); margin: 0.75rem 0 0.5rem; }
@media (min-width: 768px) { .stat-value { font-size: 2.4rem; } }
.stat-label { font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 0.25rem; }
.stat-sub { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(46,44,112,0.4); }
.testimonials { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .testimonials { grid-template-columns: 1fr 1fr; } }
.quote { padding: 2rem; background: var(--navy); border-radius: var(--radius); }
.quote p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 1.5rem; }
.quote footer { font-family: var(--font-mono); font-size: 0.75rem; color: var(--purple); }
.quote strong { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); position: relative; }
.footer-grid { display: grid; gap: 4rem; padding: 7rem 0; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.footer-intro { color: rgba(255,255,255,0.5); max-width: 28rem; margin-bottom: 2.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1rem 1.25rem; color: #fff; font-size: 0.85rem; font-family: var(--font-body); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: rgba(133,82,161,0.5); }
.contact-form select option { color: var(--navy); }
.contact-form textarea { resize: none; }
.contact-form button { align-self: flex-start; }
.footer-right { display: flex; flex-direction: column; justify-content: space-between; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 4rem; }
.contact-info a, .contact-info p { color: rgba(255,255,255,0.7); font-size: 1rem; transition: color 0.2s; }
.contact-info a:hover { color: var(--purple); }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; margin-bottom: 4rem; }
.quick-links .eyebrow { grid-column: 1 / -1; }
.quick-links a { color: rgba(255,255,255,0.6); font-size: 1rem; transition: color 0.2s; }
.quick-links a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer-brand span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 400; color: var(--purple); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ============================================================
   SCROLL ANIMATIONS — pure CSS (animation-timeline)
   Graceful degradation: hidden initial state only applied when
   the browser supports scroll-driven animations.
   ============================================================ */
@supports (animation-timeline: view()) {
  .mask-line { display: block; overflow: hidden; }
  .mask-line > span { display: block; transform: translateY(110%); animation: mask-up both; animation-timeline: view(); animation-range: entry 0% entry 40%; animation-delay: var(--d, 0s); }
  @keyframes mask-up { to { transform: translateY(0); } }

  .clip-wipe-top { clip-path: inset(0 0 100% 0); opacity: 0; animation: wipe-top both; animation-timeline: view(); animation-range: entry 0% entry 50%; animation-delay: var(--d, 0s); }
  @keyframes wipe-top { to { clip-path: inset(0 0 0% 0); opacity: 1; } }

  .clip-wipe-right { clip-path: inset(0 0 0 100%); opacity: 0; animation: wipe-right both; animation-timeline: view(); animation-range: entry 0% entry 50%; animation-delay: var(--d, 0s); }
  @keyframes wipe-right { to { clip-path: inset(0 0 0 0); opacity: 1; } }

  .blur-reveal { opacity: 0; filter: blur(18px); transform: scale(1.06); animation: blur-in both; animation-timeline: view(); animation-range: entry 0% entry 50%; animation-delay: var(--d, 0s); }
  @keyframes blur-in { to { opacity: 1; filter: blur(0); transform: scale(1); } }

  .scale-pop { opacity: 0; transform: scale(0.9); animation: scale-in both; animation-timeline: view(); animation-range: entry 0% entry 50%; animation-delay: var(--d, 0s); }
  @keyframes scale-in { to { opacity: 1; transform: scale(1); } }

  .reveal-left { opacity: 0; transform: translateX(-50px); animation: slide-x both; animation-timeline: view(); animation-range: entry 0% entry 45%; animation-delay: var(--d, 0.1s); }
  .reveal-right { opacity: 0; transform: translateX(50px); animation: slide-x both; animation-timeline: view(); animation-range: entry 0% entry 45%; animation-delay: var(--d, 0.1s); }
  .reveal-up { opacity: 0; transform: translateY(40px); animation: slide-y both; animation-timeline: view(); animation-range: entry 0% entry 45%; animation-delay: var(--d, 0s); }
  @keyframes slide-x { to { opacity: 1; transform: translateX(0); } }
  @keyframes slide-y { to { opacity: 1; transform: translateY(0); } }
}