/* ============================================================
   Rotary Club of Gately Wine Auction
   Design tokens:
   --wine-deep   #4A0E12   near-black burgundy, backgrounds
   --wine-rich   #7A1F2B   primary brand red
   --gold        #C9A24B   accent, rules, foil
   --gold-light  #E8D9AE   soft gold for tints
   --cream       #F6F1E4   page background, light sections
   --ink         #241512   body text
   --vine        #4B5E3A   muted vineyard green, small accents
   Type: "Cormorant Garamond" (display) + "EB Garamond" (body) + "Jost" (utility/labels)
   Signature element: the "label card" - lot & vintage cards rendered
   like a torn wine bottle label with a deckle edge and foil rule.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Jost:wght@400;500;600&display=swap');

:root {
  --wine-deep: #4A0E12;
  --wine-rich: #7A1F2B;
  --wine-brighter: #96222F;
  --gold: #C9A24B;
  --gold-light: #E8D9AE;
  --cream: #F6F1E4;
  --cream-dim: #EFE7D3;
  --ink: #241512;
  --ink-soft: #5A4A45;
  --vine: #4B5E3A;
  --radius-label: 6px;
  --shadow-soft: 0 12px 30px rgba(30, 8, 10, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3, h4, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--wine-deep);
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

a { color: var(--wine-rich); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Site header / nav ---------- */
.site-header {
  background: var(--wine-deep);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

.brand-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 700;
}

.brand-text span {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

nav.main-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(201,162,75,0.18), transparent 55%),
    linear-gradient(180deg, var(--wine-deep) 0%, var(--wine-rich) 100%);
  color: var(--cream);
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero.has-bg-image {
  background-size: cover;
  background-position: center;
}

.hero.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201,162,75,0.15), transparent 55%),
    linear-gradient(180deg, rgba(74,14,18,0.88) 0%, rgba(122,31,43,0.9) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 40px);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero .eyebrow { color: var(--gold-light); }

.hero p.lede {
  font-size: 1.25rem;
  max-width: 640px;
  color: var(--cream-dim);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(201,162,75,0.35);
}

.hero-meta div {
  font-family: 'Jost', sans-serif;
}

.hero-meta .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  font-weight: 600;
}

.hero-meta .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,241,228,0.65);
}

.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--wine-deep);
  font-weight: 600;
}

.btn-gold:hover { box-shadow: 0 8px 18px rgba(201,162,75,0.35); }

.btn-outline {
  border-color: var(--gold);
  color: var(--gold-light);
  background: transparent;
}

.btn-outline:hover { background: rgba(201,162,75,0.12); }

.btn-wine {
  background: var(--wine-rich);
  color: var(--cream);
}

.cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--cream-dim); }
.section-dark { background: var(--wine-deep); color: var(--cream); }
.section-dark h2, .section-dark .eyebrow { color: var(--gold-light); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.rule-gold {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 14px 0 22px;
  border-radius: 2px;
}

/* ---------- Signature element: Label Card ----------
   Styled like a torn/deckled wine bottle label: rounded shoulders,
   a foil rule under the title, small serif "vintage" stamp corner. */
.label-card {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(122,31,43,0.18);
  border-radius: var(--radius-label) var(--radius-label) 26px 26px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.label-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--wine-rich), var(--gold));
}

.label-card .stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.label-card .media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
  background: var(--cream-dim);
}

.label-card h3 { margin-bottom: 6px; }

.label-card .meta-line {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.label-card .desc { color: var(--ink-soft); font-size: 1rem; }

.label-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(122,31,43,0.25);
  font-family: 'Jost', sans-serif;
}

.label-card .price-row .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--wine-rich);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Year / vintage tabs (for the gallery archive) ---------- */
.vintage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.vintage-tabs a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--wine-deep);
  border: 1.5px solid var(--wine-rich);
  padding: 8px 20px;
  border-radius: 30px;
  transition: background 0.15s ease, color 0.15s ease;
}

.vintage-tabs a:hover { background: rgba(122,31,43,0.08); }

.vintage-tabs a.active {
  background: var(--wine-rich);
  color: var(--cream);
}

.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  box-shadow: var(--shadow-soft);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(30,8,10,0.85), transparent);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  padding: 20px 12px 10px;
}

/* ---------- Gallery collage (masonry) ----------
   Photos and videos keep their natural aspect ratio and flow into
   columns like a real photo collage, rather than being cropped into
   uniform squares. */
.gallery-collage {
  column-count: 3;
  column-gap: 18px;
}

.gallery-collage .gallery-item {
  aspect-ratio: auto;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
}

.gallery-collage .gallery-item img,
.gallery-collage .gallery-item video {
  height: auto;
}

@media (max-width: 900px) {
  .gallery-collage { column-count: 2; }
}
@media (max-width: 560px) {
  .gallery-collage { column-count: 1; }
}

/* ---------- About / stats ---------- */
.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stat {
  font-family: 'Cormorant Garamond', serif;
}

.stat .num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--wine-rich);
  display: block;
}

.stat .lbl {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Sponsors ---------- */
.sponsor-tier-label {
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  text-align: center;
  margin: 34px 0 16px;
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.sponsor-row img {
  max-height: 64px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(15%);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--cream);
  border: 1px solid rgba(122,31,43,0.18);
  border-radius: 8px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=password], textarea, select {
  width: 100%;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  padding: 11px 13px;
  border: 1px solid #cdbfa8;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 20px;
}

textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.alert {
  padding: 14px 18px;
  border-radius: 5px;
  margin-bottom: 22px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
}

.alert-success { background: #E7EFD9; color: var(--vine); border: 1px solid var(--vine); }
.alert-error { background: #F6DEDC; color: var(--wine-rich); border: 1px solid var(--wine-rich); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-deep);
  color: var(--cream-dim);
  padding: 50px 0 30px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer .foot-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(201,162,75,0.25);
  font-size: 0.78rem;
  color: rgba(246,241,228,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Empty states ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-family: 'Jost', sans-serif;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
  }
  nav.main-nav.open { display: flex; }
  .site-header .container { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
