/* ── DESIGN TOKENS ────────────────────────────────────────────── */
:root {
  --slate:    #4E6C84;
  --slate-d:  #3A5268;
  --slate-dd: #263849;
  --teal:     #5AACBF;
  --teal-l:   #7ECFDF;
  --beige:    #C4A882;
  --beige-l:  #EAE0D5;
  --stone:    #F4F1ED;
  --off:      #FAFAF8;
  --ink:      #0F1923;
  --ink-m:    #2E3D4A;
  --ink-s:    #4A5C6B;
  --white:    #FFFFFF;
  --wa:       #25D366;
  --r:        6px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--off); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; cursor: none; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CUSTOM CURSOR ────────────────────────────────────────────── */
#cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--teal); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid rgba(90,172,191,0.6); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .12s var(--ease), width .3s var(--ease), height .3s var(--ease), border-color .3s;
}
body.hovering #cursor-dot { width: 12px; height: 12px; background: var(--wa); }
body.hovering #cursor-ring { width: 56px; height: 56px; border-color: rgba(37,211,102,0.4); }
@media (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } body { cursor: auto; } }

/* ── GRAIN OVERLAY ────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025; pointer-events: none; z-index: 1000;
  animation: grainShift .5s steps(2) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,2%); }
  50%  { transform: translate(2%,-1%); }
  75%  { transform: translate(-1%,3%); }
  100% { transform: translate(1%,-2%); }
}

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.25rem 0;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06); padding: .8rem 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1.25rem,5vw,3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; flex-direction: column; gap: .08rem; }
.nav-logo-name { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-d); }
.nav-logo-sub  { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-s); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-m); transition: color .3s; position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; right:0; height:1px; background:var(--teal); transform:scaleX(0); transform-origin:right; transition:transform .35s var(--ease); }
.nav-links a:hover { color: var(--slate); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { background: var(--wa); color: #fff !important; padding: .65em 1.3em; border-radius: 3px; font-weight: 700 !important; display: flex; align-items: center; gap: .45em; transition: transform .25s var(--ease), box-shadow .25s var(--ease) !important; box-shadow: 0 3px 14px rgba(37,211,102,0.3); }
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(37,211,102,0.42) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s var(--ease); }

/* ── SHARED UTILITIES ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem,5vw,3rem); }
.tag { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--slate-d); border: 1.5px solid var(--slate); padding: .32em .85em; border-radius: 2px; margin-bottom: 1.2rem; }
.sec-body { font-size: .92rem; font-weight: 400; line-height: 1.75; color: var(--ink-m); max-width: 520px; margin-top: 1rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.08s} .d2{transition-delay:.18s} .d3{transition-delay:.28s} .d4{transition-delay:.38s} .d5{transition-delay:.48s}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-wa {
  display: inline-flex; align-items: center; justify-content: space-between;
  background: var(--wa); color: #fff;
  padding: 1em 1.6em; border-radius: var(--r);
  font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 5px 24px rgba(37,211,102,0.3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.btn-wa::before { content:''; position:absolute; inset:0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%); transform:translateX(-100%); transition:transform .5s ease; }
.btn-wa:hover::before { transform: translateX(100%); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,0.45); }
.btn-wa-label { display: flex; align-items: center; gap: .6em; }
.btn-wa-sub { font-size: .58rem; font-weight: 400; letter-spacing: .08em; opacity: .8; }
.btn-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  background: rgba(78,108,132,0.08); border: 1px solid rgba(78,108,132,.3);
  color: var(--slate-d); padding: 1em 1.6em; border-radius: var(--r);
  font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s, border-color .3s, color .3s;
}
.btn-tel:hover { background: rgba(78,108,132,.15); border-color: var(--slate); color: var(--slate-dd); }
.btn-tel-dark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
.btn-tel-dark:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-slate {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--slate); color: #fff; padding: 1em 1.8em; border-radius: var(--r);
  font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  box-shadow: 0 4px 18px rgba(62,96,128,.25);
}
.btn-slate:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(62,96,128,.38); background: var(--slate-d); }

/* ── HERO EXTRAS ──────────────────────────────────────────────── */
.hero-antisurgery {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 1.1rem; line-height: 1.5;
}
.hero-microcopy {
  font-size: 0.71rem; font-weight: 400; line-height: 1.65;
  color: var(--ink-s); margin-top: 1rem; max-width: 370px;
}

/* ── WA FLOAT ─────────────────────────────────────────────────── */
.wa-float-text { display: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; position: relative; z-index: 1; white-space: nowrap; }
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: waEntrance 1s var(--ease) 2s both;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
.wa-float::before, .wa-float::after { content:''; position:absolute; inset:0; border-radius:50%; background: var(--wa); animation: waRipple 2.4s ease-out infinite; }
.wa-float::after { animation-delay: 1.2s; }
.wa-float svg { position: relative; z-index: 1; }
.wa-float-badge { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #FF3B30; border: 2px solid var(--off); z-index: 2; animation: livePulse 2s infinite; }
.wa-tooltip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .07em; white-space: nowrap; padding: .5em .9em; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ── MOBILE MENU ──────────────────────────────────────────────── */
.mob-menu { display: none; position: fixed; inset: 0; background: var(--off); z-index: 490; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mob-menu.open { display: flex; animation: fadeIn .3s ease; }
.mob-close { position: absolute; top: 20px; right: 22px; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--ink); padding: 6px; }
.mob-menu a { font-size: 1.2rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-m); transition: color .25s; }
.mob-menu a:hover { color: var(--slate); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer { background: var(--ink); padding: 3rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 2rem; }
.footer-brand-name { font-size: .95rem; font-weight: 700; letter-spacing: .05em; color: rgba(255,255,255,.82); margin-bottom: .25rem; }
.footer-brand-spec { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-l); margin-bottom: 1rem; }
.footer-brand-desc { font-size: .76rem; font-weight: 400; line-height: 1.65; color: rgba(255,255,255,.65); max-width: 280px; }
.footer-col-h { font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .78rem; font-weight: 400; color: rgba(255,255,255,.65); transition: color .3s; }
.footer-links a:hover { color: rgba(255,255,255,.92); }
.footer-contact { display: flex; flex-direction: column; gap: .8rem; }
.footer-ci { display: flex; align-items: flex-start; gap: .6rem; font-size: .77rem; font-weight: 400; line-height: 1.5; color: rgba(255,255,255,.65); }
.footer-ci svg { flex-shrink: 0; margin-top: .15em; color: var(--teal-l); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .68rem; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.footer-brand-tag { font-size: .68rem; color: rgba(255,255,255,.45); }
.footer-brand-tag span { color: rgba(255,255,255,.7); font-weight: 600; }

/* ── KEYFRAMES ────────────────────────────────────────────────── */
@keyframes ringPulse {
  0%,100% { transform: translateY(-50%) scale(1); opacity: .6; }
  50%      { transform: translateY(-50%) scale(1.04); opacity: 1; }
}
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); } 50% { box-shadow: 0 0 0 6px rgba(37,211,102,0); } }
@keyframes waEntrance { from { opacity:0; transform:scale(.5) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
@keyframes waRipple   { 0% { transform:scale(1); opacity:.5; } 100% { transform:scale(1.9); opacity:0; } }

/* ── RESPONSIVE (shared) ──────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float {
    bottom: 16px; right: 16px;
    width: auto; height: 52px; border-radius: 26px;
    padding: 0 1.3rem 0 1rem; gap: 0.6rem;
  }
  .wa-float-text { display: block; }
  .wa-float::before, .wa-float::after { border-radius: 26px; }
}
