/* KitchenGearLab — Warm Premium Kitchen (Light-only)
   File: /assets/css/styles.css
   Goal: unique, luxe, comfortable, fast, trust-first.
*/

/* -----------------------------
   1) Design tokens (CSS vars)
------------------------------ */
:root{
  /* Force light UI only */
  color-scheme: light;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
               "Apple Color Emoji", "Segoe UI Emoji";
  --fs-base: 17px;
  --lh-base: 1.72;

  /* Layout */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 12px;

  /* Warm premium kitchen palette */
  --bg: #fbfbfa;              /* warm white */
  --surface: #f4f5f2;         /* soft ivory */
  --surface-2: #ffffff;       /* true white for cards */
  --border: #e6e7e2;          /* warm border */

  --text: #111827;            /* deep charcoal */
  --muted: #475569;           /* slate */
  --muted-2: #64748b;

  --accent: #1f7a5c;          /* calm lab green */
  --accent-2: #0f5f46;
  --accent-soft: #e9f6f0;

  --attention: #b45309;
  --attention-soft: #fff7ed;

  /* Micro “champagne” highlight (barely) */
  --champagne: rgba(176, 141, 87, 0.22);

  --link: var(--accent);
  --link-hover: var(--accent-2);

  /* Effects */
  --shadow-sm: 0 1px 0 rgba(17, 24, 39, 0.06);
  --shadow-md: 0 14px 34px rgba(17, 24, 39, 0.10);
  --ring: 0 0 0 3px rgba(31, 122, 92, 0.22);

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
}

/* ✅ Light-only: keep same palette even when OS prefers dark */
@media (prefers-color-scheme: dark){
  :root{ color-scheme: light; }
}

/* -----------------------------
   2) Base / reset
------------------------------ */
*,
*::before,
*::after{ box-sizing: border-box; }

html{
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  font-family: var(--font-sans);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
}

/* Subtle editorial tint (very light) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 18% -5%, rgba(31, 122, 92, 0.06), transparent 60%),
    radial-gradient(900px 520px at 92% 6%, rgba(176, 141, 87, 0.05), transparent 58%);
  opacity: 0.9;
  z-index: -1;
}

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

a{
  color: var(--link);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover{
  color: var(--link-hover);
  text-decoration: underline;
}

p{ margin: 0 0 var(--s-5); }
ul, ol{ margin: 0 0 var(--s-5); padding-left: 1.2rem; }
li{ margin: 0 0 var(--s-2); }

h1, h2, h3, h4{
  margin: 0 0 var(--s-4);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1{
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.7rem);
}

h2{
  font-size: clamp(1.25rem, 1.25vw + 1rem, 1.75rem);
  margin-top: var(--s-8);
}

h3{
  font-size: 1.12rem;
  margin-top: var(--s-6);
}

small, .small{ font-size: 0.92rem; color: var(--muted); }

hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-7) 0;
}

code, pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

pre{
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-5);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 var(--s-6);
}

::selection{ background: var(--accent-soft); }

/* -----------------------------
   3) Accessibility (skip link, focus)
------------------------------ */
/* Your HTML uses .skip-link, keep .skip as alias */
.skip,
.skip-link{
  position: absolute;
  left: -999px;
  top: var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  color: var(--text);
  box-shadow: var(--shadow-md);
  z-index: 9999;
}

.skip:focus,
.skip-link:focus{
  left: var(--s-4);
  outline: none;
  box-shadow: var(--ring);
}

/* Visible focus for keyboard users */
:focus{ outline: none; }
:focus-visible{
  box-shadow: var(--ring);
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

/* -----------------------------
   4) Layout utilities
------------------------------ */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section{
  padding: var(--s-9) 0;
}

/* Generic grid helper */
.grid{
  display: grid;
  gap: var(--s-5);
}
.grid.cols-2{ grid-template-columns: 1fr; }
.grid.cols-3{ grid-template-columns: 1fr; }

@media (min-width: 720px){
  .grid.cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stack > * + *{ margin-top: var(--s-4); }
.center{ text-align: center; }
.muted{ color: var(--muted); }
.nowrap{ white-space: nowrap; }

/* Visually hidden utility (and alias sr-only) */
.visually-hidden,
.sr-only{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Section head support (your HTML uses this) */
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.section-subtitle{
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}

/* Prose comfort */
.prose{
  max-width: 68ch;
}
.prose p{ margin-bottom: var(--s-5); }
.prose ul, .prose ol{ margin-bottom: var(--s-5); }
.prose li{ margin-bottom: var(--s-2); }
.prose a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.prose a:hover{ color: var(--link-hover); }

/* -----------------------------
   5) Header / Nav (sticky, premium)
------------------------------ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 251, 250, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(230, 231, 226, 0.9);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-4) 0;
}

/* Brand (your HTML has .brand-text, .brand-name, .brand-tagline) */
.brand{
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  color: inherit;
}

.brand img{
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-sm);
}

.brand-text{ display: block; min-width: 0; }
.brand-name{
  display: block;
  font-weight: 780;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.brand-tagline{
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.2;
  margin-top: 2px;
}

/* Support both nav systems: .nav (old) + .site-nav/.nav-list (your HTML) */
.nav,
.site-nav{ display: block; }

.nav-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
  align-items: center;
}

.nav a,
.nav-list a{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
  text-decoration: none;
}

.nav a:hover,
.nav-list a:hover{
  background: rgba(244, 245, 242, 0.9);
  border-color: var(--border);
  transform: translateY(-1px);
}

.nav a[aria-current="page"],
.nav-list a[aria-current="page"]{
  background: var(--accent-soft);
  border-color: rgba(31, 122, 92, 0.20);
}

/* -----------------------------
   6) Breadcrumbs
------------------------------ */
.breadcrumbs{
  font-size: 0.92rem;
  color: var(--muted);
  padding: var(--s-4) 0 0;
}

.breadcrumbs-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--s-2);
  align-items: center;
}

.breadcrumbs a{
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.breadcrumbs a:hover{ color: var(--text); }

/* -----------------------------
   7) Hero (your HTML uses .hero-grid / .hero-copy / .hero-media)
------------------------------ */
.hero{
  padding: var(--s-10) 0 var(--s-8);
}

.hero-grid{
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 900px){
  .hero-grid{
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

/* Editorial “copy panel” feel */
.hero-copy{
  padding: var(--s-7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(900px 320px at 14% 0%, rgba(31, 122, 92, 0.10), transparent 60%),
    radial-gradient(700px 260px at 95% 10%, rgba(176, 141, 87, 0.08), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-md);
}

.lede,
.lead{
  font-size: 1.07rem;
  color: var(--muted);
  margin-bottom: var(--s-6);
}

/* Actions (your HTML uses .hero-actions) */
.actions,
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* Micro note under CTAs */
.micro-note{
  margin-top: var(--s-5);
  font-size: 0.92rem;
  color: var(--muted);
}
.micro-note a{ text-decoration: underline; }

/* Hero media */
.hero-media picture,
.hero-media img{
  border-radius: var(--radius);
}
.hero-media img{
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* -----------------------------
   8) Cards / Listings
------------------------------ */
.cards{
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1020px){
  .cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-title{
  font-size: 1.06rem;
  font-weight: 780;
  margin: 0 0 var(--s-3);
}

.card-text{
  color: var(--muted);
  margin-bottom: var(--s-4);
}

.card-meta{ margin: 0; }

.card-link{
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Top pick (optional) */
.card.top-pick{
  border-color: rgba(31, 122, 92, 0.28);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(720px 240px at 12% 0%, rgba(31, 122, 92, 0.12), transparent 60%),
    linear-gradient(180deg, var(--accent-soft), var(--surface-2) 58%);
  position: relative;
}
.card.top-pick::after{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--champagne);
  pointer-events: none;
}

/* -----------------------------
   9) Buttons
------------------------------ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: var(--text);
  color: var(--bg);
  font-weight: 720;
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.10);
}

.btn:active{ transform: translateY(0); }

.btn-secondary{
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover{
  background: var(--surface);
}

.btn-accent,
.btn-primary{
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0)) , var(--accent);
  border-color: rgba(31, 122, 92, 0.32);
  color: #ffffff;
}

.btn-accent:hover,
.btn-primary:hover{
  background: var(--accent-2);
}

.btn-quiet{
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
}
.btn-quiet:hover{
  background: var(--surface);
  border-color: var(--border);
}

/* -----------------------------
   10) Highlight section (your HTML uses .highlight etc.)
------------------------------ */
.highlight{
  background: linear-gradient(180deg, rgba(31,122,92,0.06), rgba(176,141,87,0.03));
  border-top: 1px solid rgba(230,231,226,0.9);
  border-bottom: 1px solid rgba(230,231,226,0.9);
}

.highlight-inner{
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 900px){
  .highlight-inner{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.highlight-copy p{ color: var(--muted); }

.checklist{
  padding-left: 1.1rem;
  color: var(--muted);
}
.checklist li{ margin-bottom: var(--s-2); }

.highlight-aside{ position: relative; }

.aside-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}

.aside-title{
  margin: 0 0 var(--s-3);
  font-size: 1.05rem;
  font-weight: 780;
}

.aside-list{
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  display: grid;
  gap: var(--s-2);
}

.aside-list a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.aside-list a:hover{ color: var(--link-hover); }

.aside-note{
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* -----------------------------
   11) Two-column links area (your HTML uses .two-col, .col, .link-list)
------------------------------ */
.two-col{
  display: grid;
  gap: var(--s-7);
  margin-top: var(--s-6);
}

@media (min-width: 900px){
  .two-col{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.link-list{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.link-list a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.link-list a:hover{ color: var(--link-hover); }

/* -----------------------------
   12) Notes / callouts
------------------------------ */
.note{
  border: 1px solid var(--border);
  border-left: 4px solid rgba(31, 122, 92, 0.55);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--s-5);
  color: var(--text);
}

.note p{ margin-bottom: var(--s-3); }
.note p:last-child{ margin-bottom: 0; }

.note.attention{
  border-left-color: rgba(180, 83, 9, 0.65);
  background: var(--attention-soft);
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.88rem;
  font-weight: 760;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-3);
}

/* -----------------------------
   13) Pros / Cons
------------------------------ */
.pros-cons{
  display: grid;
  gap: var(--s-5);
  margin: var(--s-6) 0;
}
@media (min-width: 800px){
  .pros-cons{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pros, .cons{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  background: var(--surface-2);
}

.pros{
  border-left: 4px solid rgba(31, 122, 92, 0.6);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface-2) 60%);
}

.cons{
  border-left: 4px solid rgba(180, 83, 9, 0.65);
  background: linear-gradient(180deg, var(--attention-soft), var(--surface-2) 60%);
}

.pros h3, .cons h3{
  margin-top: 0;
  margin-bottom: var(--s-3);
  font-size: 1rem;
}

.pros ul, .cons ul{ margin: 0; padding-left: 1.1rem; }
.pros li, .cons li{ margin-bottom: var(--s-2); color: var(--muted); }

/* -----------------------------
   14) Tables
------------------------------ */
.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.95rem;
}

.table th,
.table td{
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table thead th{
  position: sticky;
  top: 0;
  background: var(--surface);
  color: var(--text);
  font-weight: 760;
  border-bottom: 1px solid var(--border);
}

.table tbody tr:hover{
  background: rgba(31, 122, 92, 0.05);
}

.table td.muted,
.table th.muted{ color: var(--muted); }

.table .best{
  font-weight: 760;
  color: var(--text);
}

.table .badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 92, 0.32);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 740;
}

/* -----------------------------
   15) FAQ
------------------------------ */
.faq{ margin-top: var(--s-6); }

.faq details{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-sm);
}

.faq details + details{ margin-top: var(--s-3); }

.faq summary{
  cursor: pointer;
  list-style: none;
  font-weight: 760;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.faq summary::-webkit-details-marker{ display: none; }

.faq summary::after{
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface);
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}

.faq details[open] summary::after{
  content: "–";
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(31, 122, 92, 0.32);
}

.faq .answer{
  margin-top: var(--s-4);
  color: var(--muted);
}
.faq .answer p:last-child{ margin-bottom: 0; }

/* -----------------------------
   16) Footer (your HTML uses .footer-* classes)
------------------------------ */
.site-footer{
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.7));
  padding: var(--s-9) 0;
  margin-top: var(--s-9);
}

.footer-grid{
  display: grid;
  gap: var(--s-7);
}

@media (min-width: 900px){
  .footer-grid{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.footer-brand img{
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.footer-name{
  margin: var(--s-3) 0 0;
  font-weight: 780;
}

.footer-note{
  margin: var(--s-2) 0 0;
  color: var(--muted);
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}

.footer-links a{
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.footer-links a:hover{ color: var(--text); }

.footer-legal{
  margin-top: var(--s-7);
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
}
.footer-legal .small{
  color: var(--muted);
  margin-bottom: var(--s-3);
}

/* -----------------------------
   17) Minimal form styles (optional)
------------------------------ */
input, select, textarea{ font: inherit; color: var(--text); }

.field{
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

label{
  font-weight: 760;
  font-size: 0.95rem;
}

.input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.input:focus{
  border-color: rgba(31, 122, 92, 0.40);
  box-shadow: var(--ring);
}

.help{
  font-size: 0.9rem;
  color: var(--muted);
}

/* -----------------------------
   18) Print styles
------------------------------ */
@media print{
  :root{
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --text: #000000;
    --muted: #222222;
    --border: #dddddd;
  }

  body{
    background: #ffffff !important;
    color: #000 !important;
  }

  body::before{ display: none !important; }

  .site-header,
  .site-nav,
  .nav,
  .footer-nav,
  .actions,
  .hero-actions,
  .btn,
  .btn-secondary,
  .btn-accent,
  .btn-primary{
    display: none !important;
  }

  a{
    color: #000 !important;
    text-decoration: underline !important;
  }

  .card,
  .note,
  .pros,
  .cons,
  .table-wrap,
  .hero-copy,
  .hero-media img,
  .aside-card{
    box-shadow: none !important;
    background: #fff !important;
  }

  .container{
    max-width: none;
    padding: 0;
  }

  .table{
    min-width: 0;
    font-size: 10.5pt;
  }

  .table thead th{ position: static; }
}
