/* Whistler Delivery — visual design matched to the existing brand.
 *
 * Palette taken from the live Wix site: forest green #476835 is the primary
 * brand colour, with cream and charcoal supporting it. The logo is white on
 * transparent, so the header must stay dark enough to carry it.
 */

:root {
  --green: #476835;
  --green-dark: #364f28;
  --green-deep: #2b3d20;
  --cream: #f7f5f0;
  --sand: #e8e3d9;
  --ink: #23291f;
  --muted: #5f6360;
  --line: #ddd8cd;
  --white: #fff;
  --radius: 4px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(35, 41, 31, 0.06), 0 8px 24px rgba(35, 41, 31, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 12px; z-index: 200; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.main-nav a {
  color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: rgba(255,255,255,.6); text-decoration: none; }
.main-nav a[aria-current="page"] { border-bottom-color: #fff; }
.cart-link {
  border: 1.5px solid rgba(255,255,255,.85) !important; border-radius: 999px;
  padding: 8px 18px !important; text-transform: none !important;
  letter-spacing: .02em !important;
}
.cart-link:hover { background: rgba(255,255,255,.12); border-bottom-color: rgba(255,255,255,.85) !important; }
.badge {
  background: #fff; color: var(--green); border-radius: 999px;
  padding: 1px 8px; font-size: 0.75rem; margin-left: 6px; font-weight: 700;
}
.inline-form { display: inline; }
.linklike {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: #fff; font-size: 0.85rem; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.linklike:hover { border-bottom-color: rgba(255,255,255,.6); }

.test-banner {
  background: #fdf6e3; border-bottom: 1px solid #efe2c4; color: #7a5a12;
  font-size: 0.82rem; text-align: center; padding: 7px 16px; letter-spacing: .02em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--green-dark); color: #fff;
  padding: 96px 0 104px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.09), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(0,0,0,.22), transparent 58%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.06; margin: 0 0 26px;
  font-weight: 600; letter-spacing: -0.02em; max-width: 19ch;
}
.hero-lede {
  font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 56ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--green); color: #fff; border: 1.5px solid var(--green);
  padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: .92rem;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; color: #fff; }
.btn.on-dark { background: #fff; color: var(--green); border-color: #fff; }
.btn.on-dark:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); color: var(--green); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--cream); border-color: var(--sand); color: var(--ink); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.small { padding: 10px 20px; font-size: .78rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(71, 104, 53, .45); outline-offset: 2px;
}
.hero .btn:focus-visible { outline-color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.soft { background: var(--cream); }
.section-head { margin-bottom: 44px; }
.section-head.centered { text-align: center; }
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2;
}
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 1.02rem; }
.section-head.centered p { margin: 0 auto; }
.section-head.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.eyebrow {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin: 0 0 14px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 700; margin-bottom: 18px; font-size: 1.05rem;
}
.step h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.feature { border-left: 3px solid var(--green); padding: 4px 0 4px 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  aspect-ratio: 1 / 1; background: var(--cream); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { color: var(--muted); font-size: .85rem; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat {
  font-size: .7rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; font-weight: 600;
}
.card-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); text-decoration: none; }
.card-price { color: var(--muted); font-size: .88rem; }
.card .btn { margin-top: auto; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 104px; }
.filters h2 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin: 0 0 14px; font-weight: 700;
}
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.filter-list a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: .91rem;
}
.filter-list a:hover { background: var(--cream); text-decoration: none; }
.filter-list a[aria-current="true"] { background: var(--green); color: #fff; font-weight: 600; }
.searchbar { display: flex; gap: 10px; margin-bottom: 30px; }
.searchbar input[type="search"] {
  flex: 1; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: #fff;
}
.searchbar input[type="search"]:focus { border-color: var(--green); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }
.product-detail h1 {
  margin: 0 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.01em;
}
.product-img {
  aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--cream);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.price { font-size: 1.2rem; font-weight: 600; color: var(--green); margin: 0 0 6px; }
.option-group { margin: 20px 0; }
.option-group label {
  display: block; font-weight: 600; font-size: .78rem; margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
}
.option-group select, .option-group input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink);
}
.option-group select:focus, .field input:focus, .field textarea:focus {
  border-color: var(--green); outline: none;
  box-shadow: 0 0 0 3px rgba(71,104,53,.12);
}
.notes-hint { font-size: .84rem; color: var(--muted); margin-top: 6px; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  text-align: left; padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.cart-table th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 700;
}
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 32px; height: 32px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); cursor: pointer; font-size: 1rem; color: var(--ink);
}
.qty button:hover { border-color: var(--green); color: var(--green); }
.cart-actions {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-top: 32px; gap: 40px; flex-wrap: wrap;
}
.totals { min-width: 300px; }
.totals div { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.totals .grand {
  border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.1rem;
  padding-top: 12px; margin-top: 8px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }
.field.full { grid-column: 1 / -1; }
fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin: 0 0 24px; background: #fff;
}
legend {
  font-weight: 700; padding: 0 10px; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--green);
}

.message { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; border: 1px solid var(--line); background: var(--cream); }
.message.error { background: #fdf1f1; border-color: #eecaca; color: #8a2020; }
.message.success { background: #f1f7f0; border-color: #cfe0c8; color: var(--green-dark); }
.error-box {
  background: #fdf1f1; border: 1px solid #eecaca; color: #8a2020;
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px;
}

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
@media (max-width: 940px) { .checkout-grid { grid-template-columns: 1fr; } }
.summary-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--cream);
}
.summary-card h3 {
  margin: 0 0 16px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
}
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.price-card .amount {
  font-size: 2.8rem; font-weight: 700; color: var(--green);
  line-height: 1; margin: 0 0 10px; letter-spacing: -0.02em;
}
.price-card .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card h3 { margin: 0 0 12px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.price-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.worked-example {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; max-width: 620px; margin: 0 auto;
}
.worked-example h3 { margin: 0 0 20px; font-size: 1.05rem; font-weight: 600; }
.worked-example .row-line {
  display: flex; justify-content: space-between; padding: 11px 0;
  border-bottom: 1px dashed var(--line); font-size: .95rem; gap: 20px;
}
.worked-example .row-line:last-of-type { border-bottom: 0; }
.worked-example .row-line.total {
  border-top: 2px solid var(--ink); border-bottom: 0;
  font-weight: 700; font-size: 1.08rem; margin-top: 10px; padding-top: 16px;
}
.worked-example .row-line .label small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--cream); }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--green);
  flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item[open] summary { background: var(--cream); border-bottom: 1px solid var(--line); }
.faq-body { padding: 24px 26px; color: var(--muted); font-size: .96rem; }
.faq-body p { margin: 0 0 12px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: 0 0 12px; padding-left: 20px; }
.faq-body a { font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 18px;
}
.contact-card h3 {
  margin: 0 0 8px; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
}
.contact-card p { margin: 0; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.8); padding: 64px 0 32px; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.16);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid img { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer h4 {
  color: #fff; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .14em; margin: 0 0 16px; font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding-top: 26px; font-size: .84rem; flex-wrap: wrap;
  color: rgba(255,255,255,.6);
}
.social { display: flex; gap: 12px; align-items: center; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.social a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Side cart ---------- */
#side-cart:empty { display: none; }
.side-cart {
  position: fixed; right: 24px; bottom: 24px; width: min(360px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(35,41,31,.2); padding: 20px; z-index: 60;
}
.side-cart h3 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.side-line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .9rem; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.side-line:last-of-type { border-bottom: 0; }

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cta-band { background: var(--green); color: #fff; text-align: center; }
.cta-band h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
.cta-band p { margin: 0 auto 30px; color: rgba(255,255,255,.88); max-width: 54ch; }
.cta-band a { color: #fff; }
