/* forjohn.co.uk — memorial fundraising site.
   Palette: deep navy, warm white, Mind-adjacent blue accents.
   Mind logo appears only inside .mind-block (white, clear space). */
:root {
  --night: #101b2e;         /* deep evening navy */
  --navy: #1a2a45;
  --navy-deep: #0c1626;
  --blue: #2f6ea8;          /* mind-adjacent, calmed */
  --blue-soft: #eaf1f7;
  --ink: #2b3342;
  --muted: #647080;
  --paper: #fbf8f2;         /* warm linen, candlelit */
  --line: #e6e0d4;
  --gold: #e3b25c;          /* candle gold */
  --gold-deep: #b9832e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Georgia, 'Times New Roman', serif; color: var(--ink); background: var(--paper); line-height: 1.7; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
nav, .btn, .site-foot, .fact .k { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* header */
.site-head { background: var(--navy-deep); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(227,178,92,.18); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .flame { width: 22px; height: 28px; filter: drop-shadow(0 0 6px rgba(227,178,92,.55)); }
.brand .wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 1.45rem; font-weight: 500; color: #f4efe6; letter-spacing: .01em; }
.brand .wordmark em { font-style: italic; color: var(--gold); font-weight: 650; }
.site-head ul { display: flex; gap: 4px; list-style: none; }
.site-head li a { display: block; padding: 8px 14px; color: #cfd8e6; text-decoration: none; font-size: .95rem; border-radius: 6px; }
.site-head li a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-head li.on a { color: #fff; background: rgba(255,255,255,.12); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-head nav ul { display: none; position: absolute; right: 0; top: 60px; background: var(--navy-deep); flex-direction: column; min-width: 230px; padding: 10px; }
  body.nav-open .site-head nav ul { display: flex; }
}

/* hero — candlelight against the night */
.hero { background:
    radial-gradient(ellipse 60% 55% at 72% 42%, rgba(227,178,92,.20), transparent 65%),
    linear-gradient(170deg, var(--navy-deep) 0%, var(--night) 60%, #1c2f4e 100%);
  color: #fff; padding: 72px 0 62px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2rem, 4.8vw, 3.3rem); line-height: 1.12; font-weight: 500; margin-bottom: 16px; letter-spacing: .005em; }
.hero .datestone { color: var(--gold); font-family: 'Segoe UI', system-ui, sans-serif; font-size: .98rem; letter-spacing: .2em; margin-bottom: 20px; }
.hero p.lede { font-size: 1.13rem; color: #dce3ee; max-width: 34em; }
.hero .walkalone { margin-top: 22px; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.08rem; color: var(--gold); opacity: .95; }
.hero .photo img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(227,178,92,.25), 0 22px 60px rgba(0,0,0,.5); filter: grayscale(1) sepia(.18) brightness(1.02); }
.hero .photo figcaption { text-align: center; color: #a8b6ca; font-size: .9rem; padding-top: 12px; font-style: italic; }
.cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1.02rem; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d8b877; }
.btn-ghost { border-color: #47597a; color: #fff; }
.btn-ghost:hover { border-color: #8fa3c4; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0d5da5; }

/* sections */
section.band { padding: 52px 0; }
section.band.alt { background: #f4f1ec; }
section.band h1, section.band h2 { font-size: 1.7rem; color: var(--navy); margin-bottom: 18px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; } }

/* event facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 8px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.fact .k { font-family: 'Segoe UI', system-ui, sans-serif; font-size: .8rem; letter-spacing: .12em; color: var(--muted); }
.fact .v { font-size: 1.08rem; color: var(--navy); margin-top: 4px; }

/* mind block — white background + clear space per brand guidelines */
.mind-block { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; display: flex; gap: 28px; align-items: center; }
.mind-block img { width: 150px; padding: 8px; }
.mind-block p { font-size: .98rem; color: var(--muted); }
@media (max-width: 640px) { .mind-block { flex-direction: column; text-align: center; } }

/* tribute */
.tribute { max-width: 46em; margin: 0 auto; font-size: 1.1rem; }
.tribute p { margin-bottom: 1.2em; }
.tribute .quiet { color: var(--muted); }
.tribute blockquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; font-style: italic; color: var(--navy); margin: 1.6em 0; }
.tribute .attrib { font-size: .95rem; color: var(--muted); font-style: normal; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2em 0; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }
.photo-pair figure img { border-radius: 10px; }
.photo-pair figcaption { font-size: .88rem; color: var(--muted); padding-top: 8px; text-align: center; font-style: italic; }
.help-callout { background: var(--blue-soft); border-radius: 10px; padding: 20px 24px; margin-top: 2em; font-size: 1rem; }

/* band section */
.band-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; background: #10151d; color: #d7dde7; border-radius: 12px; padding: 30px; }
.band-card img { border-radius: 8px; }
.band-card h3 { color: #fff; margin-bottom: 8px; }
@media (max-width: 700px) { .band-card { grid-template-columns: 1fr; } }

/* forms */
form.book { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
form.book fieldset { border: 0; margin-bottom: 26px; }
form.book legend { font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 650; color: var(--navy); font-size: 1.1rem; margin-bottom: 12px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: 'Segoe UI', system-ui, sans-serif; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd2d6; border-radius: 7px; font-size: 1rem; font-family: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.seat-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; background: #fbfaf8; }
.seat-card h4 { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--navy); margin-bottom: 10px; }
.seat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .seat-grid { grid-template-columns: 1fr; } }
.qty-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty-row input[type=number] { width: 90px; padding: 10px; font-size: 1.1rem; }
.notice { background: var(--blue-soft); border-radius: 10px; padding: 16px 20px; margin: 18px 0; font-size: .97rem; }
.notice.warn { background: #fdf3e3; }
.total-line { font-size: 1.25rem; color: var(--navy); font-weight: 600; font-family: 'Segoe UI', system-ui, sans-serif; }

/* confirmation */
.confirm-box { background: #fff; border: 2px solid var(--gold); border-radius: 12px; padding: 34px; text-align: center; max-width: 40em; margin: 0 auto; }
.confirm-box .ref { font-size: 1.9rem; color: var(--navy); font-weight: 700; font-family: 'Segoe UI', system-ui, sans-serif; letter-spacing: .04em; }

/* footer */
.site-foot { background: var(--navy-deep); color: #b9c4d4; padding: 44px 0 30px; margin-top: 60px; font-size: .93rem; }
.site-foot a { color: #dfe7f2; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-bottom: 26px; }
.foot-title { font-weight: 650; color: #fff; margin-bottom: 8px; }
.foot-help { border-top: 1px solid #2c3c57; padding-top: 20px; text-align: center; color: #9fb0c6; }

/* admin */
table.data { width: 100%; border-collapse: collapse; background: #fff; font-family: 'Segoe UI', system-ui, sans-serif; font-size: .92rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.data th { background: #f0ede7; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.pill.pending { background: #fdf3e3; color: #8a6210; }
.pill.paid { background: #e5f5e8; color: #1e6b34; }

/* refinements: candlelit accents */
.btn-gold { background: linear-gradient(180deg, #edc372, var(--gold)); color: var(--navy-deep); box-shadow: 0 4px 14px rgba(227,178,92,.35); }
.btn-gold:hover { background: linear-gradient(180deg, #f2cf8a, #d8a54e); }
section.band h1, section.band h2 { font-weight: 500; font-size: 1.85rem; }
.photo-pair figure img, .band-card img { filter: grayscale(1) sepia(.15); }
.mind-block { box-shadow: 0 6px 24px rgba(43,51,66,.06); }
.fact { box-shadow: 0 4px 16px rgba(43,51,66,.05); border-top: 2px solid rgba(227,178,92,.55); }
.tribute blockquote { font-family: 'Playfair Display', Georgia, serif; font-size: 1.18rem; }

/* music cards: band + DJ */
.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .music-grid { grid-template-columns: 1fr; } }
.dj-card { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; background: #10151d; color: #d7dde7; border-radius: 12px; padding: 26px; }
.dj-card img { border-radius: 8px; filter: grayscale(1); box-shadow: 0 0 0 1px rgba(227,178,92,.3); }
.dj-card h3 { color: #fff; margin-bottom: 8px; }
@media (max-width: 700px) { .dj-card { grid-template-columns: 1fr; } }
