/* =========================================================
   Bari Choir / Ooops! More Choirs — shared styles
   Palette and character derived from the festival poster.
   ========================================================= */

:root {
  /* exact palette sampled from the festival logo */
  --cream:      #F6F2E9;
  --cream-deep: #EFE8D8;
  --blue:       #244596;   /* logo blue */
  --blue-bright:#3E8FD0;   /* lighter sky blue from poster accents */
  --orange:     #E9612F;   /* logo orange */
  --red-orange: #E0451E;
  --yellow:     #F6AB2B;   /* logo yellow */
  --ink:        #1A1A1A;   /* near-black for body text */

  --maxw: 1080px;

  --font-display: "Arial Black", "Arial Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Display type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.topbar .brand {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--blue);
}
.topbar nav a {
  font-weight: 700; font-size: 15px; text-transform: uppercase;
  letter-spacing: 0.04em; margin-left: 22px; color: var(--ink);
}
.topbar nav a:hover { color: var(--orange); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 28px; position: relative; overflow: hidden; }

.hero-logo {
  display: block;
  width: 150px; height: 150px;
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 5px 5px 0 var(--blue);
}

.hero h1.display {
  font-size: clamp(64px, 14vw, 168px);
}
/* multicolor letters like the poster */
.c-o  { color: var(--orange); }
.c-b  { color: var(--blue); }
.c-y  { color: var(--yellow); }
.c-r  { color: var(--red-orange); }

.hero .sub {
  font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(28px, 6vw, 64px);
  margin-top: 6px;
}

.hero .tagline {
  margin-top: 22px; max-width: 620px;
  font-size: 19px; line-height: 1.5;
}

/* ---------- Centered hero (choir homepage) ---------- */
.hero-centered {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px 0 40px; min-height: 70vh; justify-content: center;
}
.logo-mark {
  width: min(360px, 78vw); height: auto;
  margin-bottom: 8px;
}
.tagline-center { margin-left: auto; margin-right: auto; }
.cta-center { justify-content: center; margin-top: 26px; }

/* ---------- Fact strip ---------- */
.facts {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px;
}
.fact {
  background: var(--blue); color: var(--cream);
  border-radius: 14px; padding: 14px 20px;
  font-weight: 700; font-size: 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.fact .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; font-weight: 700; }
.fact .v { font-size: 19px; }
.fact.alt { background: var(--orange); }
.fact.alt2 { background: var(--yellow); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 46px 0; }
.section-label {
  font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(26px, 5vw, 44px); color: var(--blue);
  margin-bottom: 20px;
}
.section-label .dot { color: var(--orange); }

.prose p { margin-bottom: 16px; max-width: 720px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Choir cards ---------- */
.choirs {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  list-style: none;
}
.choir {
  background: var(--cream-deep);
  border: 2px solid var(--blue);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.choir:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--blue); }
.choir .name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 21px; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--blue);
}
.choir .place { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange); }
.choir .meta  { font-size: 15px; color: var(--ink); }
.choir a.link {
  margin-top: 6px; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.choir a.link::after { content: " \2197"; }
.choir.host { border-color: var(--orange); }
.choir.host:hover { box-shadow: 6px 6px 0 var(--orange); }
.choir.host .name { color: var(--orange); }
.choir.host .place { color: var(--blue); }

/* ---------- CTA / links block ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn {
  display: inline-block; font-weight: 800; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 14px 26px; border-radius: 40px;
  border: 2px solid var(--blue); color: var(--blue);
  background: transparent; transition: all .15s ease;
}
.btn:hover { background: var(--blue); color: var(--cream); text-decoration: none; }
.btn.solid { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.btn.solid:hover { background: var(--red-orange); border-color: var(--red-orange); }

/* ---------- Footer ---------- */
footer {
  border-top: 3px solid var(--blue);
  margin-top: 30px; padding: 30px 0 50px;
  font-size: 15px;
}
footer .display-sm {
  font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; font-size: 20px; color: var(--blue);
  margin-bottom: 8px;
}
footer a { font-weight: 700; }

/* ---------- Scatter accents (poster-like shapes) ---------- */
.scatter { position: absolute; pointer-events: none; opacity: 0.9; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choir { transition: none; }
  .float { animation: none !important; }
}

/* =========================================================
   Floating decorative elements (notes, shapes from poster)
   ========================================================= */
.float-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* never blocks clicks */
  overflow: hidden;
  z-index: 0;
}
/* keep page content above the field */
body > header, body > main, body > footer { position: relative; z-index: 1; }

.float {
  position: absolute;
  opacity: 0.9;
  will-change: transform;
}
.float svg { display: block; }

/* three gentle motion patterns, long + offset so it feels organic */
@keyframes drift1 {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(18px,-26px) rotate(12deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}
@keyframes drift2 {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(-22px,-18px) rotate(-14deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}
@keyframes drift3 {
  0%   { transform: translate(0,0) rotate(-6deg); }
  50%  { transform: translate(14px,20px) rotate(8deg); }
  100% { transform: translate(0,0) rotate(-6deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* On small screens, fewer/quieter elements so they don't crowd text */
@media (max-width: 640px) {
  .float.hide-mobile { display: none; }
  .float { opacity: 0.7; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar nav a { margin-left: 14px; font-size: 13px; }
  .fact { flex: 1 1 100%; }
}
