/* UK Ear Care — global styles for the static build */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', sans-serif; background: #fbfdfe; color: #14283a; -webkit-font-smoothing: antialiased; }
a { color: #2872fa; text-decoration: none; }
a:hover { color: #1559ed; }
img { max-width: 100%; }

/* ── Top utility bar ── */
.topbar { background: #192a3d; color: #cfe3ec; font-size: 14.5px; padding: 9px 24px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; font-weight: 500; }
.topbar .strong, .topbar a { color: #fff; font-weight: 700; }
.topbar .sep { opacity: .5; }

/* ── Nav ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,253,254,.94); backdrop-filter: blur(12px); border-bottom: 1px solid #e3eaf6; }
.site-nav { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.site-nav .logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; font-weight: 600; font-size: 16px; }
.nav-links > a { color: #41536b; }
.nav-links > a:hover { color: #2872fa; }
.nav-dd { position: relative; }
.nav-dd > span { color: #41536b; cursor: pointer; display: inline-block; padding: 8px 0; }
.nav-menu { display: none; position: absolute; top: 100%; left: -16px; padding-top: 12px; z-index: 60; }
.nav-dd:hover .nav-menu, .nav-dd:focus-within .nav-menu { display: block; }
.nav-menu > div { background: #fff; border: 1px solid #e3eaf6; border-radius: 16px; box-shadow: 0 14px 36px rgba(25,42,61,.14); padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 250px; }
.nav-menu a { color: #192a3d; padding: 10px 14px; border-radius: 10px; font-size: 15.5px; }
.nav-menu a:hover { background: #f3f7fd; color: #1559ed; }
.nav-cta { background: #2872fa; color: #fff !important; padding: 11px 22px; border-radius: 999px; font-weight: 700; box-shadow: 0 2px 8px rgba(40,114,250,.3); }
.nav-cta:hover { background: #1559ed; }
.tag-new { background: #e8effe; color: #1559ed; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ── FAQ accordion (details/summary) ── */
details.faq { background: #fff; border: 1px solid #e3eaf6; border-radius: 16px; overflow: hidden; }
details.faq.shadow { border: none; box-shadow: 0 2px 8px rgba(25,42,61,.05); }
details.faq summary { list-style: none; width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .q { font-weight: 700; font-size: 17px; color: #192a3d; }
details.faq summary .mark { color: #2872fa; font-size: 20px; flex-shrink: 0; }
details.faq summary .mark::before { content: '+'; }
details.faq[open] summary .mark::before { content: '−'; }
details.faq .a { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; color: #41536b; }

/* ── Footer ── */
.site-footer { background: #192a3d; padding: 48px 24px 32px; }
.site-footer .cols { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer .logo-box { margin-bottom: 14px; background: #fff; border-radius: 12px; padding: 10px 16px; display: inline-block; }
.site-footer .logo-box img { height: 36px; width: auto; display: block; }
.site-footer .blurb { font-size: 14.5px; color: #a9bde0; line-height: 1.7; max-width: 34ch; }
.site-footer .groups { display: flex; gap: 56px; flex-wrap: wrap; font-size: 15px; }
.site-footer .group { display: flex; flex-direction: column; gap: 9px; }
.site-footer .group .head { color: #fff; font-weight: 700; margin-bottom: 4px; }
.site-footer .group a { color: #a9bde0; }
.site-footer .group a:hover { color: #fff; }
.site-footer .group .note { color: #c9d8f8; font-weight: 600; }
.site-footer .legal { max-width: 1320px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #64748c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer .legal a { color: #64748c; }
.site-footer .legal a:hover { color: #a9bde0; }

/* ── Hover effects ── */
.btn-primary:hover { background: #1559ed !important; color: #fff !important; }
.btn-outline:hover { border-color: #2872fa !important; color: #2872fa !important; }
.btn-ghost:hover { border-color: #fff !important; color: #fff !important; }
.btn-white:hover { background: #e8effe !important; color: #192a3d !important; }
.btn-dim:hover { opacity: .88; }
.lift { transition: transform .2s, box-shadow .2s; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(25,42,61,.1); }
.trust-cell { transition: background .2s; }
.trust-cell:hover { background: #1f3450 !important; }

/* ── Map embed ── */
.map-embed { border: 0; width: 100%; height: 380px; border-radius: 20px; display: block; }

/* ── Article (blog) ── */
.article-body { max-width: 780px; margin: 0 auto; padding: 0 24px 72px; font-size: 17.5px; line-height: 1.75; color: #41536b; }
.article-body h2 { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; color: #192a3d; margin: 40px 0 14px; letter-spacing: -.01em; }
.article-body h3 { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 700; color: #192a3d; margin: 32px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body li { margin: 0 0 8px; }
.article-body strong { color: #192a3d; }
.article-body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 16px; }
.article-body th, .article-body td { border: 1px solid #e3eaf6; padding: 10px 14px; text-align: left; }
.article-body th { background: #f3f7fd; color: #192a3d; }
.article-body blockquote { border-left: 4px solid #2872fa; margin: 18px 0; padding: 6px 20px; background: #f3f7fd; border-radius: 0 12px 12px 0; }

/* ── Accessibility: larger type for older visitors ──
   The design's inline styles use px sizes; this layer bumps each small size
   up ~1px site-wide while preserving the hierarchy. Headings are untouched. */
[style*="font-size:12.5px"] { font-size: 13.5px !important; }
[style*="font-size:13px"] { font-size: 14px !important; }
[style*="font-size:13.5px"] { font-size: 14.5px !important; }
[style*="font-size:14px"] { font-size: 15px !important; }
[style*="font-size:14.5px"] { font-size: 15.5px !important; }
[style*="font-size:15px"] { font-size: 16px !important; }
[style*="font-size:15.5px"] { font-size: 16.5px !important; }
[style*="font-size:16px"] { font-size: 17px !important; }
[style*="font-size:16.5px"] { font-size: 17.5px !important; }
[style*="font-size:17px"] { font-size: 18px !important; }

/* ── Responsive ── */
@media (max-width: 980px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="position:sticky"][style*="top:96px"] { position: static !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .cards-grid-2 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 27px !important; }
  [style*="padding:56px"] { padding: 32px 24px !important; }
  [style*="padding:48px"] { padding: 28px 20px !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 900px) {
  .nav-burger { display: block; margin-left: auto; cursor: pointer; font-size: 26px; color: #192a3d; user-select: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e3eaf6; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px; margin-left: 0; box-shadow: 0 18px 30px rgba(25,42,61,.12); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links > a, .nav-dd > span { padding: 10px 0; display: block; }
  .nav-menu { display: block; position: static; padding-top: 0; }
  .nav-menu > div { border: none; box-shadow: none; padding: 0 0 4px 14px; min-width: 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .topbar { gap: 10px; font-size: 15.5px; }
  .topbar .sep { display: none; }
}
