/* Bay Ritual Coffee — shared stylesheet
 * Design system ported from the Wix v1 build.
 * Fonts: EB Garamond (headings) + Quicksand (body). */

:root {
  --cream: #f0efe1;
  --cream-deep: #e7e6d6;
  --grey: #dfe6e9;
  --ink: #242121;
  --muted: #5b5959;
  --white: #ffffff;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 239, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(36, 33, 33, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 38px; height: auto; }
.brand-text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { border-color: var(--ink); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* Underlined text link (Wix "Shop Now" style) */
.link-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.link-btn:hover { opacity: 0.6; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 24px 92px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.hero-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.hero-grid .img-a { grid-row: span 2; aspect-ratio: 3 / 4; }
.hero-grid .img-b { aspect-ratio: 4 / 3; }
.hero-grid .img-c { aspect-ratio: 4 / 3; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream-deep); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 1rem; }

/* ---------- Offer banner ---------- */
.offer {
  text-align: center;
  border-top: 1px solid rgba(36, 33, 33, 0.1);
  border-bottom: 1px solid rgba(36, 33, 33, 0.1);
  padding: 64px 0;
  background: var(--cream);
}
.offer h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 12px;
}
.offer p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story img { border-radius: 4px; width: 100%; }
.story h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--ink);
}
.story p { color: var(--muted); margin-bottom: 16px; }
.story .link-btn { margin-top: 8px; }

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card-product {
  background: var(--white);
  border: 1px solid rgba(36, 33, 33, 0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(36, 33, 33, 0.35); }
.card-product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-product .card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-product .origin-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.card-product h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.card-product .meta { color: var(--muted); font-size: 0.88rem; }
.card-product .card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.card-product .price { font-family: var(--serif); font-size: 1.25rem; }
.card-product .btn { padding: 10px 18px; font-size: 0.86rem; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-detail .media { display: flex; justify-content: center; }
.product-detail .media img { border-radius: 4px; width: 55%; max-width: 300px; margin: 0 auto; }
.product-detail .origin-tag { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.product-detail h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.9rem); line-height: 1.3; margin-bottom: 10px; }
.product-detail .subtitle { color: var(--muted); margin-bottom: 18px; }
.product-detail .price-line { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 20px; }
.product-detail .desc { color: var(--muted); margin-bottom: 26px; }
.specs { list-style: none; border-top: 1px solid rgba(36, 33, 33, 0.12); margin-bottom: 26px; }
.specs li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid rgba(36, 33, 33, 0.12); font-size: 0.95rem;
}
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { text-align: right; }
.shipping-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.qty { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty label { font-size: 0.9rem; color: var(--muted); }
.qty input {
  width: 76px; padding: 9px 12px; border: 1px solid rgba(36, 33, 33, 0.2);
  border-radius: 6px; background: var(--white); font-family: var(--sans); font-size: 1rem;
}

/* ---------- Gallery ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1.2; object-fit: cover; border-radius: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-grid .info p { color: var(--muted); margin-bottom: 14px; }
.contact-grid .info a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.contact-grid .info a:hover { opacity: 0.6; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: 0.88rem; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(36, 33, 33, 0.18);
  border-radius: 6px; background: var(--white); font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 1px solid var(--ink); border-color: transparent; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 30px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 14px; }
.legal ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(36, 33, 33, 0.12); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer p, .site-footer li { color: var(--muted); font-size: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(36, 33, 33, 0.1); margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.82rem;
}

/* ---------- Article / Journal ---------- */
.article { max-width: 720px; }
.article h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.25; margin-bottom: 8px; }
.article .lead { font-size: 1.15rem; line-height: 1.65; color: var(--ink); margin-bottom: 26px; }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.3; margin: 34px 0 12px; }
.article p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.article p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter-widget { max-width: 480px; margin: 0 auto; }
.footer-newsletter { margin-top: 12px; }
.footer-newsletter span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.gap-16 { gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .story, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 56px 24px 64px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid rgba(36, 33, 33, 0.1);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; }
}
@media (max-width: 560px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
