/* Caroling Co — site styles
   Palette and type carried over from the original Salient build:
   green #00540b, red #bb111c, text #333, headings/nav in Acme, body in Open Sans. */

:root {
  --green: #00540b;
  --green-dark: #003d08;
  --red: #bb111c;
  --red-dark: #8f0d15;
  --ink: #333333;
  --ink-soft: #555555;
  --navy: #1f2a44;
  --rule: #dddddd;
  --paper: #ffffff;
  --paper-alt: #f4f4f4;
  --container: 1100px;
  --pad: clamp(16px, 3vw, 40px);
  --font-head: "Acme", "Trebuchet MS", sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--red) url("../img/bg-pattern.jpg") center top / 1920px auto repeat;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus { color: var(--red); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- page frame (boxed layout like the original) ---- */
.page {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 30px rgba(0, 0, 0, .35);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.section { padding: var(--pad); }
.section + .section { padding-top: 0; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0 var(--pad); }

/* ---- header / nav ---- */
.site-header { padding: calc(var(--pad) * .6) var(--pad) 0; text-align: center; }
.site-header .brand { display: inline-block; max-width: 980px; }
.site-header .brand img { width: 100%; margin: 0 auto; }
.site-nav { padding: 14px 0 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; }
.site-nav a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus { color: var(--red); border-bottom-color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

/* ---- hero video ---- */
.hero { padding-top: calc(var(--pad) * .5); }
.hero video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }

/* ---- about block (two photos + text) ---- */
.about { display: grid; grid-template-columns: minmax(160px, 1fr) 2.4fr minmax(160px, 1fr); gap: clamp(12px, 2.5vw, 32px); align-items: center; }
.about img { width: 100%; border-radius: 4px; }
.about-text { font-family: var(--font-serif); color: var(--navy); font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.55; text-align: center; }
.about-text p:last-child { margin-bottom: 0; }

/* ---- testimonial ---- */
.testimonial { margin: 0; padding: 20px var(--pad); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-alt); }
.testimonial p { font-style: italic; margin: 0 0 .5em; text-align: center; max-width: 60ch; margin-inline: auto; }
.testimonial footer { text-align: center; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }

/* ---- banners (image headings from the original) ---- */
.banner { margin: 0 0 18px; }
.banner img { width: 100%; max-width: 470px; }
.banner--wide img { max-width: 100%; }

/* ---- video grids ---- */
.video-card { margin: 0 0 22px; }
.video-card h3, .video-card h2 { font-size: 1.05rem; margin: 0 0 8px; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }
.video-card video.ratio-4-3 { aspect-ratio: 4 / 3; }
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featured h2 { text-align: center; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }

/* ---- audio list ---- */
.track { padding: 10px 0 14px; border-bottom: 1px solid var(--rule); }
.track:first-of-type { padding-top: 0; }
.track h3 { margin: 0 0 6px; font-size: 1.05rem; }
.track audio { width: 100%; }

/* ---- downloads ---- */
.downloads { margin-top: 0; }
.downloads h2 { font-size: 1.3rem; }
.downloads ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; font-family: var(--font-head);
  font-size: 1.05rem; letter-spacing: .02em; padding: 10px 16px; border-radius: 4px;
  text-decoration: none; width: 100%; justify-content: flex-start;
}
.btn:hover, .btn:focus { background: var(--red); color: #fff; text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn small { font-family: var(--font-body); font-size: .8rem; opacity: .85; margin-left: auto; }

/* ---- contact page ---- */
.contact-card { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.contact-card .logo { width: 100%; max-width: 260px; margin: 0 auto; }
.contact-lead { font-family: var(--font-serif); color: var(--navy); font-size: 1.2rem; line-height: 1.5; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 22px; font-size: 1.15rem; }
.contact-lines li { margin: 0 0 6px; }
.contact-lines strong { color: var(--ink-soft); font-weight: 600; margin-right: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { width: auto; font-size: 1.2rem; padding: 12px 22px; }
.cta-row .btn--alt { background: var(--red); }
.cta-row .btn--alt:hover, .cta-row .btn--alt:focus { background: var(--red-dark); }
.contact-note { margin-top: 24px; color: var(--ink-soft); font-size: .95rem; }

/* ---- legal page ---- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }

/* ---- footer ---- */
.site-footer { background: var(--green); color: #fff; padding: 22px var(--pad); font-size: .9rem; margin-top: var(--pad); }
.site-footer .footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; }
.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus { color: #ffd9dc; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr 1fr; }
  .about-text { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .about { grid-template-columns: 1fr; }
  .about img { max-width: 320px; margin: 0 auto; }
  .contact-card { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .site-footer .footer-row { justify-content: center; text-align: center; }
  .site-nav ul { gap: 2px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
