/* =========================================================
   BREWISTA COFFEE HOUSE — stylesheet
   ========================================================= */

:root {
  /* colors */
  --color-bg: #f5efe2;
  --color-bg-alt: #efe7d6;
  --color-cream-card: #fffdf8;
  --color-dark-green: #33401f;
  --color-dark-green-2: #3c4b25;
  --color-green-mid: #5a7245;
  --color-green-pale: #e4e6d3;
  --color-text-dark: #2a2a20;
  --color-text-body: #5c5c4f;
  --color-text-onDark: #f2f0e4;
  --color-text-onDark-muted: #c9cdb8;
  --color-gold: #cda15a;
  --color-gold-dark: #b78a44;
  --color-brown: #241a10;
  --color-brown-2: #2c2015;
  --color-border: #e3dcc9;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  /* shadow */
  --shadow-soft: 0 20px 45px -20px rgba(43, 36, 20, 0.25);
  --shadow-card: 0 15px 35px -18px rgba(43, 36, 20, 0.3);

  /* typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Sacramento', cursive;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--color-text-dark); }
p { margin: 0; }
button { font-family: var(--font-body); cursor: pointer; }

.page-shell { position: relative; z-index: 1; }

/* ---------- decorative background blobs ---------- */
.bg-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.bg-blob--tl {
  top: 40px;
  left: 0;
  width: 130px;
  height: 420px;
  background: var(--color-dark-green);
  border-radius: 0 120px 120px 0;
  opacity: 0.95;
}
.bg-blob--tr {
  top: 0;
  right: 0;
  width: 210px;
  height: 340px;
  background: var(--color-dark-green);
  border-radius: 0 0 0 160px;
  opacity: 0.95;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow .2s ease;
}
.btn svg { flex-shrink: 0; }
.btn--dark {
  background: var(--color-dark-green);
  color: var(--color-text-onDark);
}
.btn--dark:hover { background: var(--color-dark-green-2); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--color-dark-green);
  border-color: #cfc7ac;
}
.btn--outline:hover { background: rgba(51,64,31,0.06); transform: translateY(-2px); }
.btn--outline-light {
  background: transparent;
  color: var(--color-text-onDark);
  border-color: rgba(242,240,228,0.4);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn--icon svg { background: rgba(255,255,255,0.14); border-radius: 50%; padding: 3px; }
.btn--dark.btn--icon svg { background: rgba(255,255,255,0.16); }

/* ---------- eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.eyebrow i { display: inline-block; width: 24px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--color-text-onDark-muted); }
.eyebrow--dark { color: var(--color-green-mid); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  padding: 24px var(--space-6) 0;
  position: relative;
  z-index: 20;
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  background: var(--color-cream-card);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 28px;
  box-shadow: var(--shadow-soft);
}
.logo { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo-script {
  font-family: var(--font-script);
  font-size: 32px;
  color: var(--color-text-dark);
}
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--color-text-body);
  margin-left: 2px;
}
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-dark);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: var(--color-green-mid); }
.main-nav a.active { color: var(--color-green-mid); border-color: var(--color-green-mid); }
.order-online-btn { padding: 13px 26px; }
.order-online-btn svg { background: transparent; padding: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--color-dark-green);
  border: none;
  border-radius: 50%;
  padding: 0;
  margin-left: 10px;
}
.nav-toggle span { width: 16px; height: 2px; background: #fff; margin: 0 auto; border-radius: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 60px var(--space-6) 0; position: relative; }
.hero-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: var(--space-5);
}
.hero-copy h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--color-green-mid); font-style: normal; }
.hero-text {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-body);
  max-width: 380px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.social-row { display: flex; gap: 12px; margin-top: 34px; }
.social-row a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-dark-green);
  color: var(--color-text-onDark);
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}
.social-row a:hover { transform: translateY(-3px); background: var(--color-dark-green-2); }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4/3.2;
  object-fit: cover;
  border-radius: 12px;
  background: var(--color-bg-alt);
}
.badge-circle {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.badge-circle span {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-text-dark);
  line-height: 1.4;
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- features card ---------- */
.features-card {
  max-width: var(--container-w);
  margin: 56px auto 0;
  background: var(--color-cream-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 44px var(--space-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  position: relative;
  z-index: 5;
}
.feature { text-align: center; padding: 0 8px; }
.feature-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--color-green-pale);
  color: var(--color-dark-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 13px; color: var(--color-text-body); line-height: 1.6; }

/* =========================================================
   COLLECTION
   ========================================================= */
.collection { padding: var(--space-8) var(--space-6) 0; }
.collection-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  background: var(--color-dark-green);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  align-items: stretch;
  overflow: hidden;
}
.collection-intro {
  padding: var(--space-6) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.collection-intro h2 {
  color: var(--color-text-onDark);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
}
.collection-intro p {
  color: var(--color-text-onDark-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}
.collection-intro .btn { margin-top: 28px; align-self: flex-start; }

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 22px 22px 0;
}
.product-card {
  background: var(--color-cream-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-img { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 16px 18px 20px; }
.product-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.product-info p { font-size: 12.5px; color: var(--color-text-body); line-height: 1.5; min-height: 34px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--font-display); font-weight: 700; color: var(--color-gold-dark); font-size: 16px; }
.add-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-dark-green);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.add-btn:hover { background: var(--color-dark-green-2); transform: scale(1.1); }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-choose {
  max-width: var(--container-w);
  margin: var(--space-8) auto 0;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: var(--space-5);
  align-items: center;
}
.why-intro h2 { font-size: 30px; line-height: 1.25; font-weight: 700; }
.why-intro p { font-size: 14px; color: var(--color-text-body); line-height: 1.7; margin: 16px 0 26px; max-width: 300px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-item { text-align: center; }
.why-blob {
  width: 78px; height: 78px;
  margin: 0 auto 18px;
  border-radius: 46% 54% 58% 42% / 50% 45% 55% 50%;
  background: var(--color-bg-alt);
  color: var(--color-dark-green);
  display: flex; align-items: center; justify-content: center;
}
.why-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: 12.5px; color: var(--color-text-body); line-height: 1.6; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter { padding: var(--space-8) var(--space-6) 0; }
.newsletter-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  background: var(--color-dark-green);
  border-radius: var(--radius-xl);
  padding: 26px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.newsletter-media { position: relative; width: 150px; flex-shrink: 0; }
.newsletter-media img { width: 150px; height: 110px; object-fit: cover; border-radius: var(--radius-md); background: var(--color-dark-green-2); overflow: hidden; display: block; }
.off-badge {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--color-cream-card);
  color: var(--color-text-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.off-badge span { font-family: var(--font-display); font-size: 15px; line-height: 1; }
.off-badge small { font-size: 6.5px; line-height: 1.3; font-weight: 600; }

.newsletter-copy h2 { color: var(--color-text-onDark); font-size: 25px; line-height: 1.3; font-weight: 700; margin: 6px 0 10px; max-width: 380px; }
.newsletter-copy p { color: var(--color-text-onDark-muted); font-size: 13px; line-height: 1.6; max-width: 340px; }

.newsletter-form { width: 320px; }
.form-row {
  display: flex;
  background: var(--color-cream-card);
  border-radius: var(--radius-pill);
  padding: 5px;
  gap: 4px;
}
.form-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.form-row button {
  border: none;
  background: var(--color-gold);
  color: var(--color-text-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  transition: background .2s ease;
  white-space: nowrap;
}
.form-row button:hover { background: var(--color-gold-dark); }
.newsletter-form small { display: block; margin-top: 10px; color: var(--color-text-onDark-muted); font-size: 11px; text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: var(--space-8);
  background: var(--color-brown);
  color: #cabca9;
  border-radius: 60px 60px 0 0;
  padding: var(--space-7) var(--space-6) 0;
}
.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 0.8fr;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
}
.footer-brand .logo-script { color: #fff; font-size: 30px; }
.footer-brand .logo-sub { color: #b6a894; }
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.7; max-width: 220px; color: #a99b87; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 13.5px; color: #a99b87; transition: color .2s ease; }
.footer-col ul a:hover { color: var(--color-gold); }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; color: #a99b87; font-size: 13px; line-height: 1.5; }
.contact-list svg { flex-shrink: 0; margin-top: 3px; }
.contact-list a { color: #a99b87; }
.contact-list a:hover { color: var(--color-gold); }

.social-row--footer { display: flex; gap: 10px; }
.social-row--footer a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #cabca9;
  transition: background .2s ease, color .2s ease;
}
.social-row--footer a:hover { background: var(--color-gold); color: var(--color-brown); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 20px 0;
  font-size: 12.5px;
  color: #a99b87;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Laptop */
@media (max-width: 1199px) {
  :root { --container-w: 960px; }
  .site-header, .hero, .collection, .newsletter { padding-left: var(--space-5); padding-right: var(--space-5); }
  .why-choose { padding-left: var(--space-5); padding-right: var(--space-5); }
  .hero-copy h1 { font-size: 38px; }
  .main-nav ul { gap: 22px; }
  .bg-blob--tl { width: 90px; height: 320px; }
  .bg-blob--tr { width: 150px; height: 240px; }
}

/* Tablet */
@media (max-width: 991px) {
  :root { --container-w: 100%; }
  .site-header { padding: 16px var(--space-4) 0; }
  .header-inner { padding: 10px 10px 10px 20px; }
  .logo-script { font-size: 26px; }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: var(--color-cream-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 18px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .order-online-btn span, .order-online-btn { }
  .order-online-btn { padding: 11px 18px; font-size: 11px; }
  .nav-toggle { display: flex; }

  .hero { padding: 40px var(--space-4) 0; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-6); text-align: center; }
  .hero-copy h1 { font-size: 36px; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .social-row { justify-content: center; }
  .hero-media { order: -1; }
  .badge-circle { top: -6%; right: 4%; width: 92px; height: 92px; }

  .features-card { grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); padding: 34px var(--space-4); margin-top: 40px; }

  .collection { padding-top: var(--space-6); }
  .collection-inner { grid-template-columns: 1fr; }
  .collection-intro { padding: 40px var(--space-4) 10px; text-align: center; align-items: center; }
  .collection-intro p { margin-left: auto; margin-right: auto; }
  .collection-intro .btn { align-self: center; }
  .product-cards { grid-template-columns: repeat(3, 1fr); padding: 22px var(--space-4) var(--space-5); }

  .why-choose { grid-template-columns: 1fr; padding: 0 var(--space-4); margin-top: var(--space-6); text-align: center; }
  .why-intro p { margin-left: auto; margin-right: auto; }
  .why-intro .btn { margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(4, 1fr); margin-top: var(--space-5); }

  .newsletter { padding: var(--space-6) var(--space-4) 0; }
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .newsletter-media { margin: 0 auto; }
  .newsletter-copy h2, .newsletter-copy p { max-width: 100%; }
  .newsletter-form { width: 100%; max-width: 400px; margin: 0 auto; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .footer-brand { grid-column: 1 / -1; }

  .bg-blob { display: none; }
}

/* Mobile */
@media (max-width: 599px) {
  .hero-copy h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .features-card { grid-template-columns: 1fr; }

  .product-cards { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  .newsletter-inner { padding: 26px 18px; }
  .form-row { flex-direction: column; background: transparent; padding: 0; gap: 10px; }
  .form-row input { background: var(--color-cream-card); border-radius: var(--radius-pill); padding: 12px 16px; }
  .form-row button { padding: 12px 16px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .contact-list li { justify-content: center; }
  .social-row--footer { justify-content: center; }

  .site-footer { border-radius: 36px 36px 0 0; }
}
