/* ==========================================================================
   Duha 7Kostka — design tokens
   Palette:
     --sky    #2F7FE0  primary brand blue
     --navy   #123350  text / headings
     --sun    #FFC94D  accent — CTAs, badges
     --coral  #FF7A5C  secondary accent — vzkazovník, alerts
     --mint   #E8F7F2  soft section background
     --cloud  #F6FBFF  page background
   Type:
     Display  'Baloo 2'      — hero + big section titles only (full CZ diacritics, incl. ů)
     Body     'Manrope'      — everything else
     Utility  'Space Mono'   — dates, codes, ticket-style labels
   NOTE: originally used 'Fredoka' for display, swapped to 'Baloo 2' — Fredoka's Google
   Fonts build is missing some Latin-Extended glyphs (ring above / ů renders as a fallback
   glyph). Baloo 2 has full Czech support and a similar rounded, friendly character.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --sky: #2E7DFF;
  --sky-deep: #1857C7;
  --navy: #14213D;
  --sun: #FFD23F;
  --coral: #FF6B35;
  --green: #2ECC71;
  --mint: #E3F9EA;
  --cloud: #FAFCFF;
  --white: #FFFFFF;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 12px 30px -12px rgba(18, 51, 80, 0.18);
  --shadow-tight: 0 4px 14px -6px rgba(18, 51, 80, 0.16);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--navy);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', 'Manrope', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); }
h2 { font-size: clamp(1.8rem, 2.6vw + 1rem, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.mono {
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

button, .btn {
  font-family: inherit;
  cursor: pointer;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sun);
  color: var(--navy);
  box-shadow: var(--shadow-tight);
}
.btn-primary:hover { box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(255, 122, 92, 0.55);
}

.btn-ghost {
  background: var(--mint);
  color: var(--sky-deep);
}

/* ---------------------------------- Header ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cloud);
  border-bottom: 1px solid rgba(18, 51, 80, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  position: relative;
}
.logo {
  position: relative;
  display: block;
  width: 220px;
  height: 100%;
  flex-shrink: 0;
}
.logo img.logo-image {
  position: absolute;
  top: 4px;
  left: 0;
  height: 160px;
  width: auto;
  z-index: 5;
  display: block;
}
.logo .logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky) 0%, #6FC6E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.logo .logo-mark svg { width: 26px; height: 26px; }
.logo .placeholder-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--coral);
  display: block;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--mint); }
.main-nav a.active { background: var(--sky); color: white; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: var(--mint);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .logo { width: 130px; }
  .logo img.logo-image { height: 92px; top: 8px; }
  .main-nav {
    position: fixed;
    top: 92px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    background: var(--cloud);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
}

/* ---------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
  background: linear-gradient(180deg, #DFF1FF 0%, var(--cloud) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(18,51,80,0.08);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--sky-deep);
  margin-bottom: 18px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.hero h1 { color: var(--navy); }
.hero h1 .accent { color: var(--sky); }
.hero p.lead {
  font-size: 1.15rem;
  color: #3A5772;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--sky) 0%, #59A9EE 60%, var(--sun) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; margin: 0 auto; }
}

/* ------------------------------ Event spotlight (leták hned nahoře) -------- */
.event-spotlight { padding: 0 0 8px; }
.spotlight-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(120deg, var(--sun) 0%, #FFE29A 100%);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-soft);
}
.spotlight-card .spotlight-leaflet {
  width: 200px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tight);
  background: white;
  flex-shrink: 0;
}
.spotlight-card .spotlight-leaflet img {
  width: 100%; height: 100%; object-fit: cover;
}
.spotlight-card .spotlight-leaflet .leaflet-fallback {
  width: 100%; height: 100%; display:flex; align-items:center; justify-content:center;
  font-size: 2.4rem;
}
.spotlight-card h2 { margin-bottom: 4px; color: var(--navy); }
.spotlight-card p.spotlight-dates { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.spotlight-card p.spotlight-desc { color: #5A4A1E; margin-bottom: 0; }
@media (max-width: 780px) {
  .spotlight-card { grid-template-columns: 1fr; text-align: center; }
  .spotlight-card .spotlight-leaflet { margin: 0 auto; }
}

/* ------------------------------ Video feature (homepage) ------------------ */
.video-feature { padding: 8px 0 56px; }
.video-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 8.5;
  background: var(--navy);
}
.video-panel img, .video-panel video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-panel .video-caption {
  position: absolute;
  left: 24px; bottom: 20px;
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  background: rgba(18,51,80,0.55);
  padding: 8px 14px;
  border-radius: 999px;
}
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,51,80,0.12);
  border: none; cursor: pointer;
}
.video-play-btn .circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.video-play-btn:hover .circle { transform: scale(1.06); }

/* ---------------------------- Stories strip (signature) ------------------- */
.stories {
  background: var(--white);
  padding: 30px 0 36px;
  border-bottom: 1px solid rgba(18,51,80,0.06);
}
.stories-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.stories-head p { color: #557; margin: 0; font-size: 0.95rem; }
.stories-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x proximity;
}
.stories-track::-webkit-scrollbar { height: 6px; }
.stories-track::-webkit-scrollbar-thumb { background: var(--mint); border-radius: 4px; }

.story {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.story-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 210deg, var(--sun), var(--coral), var(--sky), var(--sun));
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-ring.is-muted { background: #DCE6EE; }
.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--sky-deep);
  border: 3px solid var(--white);
}
.story span.story-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

/* ------------------------------- Section shell ---------------------------- */
section.block { padding: 64px 0; }
.block.mint { background: var(--mint); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head p.kicker {
  font-family: 'Space Mono', monospace;
  color: var(--coral);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.section-head .lead { color: #3A5772; max-width: 56ch; }

/* --------------------------------- Ticket cards --------------------------- */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.ticket {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ticket-top {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, var(--sky) 0%, #4E97E4 100%);
  color: white;
  position: relative;
}
.ticket-top.is-coral { background: linear-gradient(135deg, var(--coral) 0%, #FF9A6C 100%); }
.ticket-top.is-sun { background: linear-gradient(135deg, #FFBC3D 0%, var(--sun) 100%); color: var(--navy); }
.ticket-top.is-green { background: linear-gradient(135deg, var(--green) 0%, #6FE0A0 100%); color: var(--navy); }
.ticket-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.25);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ticket-top.is-sun .ticket-badge, .ticket-top.is-green .ticket-badge { background: rgba(20,33,61,0.12); }
.ticket-top h3 { color: inherit; margin-bottom: 4px; }
.ticket-dates { font-family: 'Space Mono', monospace; font-size: 0.85rem; opacity: 0.95; }

.ticket-perf {
  position: relative;
  height: 0;
  border-top: 2px dashed rgba(18,51,80,0.18);
  margin: 0 24px;
}
.ticket-perf::before, .ticket-perf::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cloud);
}
.ticket-perf::before { left: -34px; }
.ticket-perf::after { right: -34px; }

.ticket-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.ticket-body p { color: #3A5772; font-size: 0.95rem; }
.ticket-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}
.tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--sky-deep);
}
.tag.is-orange { background: #FFE7DB; color: #C24A1B; }
.tag.is-yellow { background: #FFF3CF; color: #8A6300; }
.tag.is-green { background: #DAF7E6; color: #1E8A50; }
.ticket-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-actions .btn { padding: 11px 18px; font-size: 0.9rem; }

/* --------------------------------- Vzkazovník band ------------------------ */
.postcard-band {
  background: linear-gradient(120deg, var(--coral) 0%, #FF9A6C 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.postcard-band h2 { color: white; }
.postcard-band p { color: rgba(255,255,255,0.92); max-width: 48ch; }
.postcard-visual {
  background: rgba(255,255,255,0.14);
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  padding: 22px;
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
}
.postcard-visual .stamp {
  float: right;
  width: 46px; height: 46px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.postcard-visual .line { height: 8px; background: rgba(255,255,255,0.35); border-radius: 4px; margin: 12px 0; }
.postcard-visual .line.short { width: 60%; }

@media (max-width: 780px) {
  .postcard-band { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* --------------------------------- About teaser ---------------------------- */
.about-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.about-art {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--mint) 0%, #CDEAE0 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}
.about-art img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 880px) {
  .about-teaser { grid-template-columns: 1fr; }
}

/* --------------------------------- Gallery preview -------------------------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gallery-strip .thumb {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--sky) 0%, var(--sun) 100%);
  opacity: 0.85;
}
.gallery-strip .thumb:nth-child(2n) { background: linear-gradient(150deg, var(--coral) 0%, var(--sky) 100%); }
.gallery-strip .thumb:nth-child(3n) { background: linear-gradient(150deg, var(--sun) 0%, var(--mint) 100%); }
@media (max-width: 780px) {
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------- Generic content page ---------------------- */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #DFF1FF 0%, var(--cloud) 100%);
}
.page-hero .kicker {
  font-family: 'Space Mono', monospace;
  color: var(--coral);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
.note-card {
  background: var(--white);
  border: 1px dashed rgba(18,51,80,0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.92rem;
  color: #3A5772;
  margin: 28px 0;
}
.note-card strong { color: var(--navy); }

.doc-list, .chronicle-list { display: flex; flex-direction: column; gap: 14px; }
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-tight);
}
.doc-row .doc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--mint); color: var(--sky-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-row .doc-info { flex: 1; }
.doc-row .doc-info h3 { margin-bottom: 2px; font-size: 1.02rem; }
.doc-row .doc-info span { font-size: 0.84rem; color: #6b8299; font-family: 'Space Mono', monospace; }

.chronicle-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-tight);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
}
.chronicle-item .year {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.8rem;
  color: var(--sky);
  font-weight: 700;
}
@media (max-width: 600px) {
  .chronicle-item { grid-template-columns: 1fr; }
}
.chronicle-item .chronicle-events { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.chronicle-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.chronicle-event-row .ce-title { font-weight: 700; font-size: 0.95rem; }
.chronicle-event-row .ce-dates { font-family: 'Space Mono', monospace; font-size: 0.78rem; color: #557; display: block; }
.chronicle-event-row .btn { padding: 8px 16px; font-size: 0.84rem; }

/* --------------------------------- Gallery album filters -------------------- */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-pill {
  border: 2px solid #DCE6EE;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-pill:hover { border-color: var(--sky); }
.filter-pill.is-active {
  background: var(--sky);
  border-color: var(--sky);
  color: white;
}
.gallery-back {
  display: none;
  margin-bottom: 18px;
}
.gallery-back.is-visible { display: inline-flex; }

.gallery-grid {
  columns: 4 220px;
  column-gap: 16px;
}
.gallery-grid .g-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-grid .g-item.is-hidden { display: none; }
.gallery-grid .g-item img { transition: transform 0.3s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.04); }
.gallery-grid .g-item .g-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(18,51,80,0.65); color: white;
  font-size: 0.72rem; padding: 4px 9px; border-radius: 999px;
  font-family: 'Space Mono', monospace;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(9, 24, 40, 0.88);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; }
.lightbox-inner img { border-radius: 12px; width: 100%; }
.lightbox-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; color: white;
}
.lightbox-close {
  background: rgba(255,255,255,0.15); color: white; border: none;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem;
}
.lightbox-nav {
  background: rgba(255,255,255,0.18); color: white; border: 2px solid rgba(255,255,255,0.35);
  width: 68px; height: 68px; border-radius: 50%; font-size: 2.6rem;
  line-height: 1; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin: 0 20px; transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.32); transform: scale(1.06); }
@media (max-width: 700px) {
  .lightbox { padding: 8px; }
  .lightbox-nav { width: 48px; height: 48px; font-size: 1.8rem; margin: 0 4px; }
}

/* --------------------------------- Forms ------------------------------------ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
input, textarea, select {
  width: 100%;
  border: 2px solid #DCE6EE;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--cloud);
  color: var(--navy);
}
input:focus, textarea:focus, select:focus { border-color: var(--sky); outline: none; }
.char-count { font-family: 'Space Mono', monospace; font-size: 0.78rem; color: #6b8299; text-align: right; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* ------------------------------ Instagram feed ------------------------------ */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.insta-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-tight);
  display: block;
}
.insta-card img, .insta-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.insta-card .insta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,51,80,0) 40%, rgba(18,51,80,0.75) 100%);
  display: flex; align-items: flex-end; padding: 12px;
  opacity: 0; transition: opacity 0.15s ease;
}
.insta-card:hover .insta-overlay { opacity: 1; }
.insta-card .insta-overlay span {
  color: white; font-size: 0.8rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 780px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .insta-card .insta-overlay { display: none; }
}

/* --------------------------------- Footer ------------------------------------ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h3 { color: white; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--sun); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------- Utility badges (build note) -------------- */
.build-flag {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--navy);
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  padding: 9px 14px;
  border-radius: 999px;
  z-index: 100;
  box-shadow: var(--shadow-soft);
  opacity: 0.85;
}
