/*
 * Showidawir – Web Base Styles
 * Designed to match the Beisl-Musical screen design / poster language.
 * Fonts are free Google Fonts. The exact Showidawir logo should be used as an image asset.
 */

@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700;800;900&family=Courgette&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Brand / palette */
  --sw-green-950: #091f14;
  --sw-green-900: #0e2c17; /* sampled from final logo */
  --sw-green-800: #183d26;
  --sw-green-700: #2f5738;
  --sw-brown-900: #40200f;
  --sw-brown-800: #653614; /* sampled from final logo */
  --sw-brown-700: #7a4526;
  --sw-gold-500: #eeb864;  /* sampled from final logo */
  --sw-gold-600: #d59a3d;
  --sw-cream-50: #fffaf0;
  --sw-cream-100: #f5eee2;
  --sw-cream-200: #eae2d4; /* sampled from final logo */
  --sw-ink: #241810;
  --sw-white: #ffffff;
  --sw-danger: #8b2e2e;

  /* Semantic colors */
  --color-bg: var(--sw-cream-50);
  --color-surface: var(--sw-white);
  --color-text: var(--sw-ink);
  --color-muted: #6f665e;
  --color-primary: var(--sw-green-900);
  --color-primary-hover: var(--sw-green-800);
  --color-accent: var(--sw-gold-500);
  --color-border: #d8c9b2;

  /* Typography */
  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Courgette', 'Brush Script MT', cursive;

  /* Sizing */
  --container: 1180px;
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 4px 16px rgb(18 35 25 / 8%);
  --shadow-md: 0 16px 40px rgb(16 32 23 / 16%);
  --shadow-dark: 0 20px 60px rgb(0 0 0 / 28%);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

/* ---------- Layout ---------- */
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--compact { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section--dark { color: var(--sw-cream-50); background: var(--sw-green-950); }
.section--cream { background: var(--sw-cream-100); }
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.stack > * + * { margin-top: var(--space-4); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(9 31 20 / 94%);
  color: var(--sw-cream-50);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(238 184 100 / 18%);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo { width: clamp(140px, 18vw, 220px); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
  position: relative;
  font-weight: 600;
  color: rgb(255 250 240 / 88%);
  transition: color var(--transition);
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--sw-gold-500); }
.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.55rem;
  height: 2px;
  background: var(--sw-gold-500);
}

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sw-gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.h1, .h2, .h3,
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.04;
  color: inherit;
}
.h1, h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 900; letter-spacing: -0.035em; }
.h2, h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
.h3, h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.text-primary { color: var(--sw-green-900); }
.text-accent { color: var(--sw-gold-600); }
.text-cream { color: var(--sw-cream-50); }
.text-brown { color: var(--sw-brown-800); }
.accent-script {
  font-family: var(--font-script);
  color: var(--sw-gold-500);
  font-size: 1.25em;
  font-weight: 400;
}

/* Poster-like title treatment for "Beisl-Musical" when not using an image */
.display-poster {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  color: var(--sw-cream-100);
  -webkit-text-stroke: 2px var(--sw-green-900);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 var(--sw-gold-600),
    0 5px 0 var(--sw-brown-900),
    0 12px 28px rgb(0 0 0 / 28%);
}

/* ---------- Buttons ---------- */
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgb(238 184 100 / 42%); outline-offset: 3px; }
.btn--primary {
  color: var(--sw-cream-50);
  background: var(--sw-green-900);
  border-color: var(--sw-green-900);
}
.btn--primary:hover { background: var(--sw-green-800); border-color: var(--sw-green-800); }
.btn--accent {
  color: var(--sw-green-950);
  background: var(--sw-gold-500);
  border-color: var(--sw-gold-500);
}
.btn--ghost {
  color: var(--sw-cream-50);
  background: transparent;
  border-color: rgb(255 250 240 / 55%);
}
.btn--ghost:hover { border-color: var(--sw-gold-500); color: var(--sw-gold-500); }
.btn--block { width: 100%; }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.6rem; height: 1.6rem; }
.icon-badge {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--sw-cream-50);
  background: var(--sw-green-900);
  border: 1px solid rgb(238 184 100 / 45%);
}
.icon-badge .icon { width: 1.45rem; height: 1.45rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(780px, 90vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--sw-cream-50);
  background: var(--sw-green-950);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(9 31 20 / 94%) 0%, rgb(9 31 20 / 72%) 42%, rgb(9 31 20 / 12%) 75%),
    linear-gradient(0deg, rgb(9 31 20 / 72%) 0%, transparent 45%);
}
.hero__content {
  width: min(100%, 650px);
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3rem, 8vw, 6rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- Cards / event facts ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--sw-cream-50);
  border-block: 1px solid var(--color-border);
}
.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
}
.info-item + .info-item { border-left: 1px solid var(--color-border); }
.info-item__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.info-item__value { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

/* ---------- Ticket / contact form ---------- */
.form-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--sw-cream-50);
  border: 1px solid #dfd1bc;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.38rem; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 700; font-size: 0.92rem; color: #41352c; }
.field__control {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.85rem;
  color: var(--sw-ink);
  background: var(--sw-white);
  border: 1px solid #d7c9b8;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea.field__control { min-height: 120px; resize: vertical; }
.field__control::placeholder { color: #9a9189; }
.field__control:focus {
  border-color: var(--sw-green-700);
  box-shadow: 0 0 0 3px rgb(47 87 56 / 14%);
}
.field__hint { font-size: 0.82rem; color: var(--color-muted); }
.form-status { padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--sw-cream-100); }

/* ---------- Ticket CTA block ---------- */
.ticket-cta {
  position: relative;
  overflow: hidden;
  color: var(--sw-cream-50);
  background: var(--sw-green-950);
}
.ticket-cta__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgb(238 184 100 / 55%);
  border-radius: var(--radius-md);
  background: rgb(14 44 23 / 66%);
}
.phone-cta__number { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem;
  color: rgb(255 250 240 / 82%);
  background: var(--sw-green-950);
  border-top: 1px solid rgb(238 184 100 / 18%);
}
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer__logo { width: 160px; }

/* ---------- Utility classes ---------- */
.bg-primary { background: var(--sw-green-900) !important; }
.bg-dark { background: var(--sw-green-950) !important; }
.bg-cream { background: var(--sw-cream-100) !important; }
.bg-white { background: var(--sw-white) !important; }
.border { border: 1px solid var(--color-border); }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--2, .ticket-cta__layout { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .info-item + .info-item { border-left: 0; border-top: 1px solid var(--color-border); }
  .nav__links { display: none; }
  .hero { min-height: 720px; }
  .hero::after {
    background:
      linear-gradient(0deg, rgb(9 31 20 / 94%) 0%, rgb(9 31 20 / 58%) 60%, rgb(9 31 20 / 24%) 100%);
  }
}

@media (max-width: 640px) {
  :root { --space-8: 3.5rem; }
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .site-footer__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
