/* =====================================================================
   Bests Offer — Design System
   Natural & organic theme · pure CSS, no JS dependencies
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Greens & earth */
  --forest:   #1c3a2a;
  --moss:     #2f5d40;
  --leaf:     #4c9a6a;
  --leaf-2:   #6cbf8a;
  --sage:     #8fb39a;
  --gold:     #c79a3f;
  --gold-soft:#e3c889;

  /* Neutrals */
  --cream:    #f8f5ee;
  --sand:     #efe7d6;
  --paper:    #ffffff;
  --ink:      #1a221d;
  --muted:    #5d6862;
  --line:     #e3ddcf;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(28,58,42,.06), 0 1px 2px rgba(28,58,42,.04);
  --shadow:    0 10px 30px -12px rgba(28,58,42,.22);
  --shadow-lg: 0 30px 60px -20px rgba(28,58,42,.28);
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --maxw: 1160px;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 88px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--moss); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--leaf); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; color: var(--forest); letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.32rem; }
p  { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--leaf);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--leaf); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--moss); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--forest); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); background: rgba(76,154,106,.06); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,245,238,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(227,221,207,.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-weight: 600; font-size: 1.28rem; color: var(--forest); line-height: 1.06; }
.brand:hover { color: var(--forest); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, var(--leaf), var(--moss));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand .mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--font-sans); font-weight: 600; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-weight: 500; font-size: .96rem; color: var(--ink); }
.nav-links a:hover { color: var(--leaf); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(108,191,138,.28), transparent 55%),
    radial-gradient(90% 90% at 8% 110%, rgba(199,154,63,.12), transparent 50%),
    linear-gradient(180deg, var(--cream), #fffdf8);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 span { color: var(--leaf); font-style: italic; }
.hero .lead { margin-top: 22px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

.hero-visual { position: relative; }
.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px; position: relative; z-index: 2;
}
.hero-card .hc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-card .hc-ic { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, var(--leaf-2), var(--moss)); display: grid; place-items: center; }
.hero-card .hc-ic svg { width: 24px; height: 24px; }
.hc-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.hc-row .pill { width: 38px; height: 38px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; flex: none; }
.hc-row .pill svg { width: 20px; height: 20px; color: var(--moss); }
.hc-row b { color: var(--forest); font-family: var(--font-sans); font-size: .98rem; }
.hc-row p { font-size: .84rem; margin: 0; }
.hero-blob { position: absolute; inset: -8% -12% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle at 50% 50%, rgba(108,191,138,.45), transparent 60%); filter: blur(20px); z-index: 1; }

/* ---------- Generic grid / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .28s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8d0bd; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(108,191,138,.22), rgba(47,93,64,.16));
  display: grid; place-items: center;
}
.card .icon svg { width: 26px; height: 26px; color: var(--moss); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }

/* Step cards */
.step { position: relative; }
.step .num { font-family: var(--font-serif); font-size: 2.6rem; color: var(--sage); line-height: 1; margin-bottom: 10px; }

/* Section backgrounds */
.bg-forest { background: var(--forest); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: #fff; }
.bg-forest p { color: rgba(255,255,255,.78); }
.bg-forest .eyebrow { color: var(--gold-soft); }
.bg-forest .eyebrow::before { background: var(--gold-soft); }
.bg-sand { background: linear-gradient(180deg, #fffdf8, var(--sand)); }

/* ---------- Categories ---------- */
.cat { display: flex; gap: 16px; align-items: flex-start; }
.cat .icon { flex: none; }

/* ---------- Partners strip ---------- */
.partners { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.partner {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; color: var(--forest); font-size: .95rem; box-shadow: var(--shadow-sm);
}
.partner .badge { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; }
.newsletter .container { position: relative; z-index: 2; }
.signup {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 54px);
  backdrop-filter: blur(4px);
}
.field-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.field-row input[type="email"] {
  flex: 1 1 260px; min-width: 0; padding: 15px 20px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.95);
  font-size: 1rem; font-family: inherit; color: var(--ink);
}
.field-row input[type="email"]:focus { outline: 3px solid rgba(199,154,63,.4); border-color: var(--gold-soft); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.82); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold-soft); text-decoration: underline; }

/* ---------- Disclaimer band ---------- */
.band {
  background: #fff; border: 1px dashed #d8cfb8; border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start;
}
.band svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.band p { font-size: .9rem; color: var(--muted); margin: 0; }
.band b { color: var(--forest); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--cream), #fffdf8); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 84px); }
.page-hero .eyebrow { justify-content: flex-start; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--moss); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.55rem; margin-top: 44px; margin-bottom: 14px; }
.prose h3 { font-size: 1.15rem; margin-top: 26px; margin-bottom: 8px; color: var(--moss); }
.prose p, .prose li { color: #424b46; font-size: 1.02rem; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { display: inline-block; background: var(--sand); color: var(--moss); font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 8px; }
.callout {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--leaf);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 22px 0;
}
.callout.warn { border-left-color: var(--gold); }
.callout p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: 0; }
.info-card .icon { flex: none; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(140deg, rgba(108,191,138,.22), rgba(47,93,64,.16)); display: grid; place-items: center; }
.info-card .icon svg { width: 24px; height: 24px; color: var(--moss); }
.info-card b { color: var(--forest); font-family: var(--font-sans); display: block; margin-bottom: 2px; }
.info-card span, .info-card a { color: var(--muted); font-size: .98rem; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--forest); margin-bottom: 7px; }
.form .field { margin-bottom: 18px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(76,154,106,.15); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--leaf); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,.74); padding-block: 64px 30px; }
.site-footer a { color: rgba(255,255,255,.74); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--gold-soft); }
.footer-about { margin-top: 16px; font-size: .92rem; max-width: 34ch; color: rgba(255,255,255,.66); }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: .94rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .92rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--sage); flex: none; margin-top: 3px; }
.footer-partners { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.footer-partners span { font-size: .78rem; padding: 5px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.8); }
.footer-legal { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-disclaimer { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Entrance animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
/* Switch to hamburger before the desktop nav can overflow.
   Hide BOTH CTA buttons so we never show a button next to the hamburger. */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .container { padding-inline: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* full-width, stacked CTAs so they never crowd */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .field-row { flex-direction: column; }
  .field-row input[type="email"], .field-row .btn { flex: 1 1 auto; width: 100%; }
  .hero-card { padding: 24px; }
  .signup { padding: 26px 22px; }
  .band { flex-direction: column; gap: 10px; }
}
/* Phones: keep only the hamburger in the bar */
@media (max-width: 560px) {
  .nav { height: 66px; }
  .brand { font-size: 1.16rem; }
  .brand .mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand .mark svg { width: 20px; height: 20px; }
}

/* Mobile menu (pure CSS via :target) */
.mobile-menu { display: none; }
.mobile-menu:target { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(28,58,42,.4); }
.mobile-menu .sheet { position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: var(--cream); padding: 28px 26px; box-shadow: var(--shadow-lg); }
.mobile-menu .sheet a { display: block; padding: 13px 0; font-size: 1.08rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .sheet .close { float: right; font-size: 1.6rem; color: var(--muted); }
.nav-toggle {
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: var(--cream); border-color: var(--moss); }
.nav-toggle svg { width: 22px; height: 22px; color: var(--forest); display: block; }
