/* ==========================================================================
   Saving Stella — site styles
   Rebuilt from the original Squarespace site.
   Palette and fonts taken from the live site:
     - Heading font : Shrikhand (display serif)
     - Body font    : Open Sans
     - charcoal     : #1e1d1d  (site "black" theme background)
     - white        : #ffffff
     - mid gray     : #bfbfbf  (site "bright" theme background / accent)
     - light gray   : #dedede  (site "light" theme background)
     - accent       : #8f4427  (terracotta, from the logo — used on buttons/links)
   ========================================================================== */

:root {
  --charcoal:   #1e1d1d;
  --white:      #ffffff;
  --mid-gray:   #bfbfbf;
  --light-gray: #dedede;
  --accent:     #8f4427;
  --accent-dark:#743620;

  --font-heading: "Shrikhand", Georgia, serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
}

/* --- reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

/* --- accessibility (WCAG 2.2) -------------------------------------------- */
/* Skip link — 2.4.1 Bypass Blocks */
.skip-link {
  position: absolute;
  left: 8px;
  top: -56px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }

/* Visible keyboard focus — 2.4.7 */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { outline-color: #fff; }   /* contrast on dark areas */
main:focus { outline: none; }

/* Keep anchored / focused targets clear of the sticky header — 2.4.11 */
[id] { scroll-margin-top: 96px; }

/* Keep header text legible over the hero image — 1.4.3 */
body.home .brand,
body.home .nav a.nav-link { text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }
body.home .social svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p { margin: 0 0 1.1em; }

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

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 999px;            /* fully rounded / pill */
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}
/* Same hollow "Learn more" look, for use on light backgrounds */
.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* --- site header --------------------------------------------------------- */
/* Default (inner pages): translucent dark bar that blends a little. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 29, 29, .80);
  backdrop-filter: blur(6px);
}
/* Home page: fully transparent overlay that fades into the hero image. */
body.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(30, 29, 29, .55) 0%, rgba(30, 29, 29, 0) 100%);
  backdrop-filter: none;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; color: var(--white); }
.brand img { height: 52px; width: auto; display: block; }
body.home .brand img { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }  /* legible over hero */

/* footer logo */
.footer-logo { height: 104px; width: auto; display: block; margin: 0 auto 24px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a.nav-link {
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav a.nav-link:hover { color: var(--mid-gray); text-decoration: none; }
.nav .btn { padding: 11px 24px; font-size: .75rem; }

/* --- social icons -------------------------------------------------------- */
.social {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.social a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;       /* 2.5.8 Target Size (minimum) */
  min-height: 24px;
  padding: 4px;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
.social a:hover { color: var(--mid-gray); opacity: .9; text-decoration: none; }
.social svg { width: 21px; height: 21px; fill: currentColor; display: block; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
  /* reserve room for the absolute (overlay) header so the centered
     content never tucks up underneath it on shorter screens */
  padding: 116px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero.webp") center 30% / cover no-repeat;
  opacity: .55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,29,29,.55) 0%, rgba(30,29,29,.35) 45%, rgba(30,29,29,.85) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: .25em; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero p {
  max-width: 620px;
  margin: 0 auto 1.8em;
  font-size: 1.15rem;
}

/* --- generic section ----------------------------------------------------- */
.section { padding: 96px 0; }
.section--tight { padding: 48px 0; }   /* half padding */
.section--dark   { background: var(--charcoal); color: var(--white); }
.section--mid    { background: var(--mid-gray); color: var(--charcoal); }
.section--light  { background: var(--light-gray); color: var(--charcoal); }
.section--white  { background: var(--white); color: var(--charcoal); }
.section--dark a { color: var(--white); text-decoration: underline; }

.section--center { text-align: center; }
.section .lead { font-size: 1.2rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* --- marquee (light, bordered, its own section) -------------------------- */
.marquee {
  background: var(--light-gray);
  color: var(--charcoal);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-top: 3px solid var(--charcoal);
  border-bottom: 3px solid var(--charcoal);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;   /* higher = slower */
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.marquee span {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 .4em;
}
.marquee .sep { color: var(--accent); }
/* Two identical groups -> shifting by half the track loops seamlessly. */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* --- full-bleed image banner --------------------------------------------- */
.fullbleed {
  width: 100%;
  min-height: 78vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* --- background / cover video section ------------------------------------ */
.video-cover {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  background: #000;
}
.video-cover iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* cover the section while keeping 16:9 */
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  border: 0;
  pointer-events: none;
}
/* Respect reduced-motion: replace the autoplaying video with a still image (2.2.2 / 2.3.x) */
@media (prefers-reduced-motion: reduce) {
  .video-cover iframe { display: none; }
  .video-cover { background: #000 url("../images/band.webp") center / cover no-repeat; }
}

/* --- "What we play" — full-width grid of compact genre cards ------------- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
  text-align: left;
}
@media (max-width: 760px) { .genre-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .genre-grid { grid-template-columns: 1fr; } }
.genre-card {
  background: var(--white);
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.genre-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.genre-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  margin: 0 0 4px;
}
.genre-examples {
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.45;
  margin: 0;
}

/* --- two-column feature -------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature img { border-radius: 3px; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.feature .feature__body h2 { margin-top: 0; }

/* --- about page ---------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img { border-radius: 3px; box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.about-body p { font-style: italic; }
/* keep "About the Band" on a single line in its column */
.about-body h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); white-space: nowrap; }

/* centered, narrower form (home page "quick" contact form) */
.form-narrow { max-width: 640px; margin: 0 auto; }

/* BandHelper calendar widget wrapper */
.bh-calendar { max-width: 820px; margin: 30px auto 0; text-align: left; }
.bh-calendar img { display: inline; }

/* --- contact / form ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info p { font-size: 1.1rem; }
.contact-info a { font-weight: 700; text-decoration: underline; }  /* 1.4.1 not color-only */
/* keep "Book Saving Stella" on a single line in its column */
.contact-info h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); white-space: nowrap; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.label-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #666; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid #b6b6b6;
  border-radius: 10px;
  background: var(--white);
  color: var(--charcoal);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143,68,39,.20);
}
.form-note { font-size: .85rem; color: #555; margin-top: 4px; }

/* submit button while sending */
.js-form button[disabled] { opacity: .6; cursor: progress; }

/* inline error (failed submit) */
.form-error {
  color: #8a1f1f;            /* accessible dark red on light bg */
  font-weight: 600;
  margin: 12px 0 0;
}

/* inline success confirmation (replaces the form) */
.form-success {
  background: var(--white);
  border: 1px solid var(--accent);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 26px 28px;
  text-align: left;
}
.form-success h3 { margin: 0 0 .35em; }
.form-success p { margin: 0; font-style: normal; }
.form-success:focus { outline: none; }

/* honeypot anti-spam field: hidden from people, only bots fill it in */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- footer -------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.site-footer a { color: var(--white); text-decoration: underline; }
.site-footer .footer-contact { font-size: 1.05rem; margin-bottom: .4em; }
.site-footer .copyright { color: var(--mid-gray); font-size: .85rem; margin: 0; }
.site-footer .social { justify-content: center; margin-bottom: 22px; }
.site-footer .social a { color: var(--white); }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .feature,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 32px 0; }   /* stays half the base padding */
  .nav { gap: 18px; }
}

/* Phones: stack the header so nav stays reachable, and tighten spacing. */
@media (max-width: 600px) {
  .site-header .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .brand { width: 100%; justify-content: center; text-align: center; font-size: 1.5rem; }
  .nav { width: 100%; justify-content: center; gap: 22px; }

  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 26px 0; }   /* still half */

  .hero { min-height: 78vh; padding-top: 156px; padding-bottom: 44px; }
  .video-cover { height: 56vh; }
  .fullbleed { min-height: 54vh; }
}
