/* ============================================================
   The Montréal Wine Social Club — site stylesheet
   ============================================================ */

:root {
  --wine: #6b1f2e;
  --wine-dark: #4d1621;
  --wine-light: #8e2f41;
  --blush: #f6e8e8;
  --cream: #faf6f0;
  --paper: #fffdf9;
  --ink: #2b2024;
  --muted: #6e5f64;
  --gold: #c9a227;
  --gold-soft: #e7d9a8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(77, 22, 33, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16.5px;
}

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

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107, 31, 46, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

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

.brand svg { width: 38px; height: 38px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
}

.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover { background: var(--blush); color: var(--wine); }

.main-nav a.active { color: var(--wine); font-weight: 700; }

.main-nav a.nav-cta {
  background: var(--wine);
  color: #fff;
  margin-left: 6px;
}

.main-nav a.nav-cta:hover { background: var(--wine-light); color: #fff; }

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-left: 8px;
  padding: 7px 12px !important;
  border: 1px solid rgba(107, 31, 46, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wine-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(160deg, var(--wine-dark) 0%, var(--wine) 55%, #7d2a3b 100%);
  color: #fdf3ee;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 92px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 54ch;
  color: #f4e2dc;
  margin-bottom: 32px;
}

.hero-img {
  justify-self: center;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2.5deg);
  max-width: 340px;
  border: 6px solid rgba(255, 253, 249, 0.92);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary { background: var(--gold); color: var(--wine-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

.btn-outline {
  border: 2px solid rgba(253, 243, 238, 0.7);
  color: #fdf3ee;
  margin-left: 12px;
}
.btn-outline:hover { background: rgba(253, 243, 238, 0.12); }

.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-light); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--paper); }

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

.section-head .kicker,
.kicker-dark {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--wine-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

h3 {
  font-family: var(--font-display);
  color: var(--wine-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.section p { color: var(--muted); }
.section p strong { color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: var(--paper);
  border: 1px solid rgba(107, 31, 46, 0.1);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.section.alt .card { background: var(--cream); }

.card .emoji { font-size: 1.9rem; margin-bottom: 12px; display: block; }

/* ---------- Event cards ---------- */
.event-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 26px;
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(107, 31, 46, 0.12);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.event-date {
  text-align: center;
  background: var(--wine);
  color: #fff;
  border-radius: 12px;
  padding: 14px 8px;
}

.event-date .day { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-soft); }

.event-card h3 { margin-bottom: 6px; }
.event-meta { font-size: 0.92rem; color: var(--muted); }
.event-meta strong { color: var(--wine); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blush);
  color: var(--wine);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

/* ---------- Past events timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 28px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--wine));
  border-radius: 2px;
}

.timeline li { position: relative; padding: 0 0 30px 18px; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wine);
  border: 3px solid var(--gold-soft);
}

.timeline .t-date { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { font-size: 1.15rem; margin: 2px 0 2px; }
.timeline p { font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid rgba(107, 31, 46, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
  max-width: 620px;
}

.form-row { margin-bottom: 20px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: var(--wine-dark);
}

label .req { color: var(--wine-light); }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(107, 31, 46, 0.22);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--paper);
  border: 1px solid rgba(107, 31, 46, 0.12);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
}

details.faq summary {
  font-weight: 700;
  color: var(--wine-dark);
  cursor: pointer;
  font-size: 1.02rem;
}

details.faq[open] summary { margin-bottom: 10px; }
details.faq p { color: var(--muted); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.post-card {
  background: var(--paper);
  border: 1px solid rgba(107, 31, 46, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card .post-top {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-light));
  color: var(--gold-soft);
  font-size: 2.2rem;
  padding: 30px;
  font-family: var(--font-display);
}

.post-card .post-body { padding: 26px 28px 30px; }
.post-card h3 a { text-decoration: none; color: var(--wine-dark); }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { font-size: 0.95rem; color: var(--muted); }

.article {
  max-width: 760px;
}

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--wine-dark);
  line-height: 1.15;
  margin-bottom: 14px;
}

.article .article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }

.article h2 { font-size: 1.55rem; margin-top: 40px; }
.article h3 { margin-top: 26px; }
.article p, .article li { color: #4a3e43; margin-bottom: 16px; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 18px; }

.article blockquote {
  border-left: 4px solid var(--gold);
  background: var(--blush);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--wine-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: #fdf3ee;
  text-align: center;
  padding: 70px 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #f0d9d3; max-width: 60ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-dark);
  color: #e8cfc9;
  padding: 56px 0 30px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.site-footer a { color: #e8cfc9; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #c9a8a1;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--wine-dark), var(--wine));
  color: #fdf3ee;
  padding: 56px 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.page-hero p { color: #f0d9d3; max-width: 64ch; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-img { transform: none; max-width: 280px; }
  .grid-2, .grid-3, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .event-card { grid-template-columns: 90px 1fr; }
  .event-card .event-cta { grid-column: 2; justify-self: start; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid rgba(107, 31, 46, 0.15);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.nav-cta { margin-left: 0; text-align: center; }
}
