/* Gift Ideas Daily — Phase 1 stylesheet (vanilla CSS, mobile-first) */
:root {
  --cream: #FAF5EC;
  --cream-2: #F3EAD9;
  --card: #FFFFFF;
  --terra: #BC5A32;
  --terra-dark: #9A4523;
  --terra-soft: #F6E3D3;
  --char: #2B2521;
  --muted: #6F6257;
  --line: #E7DAC3;
  --gold: #C99A3C;
  --green: #4E7A51;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 37, 33, 0.08);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--char);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terra); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--char); }
.logo svg { width: 36px; height: 36px; }
.logo-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--terra); }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--char); font-weight: 600; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px;
}
.main-nav a:hover, .main-nav a.active { background: var(--terra-soft); color: var(--terra-dark); }
.cat-bar { border-top: 1px solid var(--line); background: var(--cream); }
.cat-bar-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.cat-pill {
  flex: 0 0 auto; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  color: var(--char); background: var(--card); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.cat-pill:hover { border-color: var(--terra); color: var(--terra-dark); }
.cat-pill.current { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #F7E8D2 0%, #F3D9BE 55%, #EFC9A8 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px; text-align: center;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero p.lead { font-size: 1.1rem; color: #5A4A3C; max-width: 620px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terra); color: #fff; text-decoration: none; font-weight: 700;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer; font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--terra-dark); border: 2px solid var(--terra);
}
.btn-outline:hover { background: var(--terra-soft); }
.btn svg { width: 18px; height: 18px; }
.hero-badges { display: flex; gap: 18px; justify-content: center; margin-top: 26px; flex-wrap: wrap; font-size: 0.9rem; color: #5A4A3C; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--terra-dark); }

/* ---------- Category grids ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; text-decoration: none; color: var(--char);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .cat-icon {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--terra-soft); display: flex; align-items: center; justify-content: center;
}
.cat-card .cat-icon svg { width: 26px; height: 26px; color: var(--terra-dark); }
.cat-card h3 { font-size: 1rem; margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.cat-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---------- Why-us band ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center;
}
.why-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--terra-soft); display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 26px; height: 26px; color: var(--terra-dark); }
.why-card h3 { font-size: 1rem; margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; }
.why-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Gift cards ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gift-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gift-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gift-media {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--terra-soft) 0%, #F1D3B8 60%, #E9BE98 100%);
}
.gift-media svg { width: 64px; height: 64px; color: var(--terra-dark); opacity: 0.85; }
.gift-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gift-body h3 { font-size: 1.02rem; margin: 0; font-family: var(--font-body); font-weight: 700; }
.gift-price { font-weight: 800; color: var(--terra-dark); font-size: 1.1rem; margin: 0; }
.gift-desc { font-size: 0.9rem; color: var(--muted); margin: 0; flex: 1; }
.gift-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--cream-2); color: #7A5B3E; padding: 3px 10px; border-radius: 999px;
}
.gift-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn-amazon {
  flex: 1; text-align: center; background: var(--char); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; padding: 10px 12px; border-radius: 10px;
}
.btn-amazon:hover { background: #000; }
.btn-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream);
  text-decoration: none; color: #B0312C; font-size: 0;
}
.btn-pin svg { width: 20px; height: 20px; }
.btn-pin:hover { border-color: #B0312C; background: #FBEDEB; }
.aff-note { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* ---------- Filters ---------- */
.filter-bar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 24px;
}
.f-group { margin-bottom: 14px; }
.f-group:last-child { margin-bottom: 0; }
.f-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; display: block; }
.f-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pbtn, .tchip {
  border: 1px solid var(--line); background: var(--cream); color: var(--char);
  font-weight: 600; font-size: 0.88rem; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.pbtn:hover, .tchip:hover { border-color: var(--terra); }
.pbtn[aria-pressed="true"], .tchip[aria-pressed="true"] {
  background: var(--terra); border-color: var(--terra); color: #fff;
}
.f-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.f-clear { background: none; border: none; color: var(--terra-dark); font-weight: 700; cursor: pointer; font-size: 0.9rem; text-decoration: underline; }
.no-results { text-align: center; padding: 40px 20px; color: var(--muted); display: none; }
.no-results.show { display: block; }

/* ---------- Spotlight / promo bands ---------- */
.spotlight {
  background: var(--char); color: #F6EFE3; border-radius: 20px;
  padding: 40px 32px; display: grid; gap: 20px; align-items: center;
}
.spotlight h2 { color: #fff; margin-bottom: 8px; }
.spotlight p { color: #D8CBB6; margin-bottom: 18px; max-width: 560px; }
.spotlight .btn { background: var(--gold); color: var(--char); }
.spotlight .btn:hover { background: #D8A94E; }
@media (min-width: 760px) { .spotlight { grid-template-columns: 1fr auto; } }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 680px; margin: 0 auto; }
.quiz-progress { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.quiz-progress i { display: block; height: 100%; background: var(--terra); width: 0; transition: width 0.3s ease; }
.quiz-step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); }
.quiz-step h2 { text-align: center; margin-bottom: 6px; }
.quiz-step .q-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 0.95rem; }
.q-options { display: grid; gap: 10px; }
@media (min-width: 560px) { .q-options.cols2 { grid-template-columns: 1fr 1fr; } }
.q-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1.5px solid var(--line); background: var(--cream); border-radius: 12px;
  padding: 13px 16px; font-size: 1rem; font-weight: 600; color: var(--char); cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.q-opt:hover { border-color: var(--terra); }
.q-opt.selected { border-color: var(--terra); background: var(--terra-soft); }
.q-opt svg { width: 22px; height: 22px; color: var(--terra-dark); flex: 0 0 auto; }
.q-opt .check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.q-opt.selected .check { border-color: var(--terra); background: var(--terra); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }
.quiz-back { background: none; border: none; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 0.95rem; }
.quiz-results-head { text-align: center; margin-bottom: 24px; }
.match-why { font-size: 0.82rem; color: var(--green); font-weight: 600; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: var(--font-body); background: var(--cream);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--terra); background: #fff; }
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 20px; background: #EFF6EF; border: 1px solid #CBE3CB; border-radius: 12px; color: #2F5D33; font-weight: 600; }
.form-success.show { display: block; }
.newsletter-band { background: var(--terra-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; text-align: center; }
.newsletter-band h2 { margin-bottom: 6px; }
.newsletter-band p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
.newsletter-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1rem; }
.newsletter-form .btn { padding: 12px 22px; }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }

/* ---------- Prose pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--terra-dark); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: #CFC3B2; margin-top: 56px; }
.footer-grid { display: grid; gap: 28px; padding: 48px 0 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: #CFC3B2; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand p { font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid #4A4239; padding: 18px 0; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disclosure-strip { background: #241F1B; padding: 14px 0; font-size: 0.8rem; color: #9A8D7B; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 h1 { font-size: 4rem; color: var(--terra); margin-bottom: 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.blog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-link { display: block; padding: 22px; text-decoration: none; color: var(--char); height: 100%; }
.blog-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.blog-cat {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  background: var(--terra); color: #fff; padding: 4px 12px; border-radius: 999px;
}
.blog-date { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.blog-card h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; line-height: 1.35; }
.blog-card > .blog-card-link > p, .blog-card p { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
.blog-more { color: var(--terra-dark); font-weight: 700; font-size: 0.9rem; }
.blog-card:hover .blog-more { text-decoration: underline; }
.center-cta { text-align: center; margin-top: 26px; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article .blog-cat { display: inline-block; margin-bottom: 14px; }
.article h1 { font-size: 2.1rem; margin-bottom: 10px; }
.article-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-body { font-size: 1.04rem; }
.article-body h2 { font-size: 1.4rem; margin-top: 2em; color: var(--char); }
.article-body ul { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.6em; }
.article-body a { color: var(--terra-dark); font-weight: 600; }
.author-box {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--terra-soft);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.author-avatar svg { width: 28px; height: 28px; color: var(--terra-dark); }
.author-box p { font-size: 0.9rem; color: var(--muted); margin: 4px 0 0; }
.article-cta {
  text-align: center; margin-top: 36px; background: var(--char); color: #F6EFE3;
  border-radius: 20px; padding: 36px 28px;
}
.article-cta h2 { color: #fff; margin-bottom: 8px; }
.article-cta p { color: #D8CBB6; margin-bottom: 18px; }
.article-cta .btn { background: var(--gold); color: var(--char); }
.article-cta .btn:hover { background: #D8A94E; }
.related-posts { margin-top: 56px; }
.related-posts .section-title { margin-bottom: 24px; }

/* ---------- Spotlight icon fix ---------- */
.spot-icon { display: flex; align-items: center; justify-content: center; }
.spot-icon svg { width: 110px; height: 110px; color: var(--gold); opacity: 0.9; }
@media (max-width: 759px) { .spot-icon svg { width: 72px; height: 72px; } }

@media (min-width: 760px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3rem; }
  .section { padding: 60px 0; }
}
