/* ============================================================
   Hearing Comforts — Core Styles
   Signature element: the "listening waveform" — animated audio
   bars used across hero, dividers, buttons & loaders to tie the
   whole site back to the one thing this brand is about: sound.
   ============================================================ */

:root{
  --ink:#0E1526;
  --ink-soft:#57626F;
  --purple:#0B1B3D;      /* brand navy, from logo */
  --purple-deep:#060F26; /* deep navy, from logo arc */
  --blue:#17A6C4;        /* brand teal, from logo mark */
  --lavender:#E8F6F8;    /* light teal tint */
  --mist:#F5F8F9;
  --gold:#E8A33D;
}

html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif; color:var(--ink); background:#fff;}
h1,h2,h3,h4,.font-display{font-family:'Manrope',sans-serif;}

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

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

/* ---------- Glass navbar ---------- */
.nav-glass{
  background:rgba(255,255,255,0.78);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid rgba(76,58,140,0.08);
}

/* ---------- Gradient utilities ---------- */
.bg-brand-gradient{ background:linear-gradient(120deg, var(--purple) 0%, var(--blue) 100%); }
.text-brand-gradient{
  background:linear-gradient(120deg, var(--purple), var(--blue));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.bg-mesh{
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(47,111,237,0.16) 0%, rgba(47,111,237,0) 60%),
    radial-gradient(50% 50% at 5% 30%, rgba(76,58,140,0.18) 0%, rgba(76,58,140,0) 60%),
    linear-gradient(180deg, #FBFAFF 0%, #FFFFFF 100%);
}

/* ---------- Cards ---------- */
.card{
  background:#fff;
  border:1px solid rgba(76,58,140,0.08);
  border-radius:1.5rem;
  box-shadow:0 2px 6px rgba(30,34,51,0.04);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 48px -12px rgba(76,58,140,0.22);
  border-color:rgba(76,58,140,0.18);
}
.glass-card{
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border:1px solid rgba(255,255,255,0.5);
  box-shadow:0 8px 32px rgba(76,58,140,0.12);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-weight:700; border-radius:9999px; padding:.9rem 1.9rem;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(120deg, var(--purple), var(--blue));
  color:#fff; box-shadow:0 12px 28px -8px rgba(76,58,140,0.55);
}
.btn-primary:hover{ transform:translateY(-2px) scale(1.02); box-shadow:0 18px 34px -8px rgba(76,58,140,0.65); }
.btn-outline{
  background:#fff; color:var(--purple); border:2px solid var(--purple);
}
.btn-outline:hover{ background:var(--lavender); transform:translateY(-2px); }
.btn-white{ background:#fff; color:var(--purple); box-shadow:0 12px 28px -8px rgba(0,0,0,0.25); }
.btn-white:hover{ transform:translateY(-2px); }
.btn-wa{ background:#25D366; color:#fff; box-shadow:0 12px 24px -8px rgba(37,211,102,0.55);}
.btn-wa:hover{ transform:translateY(-2px); }

/* ---------- Signature: Waveform ---------- */
.waveform{ display:flex; align-items:flex-end; gap:4px; height:34px; }
.waveform span{
  width:4px; border-radius:4px;
  background:linear-gradient(180deg, var(--blue), var(--purple));
  animation:wave 1.15s ease-in-out infinite;
}
.waveform.light span{ background:linear-gradient(180deg,#fff,#cfd8ff); }
.waveform span:nth-child(1){height:40%; animation-delay:-1.1s;}
.waveform span:nth-child(2){height:70%; animation-delay:-0.9s;}
.waveform span:nth-child(3){height:100%; animation-delay:-0.7s;}
.waveform span:nth-child(4){height:55%; animation-delay:-0.5s;}
.waveform span:nth-child(5){height:85%; animation-delay:-0.3s;}
.waveform span:nth-child(6){height:35%; animation-delay:-0.15s;}
.waveform span:nth-child(7){height:65%; animation-delay:0s;}
@keyframes wave{
  0%,100%{ transform:scaleY(0.35); opacity:.7;}
  50%{ transform:scaleY(1); opacity:1;}
}

.divider-wave{ height:56px; width:100%; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Marquee (brand logo strip) ---------- */
.marquee-track{ display:flex; width:max-content; animation:marquee 28s linear infinite; }
.marquee-track:hover{ animation-play-state:paused; }
@keyframes marquee{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ---------- Sticky action buttons (mobile) ---------- */
.sticky-actions{ position:fixed; right:1.1rem; bottom:1.1rem; z-index:50; display:flex; flex-direction:column; gap:.75rem; }
.sticky-actions a{
  width:56px; height:56px; border-radius:9999px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px -6px rgba(0,0,0,0.35); color:#fff; position:relative;
}
.sticky-actions .pulse-ring{
  position:absolute; inset:0; border-radius:9999px; border:2px solid currentColor; opacity:.6;
  animation:ring 2s ease-out infinite;
}
@keyframes ring{ 0%{transform:scale(1); opacity:.6;} 100%{transform:scale(1.6); opacity:0;} }

/* ---------- Sticky mobile bottom bar ---------- */
.mobile-bar{ position:fixed; left:0; right:0; bottom:0; z-index:40; }

/* ---------- FAQ ---------- */
.faq-item[open] .faq-icon{ transform:rotate(45deg); }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary{ cursor:pointer; list-style:none; }

/* ---------- Utility ---------- */
.section-pad{ padding-top:5rem; padding-bottom:5rem; }
.eyebrow{ letter-spacing:.14em; }
.chip{ border-radius:9999px; padding:.35rem .9rem; font-size:.75rem; font-weight:700; }

/* Skip link */
.skip-link{ position:absolute; left:-999px; top:0; background:var(--purple); color:#fff; padding:.75rem 1.25rem; z-index:100; border-radius:0 0 .75rem 0;}
.skip-link:focus{ left:0; }

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