/* First Paige Designs — global styles. */

@font-face {
  font-family: "Lazy Dog";
  src: url("../fonts/Lazydog.otf") format("opentype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --olive: #4a5f41;
  --olive-deep: #41533e;
  --sage: #c2cfae;
  --sage-light: #ccd5b6;
  --ink: #1e241c;
  --white: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--olive);
  color: var(--white);
  font-family: "Lazy Dog", "Comic Sans MS", cursive;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, .wordmark {
  font-family: "Lazy Dog", "Comic Sans MS", cursive;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--white);
}

a { color: var(--sage); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--olive);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header.header-overlay {
  background: transparent;
  border-bottom: none;
  position: absolute;
  left: 0;
  width: 100%;
}
.header-overlay .wordmark,
.header-overlay .site-nav a:not(.cart-link) {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.wordmark {
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; }
.cart-link {
  background: var(--sage);
  color: var(--ink) !important;
  border-radius: 999px;
  padding: 6px 14px;
}
.cart-link:hover { background: var(--white); }

/* ---------- hero ---------- */
.hero {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 70px 20px;
  background: url("../images/hero.webp") center / cover no-repeat var(--olive);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); margin: 0 0 10px; }
.hero p {
  color: var(--white);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--sage);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 13px 30px;
  font-family: "Lazy Dog", "Comic Sans MS", cursive;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
}
.btn:hover { background: var(--white); }
.btn.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.btn.secondary:hover { background: rgba(255, 255, 255, 0.12); }
.btn:disabled { background: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.6); cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 48px 0 60px; }
.section h2 { font-size: 1.9rem; margin: 0 0 30px; text-align: center; }
.section .section-cta { text-align: center; margin-top: 34px; }

/* light band (What's the latest?, newsletter) */
.band-light { background: var(--sage-light); color: var(--ink); }
.band-light h2, .band-light h3 { color: var(--ink); }
.band-light p { color: var(--ink); }
/* buttons need dark styling on the light bands — white/sage on sage-light has too little contrast */
.band-light .btn, .newsletter .btn {
  background: var(--olive);
  color: var(--white);
}
.band-light .btn:hover, .newsletter .btn:hover { background: var(--olive-deep); }
.band-light .btn.secondary, .newsletter .btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.55);
}
.band-light .btn.secondary:hover, .newsletter .btn.secondary:hover { background: rgba(0, 0, 0, 0.08); }

/* ---------- page banner (small hero, shop page) ---------- */
.page-banner {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: url("../images/hero.webp") center / cover no-repeat var(--olive);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.page-banner h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; }

/* ---------- product grid ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.filters button {
  font: inherit;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--white);
  padding: 2px 18px;
  cursor: pointer;
}
.filters button:first-child { border-left: none; }
.filters button:hover { text-decoration: underline; }
.filters button.active { text-decoration: underline; text-underline-offset: 5px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px 24px;
}
#featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin-inline: auto;
}
@media (max-width: 760px) {
  #featured { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
.card { display: flex; flex-direction: column; text-align: center; }
.card a.card-img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.card a.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover a.card-img img { transform: scale(1.04); }
.card-body { padding: 14px 6px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.card-body h3 a { text-decoration: none; color: var(--white); }
.card-body .price { color: var(--white); font-weight: 500; }
.card-body .sold-out { color: var(--sage); font-weight: 700; text-transform: uppercase; }
.card-body .spacer { flex: 1; }

/* ---------- product page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 40px 0 60px;
}
@media (max-width: 720px) { .product-layout { grid-template-columns: 1fr; } }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.15);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: 0.75;
}
.gallery-thumbs img.active { border-color: var(--sage); opacity: 1; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; color: var(--sage); }
.product-info .price { font-size: 1.25rem; color: var(--white); font-weight: 500; margin-bottom: 18px; }
.product-info label {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: block;
  margin: 14px 0 6px;
}
.product-info select, .product-info input[type="number"] {
  font: inherit;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  min-width: 180px;
}
.product-info .add-row { display: flex; gap: 12px; align-items: end; margin: 20px 0 24px; flex-wrap: wrap; }
/* add-to-cart matches the original's outlined button */
.product-info .add-row .btn {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.product-info .add-row .btn:hover { background: rgba(255, 255, 255, 0.12); }
.product-desc p { color: var(--white); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em; }
.added-note { color: var(--sage); font-weight: 700; margin-top: 10px; }
.added-note a { color: var(--sage); }

/* ---------- cart ---------- */
.cart-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px;
}
@media (max-width: 560px) { .cart-row { grid-template-columns: 56px 1fr auto; } .cart-row .row-price { display: none; } }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-row .variant { color: #5c6355; font-size: 0.9rem; }
.cart-row input { width: 64px; font: inherit; padding: 6px; border: 1px solid #d8d3c5; border-radius: 8px; text-align: center; }
.cart-row .remove { background: none; border: none; color: #a05423; font: inherit; cursor: pointer; font-weight: 700; }
.cart-summary {
  background: var(--sage-light);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 460px;
}
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-summary .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid rgba(0,0,0,0.2); padding-top: 10px; }
.cart-summary fieldset { border: none; margin: 0 0 14px; padding: 0; }
.cart-summary fieldset label { display: block; margin-bottom: 6px; font-weight: 400; }
.checkout-fallback {
  margin-top: 18px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.checkout-fallback .btn.secondary { color: var(--ink); border-color: var(--ink); }

/* ---------- prose pages (faq, posts) ---------- */
.prose { max-width: 720px; padding: 40px 0 60px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--sage); }
.prose h2 { font-size: 1.3rem; margin-top: 36px; color: var(--sage); }
.prose p, .prose li { color: var(--white); }
.prose a { color: var(--sage); }
.post { margin-bottom: 40px; }
.post .date { color: var(--sage); font-size: 0.85rem; }
.band-light .post .date { color: #4a5f41; }

/* ---------- contact ---------- */
.contact-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.contact-buttons .btn.secondary { color: var(--white); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding: 56px 0 64px;
  color: var(--white);
}
.footer-cols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.footer-nav a {
  color: var(--sage);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.footer-brand { text-align: right; }
.footer-brand .slogan {
  font-family: "Lazy Dog", "Comic Sans MS", cursive;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.footer-brand .socials { display: flex; gap: 16px; justify-content: flex-end; }
.footer-brand .socials a { color: var(--sage); font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
@media (max-width: 640px) {
  .footer-cols { flex-direction: column; }
  .footer-brand { text-align: center; }
  .footer-brand .socials { justify-content: center; }
}
.newsletter { text-align: center; padding: 54px 20px; background: var(--sage-light); color: var(--ink); }
.newsletter h2 { margin: 0 0 8px; color: var(--ink); }
.newsletter p { color: var(--ink); margin: 0 0 20px; }
.empty-note { color: var(--sage); text-align: center; padding: 40px 0; }
.empty-note a { color: var(--white); }

/* ---------- The Latest ---------- */
.latest-hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 110px 20px 90px;
  background: linear-gradient(rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.38)), url("../images/latest-ferns.jpg") center 58% / cover no-repeat var(--olive);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.latest-hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background: url("../images/grain-texture.png") repeat;
  background-size: 180px 180px;
  animation: grain-flicker 0.22s steps(2) infinite;
}
.latest-hero > * {
  position: relative;
  z-index: 2;
}
@keyframes grain-flicker {
  0% { transform: translate3d(-2%, -3%, 0); }
  25% { transform: translate3d(3%, 1%, 0); }
  50% { transform: translate3d(-1%, 4%, 0); }
  75% { transform: translate3d(4%, -2%, 0); }
  100% { transform: translate3d(-3%, 2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .latest-hero::after { animation: none; }
}
.latest-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin: 0 0 40px;
}

/* ---------- FAQ accordion ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  padding: 60px 20px 80px;
  max-width: 1080px;
}
@media (max-width: 760px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } }
.faq-layout h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.faq-list details { border-top: 1px solid rgba(255, 255, 255, 0.6); }
.faq-list details:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0 4px 18px; color: rgba(255, 255, 255, 0.92); }
.faq-list details a { color: var(--sage); }

/* ---------- contact ---------- */
/* .prose a would otherwise out-rank .btn and turn the label sage-on-sage */
.prose a.btn { color: var(--ink); }
.prose a.btn.secondary { color: var(--white); }
.contact-center { text-align: center; padding-top: 90px; padding-bottom: 90px; }
.contact-center h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.contact-blurb { text-transform: uppercase; letter-spacing: 0.03em; max-width: 560px; margin: 0 auto; }
.contact-center .contact-buttons { justify-content: center; margin-top: 34px; }
