/* Closer Walk — styles */

:root {
  --navy: #1C2A3A;
  --navy-2: #26374A;      /* raised surfaces on navy */
  --charcoal: #2E2E2E;
  --ivory: #F7F4EE;
  --stone: #E6E1D8;
  --stone-line: #CFC7B9;  /* borders that must read on stone */
  --brass: #A8894F;       /* hairlines and marks only */
  --brass-text: #6F592D;  /* brass for small text on light backgrounds (AA) */
  --brass-light: #C9AE7A; /* brass for small text on navy (AA) */
  --white: #FFFFFF;
  --muted: #5A5650;
  --error: #8A2A1F;

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;

  --text-w: 720px;
  --wide-w: 1080px;
  --gutter: 16px;
  --section-y: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-text); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--ivory); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); font-weight: 500; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.nowrap { white-space: nowrap; }
@media (max-width: 420px) { .nowrap { white-space: normal; } }
.nowrap-always { white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--ivory); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wide-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--text-w) + 2 * var(--gutter)); }
.narrow-wide { max-width: calc(880px + 2 * var(--gutter)); }
.narrow-left { max-width: var(--text-w); }

/* Small labels */
.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 14px;
  line-height: 1.4;
}
.label-on-dark { color: var(--brass-light); }

.muted { color: var(--muted); font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--stone);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "mark toggle" "by toggle";
  align-items: center;
  column-gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.wordmark { grid-area: mark; text-decoration: none; color: var(--navy); line-height: 1; justify-self: start; }
.wordmark-name { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; letter-spacing: 0.01em; }
.wordmark-by {
  grid-area: by; justify-self: start;
  font-size: 13px; font-style: italic; color: var(--muted); text-decoration: none; line-height: 1.5;
}
.wordmark-by:hover { color: var(--brass-text); text-decoration: underline; }

.nav-toggle {
  grid-area: toggle;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--stone-line); border-radius: 2px;
  padding: 8px 12px; font: inherit; font-size: 15px; color: var(--navy); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { grid-column: 1 / -1; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 12px 0 4px; padding: 0; border-top: 1px solid var(--stone); }
.site-nav li { border-bottom: 1px solid var(--stone); }
.site-nav a { display: block; padding: 12px 2px; text-decoration: none; color: var(--navy); font-size: 17px; }
.site-nav a:hover { color: var(--brass-text); }

/* Without JS the toggle can't work, so show the links. */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; }

@media (min-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "mark by nav";
    column-gap: 18px;
    padding-top: 18px; padding-bottom: 18px;
  }
  .wordmark-by { padding-top: 6px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; grid-area: nav; grid-column: auto; justify-self: end; }
  .site-nav ul { display: flex; gap: 34px; margin: 0; border: 0; }
  .site-nav li { border: 0; }
  .site-nav a { padding: 4px 0; font-size: 16px; border-bottom: 1px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--brass); color: var(--navy); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-light { background: var(--ivory); color: var(--navy); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-outline-light { color: var(--ivory); border-color: rgba(247, 244, 238, 0.55); }
.btn-outline-light:hover { color: var(--ivory); border-color: var(--ivory); background: rgba(247, 244, 238, 0.06); }
.btn-dark { background: var(--navy); color: var(--ivory); }
.btn-dark:hover { background: #142030; color: var(--ivory); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--ivory); padding-top: 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.9rem, 1.6rem + 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  max-width: 11ch;
}
.hero-sub { font-size: 1.15rem; line-height: 1.65; color: rgba(247, 244, 238, 0.86); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-media .ph-tall { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-media .ph-tall { aspect-ratio: 4 / 5; }
}

.procession { margin-top: 56px; padding: 0 var(--gutter) 28px; }
.procession svg { width: 100%; height: 18px; max-width: var(--wide-w); margin: 0 auto; }
@media (min-width: 900px) { .procession { margin-top: 80px; } }

/* ---------- Image placeholders ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--stone); border: 1px dashed var(--stone-line);
  color: var(--muted); padding: 20px;
}
.ph-dark { background: var(--navy-2); border-color: rgba(201, 174, 122, 0.4); color: rgba(247, 244, 238, 0.72); }
.ph-wide { aspect-ratio: 3 / 2; }
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-caption { font-size: 14px; font-style: italic; line-height: 1.5; }

/* ---------- Photos ---------- */
.photo { display: block; width: 100%; height: auto; object-fit: cover; background: var(--stone); }
.photo-wide { aspect-ratio: 3 / 2; }
.photo-portrait { aspect-ratio: 4 / 5; }
.hero-media .photo-tall { aspect-ratio: 4 / 3; background: var(--navy-2); }
@media (min-width: 900px) { .hero-media .photo-tall { aspect-ratio: 4 / 5; } }
.format .photo { border-bottom: 1px solid var(--stone-line); }
.about-grid .photo-portrait { max-width: 420px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
/* Keep anchored sections clear of the sticky header. */
section[id] { scroll-margin-top: 72px; }
@media (min-width: 860px) { section[id] { scroll-margin-top: 80px; } }
.section-stone { background: var(--stone); }
.section-stone .ph { background: #DCD6CA; }

/* Services */
.formats { display: grid; gap: 24px; margin-top: 36px; }
.format { background: var(--white); border: 1px solid var(--stone-line); display: flex; flex-direction: column; }
.format .ph { border: 0; border-bottom: 1px solid var(--stone-line); }
.format-body { padding: 26px 24px 10px; }
.format-body h3 { margin-bottom: 4px; }
.format-kind { font-style: italic; color: var(--brass-text); margin-bottom: 14px; }
@media (min-width: 768px) {
  .formats { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
  .format-body { padding: 32px 32px 16px; }
}

.ensembles-title {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brass-text); margin: 56px 0 0;
}
.ensembles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; border-top: 1px solid var(--brass); }
.ensembles li { padding: 22px 0 6px; border-bottom: 1px solid var(--stone-line); }
.ensembles h4 { margin-bottom: 6px; }
.ensembles p { margin-bottom: 14px; }
@media (min-width: 768px) {
  .ensembles { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--stone-line); }
  .ensembles li { padding: 26px 28px 10px 0; border-bottom: 0; }
  .ensembles li + li { padding-left: 28px; border-left: 1px solid var(--stone-line); }
}
.quote-note { margin: 36px 0 0; font-style: italic; color: var(--navy); font-size: 1.1rem; }

/* How it works */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 32px 64px; }
.steps li::before {
  content: ""; position: absolute; left: 19px; top: 52px; bottom: 8px; width: 1px; background: var(--stone-line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border: 1px solid var(--brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1;
  font-variant-numeric: lining-nums;
  background: var(--ivory);
}
.steps h3 { font-size: 1.45rem; margin: 4px 0 6px; }
.steps p { margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 52px; }
  .steps li { padding: 64px 0 0; }
  .steps li::before { left: 52px; right: -24px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .steps li:last-child::before { display: none; }
}
.steps-note { margin: 44px 0 0; max-width: var(--text-w); color: var(--muted); font-style: italic; }

/* Songs */
.songs { list-style: none; margin: 28px 0 28px; padding: 0; border-top: 1px solid var(--brass); }
.songs li {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; font-style: italic; color: var(--navy);
  padding: 12px 0; border-bottom: 1px solid var(--stone-line); line-height: 1.3;
}
@media (min-width: 640px) {
  .songs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* About */
.about-grid { display: grid; gap: 36px; align-items: start; }
.about-grid .ph-portrait { max-width: 420px; width: 100%; }
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .about-text { max-width: var(--text-w); }
}

/* Video */
.video {
  position: relative; aspect-ratio: 16 / 9; margin-top: 28px;
  background: var(--navy); overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(247, 244, 238, 0.75); border: 1px dashed rgba(201, 174, 122, 0.45); padding: 20px;
}
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; cursor: pointer; background: var(--navy);
  color: var(--ivory); font: inherit;
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,42,58,0) 40%, rgba(28,42,58,.55)); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 84px; height: 84px; border-radius: 50%;
  border: 1.5px solid rgba(247, 244, 238, 0.9); background: rgba(28, 42, 58, 0.55);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease;
}
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-facade:hover .video-play { background: rgba(28, 42, 58, 0.8); }
.video-facade-label {
  position: absolute; left: 20px; bottom: 16px; z-index: 1; font-size: 15px; font-style: italic;
}

/* Directors */
.ticks { list-style: none; margin: 28px 0 28px; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--stone); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 16px; height: 1px; background: var(--brass);
}

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.contact-list { margin: 28px 0 0; }
.contact-list > div { padding: 14px 0; border-top: 1px solid var(--stone-line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--stone-line); }
.contact-list dt { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); }
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; }
.placeholder { color: var(--error); text-decoration-style: dashed; }

.form-card { background: var(--white); border: 1px solid var(--stone-line); padding: 24px 20px; }
@media (min-width: 768px) { .form-card { padding: 36px 36px 28px; } }

.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--charcoal);
  background: var(--ivory); border: 1px solid var(--stone-line); border-radius: 2px;
  padding: 11px 12px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); background: var(--white); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 15px; margin: 6px 0 0; }
.field-error[hidden] { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { width: 100%; margin-top: 6px; }
@media (min-width: 600px) { .contact-form .btn { width: auto; } }
.form-status { margin: 16px 0 0; font-size: 16px; min-height: 1.5em; }
.form-status.is-error { color: var(--error); }
.form-done h3 { font-size: 1.9rem; }
.form-done:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(247, 244, 238, 0.85); padding: 56px 0 48px; font-size: 16px; }
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--brass-light); }
.site-footer .placeholder { color: #E8A99F; }
.site-footer p { margin: 0 0 6px; }
.footer-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ivory); line-height: 1.2; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; }
  .footer-meta { text-align: right; }
}

/* ---------- Thanks page ---------- */
.thanks { padding: calc(var(--section-y) * 1.2) 0; min-height: 52vh; }
.thanks h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 500; }
