/* ============================================================
   Wells Alive — Children's Choir Website
   Colour palette:
     Primary  #F5A623  warm amber
     Accent   #E85D4A  coral red
     BG       #FFFDF5  warm white
     Text     #3D2B1F  dark brown
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amber:   #F5A623;
  --coral:   #E85D4A;
  --bg:      #FFFDF5;
  --text:    #3D2B1F;
  --muted:   #7A5C48;
  --card-bg: #FFF8EC;
  --border:  #F0E0C8;
  --radius:  12px;
  --shadow:  0 4px 18px rgba(61,43,31,.10);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

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

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 60px;
  background: var(--amber);
  border-radius: 4px;
  margin-top: .4rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: .9rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.nav__logo span { color: var(--coral); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__links a {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}

.nav__links a:hover { color: var(--coral); text-decoration: none; }

/* Dropdown */
.nav__item { position: relative; }

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  list-style: none;
  padding: .4rem 0;
  z-index: 200;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { display: block; }

.nav__dropdown li a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .9rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.nav__dropdown li a:hover { color: var(--coral); background: var(--card-bg); text-decoration: none; }

.nav__cta {
  background: var(--coral);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: background .2s, transform .1s;
}

.nav__cta:hover { background: #d44d3a !important; transform: translateY(-1px); text-decoration: none !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #FFF3DC 0%, #FFE4D4 60%, #FDDCC4 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '♪ ♫ ♩ ♬ ♪ ♫';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  opacity: .12;
  letter-spacing: 1rem;
  pointer-events: none;
  white-space: nowrap;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: var(--amber);
  color: var(--text);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}

.hero__title em {
  color: var(--coral);
  font-style: normal;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 440px;
}

.btn {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  border-radius: 999px;
  padding: .75rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); text-decoration: none; }

.btn--primary { background: var(--coral); color: #fff; }
.btn--secondary { background: transparent; color: var(--text); border: 2.5px solid var(--text); margin-left: 1rem; }
.btn--amber { background: var(--amber); color: var(--text); }

.hero__image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,.05) 20px,
    rgba(255,255,255,.05) 40px
  );
}

.hero__placeholder p {
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  margin-top: .5rem;
  opacity: .8;
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--amber);
  padding: 2rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats__item strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
}

.stats__item span {
  font-size: .95rem;
  color: #6a3c1a;
  font-weight: 600;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about__image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #FDDCC4, var(--amber));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow);
  order: -1;
}

.about__text h2 { margin-bottom: .5rem; }
.about__text p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Performances ---------- */
.performances { background: var(--card-bg); }

.perf-list {
  display: grid;
  gap: 1rem;
}

.perf-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow .2s;
}

.perf-card:hover { box-shadow: var(--shadow); }

.perf-card__date {
  background: var(--amber);
  border-radius: 10px;
  padding: .5rem .9rem;
  text-align: center;
  min-width: 64px;
}

.perf-card__date .day {
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.perf-card__date .month {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.perf-card__info h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.perf-card__info p { color: var(--muted); font-size: .9rem; }

.perf-card__time {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--coral);
  white-space: nowrap;
}

.perf-empty {
  text-align: center;
  padding: 2.5rem;
  color: var(--muted);
  font-style: italic;
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .2s;
}

.gallery__item:hover { transform: scale(1.03); }

.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.7);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,43,31,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  color: #fff;
  font-size: 2rem;
}

/* Gallery colours */
.g1 { background: linear-gradient(135deg, #F5A623, #E85D4A); }
.g2 { background: linear-gradient(135deg, #E85D4A, #c0392b); }
.g3 { background: linear-gradient(135deg, #f39c12, #F5A623); }
.g4 { background: linear-gradient(135deg, #e67e22, #E85D4A); }
.g5 { background: linear-gradient(135deg, #d35400, #e67e22); }
.g6 { background: linear-gradient(135deg, #c0392b, #e74c3c); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__placeholder {
  width: min(500px, 90vw);
  height: min(380px, 60vh);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox__close:hover { background: rgba(255,255,255,.3); }

.lightbox__caption {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
}

/* ---------- Map ---------- */
.map-section { background: var(--card-bg); }

.map-section .section-title { margin-bottom: 0; }

#choir-map {
  width: 100%;
  height: 540px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.map-note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}

.map-note a { color: var(--coral); font-weight: 600; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__info h3 {
  font-size: 1.3rem;
  margin-bottom: .75rem;
  margin-top: 1.5rem;
}

.contact__info h3:first-child { margin-top: 0; }

.contact__info p, .contact__info a {
  color: var(--muted);
  font-size: .95rem;
}

.contact__form {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__logo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
}

.footer__logo span { color: var(--amber); }

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: #fff; text-decoration: none; }

.footer__copy { font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .hero__image-wrap { display: none; }
  .about__image { order: 0; max-width: 400px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .stats__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .nav__links { display: none; flex-direction: column; gap: .5rem; }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }

  .nav__inner { flex-wrap: wrap; }
  .nav__links {
    width: 100%;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
  }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: 1fr; gap: .5rem; }
  .form-row { grid-template-columns: 1fr; }

  .perf-card { grid-template-columns: auto 1fr; }
  .perf-card__time { grid-column: 2; font-size: .85rem; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; flex-wrap: wrap; }
}
