/* ==========================================================
   Public site styling — every color reads from CSS variables
   set inline in the layout from the database. Never hard-code
   brand colors elsewhere; add new variables instead.
   ========================================================== */

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-wordmark, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

a { text-decoration: none; }

/* ---- Navbar ---- */
.site-navbar {
  background: var(--color-background);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: .85rem 0;
}
.brand-wordmark { color: var(--color-primary); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }
.site-navbar .nav-link { color: var(--color-text); font-weight: 500; padding: .5rem 1rem; }
.site-navbar .nav-link:hover { color: var(--color-primary); }

.btn-brand {
  background-color: var(--color-button);
  border-color: var(--color-button);
  color: #fff;
  font-weight: 600;
  padding: .65rem 1.6rem;
  border-radius: 2px;
  transition: opacity .2s ease, transform .2s ease;
}
.btn-brand:hover { opacity: .88; color: #fff; transform: translateY(-1px); }

.btn-outline-brand {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: .6rem 1.5rem;
  border-radius: 2px;
}
.btn-outline-brand:hover { background: var(--color-primary); color: #fff; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), var(--color-primary);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 7rem 0 6rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 640px; margin: 0 auto 2rem; }

/* ---- Sections ---- */
section { padding: 5rem 0; }
.section-eyebrow { color: var(--color-accent); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; }
.bg-secondary-tint { background-color: var(--color-secondary); }

/* ---- Cards ---- */
.wine-card { border: none; border-radius: 4px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; background: #fff; }
.wine-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,.1); }
.wine-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.wine-card .price { color: var(--color-primary); font-weight: 700; }
.wine-card .category-tag { color: var(--color-accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.category-pill {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 30px;
  padding: .4rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--color-text);
}
.category-pill.active, .category-pill:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.testimonial-card { background: #fff; border-radius: 6px; padding: 2rem; height: 100%; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.testimonial-card .stars { color: var(--color-accent); }

/* ---- Gallery ---- */
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* ---- Footer ---- */
.site-footer { background: var(--color-text); color: rgba(255,255,255,.75); }
.site-footer .footer-heading { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.site-footer .brand-wordmark { color: #fff; }
.site-footer a.social-link { color: rgba(255,255,255,.75); }
.site-footer a.social-link:hover { color: var(--color-accent); }

/* ---- WhatsApp FAB ---- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* ---- Wine details ---- */
.wine-gallery-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.wine-gallery-thumb.active { border-color: var(--color-primary); }

/* ---- Mobile ---- */
@media (max-width: 767px) {
  section { padding: 3rem 0; }
  .hero { padding: 4.5rem 0 3.5rem; }
}
