/* =====================================================================
   ReviewVexa — global stylesheet
   Editorial, mobile-first, no framework, no external fonts.
   Sections:
     1. Design tokens
     2. Reset & base
     3. Layout helpers
     4. Header / navigation
     5. Hero
     6. Buttons & tags
     7. Cards & grids
     8. Sections & headings
     9. Article / review body
    10. Breadcrumbs
    11. Filters & pagination
    12. FAQ
    13. Newsletter / disclosure strip
    14. Footer
    15. Utilities & accessibility
    16. Responsive tweaks
   ===================================================================== */

/* 1. Design tokens ---------------------------------------------------- */
:root {
  --brand-ink:      #14324b;   /* deep navy — wordmark, footer */
  --brand-ink-2:    #0e2537;
  --accent:         #1b6f8b;   /* teal-blue — links, buttons */
  --accent-dark:    #12586f;
  --accent-soft:    #e7f1f4;   /* tag backgrounds, subtle fills */

  --text:           #1d2733;   /* body copy */
  --text-muted:     #5b6472;   /* meta, captions */
  --text-faint:     #8a929e;

  --bg:             #ffffff;
  --bg-alt:         #f6f8fa;   /* alternating sections */
  --bg-sunken:      #eef1f5;
  --line:           #e2e6eb;   /* hairlines, card borders */
  --line-strong:    #cfd6de;

  --focus:          #1b6f8b;

  --maxw:           1120px;
  --maxw-prose:     720px;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow-card:    0 1px 2px rgba(20, 50, 75, .06), 0 6px 20px rgba(20, 50, 75, .06);
  --shadow-card-h:  0 2px 6px rgba(20, 50, 75, .10), 0 14px 34px rgba(20, 50, 75, .12);

  --font-serif:     Georgia, "Times New Roman", "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-h1:        clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem);
  --step-h2:        clamp(1.45rem, 1.15rem + 1.2vw, 1.9rem);
  --step-h3:        clamp(1.15rem, 1.05rem + .5vw, 1.35rem);
}

/* 2. Reset & base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;         /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--brand-ink);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

/* 3. Layout helpers ----------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.prose { max-width: var(--maxw-prose); }
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 1.75rem; }
.section__head p { color: var(--text-muted); max-width: 62ch; margin: .35rem 0 0; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 .5rem;
}

/* 4. Header / navigation ---------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand-ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-serif); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-size: 1.2rem; font-weight: 700; color: var(--brand-ink); letter-spacing: -.02em; }
.brand__name b { color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: inline-block; padding: .55rem .7rem; border-radius: var(--radius-sm);
  color: var(--text); font-size: .95rem; font-weight: 600;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.nav__search {
  margin-left: .35rem; display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem .6rem .35rem .8rem;
  color: var(--text-muted); font-size: .9rem; background: #fff;
}
.nav__search:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.nav__search svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--brand-ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1rem, 3vw, 2rem) 1rem;
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--accent-soft); border-radius: var(--radius-sm); }
  .nav__search { margin: .6rem 0 0; justify-content: center; }
}

/* 5. Hero --------------------------------------------------------- */
.hero { padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__inner { max-width: 780px; }
.hero h1 { margin-bottom: .5rem; }
.hero__lead { font-size: 1.16rem; color: var(--text-muted); margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero__meta { margin-top: 1.5rem; color: var(--text-faint); font-size: .9rem; }

/* 6. Buttons & tags -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; font-family: var(--font-sans);
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: #fff; color: var(--accent-dark); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.btn--sm { padding: .5rem .8rem; font-size: .88rem; }

.tag {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  font-family: var(--font-sans); text-transform: uppercase;
}
a.tag:hover { background: #d9e9ee; text-decoration: none; }

.badge-demo {
  display: inline-block; padding: .2rem .5rem; border-radius: 4px;
  background: #fff4d6; color: #7a5b00; border: 1px solid #f0dca5;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--font-sans);
}

/* 7. Cards & grids ------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--cats  { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-card-h); transform: translateY(-2px); border-color: var(--line-strong); }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__title { font-size: 1.18rem; margin: 0; }
.card__title a { color: var(--brand-ink); }
.card__title a:hover { color: var(--accent-dark); }
.card__excerpt { color: var(--text-muted); font-size: .96rem; margin: 0; flex: 1; }
.card__meta { color: var(--text-faint); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .2rem; }
.card__cta { color: var(--accent-dark); font-weight: 700; font-size: .92rem; margin-top: .25rem; }
.card__cta::after { content: " \2192"; }
.card__toprow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

.card-cat {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow-card);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card-cat:hover { box-shadow: var(--shadow-card-h); transform: translateY(-2px); text-decoration: none; }
.card-cat h3 { margin: 0 0 .3rem; font-size: 1.12rem; color: var(--brand-ink); }
.card-cat p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.card-cat__count { display: block; margin-top: .6rem; color: var(--accent-dark); font-weight: 700; font-size: .82rem; }

/* 8. Sections & headings ------------------------------------- */
.list-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--text-muted); background: var(--bg-alt);
}

/* 9. Article / review body --------------------------------- */
.article-head { padding: clamp(1.75rem, 4vw, 2.75rem) 0 1rem; }
.article-head h1 { margin: .35rem 0 .5rem; }
.article-meta { color: var(--text-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; }
.article-meta .dot { color: var(--line-strong); }

.article-figure { margin: 0 0 1.75rem; }
.article-figure figcaption { color: var(--text-faint); font-size: .82rem; margin-top: .5rem; }

.article-body { font-size: 1.075rem; }
.article-body h2 { margin-top: 2.25rem; padding-top: .25rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body > p:first-of-type { font-size: 1.14rem; color: var(--text); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.5rem 0; }
.article-body ul li::marker { color: var(--accent); }

.callout {
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 1.75rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--note { border-left-color: var(--accent); }

.overview-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: .98rem; }
.overview-table th, .overview-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.overview-table th { width: 34%; color: var(--brand-ink); font-family: var(--font-sans); font-weight: 700; background: var(--bg-alt); }

.proscons { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.5rem 0 2rem; }
.proscons__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; background: #fff; }
.proscons__col h3 { margin-top: 0; font-size: 1.05rem; }
.proscons__col--pros { border-top: 3px solid #2e8b6f; }
.proscons__col--cons { border-top: 3px solid #b0642e; }
.proscons ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 620px) { .proscons { grid-template-columns: 1fr; } }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--bg-alt); margin: 1.5rem 0 2rem; }
.toc p { font-family: var(--font-sans); font-weight: 700; color: var(--brand-ink); margin: 0 0 .5rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 2rem; font-size: .95rem; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* 10. Breadcrumbs ------------------------------------------- */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li::after { content: "/"; margin-left: .35rem; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current="page"] { color: var(--text-faint); }

/* 11. Filters & pagination -------------------------------- */
.controls {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end;
  padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt); margin-bottom: 1.75rem;
}
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-family: var(--font-sans); }
.field select, .field input {
  font: inherit; font-size: .95rem; padding: .5rem .65rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); min-width: 190px;
}
.field input { min-width: 220px; }
.controls__result { margin-left: auto; color: var(--text-muted); font-size: .88rem; align-self: center; }

.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.pager button {
  font: inherit; font-weight: 700; font-size: .9rem; padding: .5rem .8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); cursor: pointer;
}
.pager button[aria-current="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* 12. FAQ ------------------------------------------------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.15rem;
  margin-bottom: .7rem; background: #fff;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-family: var(--font-serif); font-weight: 700; color: var(--brand-ink); font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-family: var(--font-sans); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 1rem 0 1.15rem; color: var(--text-muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* 13. Newsletter / disclosure strip --------------------- */
.newsletter {
  background: var(--brand-ink); color: #eaf1f5; border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: #c4d3dc; max-width: 52ch; margin: 0 auto 1.4rem; }
.newsletter form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.newsletter input[type="email"] {
  font: inherit; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid #38617a;
  background: #0f293b; color: #fff; min-width: min(320px, 80vw);
}
.newsletter input::placeholder { color: #7f97a6; }
.newsletter small { display: block; margin-top: .9rem; color: #93a8b5; }

.disclosure-strip {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; font-size: .88rem; color: var(--text-muted);
}
.disclosure-strip strong { color: var(--brand-ink); }

/* 14. Footer ------------------------------------------- */
.site-footer { background: var(--brand-ink-2); color: #b9c6d0; margin-top: 3rem; }
.site-footer a { color: #cdd8e0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 2rem;
}
.site-footer__brand .brand__name { color: #fff; }
.site-footer__brand p { color: #93a5b1; font-size: .9rem; max-width: 34ch; margin-top: .7rem; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .92rem; }
.site-footer__bar {
  border-top: 1px solid #23425a; padding: 1.1rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
  font-size: .82rem; color: #8ea1ad;
}
.site-footer__bar nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
@media (max-width: 780px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* 15. Utilities & accessibility ----------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.divider-top { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }

/* 16. Responsive tweaks ------------------------------ */
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .controls__result { margin-left: 0; width: 100%; }
  .field select, .field input { min-width: 0; width: 100%; }
  .field { width: 100%; }
}
