/* ============================================================
   Gallery Events — Base: fonts, tokens, reset, buttons, footer
   ============================================================ */

/* Self-hosted fonts — no Google CDN (GDPR: visitor IP stays local) */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-v16-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-v22-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-v22-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-v22-latin_latin-ext-700.woff2') format('woff2');
}

:root {
  /* Gallery Events palette: stone, linen, clay, ivory and black */
  --bg:          #000000;
  --bg-deep:     #000000;
  --panel:       #BF9A84;
  --accent:      #BF9A84;
  --accent-soft: #D9CEC5;
  --sage:        #A3A698;
  --blue:        #A3A698;
  --text:        #EEE9E3;
  --muted:       #A3A698;

  --accent-rgb:  191, 154, 132;
  --blue-rgb:    163, 166, 152;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --nav-h: 64px;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* display overrides (.btn etc.) must never beat the hidden attribute */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Scroll reveal — hidden only when JS available ── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.js [data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.15s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.45);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(238, 233, 227, 0.25);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(var(--accent-rgb), 0.07);
  transform: translateY(-2px);
}

/* ── Section shared ── */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.section__kicker {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ── Footer ── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 2rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
}

.footer__logo {
  height: 56px;
  width: auto;
  filter: invert(1);
  opacity: 0.85;
}

.footer__tagline {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
}

.footer__company { min-width: 0; }
.footer__contact { margin-top: 1rem; font-style: normal; font-size: .85rem; line-height: 1.8; color: var(--text); }
.footer__contact strong { font-weight: 600; }
.footer__contact a { display: inline-block; padding-block: .35rem; color: var(--accent-soft); overflow-wrap: anywhere; }
.footer__contact a:hover { text-decoration: underline; }
.footer__contact a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer__legal a {
  transition: color 0.2s var(--ease-out);
}
.footer__legal a:hover { color: var(--accent-soft); }

.footer__social { display: flex; align-items: center; gap: .5rem; }
.footer__social a { display: grid; place-items: center; width: 60px; height: 60px; color: #fff; border-radius: 50%; transition: background .2s; }
.footer__social a:hover { background: rgba(255,255,255,.12); }
.footer__social svg { display: block; width: 40px; height: 40px; }

.footer__copy {
  max-width: 1200px;
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(238, 233, 227, 0.06);
  font-size: 0.72rem;
  /* --sage fails WCAG AA on the dark footer */
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
}
