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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:     #080808;
  --grey-900:  #111111;
  --grey-800:  #1c1c1c;
  --grey-600:  #444444;
  --grey-400:  #888888;
  --grey-200:  #bbbbbb;
  --white:     #f0ede8;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --tracking:  0.18em;
  --tracking-wide: 0.28em;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

section { scroll-snap-align: start; }

a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.u-sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.22,1,0.36,1) forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.5s; }

/* ══════════════════════════════════════
   SITE HEADER / NAV
══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  height: 80px;
  overflow: hidden;
}

.nav-wordmark {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.3s;
}
.nav-wordmark:hover { color: var(--white); }

.nav-links {
  display: flex;
  gap: clamp(1.1rem, 2vw, 2.5rem);
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* ══════════════════════════════════════
   HERO (startsida - sektion 1)
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
}

.hero-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 7vw, 128px);
  max-width: 26vw;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.hero-logo-link:hover {
  transform: translateY(-2px) scale(1.04);
  opacity: 0.9;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14vh;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--grey-600));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.8; }
}

/* ── Sektion 2: text ── */
.landing-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  background: var(--black);
}

.landing-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, #1a1a1a 0%, var(--black) 100%);
  pointer-events: none;
}

.landing-content-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* ══════════════════════════════════════
   LANDING PAGE (används av thank-you & dashboard)
══════════════════════════════════════ */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, #1a1a1a 0%, var(--black) 100%);
  pointer-events: none;
}

.landing-inner { position: relative; z-index: 1; }

.logo-lockup {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-placeholder {
  width: 72px;
  height: 72px;
  border: 1px solid var(--grey-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-600);
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.landing-eyebrow {
  font-size: 0.65rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-400);
}

.landing-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: var(--white);
}

.landing-subtitle {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 300;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-top: 0.5rem;
}

.landing-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--grey-600), transparent);
  margin: 2.5rem auto;
}

.landing-teaser {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--grey-200);
  max-width: 480px;
  line-height: 1.8;
  margin: 0 auto;
}

.landing-cta {
  margin-top: 3.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: all 0.35s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  font-weight: 300;
}

.btn-outline {
  border: 1px solid var(--grey-600);
  color: var(--grey-200);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost {
  color: var(--grey-400);
  background: transparent;
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-800);
}
.btn-ghost:hover {
  color: var(--grey-200);
  border-color: var(--grey-600);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  letter-spacing: var(--tracking);
}
.btn-primary:hover {
  background: var(--grey-200);
}

/* ══════════════════════════════════════
   PAGE WRAPPER (inner pages)
══════════════════════════════════════ */
.page-wrap {
  min-height: 100vh;
  padding: 10rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 560px;
}

.page-eyebrow {
  font-size: 0.65rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1.5rem;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-intro {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--grey-400);
  line-height: 1.9;
}

/* ══════════════════════════════════════
   RESERVATION FORM
══════════════════════════════════════ */
.form-wrap {
  width: 100%;
  max-width: 560px;
}

.form-notice {
  border: 1px solid var(--grey-800);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.form-notice p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  line-height: 1.8;
  text-transform: uppercase;
}

.form-notice strong {
  font-weight: 400;
  color: var(--grey-200);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 0.75rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-800);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--grey-400);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-600);
}

.form-select {
  cursor: pointer;
  color: var(--grey-400);
}
.form-select option {
  background: var(--grey-900);
  color: var(--white);
}

.form-textarea {
  resize: none;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-footer {
  margin-top: 3rem;
  text-align: center;
}

.form-footer-note {
  font-size: 0.7rem;
  color: var(--grey-600);
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* ══════════════════════════════════════
   MEMBERS / LOGIN
══════════════════════════════════════ */
.login-wrap {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.members-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 3rem;
}

.members-badge::before,
.members-badge::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--grey-800);
}

.login-form .form-group { text-align: left; }

.login-submit {
  width: 100%;
  margin-top: 1rem;
}

.login-alt {
  margin-top: 2.5rem;
  font-size: 0.7rem;
  color: var(--grey-600);
  letter-spacing: 0.06em;
}
.login-alt a {
  color: var(--grey-400);
  border-bottom: 1px solid var(--grey-800);
  transition: color 0.3s, border-color 0.3s;
}
.login-alt a:hover {
  color: var(--white);
  border-color: var(--grey-600);
}

/* ══════════════════════════════════════
   MEMBERS DASHBOARD
══════════════════════════════════════ */
.dashboard-wrap {
  width: 100%;
  max-width: 760px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--grey-800);
  border: 1px solid var(--grey-800);
  margin-top: 3rem;
}

.dashboard-card {
  background: var(--grey-900);
  padding: 2.5rem 2rem;
}

.dashboard-card-label {
  font-size: 0.6rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 1rem;
}

.dashboard-card-value {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--grey-400);
  font-style: italic;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--grey-900);
  margin-top: auto;
}

.site-footer p {
  font-size: 0.65rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--grey-600);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
/* ══════════════════════════════════════
   LOGO
══════════════════════════════════════ */
.logo-img {
  height: 90px;
  width: auto;
  max-width: 26px;
  display: block;
  margin: 0 auto;
}


/* ══════════════════════════════════════
   FORM EVENT DISPLAY
══════════════════════════════════════ */
.form-event-display {
  border-bottom: 1px solid var(--grey-800);
  padding: 0.75rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--grey-200);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════
   DATES PAGE
══════════════════════════════════════ */
.dates-wrap {
  width: 100%;
  max-width: 980px;
}

.dates-section + .dates-section {
  margin-top: 5rem;
}

.dates-history-label {
  font-size: 0.6rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grey-900);
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dates-grid-featured {
  grid-template-columns: 1fr;
}

.event-card {
  min-height: 220px;
  border: 1px solid var(--grey-800);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255,255,255,0.035), transparent 62%),
    var(--grey-900);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--grey-600), transparent);
  opacity: 0.35;
}

.event-card:hover {
  border-color: var(--grey-600);
  transform: translateY(-3px);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255,255,255,0.055), transparent 62%),
    var(--grey-900);
}

.event-card-featured {
  min-height: 280px;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 2.5rem;
}

.event-card-label {
  font-size: 0.58rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 1.4rem;
}

.event-card-date {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

.event-card-city {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--grey-400);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.event-card-theme {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--grey-200);
  max-width: 420px;
}

.event-card-cta {
  margin-top: 2rem;
}

/* ══════════════════════════════════════
   LOGIN ERROR
══════════════════════════════════════ */
.login-error {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  text-align: center;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 640px) {
  .site-nav { padding: 1.25rem 1.5rem; }
  .nav-wordmark { font-size: 0.65rem; }
  .nav-links { gap: 0.75rem 1rem; justify-content: flex-end; }
  .nav-links a { font-size: 0.6rem; }
  .hero { padding: 6rem 1.5rem 4.5rem; }
  .hero-logo-link { width: clamp(48px, 16vw, 86px); max-width: 34vw; }
  .hero-logo { max-height: 14vh; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .landing-cta { flex-direction: column; align-items: center; }
  .dates-wrap { max-width: 100%; }
  .dates-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 190px; padding: 1.8rem 1.5rem; }
  .event-card-featured { min-height: 250px; }
}


/* ══════════════════════════════════════
   WINE LIST PAGE
══════════════════════════════════════ */
.wine-page .page-header {
  max-width: 720px;
}

.wine-intro {
  width: 100%;
  max-width: 760px;
  margin: -1rem auto 4rem;
  text-align: center;
  border: 1px solid var(--grey-900);
  padding: 2rem;
}

.wine-intro p,
.wine-note p {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-style: italic;
  color: var(--grey-300, var(--grey-200));
  line-height: 1.85;
}

.wine-grid {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--grey-800);
  border: 1px solid var(--grey-800);
}

.wine-card {
  background: var(--black);
  min-height: 280px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.35s, transform 0.35s;
}

.wine-card:hover {
  background: var(--grey-900);
}

.wine-card-type {
  font-size: 0.6rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 1.5rem;
}

.wine-card-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.wine-card-meta {
  font-size: 0.62rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--grey-500, var(--grey-400));
  margin-bottom: 1.5rem;
}

.wine-card-pairing {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--grey-200);
  line-height: 1.8;
}

.wine-note {
  width: 100%;
  max-width: 760px;
  margin: 4rem auto 0;
  text-align: center;
}

.wine-note .btn {
  margin-top: 2rem;
}


@media (max-width: 760px) {
  .wine-grid {
    grid-template-columns: 1fr;
  }

  .wine-card {
    min-height: auto;
    padding: 2rem 1.5rem;
  }
}
