
/* WebRebuilder Core Baseline Utilities */
img, svg, video { max-width: 100%; height: auto; }
header img, nav img, .brand-logo, [data-wb-role="logo"] img { max-height: 44px; width: auto; object-fit: contain; }
footer img, footer [data-wb-role="logo"] img { max-height: 44px; width: auto; object-fit: contain; }
.bg-primary { background-color: var(--color-primary, hsl(var(--primary))); }
.text-primary { color: var(--color-primary, hsl(var(--primary))); }
.bg-primary-foreground { background-color: var(--color-primary-foreground, hsl(var(--primary-foreground))); }
.text-primary-foreground { color: var(--color-primary-foreground, hsl(var(--primary-foreground))); }
.bg-secondary { background-color: var(--color-secondary, hsl(var(--secondary))); }
.text-secondary { color: var(--color-secondary, hsl(var(--secondary))); }
.bg-secondary-foreground { background-color: var(--color-secondary-foreground, hsl(var(--secondary-foreground, 210 40% 98%))); }
.text-secondary-foreground { color: var(--color-foreground, hsl(var(--secondary-foreground, 222 47% 11%))); }
.bg-accent { background-color: var(--color-accent, hsl(var(--accent))); }
.text-accent { color: var(--color-accent, hsl(var(--accent))); }
.bg-card { background-color: var(--color-card, hsl(var(--card))); }
.text-card-foreground { color: var(--color-card-foreground, hsl(var(--card-foreground))); }
.bg-muted { background-color: var(--color-muted, hsl(var(--muted))); }
.text-muted-foreground { color: var(--color-muted-foreground, hsl(var(--muted-foreground))); }
.border-border { border-color: var(--color-border, hsl(var(--border))); }
.border-primary { border-color: var(--color-primary, hsl(var(--primary))); }
.btn-primary { background-color: var(--color-primary, hsl(var(--primary))); color: var(--color-primary-foreground, hsl(var(--primary-foreground, 0 0% 100%))); }
.btn-secondary { background-color: var(--color-card, #ffffff); color: var(--color-foreground, #0f172a); border: 1px solid var(--color-border, #e2e8f0); }
.btn-secondary:hover { background-color: var(--color-muted, #f1f5f9); }
.btn-outline { border: 2px solid currentColor; background-color: transparent; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; }
section[class*="from-primary"], [class*="from-primary"] {
  background-color: var(--color-primary, hsl(var(--primary)));
  color: #ffffff;
}
footer { background-color: #111827; color: #f8fafc; }

/* --- styles.css --- */
/* ===== Tinnitaid — styles ===== */
:root {
  --navy: #0b2545;
  --blue: #1565d8;
  --blue-600: #0f52b5;
  --sky: #e8f1fd;
  --teal: #3cc8c0;
  --ink: #13213a;
  --muted: #5b6b82;
  --line: #dde6f2;
  --white: #fff;
  --container: min(1140px, 92%);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(11, 37, 69, .25);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--navy); }
h3 { font-size: 1.15rem; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: var(--container); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .75rem;
  font-weight: 600; color: var(--blue); margin-bottom: .75rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(21, 101, 216, .6); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost-dark { border-color: var(--line); color: var(--navy); }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy) !important; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 1.1rem 0;
}
.site-header.scrolled {
  background: rgba(11, 37, 69, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  padding: .6rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { height: 36px; width: auto; }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.footer-brand .logo-text { font-size: 1.25rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.site-nav a:hover { opacity: 1; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% 10%, #1f6fe0 0%, transparent 60%),
              linear-gradient(160deg, #0b2545 0%, #0f3a73 60%, #134b94 100%);
  padding: 9rem 0 7rem;
  min-height: min(100vh, 900px); display: flex; align-items: center;
}
.hero-grid { width: var(--container); position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: var(--teal); }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 7vw, 5rem); letter-spacing: -.02em; margin-bottom: .2em;
}
.lead { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; color: #cfe2ff; }
.hero-body { color: #d9e6f7; max-width: 34rem; font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.4rem; }
.disclaimer { font-size: .82rem; color: #a9bfdc; max-width: 32rem; }

.hero-visual { position: relative; }
.hero-img {
  border-radius: 28px; width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: top;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  background: #134b94;
}
.waves { position: absolute; inset: auto 0 0 0; height: 160px; z-index: 1; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { fill: rgba(255, 255, 255, .05); }
.waves .w2 { fill: rgba(255, 255, 255, .08); }
.waves svg:first-child { animation: drift 18s linear infinite; }
.waves svg:last-child { animation: drift 12s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section-tint { background: linear-gradient(180deg, #f5f9ff 0%, var(--sky) 100%); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.step { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 2px 0 var(--line); position: relative; }
.step-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .4rem;
}
.step p { color: var(--muted); margin: 0; }
.safety {
  margin: 2rem 0 0; padding: 1rem 1.25rem; border-radius: 12px;
  background: #fff7e6; border: 1px solid #f5d590; color: #6b4a00; font-size: .95rem; text-align: center;
}

/* Awards */
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.award {
  display: flex; gap: 1.4rem; align-items: center; padding: 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.award img { width: 110px; height: 80px; object-fit: contain; flex-shrink: 0; }
.award p { color: var(--muted); margin: 0; font-size: .95rem; }
.partner-cta {
  margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 2rem 2.2rem; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, var(--navy), #134b94);
}
.partner-cta h3 { color: #fff; font-size: 1.3rem; }
.partner-cta p { margin: 0; color: #cfe2ff; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.2rem 1.15rem 1.4rem; font-weight: 600;
  color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.article {
  display: block; text-decoration: none; color: inherit; padding: 1.8rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.article p { color: var(--muted); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue); background: var(--sky); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .9rem;
}
.read { font-weight: 600; color: var(--blue); font-size: .92rem; }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 5fr 6fr; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.contact-copy { position: relative; min-height: 520px; color: #fff; background: var(--navy); }
.contact-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.contact-overlay {
  position: absolute; inset: auto 0 0 0; padding: 4rem 2rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 37, 69, .85) 55%, rgba(11, 37, 69, .96) 100%);
}
.contact-overlay .eyebrow { color: var(--teal); }
.contact-overlay h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-overlay p:last-child { color: #d9e6f7; margin: 0; max-width: 28rem; }
.contact-form { padding: 2.5rem; align-self: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 10px; border: 1.5px solid var(--line);
  font: inherit; color: var(--ink); background: #fbfdff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 216, .12);
}
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.error { display: block; color: #c23030; font-size: .8rem; min-height: 1em; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--blue); }
.consent-error { margin-bottom: 1rem; }
.form-status { margin: 1rem 0 0; font-weight: 500; text-align: center; }
.form-status.ok { color: #13804a; }

/* Footer */
.site-footer { background: var(--navy); color: #a9bfdc; padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner img { height: 31px; width: auto; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a, .footer-meta a { color: #dbe7f7; text-decoration: none; }
.footer-nav a:hover, .footer-meta a:hover { color: #fff; text-decoration: underline; }
.footer-meta { margin: 0; font-size: .88rem; width: 100%; text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; }

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

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .contact-card { grid-template-columns: 1fr; }
  .contact-copy { min-height: 420px; }
  .hero { padding-top: 7.5rem; }
  .hero-visual { max-width: 520px; margin: 0 auto 2rem; }
  .cards, .steps { grid-template-columns: 1fr; }
  .awards, .articles { grid-template-columns: 1fr; }
  .partner-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 64px 4% auto 4%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-radius: 16px; padding: .75rem; box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s ease;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: .85rem 1rem; border-radius: 10px; }
  .site-nav a:hover { background: rgba(255, 255, 255, .08); }
  .site-nav .btn { margin-top: .5rem; }
  .award { flex-direction: column; text-align: center; }
  .section { padding: 4.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Sub pages ===== */
.page-main { padding: 7rem 0 4rem; min-height: 70vh; }
.prose { width: var(--container); margin-inline: auto; }
.prose h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); font-size: .9rem; }
.prose .back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; font-weight: 500; }
.page-main .articles { margin-top: 2rem; }
.prose .tag { margin-bottom: .75rem; }
.prose .btn { color: #fff; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 1.5rem; } }

.field input::placeholder, .field textarea::placeholder { color: #8a99ae; opacity: 1; }