/* Brand site starter — design tokens and components.
   Adapt the :root block to the real brand palette and check every pair in the contrast check. */
:root {
  --brand: #FF7A16;
  --brand-dark: #A33D00;
  --brand-darker: #7D2D00;
  --brand-soft: #FFF0E4;
  --teal: #108474;
  --teal-soft: #E8F5F1;
  --ink: #1D211E;
  --ink-soft: #343A35;
  --muted: #59615C;
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --border: #E2DED5;
  --border-strong: #C9C5BA;
  --dark-section: #171B18;
  --star: #D27A00;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(29, 33, 30, .06);
  --shadow: 0 8px 22px rgba(29, 33, 30, .08);
  --shadow-lg: 0 20px 48px rgba(29, 33, 30, .13);
  --container: 1180px;
  --gutter: 20px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.08; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 1.6rem + 3vw, 4.45rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--brand-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.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; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brand-dark); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }
.section-head { max-width: 52em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- Header and scoped mobile navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #151815; font-family: var(--font-display);
  font-weight: 800; font-size: 1.08rem; letter-spacing: -.04em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.13);
}
.brand-logo-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; text-transform: uppercase; }

#site-nav { flex: 1 1 auto; }
/* Top-level list only: a bare `#site-nav ul` out-specifies `.nav-sub`'s display rule and
   leaves the dropdown permanently expanded. */
#site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
#site-nav li { margin: 0; position: relative; }
#site-nav a { display: block; padding: 10px 12px; color: var(--ink-soft); font-weight: 500; font-size: .95rem; border-radius: var(--radius-sm); white-space: nowrap; }
#site-nav a:hover, #site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-darker); text-decoration: none; }
.nav-group-label { display: flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; cursor: pointer; padding: 10px 12px; color: var(--ink-soft); font-weight: 500; border-radius: var(--radius-sm); }
.nav-caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.nav-item--open > .nav-group-label .nav-caret { transform: rotate(-135deg) translateY(-2px); }
.nav-sub { list-style: none; margin: 6px 0 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: none; flex-direction: column; gap: 2px; z-index: 5; }
/* Bridge the visual gap so the pointer can travel from the trigger into the panel. */
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item--open > .nav-sub { display: flex; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .97rem; border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.2; transition: background .16s ease, color .16s ease, transform .16s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand-dark); color: #fff; }
.btn--primary:hover { background: var(--brand-darker); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: ' \2192'; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,122,22,.2), transparent 28%),
    linear-gradient(120deg, #FFF 0%, #FFF9F3 52%, #F5F3EE 100%);
}
.hero::after {
  content: ''; position: absolute; right: -100px; bottom: -180px; width: 520px; height: 520px;
  border: 68px solid rgba(16,132,116,.09); border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; padding: 64px 0 68px; }
.hero-eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-darker); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; }
.hero-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
.hero-stat strong { display: block; font-size: 1.35rem; color: var(--brand-darker); }
.hero-stat span { font-size: .86rem; color: var(--muted); }
.hero-media { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 16px; transform: rotate(.8deg); }
.hero-media .media-frame { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #FFF, #F4F0E7); }
.hero-model-label {
  position: absolute; z-index: 2; left: 30px; top: 28px; padding: 5px 10px; border-radius: 999px;
  color: #fff; background: var(--teal); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
}
.hero-model-caption { position: absolute; left: 28px; right: 28px; bottom: 28px; padding: 14px 16px; border-radius: 14px; background: rgba(23,27,24,.9); color: #fff; display: grid; gap: 3px; }
.hero-model-caption strong { font-family: var(--font-display); font-size: 1.6rem; }
.hero-model-caption span { color: #D8DED9; font-size: .82rem; line-height: 1.45; }
.section-kicker { display: block; width: max-content; margin-bottom: 12px; color: var(--brand-darker); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.media-frame { position: relative; width: 100%; border-radius: var(--radius); background: #fff; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: contain; }
.media-frame--cover img { object-fit: cover; }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card .media-frame { border-radius: 0; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--border); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card-body h3 { margin: 0; font-size: 1.06rem; }
.card-body h3 a { color: var(--ink); }
.card-text { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.card-text.is-expanded { -webkit-line-clamp: unset; display: block; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-darker); }

.price { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.price--lg { font-size: 1.6rem; }
.price-note { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.rating .stars { color: var(--star); letter-spacing: 1px; }

/* Category cards stack title and description above the image — never overlay text on the image. */
.category-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card .cc-head { padding: 22px 22px 4px; min-height: 130px; }
.category-index { display: block; margin-bottom: 18px; color: var(--brand-dark); font-family: var(--font-display); font-size: 1rem; font-weight: 800; letter-spacing: .08em; }
.category-card h3 { margin: 0 0 6px; font-size: 1.18rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.category-card .cc-media { padding: 10px 20px 20px; }
.category-card .media-frame { aspect-ratio: 16 / 10; background: var(--bg); }
.cc-link { margin: auto 20px 20px; color: var(--ink); font-weight: 800; font-size: .92rem; }

.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-card .media-frame { aspect-ratio: 16 / 10; border-radius: 0; border-bottom: 1px solid var(--border); background: linear-gradient(145deg, #FFF, #F4F0E7); }
.guide-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px; }
.guide-card h2, .guide-card h3 { margin: 0; font-size: 1.55rem; }
.guide-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.guide-card .link-arrow { margin-top: auto; color: var(--brand-dark); }

/* ---------- Breadcrumbs: stay in normal flow on every breakpoint ---------- */
.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Product detail ---------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 22px 0 8px; }
.gallery-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.gallery-main .media-frame { aspect-ratio: 1 / 1; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { display: block; width: 100%; height: 76px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--brand-dark); box-shadow: 0 0 0 2px rgba(184, 80, 26, .18); }

.price-area { background: linear-gradient(135deg, var(--brand-soft), #FFF8F0); border: 1px solid #F1D2BA; border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.price-area .price { margin: 0; }
.price-area .availability { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.variant-block { margin-top: 18px; }
.variant-block label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.variant-select { width: 100%; padding: 12px 14px; font: inherit; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--ink); }
.variant-note { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.quick-facts { margin-top: 20px; display: grid; gap: 10px; }
.quick-fact { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.quick-fact::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-dark); }

/* ---------- Features, tables, FAQ ---------- */
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split .media-frame { aspect-ratio: 4 / 3; border: 1px solid var(--border); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
table.spec th, table.spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec th { width: 40%; font-weight: 600; color: var(--ink-soft); background: #FAFBFC; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
.table-caption { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }

.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--brand-dark); line-height: 1; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .faq-answer { padding: 0 18px 18px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Dark CTA band: brighter fill with dark text keeps the label legible ---------- */
.cta-band { background: var(--dark-section); color: #fff; border-radius: var(--radius-lg); padding: 38px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D0D8; max-width: 46em; }
.cta-band .btn--primary { background: var(--brand); color: var(--ink); }
.cta-band .btn--primary:hover { background: #F08A55; color: var(--ink); }

/* ---------- Footer and legal ---------- */
.site-footer { background: var(--dark-section); color: #B9C2CC; margin-top: 64px; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #B9C2CC; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; }
.legal-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; max-width: 820px; }
.legal-body h2 { margin-top: 1.6em; font-size: 1.25rem; }

/* ---------- Editorial guide pages ---------- */
.editorial { padding: 26px 0 12px; }
.editorial-inner { max-width: 880px; }
.editorial-lead { font-size: 1.22rem; line-height: 1.7; color: var(--ink-soft); border-left: 5px solid var(--brand); padding-left: 22px; margin: 0 0 48px; }
.editorial-section { position: relative; padding: 0 0 42px 58px; }
.editorial-section h2 { font-size: clamp(1.65rem, 1.35rem + 1vw, 2.35rem); }
.editorial-section p { font-size: 1.02rem; line-height: 1.78; color: var(--ink-soft); }
.article-section-number { position: absolute; left: 0; top: 2px; color: var(--brand-dark); font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.comparison-table { min-width: 640px; }
.comparison-table th:first-child { width: 28%; }
.article-verdict { margin: 20px 0 52px; padding: 30px; border-radius: 18px; background: var(--teal-soft); border: 1px solid #C8E4DC; }
.article-verdict h2 { font-size: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-hero { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  #site-nav {
    position: fixed; inset: 72px 0 0 0; background: #fff; padding: 18px var(--gutter) 40px;
    display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--border);
  }
  body.nav-open #site-nav { display: block; }
  #site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  #site-nav a, .nav-group-label { padding: 14px 10px; font-size: 1.02rem; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-sub { position: static; display: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 0 0 8px; margin: 0; background: #FAFBFC; }
  .nav-item--open > .nav-sub { display: flex; }
  .nav-sub a { padding-left: 22px; font-size: .96rem; }
  .header-actions .btn--primary { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0 42px; }
  .hero-media { order: -1; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 40px 0; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .thumb { height: 62px; padding: 4px; }
  .cta-row .btn { width: 100%; }
  .editorial-section { padding-left: 36px; }
}
