/* ==========================================================================
   Janic — design tokens
   ========================================================================== */

:root {
  --cream: #f5ede1;
  --cream-muted: #efe4d4;
  --maroon-hero: #6b0f1d;
  --maroon-dark: #2a0a10;
  --maroon-darkest: #1c0509;
  --gold: #c9a66b;
  --gold-bright: #ffc769;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-eyebrow: "Playfair Display", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 12px 30px rgba(42, 10, 16, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--maroon-dark);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul { list-style: none; }

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

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 12.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
}

h1 { font-size: clamp(38px, 5vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 400; }
h3 { font-size: 22px; font-weight: 600; }

.lead { font-size: 18px; opacity: 0.85; max-width: 46ch; }

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: var(--gold);
  color: var(--maroon-dark);
}
.btn-solid:hover { background: var(--gold-bright); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 237, 225, 0.45);
}
.btn-outline:hover { border-color: var(--cream); }

.btn-pill {
  background: transparent;
  color: var(--maroon-dark);
  border: 1px solid rgba(42, 10, 16, 0.25);
  padding: 12px 22px;
}
.btn-pill:hover { border-color: var(--maroon-dark); }

.btn-block { width: 100%; }

.btn-sm { padding: 10px 18px; font-size: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--maroon-hero);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  margin-right: auto;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(245, 237, 225, 0.55);
}
.lang-toggle button {
  color: rgba(245, 237, 225, 0.55);
  padding: 4px;
}
.lang-toggle button[aria-current="true"] {
  color: var(--cream);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cream);
}
.main-nav a { opacity: 0.9; }
.main-nav a:hover { opacity: 1; }

.cart-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(245, 237, 225, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.cart-toggle svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--maroon-dark);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count[hidden] { display: none; }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  color: var(--cream);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--maroon-hero);
  padding: 0 24px 18px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cream);
  border-top: 1px solid rgba(245, 237, 225, 0.12);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--maroon-hero);
  color: var(--cream);
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/mountain-line-art.svg") center 60% / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p.lead { margin: 22px 0 34px; color: rgba(245, 237, 225, 0.82); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { display: flex; justify-content: center; }

.hero-photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

/* ==========================================================================
   Section shells
   ========================================================================== */

section { padding: 88px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}

/* Purpose ---------------------------------------------------------------- */

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 44px 0 36px;
}

.purpose-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.purpose-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 14px;
}

.purpose-card h3 { margin-bottom: 10px; }
.purpose-card p { opacity: 0.8; font-size: 15px; }

.story-link {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Menu / carousel ---------------------------------------------------------- */

.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 clamp(260px, 30vw, 340px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.product-photo {
  aspect-ratio: 4 / 3;
  background: var(--cream-muted);
  border: 1px dashed rgba(42, 10, 16, 0.18);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(42, 10, 16, 0.45);
  text-align: center;
  padding: 12px;
  cursor: pointer;
}
.product-photo svg { width: 26px; height: 26px; opacity: 0.6; }
.product-photo span { font-size: 12px; }

.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { cursor: pointer; }
.product-body p { font-size: 14.5px; opacity: 0.8; margin: 8px 0 18px; flex: 1; }

.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-family: var(--font-display); font-size: 20px; }

.carousel-arrow {
  position: absolute;
  top: 40%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 5;
}
.carousel-arrow.prev { left: -20px; }
.carousel-arrow.next { right: -20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(42, 10, 16, 0.2);
}
.carousel-dots button[aria-current="true"] {
  background: var(--gold);
  width: 22px;
  border-radius: 999px;
}

/* Reviews ------------------------------------------------------------------ */

.reviews-rating {
  text-align: right;
}
.reviews-rating .score { font-family: var(--font-display); font-size: 34px; color: var(--maroon-hero); }
.reviews-rating .of5 { font-size: 14px; opacity: 0.7; }
.reviews-rating .orders { font-size: 13px; opacity: 0.6; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.review-card .stars { color: var(--gold-bright); letter-spacing: 2px; margin-bottom: 14px; }
.review-card .quote { font-size: 15px; opacity: 0.9; margin-bottom: 22px; }

.review-person { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(42, 10, 16, 0.08); }
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--maroon-dark); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.review-person .name { font-weight: 700; font-size: 14px; }
.review-person .meta { font-size: 12.5px; opacity: 0.6; }

/* Contact -------------------------------------------------------------- */

.contact {
  background: var(--maroon-dark);
  color: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-copy .lead { color: rgba(245, 237, 225, 0.75); margin: 20px 0 30px; }

.contact-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.contact-list a { opacity: 0.85; }
.contact-list a:hover { opacity: 1; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(245, 237, 225, 0.06);
  border: 1px solid rgba(245, 237, 225, 0.25);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(245, 237, 225, 0.45); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }

.form-note { font-size: 13px; opacity: 0.6; }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--maroon-darkest);
  color: var(--cream);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo { display: inline-block; margin-bottom: 14px; }
.footer-brand p { opacity: 0.65; font-size: 14px; max-width: 32ch; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col a { opacity: 0.85; }
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(245, 237, 225, 0.12);
  padding-top: 22px;
  font-size: 13px;
  opacity: 0.55;
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 8, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.25);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(42, 10, 16, 0.1);
}
.cart-header h3 { font-size: 20px; }
.cart-header button { font-size: 22px; line-height: 1; }

.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 18px; }

.cart-empty { opacity: 0.6; font-size: 14px; padding: 30px 0; text-align: center; }

.cart-item { display: flex; gap: 14px; align-items: flex-start; }
.cart-item-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--cream-muted); border: 1px dashed rgba(42,10,16,0.18);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(42, 10, 16, 0.4);
}
.cart-item-thumb svg { width: 18px; height: 18px; }
.cart-item-info { flex: 1; }
.cart-item-info .name { font-weight: 700; font-size: 14.5px; }
.cart-item-info .price { font-size: 13px; opacity: 0.65; margin-top: 2px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(42,10,16,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.cart-item-remove { font-size: 12px; opacity: 0.5; text-decoration: underline; margin-top: 6px; }

.cart-footer { padding: 20px 24px 26px; border-top: 1px solid rgba(42, 10, 16, 0.1); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 16px; }

/* ==========================================================================
   Product modal
   ========================================================================== */

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 5, 8, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.product-modal.is-open { opacity: 1; pointer-events: auto; }

.product-modal-inner {
  background: var(--maroon-dark);
  color: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.product-modal.is-open .product-modal-inner { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 237, 225, 0.1);
  font-size: 18px;
  z-index: 2;
}

.modal-photo {
  background: rgba(245, 237, 225, 0.05);
  border-right: 1px dashed rgba(245, 237, 225, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  color: rgba(245, 237, 225, 0.45);
  text-align: center;
  min-height: 260px;
}
.modal-photo svg { width: 30px; height: 30px; opacity: 0.6; }
.modal-photo span { font-size: 12.5px; }

.modal-body { padding: 40px 34px; }
.modal-body h3 { font-size: 26px; margin-bottom: 12px; }
.modal-body .desc { opacity: 0.8; font-size: 15px; margin-bottom: 26px; }

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.qty-stepper { display: flex; align-items: center; gap: 16px; }
.qty-stepper button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(245, 237, 225, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper span { min-width: 16px; text-align: center; font-weight: 700; }
.modal-price { font-family: var(--font-display); font-size: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-media { order: -1; }
  .hero-photo { max-width: 320px; margin: 0 auto; }

  .purpose-grid,
  .reviews-grid { grid-template-columns: 1fr; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .product-modal-inner { grid-template-columns: 1fr; }
  .modal-photo { border-right: none; border-bottom: 1px dashed rgba(245, 237, 225, 0.15); min-height: 200px; }

  .carousel-arrow { display: none; }

  section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 560px) {
  .header-inner { gap: 14px; }
  .lang-toggle { order: 3; }
  h1 { font-size: 34px; }
}
