/* ============================================================
   DewPicks — style.css
   Mobile-first, zero frameworks. Brand palette:
   blush pink #f6dfe3, warm cream #fdf8f2, gold #c39a3b,
   deep cocoa text #43322b, soft rose #e9a7b0.
   ============================================================ */

:root {
  --cream: #fdf8f2;
  --blush: #f6dfe3;
  --blush-deep: #eec3cb;
  --rose: #e9a7b0;
  --gold: #c39a3b;
  --gold-dark: #a37f2c;
  --ink: #43322b;
  --ink-soft: #6f5b52;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(67, 50, 43, 0.08);
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--blush);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand:hover { text-decoration: none; }
.brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blush-deep);
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 1rem; list-style: none; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 70%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.hero .tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--gold-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }

/* ---------- Sections & cards ---------- */
.section { padding: 2.5rem 0; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); }
.card-img {
  background: var(--blush);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.4rem; }
.card-body h3 a { color: var(--ink); }
.card-body p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0.9rem; flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.article h1 { font-family: var(--font-head); font-size: 2rem; line-height: 1.3; margin-bottom: 0.6rem; }
.article .byline { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.5rem; }
.article h2 { font-family: var(--font-head); font-size: 1.45rem; margin: 2rem 0 0.8rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; }
.article li { margin-bottom: 0.4rem; }
.disclosure-box {
  background: var(--blush);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

/* ---------- Product card component ---------- */
.product-card {
  border: 1px solid var(--blush-deep);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin: 1.8rem 0;
  overflow: hidden;
}
.product-card .pc-img {
  background: linear-gradient(135deg, var(--blush), var(--cream));
  aspect-ratio: 16 / 8;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.9rem;
}
.product-card .pc-body { padding: 1.3rem; }
.product-card h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 0.5rem; }
.pc-features { list-style: disc; margin: 0 0 1rem 1.3rem; font-size: 0.95rem; }
.pc-pros-cons { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin-bottom: 1.1rem; }
.pc-pros, .pc-cons { font-size: 0.92rem; }
.pc-pros strong { color: #2e7d4f; }
.pc-cons strong { color: #b0483e; }
.pc-cta { text-align: center; padding-top: 0.4rem; }
.buy-btn { font-size: 1rem; }
.pc-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin-top: 0.5rem; }

/* TODO placeholder styling — remove when real content ships */
.todo {
  border: 2px dashed var(--rose);
  background: #fff7f8;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.todo strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #e9dcd4;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.footer-brand span { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links a { color: #e9dcd4; font-size: 0.92rem; }
.affiliate-disclosure {
  font-size: 0.82rem;
  color: #c9b6ab;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  grid-column: 1 / -1;
}
.copyright { font-size: 0.8rem; color: #a68f82; grid-column: 1 / -1; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-pros-cons { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 960px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .nav-links { gap: 1.6rem; }
}

/* ---------- Comparison table (post 8) ---------- */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.compare-table th, .compare-table td { border: 1px solid var(--blush-deep); padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.compare-table th { background: var(--cream); font-family: var(--font-head); }

/* ---------- Article hero image ---------- */
.article-hero { margin: 0 0 1.8rem; }
.article-hero img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Card images (linked heroes) ---------- */
a.card-img { display: block; padding: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* ---------- Product card SVG icons ---------- */
.product-card .pc-img svg { width: 64px; height: 64px; flex: none; }

/* ---------- Small-screen nav ---------- */
@media (max-width: 480px) {
  .brand-name { font-size: 1.1rem; }
  .article h1 { font-size: 1.6rem; }
}

/* ---------- Hamburger menu (mobile) ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav { position: relative; padding: 0.6rem 1rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--blush);
    box-shadow: var(--shadow);
    margin: 0;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--blush);
  }
  .nav-links li:last-child a { border-bottom: none; }
}
