/* =========================================================================
   Leibspeis Catering — Stylesheet
   Design System: dark forest green hero + cream surfaces + gold accents
   ========================================================================= */

/* --- Reset / Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--focus, #ffd166);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --green-900: #0B3320;
  --green-800: #0E3F25;
  --green-700: #155A35;
  --green-600: #1F7547;
  --green-100: #E8F2EB;

  --gold: #F5B324;
  --gold-deep: #C8841C;
  --gold-soft: #FCE3A0;

  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --ink: #16241D;
  --ink-soft: #4F5A53;
  --ink-mute: #7A867F;
  --line: #E5DFCE;
  --line-soft: #F1ECDC;
  --error: #B3261E;
  --success: #1F7547;

  --focus: #FFCB47;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,51,32,0.06), 0 1px 1px rgba(11,51,32,0.04);
  --shadow-md: 0 6px 18px rgba(11,51,32,0.10), 0 2px 4px rgba(11,51,32,0.05);
  --shadow-lg: 0 24px 48px rgba(11,51,32,0.18), 0 6px 14px rgba(11,51,32,0.08);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Typography ----------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}
h1 { font-size: clamp(2.2rem, 4.4vw + 1rem, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.4vw + 0.8rem, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.2vw + 0.7rem, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1.1em; max-width: 70ch; }
a  { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color 160ms var(--ease-out); }
a:hover { color: var(--green-900); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 0.8em;
}

/* --- Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--imgright .split__media { order: 2; }
}

.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  white-space: normal;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.btn:hover { background: #FFC34A; color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn--outline:hover { background: var(--green-800); color: #fff; }

.btn--lg { min-height: 56px; padding: 0.85em 1.7em; font-size: 1.05rem; }

/* --- Header / Nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(229, 223, 206, 0.6);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 96px; width: auto; }
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
@media (min-width: 880px) {
  .nav__list { display: flex; }
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.nav__link:hover { background: rgba(21, 90, 53, 0.08); color: var(--green-900); text-decoration: none; }
.nav__link[aria-current="page"] {
  background: var(--green-800);
  color: #fff;
}
.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
@media (min-width: 880px) { .nav__toggle { display: none; } }

.nav__drawer {
  position: fixed;
  inset: 72px 0 auto 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--gutter) 32px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
  z-index: 40;
}
.nav__drawer.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav__drawer ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 2px; }
.nav__drawer a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}
.nav__drawer a:hover { background: rgba(21, 90, 53, 0.08); color: var(--green-900); }
.nav__drawer a[aria-current="page"] { background: var(--green-800); color: #fff; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245,179,36,0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(31,117,71,0.45), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-800) 50%, var(--green-900));
  color: #FFF8EC;
  text-align: center;
  padding: clamp(48px, 8vw, 100px) 0 clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__logo {
  margin: 0 auto clamp(20px, 3vw, 32px);
  width: clamp(440px, 76vw, 720px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.35));
}
.hero h1 {
  color: #FFF8EC;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.hero p.lead {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.18rem);
  color: rgba(255,248,236,0.86);
  max-width: 60ch;
  margin: 0 auto 28px;
}
.hero__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Page hero (smaller, used on subpages) */
.page-hero {
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(245,179,36,0.12), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-800));
  color: #FFF8EC;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  text-align: center;
}
.page-hero h1 { color: #FFF8EC; margin-bottom: 10px; }
.page-hero p { color: rgba(255,248,236,0.86); margin: 0 auto; max-width: 60ch; }

/* --- Sections / Cards ----------------------------------------------------- */
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--green {
  background: var(--green-800);
  color: #FFF8EC;
}
.section--green h2, .section--green h3 { color: #FFF8EC; }
.section--green p { color: rgba(255,248,236,0.85); }
.section--green a { color: var(--gold); }
.section--green a.btn { color: var(--ink); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 56px); }
.section-head p { margin: 0 auto; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold-soft); }
.card h3 { margin-bottom: 4px; }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--line-soft);
  aspect-ratio: 4/3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Crossfade between stacked images. */
.media--swap { position: relative; }
.media--swap img { position: absolute; inset: 0; transition: opacity 700ms ease-in-out; }
.media--swap img.is-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .media--swap img { transition: none; }
}

/* Specs / lists */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.spec-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.55;
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: inset 0 0 0 4px var(--cream);
}
.section--green .spec-list li::before { box-shadow: inset 0 0 0 4px var(--green-800); }

/* Two-column feature on detail pages */
.feature-block { padding: clamp(40px, 6vw, 80px) 0; }
.feature-block .media { aspect-ratio: 5/4; }

/* Menu (Angebot) */
.menu-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.menu-card__media { aspect-ratio: 4/3; background: var(--line-soft); overflow: hidden; }
.menu-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-card__body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.menu-card__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.menu-card h3 { margin: 0; }
.menu-card ul { padding-left: 18px; margin: 6px 0 0; }
.menu-card ul li { margin-bottom: 2px; }

/* --- Forms ---------------------------------------------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-md);
}
.form {
  display: grid;
  gap: 16px;
}
.form__row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--error); margin-left: 2px; }
.field .helper { font-size: 0.85rem; color: var(--ink-soft); margin: -2px 0 0; }
.field .error {
  font-size: 0.85rem;
  color: var(--error);
  margin: 2px 0 0;
}
.input, .textarea, .select {
  appearance: none;
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  min-height: 48px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-soft); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 90, 53, 0.18);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(179,38,30,0.15);
}
.textarea { min-height: 140px; resize: vertical; }
.select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path fill='none' stroke='%2316241D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }

.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.checkbox input[type="checkbox"] {
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--green-700);
}
.checkbox a { color: var(--green-700); }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.95rem;
}
.alert--error { background: #FDECEA; border-color: #F4C7C3; color: #7A1D17; }
.alert--success { background: #E8F5EE; border-color: #B7DCC4; color: #0F4727; }

/* --- Coverflow carousel --------------------------------------------------- */
.carousel {
  position: relative;
  width: 100%;
  height: clamp(420px, 72vw, 780px);
  perspective: 1800px;
  margin: 0 auto;
}
.carousel__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /* gentle ambient light from above-center on side slides */
}
.carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(300px, 62vw, 760px);
  aspect-ratio: 4/3;
  margin: 0;
  padding: 0;
  background: var(--line-soft);
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  cursor: pointer;
  transform-origin: center center;
  transform: translate(-50%, -50%) translateZ(-1200px) scale(0.5);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 800ms cubic-bezier(0.22, 0.8, 0.18, 1),
    opacity 600ms ease,
    filter 600ms ease,
    box-shadow 600ms ease;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel__slide[data-pos="0"] {
  z-index: 5;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateZ(0) rotateY(0deg) scale(1);
  pointer-events: auto;
  cursor: zoom-in;
  box-shadow: 0 36px 80px rgba(0,0,0,0.45);
}
.carousel__slide[data-pos="-1"],
.carousel__slide[data-pos="1"] {
  z-index: 4;
  opacity: 0.92;
  filter: brightness(0.78) saturate(0.95);
  pointer-events: auto;
}
.carousel__slide[data-pos="-1"] {
  transform: translate(-92%, -50%) translateZ(-260px) rotateY(28deg) scale(0.9);
}
.carousel__slide[data-pos="1"] {
  transform: translate(-8%, -50%) translateZ(-260px) rotateY(-28deg) scale(0.9);
}
.carousel__slide[data-pos="-2"],
.carousel__slide[data-pos="2"] {
  z-index: 3;
  opacity: 0.55;
  filter: brightness(0.6) blur(1.5px);
  pointer-events: auto;
}
.carousel__slide[data-pos="-2"] {
  transform: translate(-128%, -50%) translateZ(-540px) rotateY(38deg) scale(0.78);
}
.carousel__slide[data-pos="2"] {
  transform: translate(28%, -50%) translateZ(-540px) rotateY(-38deg) scale(0.78);
}
.carousel__slide[data-pos="-3"],
.carousel__slide[data-pos="3"] {
  z-index: 2;
  opacity: 0.18;
  filter: brightness(0.4) blur(3px);
}
.carousel__slide[data-pos="-3"] {
  transform: translate(-160%, -50%) translateZ(-820px) rotateY(45deg) scale(0.65);
}
.carousel__slide[data-pos="3"] {
  transform: translate(60%, -50%) translateZ(-820px) rotateY(-45deg) scale(0.65);
}

.carousel__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 clamp(8px, 2vw, 24px);
}
.carousel__btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(14, 63, 37, 0.85);
  color: #FFF8EC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  transition: transform 160ms ease, background 160ms ease;
}
.carousel__btn:hover { background: var(--green-700); transform: scale(1.06); }
.carousel__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.carousel__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.carousel__progress {
  flex: 1;
  max-width: 220px;
  height: 3px;
  background: rgba(14, 63, 37, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.carousel__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--green-700);
  transition: width 200ms linear;
}
.carousel.is-paused .carousel__progress-bar { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: opacity 200ms ease; transform: translate(-50%, -50%); }
  .carousel__slide[data-pos="-1"], .carousel__slide[data-pos="-2"], .carousel__slide[data-pos="-3"],
  .carousel__slide[data-pos="1"], .carousel__slide[data-pos="2"], .carousel__slide[data-pos="3"] {
    display: none;
  }
}

/* --- Gallery -------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(5, 1fr); } }

.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.gallery__item:hover { box-shadow: var(--shadow-md); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:focus-visible { outline-offset: 4px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11,30,20,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto; height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #FFF8EC;
  border: 1px solid rgba(255,255,255,0.2);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  backdrop-filter: blur(8px);
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.22); }
.lightbox__counter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #FFF8EC; font-size: 0.9rem; opacity: 0.8; }

/* --- CTA banner ----------------------------------------------------------- */
.cta-banner {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(245,179,36,0.18), transparent 70%),
    linear-gradient(180deg, var(--green-700), var(--green-900));
  color: #FFF8EC;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #FFF8EC; }
.cta-banner p  { margin-left: auto; margin-right: auto; }

/* --- Instagram grid (news page) ------------------------------------------ */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.instagram-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.instagram-card:hover,
.instagram-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.instagram-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line-soft);
}
.instagram-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-out);
}
.instagram-card:hover .instagram-card__media img {
  transform: scale(1.04);
}
.instagram-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 51, 32, 0.78);
  color: #FFF8EC;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.95rem;
  line-height: 1.2;
  backdrop-filter: blur(4px);
}
.instagram-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.instagram-card__caption {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.instagram-card__date {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,248,236,0.78);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr; } }
.site-footer h4 {
  color: #FFF8EC;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand img { height: 64px; width: auto; margin-bottom: 14px; }
.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* --- Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

/* --- Utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.no-underline { text-decoration: none; }

/* --- Reveal on scroll (subtle) -------------------------------------------
   Animates only when entering viewport for the first time. Content remains
   fully visible without JS or before observer fires. */
.reveal { transition: transform 500ms var(--ease-out); }
.js .reveal:not(.is-visible) {
  /* Tiny lift only; content stays readable even if observer never fires */
  transform: translateY(8px);
}
.js .reveal.is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none !important; transition: none !important; }
}
