/* ── The Lively Water Club — Bottling ─────────────────────────────────────
   Dark luxury whisky aesthetic: deep warm charcoal, aged-gold accent,
   cream serif display headings, disciplined contrast.
   ------------------------------------------------------------------------ */

:root {
  --bg:        #14110d;
  --bg-2:      #1c1711;
  --bg-3:      #251e16;
  --panel:     #1f1912;
  --line:      rgba(200, 150, 59, 0.18);
  --line-soft: rgba(236, 227, 214, 0.08);

  --gold:        #c8963b;
  --gold-bright: #e6b85c;
  --amber:       #b5651d;

  --text:  #ece3d6;
  --muted: #a3947f;
  --dim:   #6f6557;

  --ok:   #6ec07a;
  --err:  #e07a6e;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* subtle vignette + grain-ish radial warmth */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(200,150,59,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(181,101,29,0.07), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(20, 17, 13, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.brand .glass { font-size: 1.35rem; }
.brand-mark { height: 46px; width: 46px; display: block; }
.brand b {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 0.9rem; letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
#auth-area { display: flex; align-items: center; gap: 14px; }
.hdr-name { color: var(--gold-bright); font-size: 0.9rem; }

/* Mobile hamburger menu */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: 1px solid var(--line-soft);
  border-radius: 8px; cursor: pointer; padding: 0;
}
.hamburger span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text); }
.mobile-menu {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
  background: rgba(20, 17, 13, 0.98); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
}
.mobile-menu.hidden { display: none; }
.mobile-menu a, .mobile-menu button {
  display: block; width: 100%; text-align: left; padding: 14px 0;
  color: var(--text); text-decoration: none; background: none; border: 0;
  border-bottom: 1px solid var(--line-soft); font-size: 1rem;
  font-family: var(--font-body); cursor: pointer;
}
.mobile-menu .hdr-name { color: var(--gold-bright); padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 680px) {
  .hamburger { display: flex; }
  #auth-area { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary, .btn-ghost, .btn-google, .btn-outline {
  font-family: var(--font-body);
  cursor: pointer; border-radius: var(--radius);
  font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  border: none;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1409; font-weight: 600;
  padding: 13px 26px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,150,59,0.25); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); padding: 12px 24px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-ghost {
  background: transparent; border: 1px solid var(--line-soft);
  color: var(--muted); padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line); }

.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #2b2b2b; border: none;
  padding: 12px; font-weight: 600;
}
.btn-google:hover { background: #f1f1f1; }
.g-mark {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  color: #fff; font-weight: 700; font-size: 0.7rem;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 72px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 48px;
}
.hero-copy { min-width: 0; }
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo::before {
  content: ""; position: absolute;
  width: 78%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,59,0.5), rgba(200,150,59,0.12) 45%, transparent 70%);
  filter: blur(45px); z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}
.hero-crest {
  position: relative; z-index: 1;
  width: clamp(240px, 30vw, 360px); height: auto; display: block;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.55));
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.95; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-crest, .hero-logo::before { animation: none; }
}
.hero .eyebrow { animation: rise 0.7s var(--ease) both; }
.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 6vw, 5.2rem);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  animation: rise 0.8s var(--ease) 0.05s both;
}
.hero h1 .accent { color: var(--gold-bright); font-style: italic; }
.hero p.lede {
  max-width: 620px; color: var(--muted);
  font-size: 1.15rem; margin: 0 0 34px;
  animation: rise 0.8s var(--ease) 0.12s both;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; animation: rise 0.8s var(--ease) 0.2s both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* info grid */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.info-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 28px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--line); }
.info-card .ic { font-size: 1.6rem; margin-bottom: 12px; }
.info-card .ic-img { width: 54px; height: 54px; display: block; margin-bottom: 14px; }
.info-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* timeline / steps */
.steps { display: grid; gap: 4px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }
.step .num {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--gold); width: 56px; text-align: center;
}
.step h3 { font-size: 1.3rem; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* ── Opportunity / bottle cards ──────────────────────────────────────── */
.bottles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.bottle {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bottle:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.bottle .b-img {
  height: 200px; background: var(--bg-3);
  display: grid; place-items: center; font-size: 3.2rem;
  border-bottom: 1px solid var(--line-soft);
  background-image: radial-gradient(400px 200px at 50% 0%, rgba(200,150,59,0.14), transparent 70%);
}
.bottle .b-img img { width: 100%; height: 100%; object-fit: cover; }
.bottle .b-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.bottle h3 { font-size: 1.7rem; margin-bottom: 6px; }
.bottle .b-tag { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.bottle .b-desc { color: var(--muted); font-size: 0.97rem; flex: 1; }

.b-specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.b-spec {
  font-size: 0.78rem; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 5px 12px;
}
.b-spec b { color: var(--gold-bright); font-weight: 600; }

.b-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-bright); margin: 14px 0 4px; }
.b-price small { font-family: var(--font-body); font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* stepper */
.stepper-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.stepper-row .lbl { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--gold-bright); font-size: 1.4rem; cursor: pointer; line-height: 1;
  transition: background 0.2s var(--ease);
}
.stepper button:hover { background: var(--bg-2); }
.stepper input {
  width: 64px; height: 40px; text-align: center;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-size: 1.05rem; border-radius: 8px;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* order summary bar */
.order-bar {
  position: sticky; bottom: 0; z-index: 20; margin-top: 40px;
  background: rgba(28, 23, 17, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.order-bar .tot { font-size: 1.05rem; }
.order-bar .tot b { color: var(--gold-bright); font-family: var(--font-display); font-size: 1.5rem; }
.order-note { color: var(--dim); font-size: 0.82rem; margin: 8px 0 0; }

/* ── Forms / fields ──────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text); padding: 12px 14px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.98rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 6, 4, 0.74); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  animation: fade 0.2s var(--ease);
}
.modal-overlay.hidden { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 400px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: rise 0.35s var(--ease);
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; color: var(--dim);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.8rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 22px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--dim); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-3); padding: 4px; border-radius: 8px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; background: none; border: 0; color: var(--muted);
  padding: 9px; border-radius: 6px; cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}
.auth-tab.active { background: var(--bg); color: var(--gold-bright); }
.auth-form .btn-primary { width: 100%; margin-top: 6px; }
.auth-msg { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; min-height: 1.1em; text-align: center; }
.auth-msg.error { color: var(--err); }

/* ── Tables (account / admin) ───────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 8px; overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
th { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
tbody tr:hover { background: rgba(200,150,59,0.04); }
tfoot td { font-weight: 700; color: var(--gold-bright); border-top: 1px solid var(--line); }
.empty { color: var(--dim); padding: 40px; text-align: center; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .grow { flex: 1; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--gold-bright); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0; margin-top: 40px;
  color: var(--dim); font-size: 0.85rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }

.notice {
  background: var(--bg-3); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 16px 20px; color: var(--muted); font-size: 0.92rem; margin: 24px 0;
}
.notice b { color: var(--text); }

.center-narrow { max-width: 520px; margin: 80px auto; text-align: center; }
.hidden { display: none !important; }

@media (max-width: 680px) {
  .nav { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-logo { order: -1; }
}
