/* ==========================================================================
   Cobblestone Brands E-Label
   Mobile-first. Mirrors the Pernod e-label layout with Cobblestone branding.
   ========================================================================== */

:root {
  --brand: #5b6d7f;          /* Cobblestone brand grey */
  --brand-dark: #45525f;     /* darker shade for gradients/borders */
  --brand-darker: #2f3942;
  --ink: #2c2c2c;            /* body text */
  --muted: #5f5f5f;          /* secondary text (e.g. ABV) */
  --link: #0050bd;           /* accent / links (from brand site) */
  --page-bg: #e7e9eb;
  --card-bg: #ffffff;
  --line: #e3e5e8;           /* hairline borders */
  --warn: #c0392b;           /* prohibition-icon red */
  --radius: 6px;
  --maxw: 680px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--page-bg);
  min-height: 100vh;
}

/* ---- Top utility bar: region (left) + language (right) ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.region-select, .lang-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.region-select .flag { font-size: 16px; line-height: 1; }
.lang-select::after { content: "▾"; font-size: 11px; color: var(--muted); }

/* ---- Branded hero: dark cobblestone bg + white logo ---- */
.brandbar {
  background: linear-gradient(rgba(28,33,38,.55), rgba(28,33,38,.7)),
              url("../img/cobblestone-bg.jpg") center/cover no-repeat;
  padding: 22px 16px;
  text-align: center;
}
.brandbar img { width: 210px; max-width: 70%; margin: 0 auto; }

/* ---- Product header ---- */
.product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
}
.product .bottle {
  flex: 0 0 78px;
  width: 78px;
  text-align: center;
}
.product .bottle img { max-height: 130px; margin: 0 auto; width: auto; }
.product .meta { flex: 1 1 auto; text-align: center; }
.product--center { justify-content: center; }
.product .name {
  margin: 0;
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.product .abv { color: var(--muted); font-size: 19px; margin-top: 4px; }

/* ---- Accordion sections (native <details>) ---- */
.section {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin: 10px 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.section > summary {
  list-style: none;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 600;
  user-select: none;
}
.section > summary::-webkit-details-marker { display: none; }
.section > summary .sec-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.section > summary .sec-title { flex: 1 1 auto; }
.section > summary .chev {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.section[open] > summary .chev { transform: rotate(180deg); }
.section .sec-body { padding: 14px 16px; font-size: 14px; }
.section .sec-body p { margin: 0 0 12px; }
.section .sec-body p:last-child { margin-bottom: 0; }

/* ---- Ingredients ---- */
.ingredients-text { margin: 0; }

/* ---- Nutrition table ---- */
.nutri { width: 100%; border-collapse: collapse; font-size: 14px; }
.nutri th, .nutri td { padding: 9px 4px; text-align: right; }
.nutri thead th {
  font-style: italic; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nutri tbody th {
  text-align: left; font-weight: 600;
}
.nutri tbody tr { border-bottom: 1px solid var(--line); }
.nutri tbody tr:last-child { border-bottom: none; }
.nutri .indent th { font-weight: 400; font-style: italic; padding-left: 14px; }
.nutri .indent { border-bottom: none; }

/* ---- Responsible drinking ---- */
.resp-guidelines { margin: 0 0 14px; padding-left: 18px; }
.resp-guidelines li { margin: 2px 0; }
.std-drink {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 4px auto 16px;
  max-width: 440px;
  color: var(--brand-darker);
  font-size: 13px;
}
.std-drink .eq { font-weight: 700; color: var(--brand); }
.std-drink .glass { text-align: center; }
.std-drink .glass .glyph { font-size: 22px; line-height: 1; }
.std-drink .num { font-size: 15px; font-weight: 700; }
.std-drink small { display: block; color: var(--muted); }

.warnings {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 8px 0 6px;
}
.warn-icon {
  position: relative;
  width: 46px; height: 46px;
  border: 3px solid var(--warn);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--brand-darker);
  overflow: hidden;
}
.warn-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 56px; height: 3px; background: var(--warn);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.warn-img { width: 58px; height: 58px; object-fit: contain; }
.warn-caption { text-align: center; margin-top: 6px; }

/* Placeholder / not-yet-available content */
.notice {
  margin: 0 8px 10px;
  background: #fbf3e3;
  border: 1px solid #ecd9ab;
  color: #6b5320;
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 13px;
}
.muted-soon { color: var(--muted); font-style: italic; margin: 0; }

/* ---- About Us (dark cobblestone bg) ---- */
.about {
  background: linear-gradient(rgba(28,33,38,.6), rgba(28,33,38,.75)),
              url("../img/cobblestone-bg.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 22px 16px;
}
.about .brand-name {
  font-size: 22px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin: 0;
}
.about .brand-tagline {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  opacity: .85; margin: 4px 0 18px;
}
.about .company-logo { width: 180px; max-width: 60%; margin: 0 auto; }

/* ---- Footer ---- */
.footer {
  padding: 18px 16px 28px;
  text-align: center;
}
.footer .links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 20px;
  font-size: 12px;
}
.footer .links a { color: var(--muted); text-decoration: none; }
.footer .code { margin-top: 12px; font-size: 11px; color: #9aa0a6; }

/* ---- States: coming-soon / not-found / landing ---- */
.state {
  text-align: center;
  padding: 48px 24px;
}
.state h1 { color: var(--brand); font-size: 22px; margin: 0 0 10px; }
.state p { color: var(--muted); max-width: 360px; margin: 0 auto 18px; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; font-size: 14px;
}
.landing-list { list-style: none; padding: 0; margin: 16px auto 0; max-width: 360px; text-align: left; }
.landing-list a {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin: 8px 0;
  text-decoration: none; color: var(--ink);
}
.landing-list .code { color: var(--muted); font-size: 12px; }

@media (min-width: 560px) {
  .product .bottle { flex-basis: 110px; width: 110px; }
}
