:root {
  --espresso: #1c120c;
  --coffee: #2c1c14;
  --mocha: #5c3a24;
  --cocoa: #7a4a2e;
  --caramel: #c4a06a;
  --gold: #d8b57a;
  --gold-soft: #e8d4ae;
  --cream: #f3e7d8;
  --ivory: #faf4ec;
  --foam: #fffaf4;
  --terracotta: #b45a38;
  --sage: #6f7d68;
  --ink: #2a1c14;
  --muted: #7a6758;
  --line: rgba(44, 28, 20, 0.12);
  --shadow: 0 18px 50px rgba(28, 18, 12, 0.16);
  --radius: 22px;
  --header: 84px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.solid {
  background: rgba(250, 244, 236, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(28, 18, 12, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.site-header.is-scrolled .logo,
.site-header.solid .logo {
  color: var(--espresso);
}

.logo svg {
  width: 42px;
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 244, 236, 0.88);
  position: relative;
}

.site-header.is-scrolled .nav-links a,
.site-header.solid .nav-links a {
  color: var(--mocha);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn,
.cart-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(216, 181, 122, 0.45);
  background: transparent;
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.site-header.is-scrolled .icon-btn,
.site-header.is-scrolled .cart-btn,
.site-header.solid .icon-btn,
.site-header.solid .cart-btn {
  color: var(--espresso);
  border-color: var(--line);
  background: var(--foam);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--terracotta);
  color: white;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(28, 18, 12, 0.55), rgba(28, 18, 12, 0.72)),
    url("https://images.unsplash.com/photo-1501339847302-ac426a4ed7c5?w=1920&q=80") center/cover no-repeat;
  color: var(--ivory);
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header) + 40px) 20px 80px;
  position: relative;
}

.hero-kicker {
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(4.2rem, 11vw, 8.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 0.9;
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-size: 0.42em;
  letter-spacing: 0.34em;
  margin-top: 12px;
  color: var(--gold-soft);
}

.hero p {
  max-width: 540px;
  margin: 28px auto 36px;
  color: rgba(250, 244, 236, 0.84);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--espresso);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(250, 244, 236, 0.45);
}

.btn-dark {
  background: var(--espresso);
  color: var(--ivory);
}

.btn-ghost {
  background: transparent;
  color: var(--mocha);
  border: 1px solid var(--line);
}

.section {
  padding: 96px 0;
}

.section-cream {
  background: var(--cream);
}

.section-dark {
  background: var(--espresso);
  color: var(--ivory);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 42px;
}

.eyebrow {
  color: var(--terracotta);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.section-dark .eyebrow {
  color: var(--gold);
}

h2,
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.lede {
  max-width: 420px;
  color: var(--muted);
}

.offer-grid,
.product-grid,
.review-grid,
.info-grid {
  display: grid;
  gap: 22px;
}

.offer-grid {
  grid-template-columns: 1.3fr 0.7fr;
}

.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  background: var(--coffee) center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 32px;
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 6, 0.78));
}

.offer-card > * {
  position: relative;
}

.offer-card.tall {
  background-image: url("https://images.unsplash.com/photo-1461023058943-07fcbe16d735?w=1200&q=80");
}

.offer-stack {
  display: grid;
  gap: 22px;
}

.offer-card.small {
  min-height: 199px;
}

.offer-card.one {
  background-image: url("https://images.unsplash.com/photo-1509365465985-1138a809d1a7?w=900&q=80");
}

.offer-card.two {
  background-image: url("https://images.unsplash.com/photo-1517701604599-bb29b565090c?w=900&q=80");
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(216, 181, 122, 0.2);
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 12px;
}

.offer-card h3 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
}

.offer-card p {
  color: rgba(255, 250, 244, 0.82);
  max-width: 420px;
  margin-top: 8px;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mocha);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.order-layout .product-grid {
  grid-template-columns: repeat(2, 1fr);
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.product-body .btn {
  width: 100%;
  margin-top: 6px;
}

.section-dark .hours-list,
.section-dark .hours-list div {
  border-color: rgba(250, 244, 236, 0.12);
}

.section-dark .hours-list strong {
  color: var(--gold-soft);
}

.product-card {
  background: var(--foam);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 230px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--espresso);
  color: var(--gold);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge.offer {
  background: var(--terracotta);
  color: white;
}

.badge.popular {
  background: var(--gold);
  color: var(--espresso);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-body p {
  color: var(--muted);
  font-size: 0.94rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.price s {
  color: var(--muted);
  font-size: 1rem;
  margin-right: 8px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-row button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.qty-row input {
  width: 42px;
  text-align: center;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 32px;
}

.hours-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  background: var(--foam);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.stars {
  color: var(--caramel);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.review-card p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.45;
  margin-bottom: 22px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer strong {
  display: block;
}

.reviewer span,
.muted,
.tiny {
  color: var(--muted);
  font-size: 0.86rem;
}

.map-wrap {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.page-hero {
  padding: calc(var(--header) + 72px) 0 56px;
  background:
    linear-gradient(180deg, rgba(28, 18, 12, 0.72), rgba(28, 18, 12, 0.55)),
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80") center/cover no-repeat;
  color: var(--ivory);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 500;
}

.page-hero p {
  max-width: 560px;
  margin: 14px auto 0;
  color: rgba(250, 244, 236, 0.8);
}

.form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mocha);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--foam);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.panel {
  background: var(--foam);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.summary-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.totals {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals .grand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.site-footer {
  background: var(--coffee);
  color: var(--cream);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.site-footer a,
.site-footer p {
  color: rgba(243, 231, 216, 0.78);
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter input {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.12);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.86rem;
  color: rgba(243, 231, 216, 0.55);
}

.cart-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 6, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}

.cart-overlay.open,
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--ivory);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head,
.modal-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-foot {
  padding: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 48px 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--espresso);
  color: var(--ivory);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(480px, calc(100% - 32px));
  background: var(--ivory);
  border-radius: 24px;
  transform: translate(-50%, -46%);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.modal-overlay.open + .modal-card,
.modal-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.modal-card .body {
  padding: 24px;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.sticky-summary {
  position: sticky;
  top: calc(var(--header) + 18px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.08);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
}

.success {
  display: none;
  padding: 16px;
  border-radius: 14px;
  background: #e8f3e4;
  color: #2f5d32;
}

.success.show {
  display: block;
}

.mobile-nav {
  display: none;
}

.mobile-nav a {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--mocha);
}

@media (max-width: 1100px) {
  .product-grid,
  .three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .offer-grid,
  .review-grid,
  .split,
  .checkout-layout,
  .order-layout,
  .form-row,
  .footer-grid,
  .stats,
  .three-col {
    grid-template-columns: 1fr;
  }

  .split img,
  .map-wrap iframe {
    height: 320px;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    inset: var(--header) 16px auto;
    background: var(--ivory);
    padding: 24px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 120;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .product-grid,
  .order-layout .product-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: 0.04em;
    font-size: 3.6rem;
  }
}
