/* =========================================================
   Tina Massages — styles.css
   Премиум статичен сайт · палитра от логото (злато/зелено/крем)
   Дизайн-движение: интро, choreography, scroll-reveal, marquee, tilt
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --gold-1: #F0D88A;
  --gold-2: #C9A24B;
  --gold-3: #8C6D2F;
  --gold-grad: linear-gradient(135deg, #F3DD92 0%, #C9A24B 48%, #9A7833 100%);
  --gold-soft: rgba(201, 162, 75, 0.14);

  --sage: #8FA368;
  --olive: #6E7F4E;
  --forest: #3E4E2C;
  --forest-deep: #2B3320;

  --cream: #FBF8F1;
  --ivory: #F4EEE1;
  --sand: #EDE6D6;
  --brown: #3A2E22;
  --brown-soft: #6E6355;
  --stone: #2C2A26;
  --white: #ffffff;

  --line: rgba(58, 46, 34, 0.12);
  --line-gold: rgba(201, 162, 75, 0.38);

  --font-display: "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 22px rgba(58, 46, 34, 0.07);
  --shadow-md: 0 18px 50px rgba(58, 46, 34, 0.10);
  --shadow-lg: 0 30px 80px rgba(43, 51, 32, 0.16);

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(201, 162, 75, 0.18);
}
a, button, .btn { touch-action: manipulation; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold-2); color: #fff; }

:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 2000;
  background: var(--forest-deep); color: var(--cream);
  padding: 12px 18px; border-radius: 10px; transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Intro loader (fail-safe) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 40%, #fff 0%, var(--cream) 70%);
  animation: loaderAuto 0.8s var(--ease) 2.6s forwards; /* backstop if JS fails */
}
.loader.is-done { transform: translateY(-100%); pointer-events: none;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.loader-inner { position: relative; display: grid; place-items: center; width: 168px; height: 168px; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring circle {
  fill: none; stroke: var(--gold-2); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 339; stroke-dashoffset: 339;
  animation: ringDraw 1.7s var(--ease) forwards;
}
.loader-logo { width: 104px; height: auto; opacity: 0; animation: loaderLogo 1s var(--ease) .25s forwards; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes loaderLogo { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes loaderAuto { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1500; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(201,162,75,.5); transform-origin: left; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Typography ---------- */
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1;
  letter-spacing: 0.4px; color: var(--forest); padding-bottom: 0.06em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 1.1rem;
}
.eyebrow.center { justify-content: center; }
.eyebrow .rule { display: inline-block; width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.eyebrow.center .rule:last-child { background: linear-gradient(90deg, var(--gold-2), transparent); }
.eyebrow-light { color: var(--gold-1); }
.eyebrow-light .rule { background: linear-gradient(90deg, transparent, var(--gold-1)); }

.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead { margin-top: 1.1rem; font-size: 1.12rem; color: var(--brown-soft); }

/* flourish divider */
.flourish { display: block; width: 132px; margin: 1.1rem auto 0; color: var(--gold-2); }
.flourish svg { width: 100%; height: auto; overflow: visible; }
.flourish-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1s var(--ease) .2s; }
.flourish-leaf { fill: currentColor; opacity: 0; transform: scale(.4); transform-origin: 60px 8px;
  transition: opacity .6s ease .55s, transform .6s var(--ease) .55s; }
.flourish.is-in .flourish-line { stroke-dashoffset: 0; }
.flourish.is-in .flourish-leaf { opacity: 1; transform: scale(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.92rem 1.7rem; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  cursor: pointer; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: 0 10px 26px rgba(201, 162, 75, 0.34); overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 16px 34px rgba(201, 162, 75, 0.45); }
.btn-outline { border: 1.5px solid var(--line-gold); color: var(--forest); background: rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-outline:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.btn-block { width: 100%; }
.btn-viber { background: #fff; color: #6E5BAA; border: 1.5px solid rgba(110,91,170,.3); }
.btn-viber:hover { background: #6E5BAA; color: #fff; border-color: #6E5BAA; }
.btn-whatsapp { background: #fff; color: #1FA855; border: 1.5px solid rgba(31,168,85,.3); }
.btn-whatsapp:hover { background: #1FA855; color: #fff; border-color: #1FA855; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease), border-color .4s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-header.is-scrolled {
  height: 70px; background: rgba(251, 248, 241, 0.86);
  backdrop-filter: blur(14px) saturate(1.1); box-shadow: var(--shadow-sm); border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 58px; width: auto; display: block; transition: height .4s var(--ease);
  filter: drop-shadow(0 4px 12px rgba(58,46,34,.14)); }
.site-header.is-scrolled .brand-logo { height: 48px; }

.nav ul { display: flex; align-items: center; gap: 2rem; }
.nav-link { position: relative; font-weight: 500; font-size: 0.97rem; color: var(--forest);
  padding-block: 6px; transition: color .3s var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.is-active { color: var(--gold-3); }
.header-cta { padding: 0.7rem 1.35rem; font-size: 0.9rem; }

.nav-toggle { display: none; width: 46px; height: 46px; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; border-radius: 12px; }
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--forest);
  transition: transform .35s var(--ease), opacity .25s var(--ease), background .3s var(--ease); }
body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(43, 51, 32, 0.45);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.drawer-backdrop.is-visible { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; z-index: 1100; width: min(82vw, 340px); height: 100%;
  background: var(--cream); box-shadow: var(--shadow-lg); padding: calc(var(--header-h) + 1rem) 2rem 2rem;
  transform: translateX(110%); transition: transform .45s var(--ease); display: flex; flex-direction: column;
  border-left: 1px solid var(--line-gold); }
.drawer.is-open { transform: translateX(0); }
.drawer nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.drawer nav a { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  color: var(--forest); padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  transition: color .25s var(--ease), padding-left .25s var(--ease); }
.drawer nav a:hover { color: var(--gold-3); padding-left: 8px; }
.drawer-actions { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.drawer-mini { display: flex; gap: 0.8rem; }
.drawer-mini a { flex: 1; text-align: center; padding: 0.7rem; border-radius: 12px;
  border: 1.5px solid var(--line-gold); font-weight: 600; font-size: 0.9rem; color: var(--forest);
  transition: background .25s var(--ease); }
.drawer-mini a:hover { background: var(--gold-soft); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 3.5rem; overflow: hidden;
  background: radial-gradient(125% 80% at 50% -10%, #FFFFFF 0%, var(--cream) 32%, var(--ivory) 64%, #E6E9D5 100%);
  color: var(--brown); isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.6; }
.orb-1 { width: 560px; height: 560px; top: -190px; right: -130px; background: radial-gradient(circle, rgba(201,162,75,.30), transparent 70%); }
.orb-2 { width: 520px; height: 520px; bottom: -210px; left: -150px; background: radial-gradient(circle, rgba(143,163,104,.32), transparent 70%); }
.hero-watermark { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: min(50vw, 540px); height: auto; opacity: 0.16; }

.particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-2), rgba(201,162,75,0)); opacity: 0; animation: floatUp linear infinite; }
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.7; } 85% { opacity: 0.45; }
  100% { transform: translateY(-92vh) scale(1.1); opacity: 0; }
}

.hero-inner { position: relative; max-width: 820px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(210px, 30vw, 350px); height: auto; margin-bottom: 1.6rem;
  filter: drop-shadow(0 20px 44px rgba(58,46,34,.20)); }
@keyframes floatLogo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.12; letter-spacing: 0.5px; color: var(--forest); margin-bottom: 1.2rem; }
.hero-title em { display: block; font-style: italic; font-weight: 500; line-height: 1.22; padding-bottom: 0.14em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; }
.is-ready .hero-title em { animation: shimmer 6s linear 1.6s infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.hero-sub { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: var(--brown-soft); max-width: 540px; margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; color: var(--forest); font-weight: 500;
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-gold); background: rgba(255,255,255,.62); backdrop-filter: blur(6px); }
.chip .ic { color: var(--gold-3); }

.scroll-ind { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px;
  border: 1.5px solid var(--line-gold); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-ind-line { width: 3px; height: 8px; border-radius: 3px; background: var(--gold-2); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(14px);opacity:0} 100%{opacity:0} }

/* Hero entrance choreography */
[data-hero] { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  animation: heroFailsafe 0s linear 2.9s forwards; }
[data-hero="logo"] { transform: translateY(18px) scale(.95); }
@keyframes heroFailsafe { to { opacity: 1; transform: none; filter: none; } }
html.is-ready [data-hero] { opacity: 1; transform: none; filter: none; }
html.is-ready [data-hero="logo"] { transition-delay: .05s; animation: floatLogo 6s ease-in-out 1.7s infinite; }
html.is-ready [data-hero="1"] { transition-delay: .20s; }
html.is-ready [data-hero="2"] { transition-delay: .32s; }
html.is-ready [data-hero="3"] { transition-delay: .46s; }
html.is-ready [data-hero="4"] { transition-delay: .60s; }
html.is-ready [data-hero="5"] { transition-delay: .74s; }
html.is-ready [data-hero="6"] { transition-delay: 1s; }

/* ---------- ABOUT ---------- */
.about { background: linear-gradient(180deg, var(--cream), var(--ivory)); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-visual { position: relative; display: flex; justify-content: center; }
.about-deco { position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; border-radius: 50%; top: -10%; left: -4%;
  filter: blur(14px); background: radial-gradient(circle, rgba(201,162,75,.18), transparent 70%); }
.about-card { position: relative; width: min(100%, 400px); aspect-ratio: 5/4; border-radius: 60px 60px 24px 24px;
  background: radial-gradient(120% 90% at 50% 15%, #fff 0%, var(--sand) 100%); border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-card::before { content: ""; position: absolute; inset: 14px; border-radius: 48px 48px 16px 16px;
  border: 1px solid var(--line-gold); pointer-events: none; }
.about-logo { width: 86%; height: auto; filter: drop-shadow(0 12px 26px rgba(140,109,47,.20)); }
.about-copy .section-title { margin-bottom: 1.2rem; }
.about-copy p { color: var(--brown-soft); margin-bottom: 1.1rem; max-width: 56ch; }
.about-points { margin-top: 1.6rem; display: grid; gap: 0.85rem; }
.about-points li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; color: var(--brown); }
.about-points .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gold-grad); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; background: var(--forest-deep); border-block: 1px solid rgba(240,216,138,.18); padding-block: 1.05rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--gold-1); letter-spacing: .5px; }
.marquee-track i { color: var(--sage); font-style: normal; margin: 0 1.5rem; font-size: .68em; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SERVICES ---------- */
.services { background: var(--ivory); }
.service-grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; perspective: 1200px; }
.service-card {
  position: relative; background: linear-gradient(180deg, #fff, var(--cream)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.1rem 1.9rem; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden; transform-style: preserve-3d;
}
.service-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.service-card.no-tilt:hover { transform: translateY(-7px); }
.service-card:hover::before { transform: scaleX(1); }
.svc-icon { display: inline-flex; width: 58px; height: 58px; margin-bottom: 1.3rem; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--gold-soft); color: var(--gold-3);
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.svc-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .svc-icon { background: var(--gold-grad); color: #fff; transform: rotate(-4deg); }
.service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.18; color: var(--forest); margin-bottom: 0.7rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.svc-tags span { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; color: var(--olive);
  background: rgba(110,127,78,.1); padding: 0.28rem 0.65rem; border-radius: 999px; }
.service-card p { color: var(--brown-soft); font-size: 0.98rem; margin-bottom: 1.4rem; }
.svc-price { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); color: var(--gold-3);
  border-top: 1px solid var(--line); padding-top: 1.1rem; }
.svc-price .price { font-size: 2.2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.svc-price .cur { font-size: 1.3rem; font-weight: 500; }

.service-card-feature { background: radial-gradient(130% 120% at 80% 0%, #34402A 0%, #2B3320 100%); border-color: rgba(240,216,138,.35); }
.service-card-feature h3 { color: var(--cream); }
.service-card-feature p { color: rgba(247,243,234,.78); }
.service-card-feature .svc-icon { background: rgba(240,216,138,.16); color: var(--gold-1); }
.service-card-feature:hover .svc-icon { background: var(--gold-grad); color: #34402A; }
.service-card-feature .svc-tags span { color: var(--gold-1); background: rgba(240,216,138,.14); }
.service-card-feature .svc-price { color: var(--gold-1); border-top-color: rgba(240,216,138,.25); }
.svc-badge { position: absolute; top: 1.3rem; right: 1.3rem; z-index: 2; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #34402A; background: var(--gold-grad); padding: 0.3rem 0.7rem; border-radius: 999px; }
.services-note { margin-top: 2.4rem; text-align: center; color: var(--brown-soft); font-size: 0.98rem; }

/* ---------- FEATURES ---------- */
.features { background: linear-gradient(180deg, var(--ivory), var(--cream)); }
.feature-grid { margin-top: clamp(2.5rem, 5vw, 3.6rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature { text-align: center; padding: 1rem 0.6rem; }
.feature-icon { display: inline-flex; width: 76px; height: 76px; margin-bottom: 1.2rem; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--gold-3); background: #fff; border: 1px solid var(--line-gold); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.feature-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature:hover .feature-icon { transform: translateY(-5px) rotate(4deg); box-shadow: var(--shadow-md); }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--forest); margin-bottom: 0.5rem; }
.feature p { color: var(--brown-soft); font-size: 0.96rem; max-width: 24ch; margin-inline: auto; }

/* ---------- ATMOSPHERE ---------- */
.atmosphere { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(5rem, 11vw, 9rem);
  background: radial-gradient(120% 100% at 50% 0%, #3E4E2C 0%, #2B3320 100%); color: var(--cream); text-align: center; }
.atmosphere-bg { position: absolute; inset: 0; z-index: -1; }
.orb-3 { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); top: -120px; left: 10%; background: radial-gradient(circle, rgba(201,162,75,.4), transparent 70%); }
.orb-4 { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); bottom: -140px; right: 8%; background: radial-gradient(circle, rgba(143,163,104,.45), transparent 70%); }
.atmosphere-inner { position: relative; max-width: 760px; }
.quote-mark { display: block; font-family: var(--font-display); font-size: 6rem; line-height: 0.5; color: var(--gold-2); opacity: .65; margin-bottom: 1rem; }
.atmosphere blockquote { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.3; max-width: 680px; margin-inline: auto; }
.atmosphere-sign { margin-top: 1.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold-1); }

/* ---------- CONTACT ---------- */
.contact { background: var(--cream); }
.contact-grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { display: grid; gap: 1.4rem; margin-bottom: 2rem; }
.info-list li { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold-3); }
.info-icon svg { width: 24px; height: 24px; }
.info-label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); margin-bottom: 2px; }
.info-value { font-size: 1.1rem; font-weight: 500; color: var(--brown); }
.info-link { transition: color .25s var(--ease); }
.info-link:hover { color: var(--gold-3); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.contact-actions .btn { flex: 1 1 auto; min-width: 140px; }
.contact-map { display: flex; flex-direction: column; gap: 1rem; }
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-gold); box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--sand); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.92) contrast(1.02); }
.map-cta { margin-top: 0.2rem; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--forest-deep); color: rgba(247,243,234,.78); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-logo-card { display: inline-block; background: var(--cream); padding: 14px 20px; border-radius: 16px;
  border: 1px solid var(--line-gold); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.footer-logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.footer-logo-card img { height: 70px; width: auto; display: block; }
.footer-brand p { margin-top: 1.3rem; max-width: 34ch; font-size: 0.96rem; color: rgba(247,243,234,.62); }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a, .footer-col li { font-size: 0.97rem; color: rgba(247,243,234,.74); transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--gold-1); }
.footer-bottom { border-top: 1px solid rgba(247,243,234,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; font-size: 0.86rem; color: rgba(247,243,234,.55); }

/* ---------- Floating action ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: none; flex-direction: column; gap: 0.7rem;
  opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.fab.is-visible { opacity: 1; transform: translateY(0); }
.fab-btn { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.fab-btn svg { width: 26px; height: 26px; fill: #fff; }
.fab-call { background: var(--gold-grad); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,162,75,.5); } 70% { box-shadow: 0 0 0 16px rgba(201,162,75,0); } 100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(5px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms); }
.reveal[data-reveal="left"] { transform: translateX(-44px); }
.reveal[data-reveal="right"] { transform: translateX(44px); }
.reveal[data-reveal="zoom"] { transform: scale(.92); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Section title — per-word reveal ---------- */
.section-title.reveal { opacity: 1; transform: none; filter: none; }
.section-title .word { display: inline-block; }
.section-title .word > span { display: inline-block; opacity: 0; transform: translateY(0.5em); filter: blur(4px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); }
.section-title.is-in .word > span { opacity: 1; transform: none; filter: none; }

/* ---------- Icons draw themselves on reveal ---------- */
.svc-icon svg path, .svc-icon svg circle, .svc-icon svg ellipse,
.feature-icon svg path, .feature-icon svg circle {
  stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.1s var(--ease) .15s;
}
.service-card.is-in .svc-icon svg path, .service-card.is-in .svc-icon svg circle, .service-card.is-in .svc-icon svg ellipse,
.feature.is-in .feature-icon svg path, .feature.is-in .feature-icon svg circle { stroke-dashoffset: 0; }

/* ---------- Service card hover sheen ---------- */
.service-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,.4) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.service-card:hover::after { transform: translateX(130%); }

/* ---------- Card spotlight (cursor-follow glow) ---------- */
.service-card > * { position: relative; z-index: 2; }
.service-card::after { z-index: 1; }
.svc-badge { z-index: 3; }
.card-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(201,162,75,.20), transparent 60%);
}
.service-card-feature .card-glow { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(240,216,138,.22), transparent 60%); }
.service-card:hover .card-glow { opacity: 1; }

/* ---------- Breathing ambient light ---------- */
.hero-aura {
  position: absolute; top: 12%; left: 50%; width: min(72vw, 720px); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(201,162,75,.16), transparent 60%); filter: blur(24px);
  animation: breatheC 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes breatheC { 0%,100% { transform: translateX(-50%) scale(1); opacity: .8; } 50% { transform: translateX(-50%) scale(1.12); opacity: 1; } }
.orb-3 { animation: breathe 10s ease-in-out infinite; }
.orb-4 { animation: breathe 11s ease-in-out infinite .8s; }

/* ---------- Aurora (atmosphere band) ---------- */
.atmosphere-aurora {
  position: absolute; top: 50%; left: 50%; width: 150%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .55; filter: blur(72px);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(201,162,75,.22) 55deg, transparent 140deg, rgba(143,163,104,.24) 235deg, transparent 320deg);
  animation: aurora 28s linear infinite;
}
@keyframes aurora { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- Botanical line-art (draws on scroll) ---------- */
.about { position: relative; overflow: hidden; }
.about-grid { position: relative; z-index: 1; }
.botanical { position: absolute; top: 8%; right: 2.5%; width: clamp(96px, 11vw, 140px); z-index: 0; color: var(--gold-2); opacity: .6; }
.botanical-svg { width: 100%; height: auto; overflow: visible; }
.bot-stem { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620; transition: stroke-dashoffset 1.7s var(--ease) .2s; }
.bot-leaf { fill: currentColor; opacity: 0; transition: opacity .6s ease; }
.botanical.is-in .bot-stem { stroke-dashoffset: 0; }
.botanical.is-in .bot-leaf { opacity: .92; }

/* ---------- Gold section dividers (draw on scroll) ---------- */
.divider { display: flex; justify-content: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); color: var(--gold-2); }
.divider svg { width: min(420px, 76%); height: auto; overflow: visible; }
.divider-line { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round;
  stroke-dasharray: 180; stroke-dashoffset: 180; transition: stroke-dashoffset 1s var(--ease) .15s; }
.divider-leaf { fill: currentColor; opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center;
  transition: opacity .5s ease .5s, transform .5s var(--ease) .5s; }
.divider.is-in .divider-line { stroke-dashoffset: 0; }
.divider.is-in .divider-leaf { opacity: 1; transform: scale(1); }

/* ---------- Scroll performance ----------
   While the user is actively scrolling, pause the looping decorative
   animations so the compositor's whole budget goes to scrolling + the
   reveal transitions. They resume ~180ms after scrolling stops — the
   pause is imperceptible but it removes jank on mid/low-range phones. */
body.is-scrolling .particle,
body.is-scrolling .marquee-track,
body.is-scrolling .orb-3,
body.is-scrolling .orb-4,
body.is-scrolling .hero-aura,
body.is-scrolling .atmosphere-aurora { animation-play-state: paused; }
/* Hero particles never run while the hero is off-screen */
.hero-offscreen .particle { animation-play-state: paused; }
/* Skip rendering the footer until it's near the viewport */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 520px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-card { width: 100%; max-width: 440px; aspect-ratio: 7/5; margin-inline: auto; }
  .about-logo { width: 90%; }
  .contact-grid { grid-template-columns: 1fr; }
  .fab { display: flex; }
  .hero-watermark { opacity: 0.12; right: -18%; }
  .botanical { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .contact-actions .btn { flex: 1 1 100%; }
  /* lighter ambient on phones — better battery & smoothness */
  .atmosphere-aurora { animation: none; opacity: .4; }
  .hero-aura { filter: blur(18px); }
  .section { padding-block: clamp(3.5rem, 12vw, 5rem); }
}

/* =========================================================
   Mobile performance — keep ALL animations, drop only the
   GPU-expensive rendering paths (blur filters, backdrop-filter,
   full-screen blend) that cause scroll jank on phones.
   ========================================================= */
@media (max-width: 860px) {
  /* Full-screen multiply-blend grain re-composites every scroll frame */
  .grain { display: none; }

  /* Animating filter:blur on many elements is the #1 scroll-jank source.
     Keep the fade + slide (compositor-only) — visually ~identical on phone. */
  .reveal, [data-hero], .section-title .word > span,
  .hero-title, .hero-sub { filter: none !important; }
  /* single column on phones → every reveal moves vertically, never sideways
     (prevents off-center / clipped sections like contact + map) */
  .reveal,
  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"],
  .reveal[data-reveal="zoom"] { transform: translateY(22px); }
  [data-hero] { transform: translateY(18px); }

  /* backdrop-filter is recomputed each frame behind fixed/translucent
     elements — swap for solid translucency (looks the same). */
  .site-header.is-scrolled { background: rgba(251, 248, 241, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chip { background: rgba(255, 255, 255, 0.86); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-outline, .drawer-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* lighter (still soft) decorative blur radii = cheaper compositing */
  .hero-bg .orb { filter: blur(46px); }
  .orb-3, .orb-4 { filter: blur(50px); }

  /* promote the animating layers so reveals never trigger a repaint */
  .reveal, [data-hero], .service-card { backface-visibility: hidden; }
  /* transition only compositor properties; a touch snappier on slow chips */
  .reveal { transition-property: opacity, transform; transition-duration: .7s; }
  [data-hero] { transition-property: opacity, transform; }
  .section-title .word > span { transition-property: opacity, transform; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .loader { display: none; }
  .reveal, [data-hero] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .section-title .word > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .svc-icon svg *, .feature-icon svg * { stroke-dashoffset: 0 !important; }
  .bot-stem, .divider-line { stroke-dashoffset: 0 !important; }
  .bot-leaf, .divider-leaf { opacity: 1 !important; transform: none !important; }
  .card-glow { display: none !important; }
  .hero-aura, .atmosphere-aurora, .orb-3, .orb-4 { animation: none !important; }
  .particle, .scroll-ind-line, .fab-call, .marquee-track { animation: none !important; }
  .hero-title em { animation: none !important; }
}
