/* ==========================================================================
   Connie Brannock Band — sitewide styles
   Static rebuild of the WordPress/Astra/Elementor site (ONNA Web Design)
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Josefin Sans"; src: url("/fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Design tokens (from the original Astra global palette) ---------- */
:root {
  --indigo: #3c395d;       /* main brand color */
  --indigo-dark: #2d2b47;  /* header, footer bar, band section */
  --navy: #0d3b6f;         /* band member last names */
  --blue: #1d6bda;         /* buttons, music service icons */
  --blue-dark: #1556b3;
  --gold: #ffd246;         /* headline accent */
  --red: #a6372e;          /* show dates */
  --red-light: #bf4a41;    /* show times (4.6:1 on white) */
  --gray-bg: #f2f2f5;
  --white: #fff;
  --text: #3c395d;

  --font-head: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Playfair Display", Georgia, serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--indigo); }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.light :focus-visible, .section--light :focus-visible, .section--gray :focus-visible { outline-color: var(--blue); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--gold); color: var(--indigo-dark); padding: .6em 1em; font-weight: 700; text-decoration: none; border-radius: 3px; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Header / navigation ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; background: rgba(45, 43, 71, .82); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 90px; max-width: 1340px; }
.site-logo { flex: none; display: block; }
.site-logo img { width: 220px; height: auto; }
.nav-toggle { display: none; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.5rem; flex-wrap: wrap; }
.main-nav a { color: var(--white); text-decoration: none; font-size: .95rem; padding: .35em 0; display: inline-block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
/* Social icons: white tiles with a dark icon, set close together */
/* (scoped under .main-nav so the menu's own list/link rules don't override them) */
.main-nav .social { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.main-nav .social a { display: inline-flex; padding: 0; border: 0; align-items: center; justify-content: center; width: 1.375rem; height: 1.375rem; background: var(--white); color: var(--indigo-dark); font-size: 1rem; border-radius: 3px; transition: background .15s; }
.main-nav .social a:hover { background: var(--gold); color: var(--indigo-dark); }

@media (max-width: 1100px) {
  .site-header .wrap { min-height: 72px; }
  .site-logo img { width: 170px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .5em; margin-left: auto; background: none; border: 2px solid rgba(255,255,255,.6); color: var(--white); font: 700 .9rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: .5em .8em; border-radius: 3px; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--indigo-dark); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem;
    /* A tall menu scrolls inside itself instead of pushing the page (phones in landscape) */
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: .8em 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; }
  .main-nav .social { padding-top: 1rem; gap: 10px; }
  .main-nav .social a { width: 1.75rem; height: 1.75rem; font-size: 1.25rem; }
}

/* ---------- Page hero ----------
   The photo is an absolutely-positioned layer behind the text; the text box
   sets a min-height, so a long wrapped heading grows the hero instead of clipping. */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--indigo); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
/* Photos are cropped from the top third so faces stay in frame */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--indigo); opacity: .6; }
.hero-inner { min-height: 600px; padding: 160px var(--gutter) 80px; display: flex; flex-direction: column; justify-content: center; max-width: var(--wrap); margin: 0 auto; }
.hero-text { max-width: 560px; }
.hero h1 { color: var(--gold); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .3em; }
.hero .tagline { font-family: var(--font-script); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.35; margin: 0; }

.hero--home .hero-inner { min-height: 800px; padding-top: 180px; }
.hero--home .hero-text { max-width: 640px; }
.hero--home h1 { color: var(--white); font-size: clamp(2.5rem, 5.5vw, 3.75rem); margin-bottom: .25em; }
.hero--home h1 .sub { display: block; font-size: .78em; }
.hero--home h1 .sub small { font-size: .55em; }
.hero--home h1 .gold { color: var(--gold); }
.hero--home .tagline { margin-bottom: 1rem; }
.hero--home p { font-size: .95rem; line-height: 1.7; }
.hero .gold-text { color: var(--gold); }
.hero a.gold-link { color: var(--gold); font-weight: 900; font-style: italic; }
.hero a.gold-link:hover { color: var(--white); }

@media (max-width: 767px) {
  .hero-inner { min-height: 420px; padding-top: 120px; padding-bottom: 56px; }
  .hero--home .hero-inner { min-height: 0; padding-top: 130px; }
}
/* Phones held sideways: keep page heroes from filling more than the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-inner { min-height: 100vh; min-height: 100svh; padding-top: 110px; padding-bottom: 40px; }
  .hero--home .hero-inner { min-height: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: var(--white); border: 2px solid var(--blue); font: 700 .85rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: .95em 1.6em .8em; border-radius: 2px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--outline-white { border-color: var(--white); }
.btn--outline-white:hover { border-color: var(--gold); }
.btn-row { margin-top: 1.75rem; }
.center { text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--indigo-dark); color: var(--white); }
.section--dark h2 { color: var(--gold); }
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
.script { font-family: var(--font-script); font-style: italic; font-weight: 400; }
@media (max-width: 767px) { .section { padding: 56px 0; } }

/* Two-column split (text + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Shows calendar (filled in by /js/shows.js) ---------- */
/* Masonry: a grid (not CSS columns) so shows read left-to-right in date order.
   shows.js adds .is-masonry and sets each card's row span from its height,
   so cards tuck up under shorter ones. Without JS it's a plain grid. */
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.shows.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.shows.is-masonry > * { margin-bottom: 12px; }
.show { background: var(--white); border: 1px solid #d6dbe6; border-radius: 3px; padding: 12px 16px 16px; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.5; }
.show-date { font: 700 1.05rem var(--font-body); color: var(--indigo-dark); margin: 0; }
.show-time { color: var(--red-light); font-size: .85rem; border-bottom: 1px solid #d6dbe6; padding-bottom: 6px; margin-bottom: 10px; }
.show h3 { font: 700 1rem/1.35 var(--font-body); color: var(--indigo-dark); margin: 0 0 .5em; }
.show-loc { margin: 0 0 .5em; font-size: .85rem; }
.show-loc a { color: inherit; text-decoration-color: rgba(60,57,93,.35); }
.show-loc a:hover { color: var(--blue); }
.show-desc { margin: 0; }
.shows-status { grid-column: 1 / -1; text-align: center; padding: 1rem 0; }
.shows-month { grid-column: 1 / -1; font: 700 1.5rem var(--font-head); color: var(--indigo); margin: 1rem 0 .75rem; padding-bottom: .3rem; border-bottom: 2px solid var(--gold); }
.shows-month:first-child { margin-top: 0; }
.shows-subscribe { text-align: center; margin-top: 1.5rem; font-size: .9rem; }

/* ---------- Video embeds (click-to-load, so YouTube isn't loaded until wanted) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video button:hover img, .video button:focus-visible img { opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 20px; }
.video-grid h3 { font-family: var(--font-script); font-style: italic; font-weight: 400; text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); text-transform: lowercase; margin-bottom: .35em; }
@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Best of Tucson banner ---------- */
.banner-black { background: #000; padding: 0 0 20px; }
.banner-black img { margin: 0 auto; }

/* ---------- Albums ---------- */
.albums { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 40px; }
.album-head { text-align: center; margin-bottom: 1.25rem; }
.album-head h3 { font-family: var(--font-script); font-style: italic; font-weight: 400; text-transform: lowercase; font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0; }
.album-head p { font-family: var(--font-script); font-style: normal; text-transform: lowercase; font-size: 1.2rem; margin: 0; }
.album img.cover { margin: 0 auto 1.25rem; width: 100%; max-width: 480px; }
.album-credits { font-size: .85rem; line-height: 1.75; }
.album-credits strong { display: block; text-transform: uppercase; }
.listen { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; padding-left: .5rem; }
.listen h4 { font-size: 1.6rem; margin: 0; }
.listen ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.listen a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--blue); color: var(--white); border-radius: 5px; font-size: 1.15rem; }
.listen a:hover { background: var(--indigo); }
@media (max-width: 767px) { .albums { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-bio { font-size: .95rem; }
.words { background: var(--indigo-dark); color: var(--white); }
.words h2 { color: var(--gold); font-size: clamp(2rem, 4vw, 2.5rem); }
.words p { font-size: .95rem; }

/* ---------- Little House of Funk ---------- */
.lhof-top { background: #231f20; padding: 120px 0 40px; }
.lhof-top h1 { margin: 0; }
.lhof-top img { margin: 0 auto; }
.lhof-intro h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2rem; }
.lhof-intro p { font-size: .95rem; }
.lhof-tag { font-family: var(--font-script); font-style: italic; color: var(--blue); font-size: 1.6rem; text-align: center; margin: 1.5rem 0 0; }

.band { position: relative; isolation: isolate; padding: 70px 0 90px; color: var(--text); }
.band-bg { position: absolute; inset: 0; z-index: -2; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--indigo-dark); opacity: .85; }
.band .section-title { color: var(--white); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { background: var(--white); padding: 20px; display: flex; flex-direction: column; }
.member-photos { display: grid; gap: 8px; margin-bottom: 1rem; }
.member-photos--2 { grid-template-columns: 1fr 1fr; }
.member-photos--5 { grid-template-columns: repeat(5, 1fr); }
.member h3 { margin: 0 0 .6rem; color: var(--navy); font-size: 1.6rem; text-transform: uppercase; line-height: 1.3; }
.member h3 .first { display: block; font-family: var(--font-script); font-style: italic; font-weight: 400; text-transform: none; color: var(--indigo-dark); font-size: 1.15rem; margin-bottom: .2rem; }
.member p { font-size: .9rem; line-height: 1.6; }
.member--wide { grid-column: 1 / -1; text-align: center; }
@media (max-width: 960px) { .band-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .band-grid { grid-template-columns: 1fr; } .member-photos--5 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Let's Connect / newsletter (sitewide footer) ---------- */
.connect { display: grid; grid-template-columns: 1fr 1fr; background: var(--indigo); color: var(--white); scroll-margin-top: 0; }
.connect-text { padding: 70px var(--gutter); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.connect h2 { color: var(--gold); font-size: clamp(2.6rem, 5vw, 3.75rem); margin-bottom: .2em; }
.connect .book { font: 700 1.35rem var(--font-head); color: var(--gold); margin-bottom: 1rem; }
.connect-contact { font: 600 1.2rem var(--font-head); margin-bottom: 1.5rem; line-height: 1.6; }
.connect-contact a { color: var(--white); text-decoration: none; }
.connect-contact a:hover { color: var(--gold); text-decoration: underline; }
.newsletter-lead { font: 700 1rem var(--font-head); margin-bottom: 1rem; }
.newsletter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; max-width: 440px; }
.newsletter input[type="email"] { flex: 1 1 200px; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.8); color: var(--white); font: 1rem var(--font-body); padding: .6em .25em; border-radius: 0; }
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.75); }
.newsletter .btn { background: transparent; border: 1px solid var(--white); font-size: .75rem; padding: .85em 1.6em .75em; }
.newsletter .btn:hover { background: var(--white); color: var(--indigo); }
.newsletter-msg { min-height: 1.5em; margin-top: .75rem; font-size: .95rem; }
.newsletter-msg.is-error { color: #ffd0cb; }
.hp { position: absolute; left: -5000px; }
.connect-photo { position: relative; min-height: 360px; isolation: isolate; }
.connect-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.connect-photo::after { content: ""; position: absolute; inset: 0; background: var(--indigo); opacity: .45; z-index: -1; }
@media (max-width: 860px) { .connect { grid-template-columns: 1fr; } .connect-photo { min-height: 260px; } }

.site-footer { background: var(--indigo-dark); color: rgba(255,255,255,.75); font-size: .85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.site-footer p { margin: 0; }
.site-footer a { color: #6fb2ff; }
.site-footer a:hover { color: var(--gold); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }

/* Home: KOLD interview heading */
.kold-title { font-size: clamp(2rem, 4vw, 2.75rem); }
