/*
Theme Name: Ken Trimmins Music
Theme URI: https://bitwavedesign.com
Author: Bitwave Design
Description: Custom dark theme for Dr. Ken Trimmins, built on the Bitwave small business starter (v1.0.27).
Version: 1.0.8
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   Swap these per-project. Everything below references only these.
   ============================================================ */
:root {
  /* --- Backgrounds (dark & warm theme) --- */
  --color-bg-page:    #14100d;  /* warm near-black */
  --color-bg-section: #1e1814;  /* alternating section bg */
  --color-bg-raised:  #0c0907;  /* utility bar / deepest band */
  --color-bg-card:    #1e1814;
  --color-bg-border:  #3a3028;
  --color-bg-subtle:  #0c0907;

  /* --- Accent: brass --- */
  --color-accent:       #d4a24c;
  --color-accent-light: #e6bf78;
  --color-accent-dark:  #b8873a;  /* button hover background */

  /* --- Text --- */
  --color-text-primary:   #f3eadb;
  --color-text-secondary: #d9cdba;
  --color-text-muted:     #b8ab98;
  --color-text-on-accent: #14100d;
  --color-text-on-dark:       #f3eadb;
  --color-text-on-dark-muted: rgba(243, 234, 219, 0.78);
  --color-error:              #ef8a74;

  /* --- Dark surface: the deepest band (footer base, video band) --- */
  --color-bg-dark: #0c0907;

  /* --- Overlays: transparent nav sits on top of hero / page-hero images --- */
  --overlay-hero:      linear-gradient(to right, rgba(12,9,7,0.92) 0%, rgba(12,9,7,0.72) 40%, rgba(12,9,7,0.10) 75%, rgba(12,9,7,0) 100%);
  --overlay-page-hero: color-mix(in srgb, var(--color-bg-dark) 84%, transparent);
  --overlay-cta:       color-mix(in srgb, var(--color-bg-dark) 82%, transparent);
  --overlay-footer:    rgba(12,9,7,0.88);
  --nav-glass-bg:      rgba(12,9,7,0.82);
  --nav-glass-blur:    14px;

  /* --- Fonts: swap Google Fonts link in functions.php if changing these --- */
  /* Fallbacks only — functions.php (KTM_FONT_*) overrides these at runtime */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Figtree', system-ui, sans-serif;

  --nav-height:      104px;
  --util-height:     40px;
  /* Logo is sized by WIDTH with height:auto, so it can never be squished */
  --logo-width-base:     300px;
  --logo-width-scrolled: 240px;
  --logo-width-footer:   255px;

  --max-width:       1200px;
  --content-width:   780px;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--color-text-secondary); line-height: 1.75; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.btn--gold {
  background: var(--color-accent);
  color: var(--color-text-on-accent) !important;
}
.btn--gold:hover {
  background: var(--color-accent-dark);
  color: var(--color-text-on-accent) !important;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-bg-border);
  color: var(--color-text-primary) !important;
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text-on-dark) !important;
}
.btn--outline-light:hover {
  border-color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-on-dark) !important;
}

.clear { clear: both; }

/* ============================================================
   UTILITY BAR
   ============================================================ */
.util-bar {
  background: var(--color-bg-raised);
  border-bottom: 1px solid var(--color-bg-border);
  height: var(--util-height);
  display: flex;
  align-items: center;
}

.util-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.util-bar__tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.util-bar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}

.util-bar__contact a {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.util-bar__contact a:hover { color: var(--color-accent-light); }

.util-bar__social {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted) !important;
}
.util-bar__social svg { width: 15px; height: 15px; }
.util-bar__social:hover { color: var(--color-text-primary) !important; }

@media (max-width: 640px) {
  .util-bar__tagline, .util-bar__social { display: none; }
  .util-bar .container { justify-content: center; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header-anchor {
  position: relative;
  height: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  background: var(--nav-glass-bg);
  backdrop-filter: blur(var(--nav-glass-blur));
  -webkit-backdrop-filter: blur(var(--nav-glass-blur));
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-nav {
  background: transparent;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: var(--logo-width-base);
  max-width: 100%;
  height: auto;
  transition: width var(--transition);
}

.site-header.scrolled .site-logo img {
  width: var(--logo-width-scrolled);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-on-dark-muted);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-page-ancestor > a {
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.12);
}

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.nav-menu > li:hover .sub-menu,
.nav-menu > li:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu .sub-menu {
  min-width: 290px;
}

.nav-menu .sub-menu li a:hover {
  color: var(--color-accent-light);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: var(--color-text-on-accent) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-text-on-accent) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-on-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--color-bg-page);
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  padding: calc(var(--util-height) + var(--nav-height) + 24px) 24px 24px;
  overflow-y: auto;
  transition: right var(--transition);
  z-index: 1100;
}

.mobile-nav.open { right: 0; }

.mobile-nav__item {
  border-bottom: 1px solid var(--color-bg-border);
}

.mobile-nav__item > a {
  display: block;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
}

.mobile-nav__arrow {
  transition: transform var(--transition);
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__arrow {
  transform: rotate(90deg);
}

.mobile-nav__sub {
  padding: 0 0 12px 12px;
}

.mobile-nav__sub li a {
  display: block;
  padding: 10px 4px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.mobile-nav__item--cta { border-bottom: none; }

@media (max-width: 900px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-logo { flex-shrink: 1; min-width: 0; max-width: 62vw; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg-section);
  background-image: url('/images/hero-banner.webp');
  background-size: cover;
  background-position: 78% center;
  background-repeat: no-repeat;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--color-accent) 14%, transparent) 0%, transparent 60%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: calc(var(--nav-height) + clamp(56px, 4vw + 38px, 112px));
  padding-bottom: 60px;
}

.hero__content { max-width: 620px; }

.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 10px;
}

.hero__title {
  margin-bottom: 20px;
  color: var(--color-text-on-dark);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 1.02;
}
.hero__title em { color: var(--color-accent-light); font-style: normal; }

.hero__sub {
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--color-text-on-dark-muted);
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .hero__btns {
    gap: 10px;
  }
  .hero__btns .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 14px;
    font-size: 11px;
  }
}

.hero__stats {
  display: flex;
  gap: 32px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.hero__stat { text-align: center; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent-light);
}
.hero__stat-lbl {
  font-size: 12px;
  color: var(--color-text-on-dark-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .hero__stats {
    width: 100%;
    justify-content: space-around;
    padding: 16px 18px;
    gap: 12px;
  }
  .hero__stat-num { font-size: 1.3rem; }
  .hero__stat-lbl { font-size: 10px; }
  .hero .container { padding-bottom: 32px; }
}

/* Desktop only: .hero's align-items:center + min-height was centering the
   (shorter) content vertically, which added invisible slack above and below
   on top of the explicit padding values — not a fixed, predictable gap.
   Switching to top-aligned content here makes the space below the CTA
   buttons exactly equal to padding-bottom, nothing more. Mobile is untouched
   and keeps the centered/min-height behavior above. */
@media (min-width: 901px) {
  .hero {
    align-items: flex-start;
    min-height: 0;
  }
  .hero .container {
    padding-bottom: clamp(72px, 7vw, 120px);
  }
}

/* Phones: the photo sits behind the copy, so darken the whole frame */
@media (max-width: 900px) {
  .hero__bg { background: linear-gradient(to bottom, rgba(12,9,7,0.55) 0%, rgba(12,9,7,0.85) 60%, rgba(12,9,7,0.95) 100%); }
  .hero { min-height: 560px; }
}

/* ============================================================
   SERVICES STRIP
   ============================================================ */
.services-strip {
  background-color: color-mix(in srgb, var(--color-accent-dark) 78%, black 22%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-repeat: repeat;
  padding: 32px 0;
}

.services-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.strip-item:first-child {
  padding-left: 0;
  border-left: none;
}

.strip-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 22px;
}

.strip-item__title { font-weight: 700; font-size: 14px; color: var(--color-text-on-dark); }
.strip-item__desc { font-size: 12px; color: var(--color-text-on-dark-muted); }

@media (max-width: 900px) {
  .services-strip .container { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2n) { border-left: none; padding-left: 0; }
  .strip-item:nth-child(n+3) { border-left: none; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 20px; }
}
@media (max-width: 560px) {
  .services-strip .container { grid-template-columns: 1fr; }
  .strip-item { border-left: none; padding-left: 0; }
  .strip-item:not(:first-child) { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 20px; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section { padding: 80px 0; }

.section__header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section__title { margin-bottom: 16px; font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section--alt {
  background: var(--color-bg-section);
  border-top: 1px solid var(--color-bg-border);
  border-bottom: 1px solid var(--color-bg-border);
}

/* Header with title left, link right (Upcoming Shows, Latest News) */
.section__header--split {
  max-width: none;
  margin: 0 0 32px;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}
.section__header--split .section__title { margin-bottom: 0; }

.section__more {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}
.section__more:hover { color: var(--color-accent-light); }
.section__sub { font-size: 16px; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.service-card__image-wrap {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__image-wrap img { transform: scale(1.05); }

.service-card__body { padding: 24px; }
.service-card__title { margin-bottom: 10px; }
.service-card__desc { font-size: 14px; margin-bottom: 16px; }
.service-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-cards--four { grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.service-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.45); }

@media (max-width: 1100px) {
  .service-cards--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY PREVIEW (homepage "Recent Work" — links to full NGG gallery)
   ============================================================ */
.section--gallery { padding-top: 0; }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-preview__item {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-preview__item:hover img { transform: scale(1.06); }

.gallery-preview__cta { text-align: center; }

@media (max-width: 900px) {
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-preview { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  background: var(--color-bg-section);
  padding: 80px 0;
}

.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-strip__content p { margin: 16px 0; }

.about-strip__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-strip .container { grid-template-columns: 1fr; }
  .about-strip__image { order: -1; }
}

/* ============================================================
   CTA BANNER
   Three-layer technique: solid color fallback on the section itself,
   a desaturated/darkened background photo on ::before, and a strong
   accent-color wash on ::after — giving texture without distraction.
   ============================================================ */
.cta-banner {
  background-color: var(--color-bg-dark);
  border-top: 1px solid var(--color-bg-border);
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/cta-background.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(40%) brightness(0.7);
  transform: scale(1.04);
  z-index: 0;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--overlay-cta);
  z-index: 1;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--color-text-on-dark); margin-bottom: 12px; font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
.cta-banner p { color: var(--color-text-on-dark-muted); margin: 0 auto 28px; max-width: 560px; }
.cta-banner__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
}
.cta-banner__phone { font-weight: 700; color: var(--color-text-on-dark); }
.cta-banner__phone:hover { color: var(--color-accent-light); }
/* Dark wash in this theme, so the brass button reads on its own. */

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  background-color: var(--color-bg-section);
  background-image: url('/images/header-page.webp');
  background-size: cover;
  background-position: center;
  padding: calc(var(--nav-height) + 56px) 0 56px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-page-hero);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-text-on-dark-muted); }
.breadcrumb a:hover { color: var(--color-text-on-dark); }
.breadcrumb span { margin: 0 6px; }

.page-hero h1 { margin-bottom: 12px; color: var(--color-text-on-dark); }
.page-hero p { max-width: 640px; color: var(--color-text-on-dark-muted); }

/* ============================================================
   404
   ============================================================ */
.largepic { max-width: 320px; margin: 24px 0; border-radius: var(--radius-md); }

/* ============================================================
   CONTENT AREA / ENTRY CONTENT (block editor + page.php)
   ============================================================ */
.content-area { padding: 48px 0 64px; }

.entry-content {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flow-root; /* contains floated images (alignleft/alignright) so they can't run into the footer */
}

.entry-content > * + * { margin-top: 1.4em; }

.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }

.entry-content ul, .entry-content ol {
  padding-left: 1.4em;
  color: var(--color-text-secondary);
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  font-style: italic;
  color: var(--color-text-secondary);
}

.entry-content figure { margin: 0; }
.entry-content figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--color-bg-border);
  padding: 10px 14px;
  text-align: left;
}
.entry-content table th { background: var(--color-bg-section); }

/* Native block-editor alignment classes */
.alignwide { max-width: calc(var(--content-width) + 200px); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Floated images (classic editor + image block alignments).
   The .wp-block-image selectors are needed to outrank WordPress's own
   block-library CSS, which otherwise floats the image at full size.
   display:block replaces core's display:table so max-width actually caps it. */
.entry-content .alignright,
.entry-content .wp-block-image .alignright,
.entry-content .wp-block-image.alignright {
  float: right;
  display: block;
  margin: 0.4em 0 1.2em 2em;
  max-width: 45%;
}
.entry-content .alignleft,
.entry-content .wp-block-image .alignleft,
.entry-content .wp-block-image.alignleft {
  float: left;
  display: block;
  margin: 0.4em 2em 1.2em 0;
  max-width: 45%;
}
.entry-content .alignright img,
.entry-content .alignleft img { max-width: 100%; height: auto; }
.entry-content > .alignright + *,
.entry-content > .alignleft + * { margin-top: 0; } /* first block beside a float starts level with it */

/* Phones: still floated, capped at 55% of the column */
@media (max-width: 640px) {
  .entry-content .alignright,
  .entry-content .wp-block-image .alignright,
  .entry-content .wp-block-image.alignright { max-width: 55%; margin: 0.3em 0 1em 1.2em; }
  .entry-content .alignleft,
  .entry-content .wp-block-image .alignleft,
  .entry-content .wp-block-image.alignleft { max-width: 55%; margin: 0.3em 1.2em 1em 0; }
}

/* ============================================================
   BLOG LISTING (archive.php / t-blog.php)
   ============================================================ */
.blog-area { padding: 56px 0 80px; }

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.blog-card__image-wrap {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.blog-card__body { padding: 20px; }

.blog-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.blog-card__title { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card__title a { color: var(--color-text-primary); }
.blog-card__title a:hover { color: var(--color-accent-light); }

.blog-card__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.blog-card__meta-dot { margin: 0 6px; }

.blog-card__excerpt { font-size: 14px; margin-bottom: 14px; }

.blog-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.blog-empty { text-align: center; padding: 48px 0; }
.blog-empty p { margin-bottom: 20px; }

.blog-pagination { margin-top: 40px; }
.blog-pagination__inner {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-bg-border);
  padding-top: 20px;
}
.blog-pagination a { font-weight: 700; font-size: 14px; }

/* ============================================================
   SIDEBAR (shared: archive, single, t-blog)
   ============================================================ */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Hides sidebar on mobile */
@media (max-width: 1024px) {
  .post-content + .post-sidebar {
    display: none;
  }
  .post-layout {
    grid-template-columns: 1fr;
  }
}

/* Same treatment for archive.php/t-blog.php, where the sidebar's preceding
   sibling is .blog-main rather than .post-content. */
@media (max-width: 1024px) {
  .blog-main + .post-sidebar {
    display: none;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card__header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-bg-border);
}

.sidebar-card__body { padding: 16px 20px; }

.sidebar-card__body--links {
  display: flex;
  flex-direction: column;
}
.sidebar-card__body--links a {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
}
.sidebar-card__body--links a:hover { color: var(--color-accent-light); }

.sidebar-cat-count { color: var(--color-text-muted); font-size: 12px; }

.sidebar-card--cta { border-color: var(--color-accent); }
.sidebar-card--cta .sidebar-card__body { padding: 24px 20px; }
.sidebar-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.sidebar-card__title { margin-bottom: 10px; }
.sidebar-card--cta p { font-size: 14px; margin-bottom: 18px; }
.sidebar-cta-phone {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.sidebar-recent-post__thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sidebar-recent-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-post__text { display: flex; flex-direction: column; gap: 4px; }
.sidebar-recent-post__title { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
.sidebar-recent-post__date { font-size: 11px; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero .post-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  margin-right: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
  margin-top: 8px;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta__divider { opacity: 0.5; }

.post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-bg-border);
}
.post-tags__label { font-size: 13px; color: var(--color-text-muted); }
.post-tag {
  font-size: 12px;
  background: var(--color-bg-section);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
}
.post-tag:hover { color: var(--color-accent-light); }

.post-author-bio {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding: 24px;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
}
.post-author-bio__avatar img { border-radius: 50%; }
.post-author-bio__name { font-weight: 700; margin-bottom: 6px; }
.post-author-bio__content p { font-size: 14px; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.post-nav__item {
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-nav__item--next { text-align: right; align-items: flex-end; }
.post-nav__dir { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.post-nav__title { font-weight: 600; color: var(--color-text-primary); }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-author-bio { flex-direction: column; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  clear: both; /* backstop: never sit beside a stray float */
  position: relative;
  background-color: var(--color-bg-dark);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/footer-background.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  filter: grayscale(75%);
  z-index: 0;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-footer);
  z-index: 1;
}

.social-bar {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0;
}
.social-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.social-bar__label { font-size: 12px; color: var(--color-text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.social-bar__icons { display: flex; gap: 14px; }
.social-bar__link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--color-text-on-dark-muted);
}
.social-bar__link svg { width: 16px; height: 16px; }
.social-bar__link:hover { color: var(--color-text-on-dark); border-color: var(--color-accent-light); background: rgba(255, 255, 255, 0.14); }

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand__logo { width: var(--logo-width-footer); max-width: 100%; height: auto; margin-bottom: 16px; }
.footer-brand__desc { font-size: 14px; margin-bottom: 20px; color: var(--color-text-on-dark-muted); }
.footer-brand__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-brand__contact a { color: var(--color-text-on-dark-muted); }
.footer-brand__contact a:hover { color: var(--color-accent-light); }

.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  color: var(--color-text-on-dark);
}
.footer-col__links { display: flex; flex-direction: column; gap: 10px; }
.footer-col__links a { font-size: 14px; color: var(--color-text-on-dark-muted); }
.footer-col__links a:hover { color: var(--color-accent-light); }

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
}
.footer-bottom p { font-size: 13px; color: var(--color-text-on-dark-muted); }
.footer-bottom a { color: var(--color-text-on-dark-muted); }
.footer-bottom a:hover { color: var(--color-accent-light); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .social-bar__inner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================================
   NINJA FORMS
   Built against NF's standard default markup/class names. If your
   form uses a different layout template or a customized markup,
   selectors below may need adjusting — send the rendered HTML and
   these can be tightened up.
   ============================================================ */
.nf-form-cont {
  max-width: 560px;
}

/* NF's own form title/description, if enabled in form settings —
   kept small and muted so it doesn't compete with the page's own
   H2 sitting right above the shortcode. */
.nf-form-title h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.nf-form-fields-required {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.nf-form-fields-required .ninja-forms-req-symbol {
  color: var(--color-accent);
}

.nf-field-container {
  margin-bottom: 22px;
}

.nf-field-label label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.ninja-forms-req-symbol {
  color: var(--color-accent);
  margin-left: 2px;
}

.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element input[type="number"],
.nf-field-element input[type="url"],
.nf-field-element textarea,
.nf-field-element select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nf-field-element textarea {
  min-height: 140px;
  resize: vertical;
}

.nf-field-element input:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder {
  color: var(--color-text-muted);
}

.nf-error-wrap.nf-error {
  font-size: 13px;
  color: var(--color-error);
  margin-top: 6px;
}

/* NF toggles an error class via JS on invalid submit — exact placement
   wasn't visible in the sample HTML (it only showed the valid/untouched
   state), so this targets the two most common spots. If red borders don't
   appear on an actual validation error, inspect the field in a failed
   state and adjust the selector below. */
.nf-field-container.nf-error .nf-field-element input,
.nf-field-container.nf-error .nf-field-element textarea,
.field-wrap.nf-error input,
.field-wrap.nf-error textarea {
  border-color: var(--color-error);
}

/* Submit button, styled to match .btn--gold */
.nf-form-cont .submit-wrap input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-on-accent);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.nf-form-cont .submit-wrap input[type="submit"]:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* Success message after submit */
.nf-response-msg {
  font-size: 15px;
  color: var(--color-text-primary);
  padding: 16px 0;
}

/* ============================================================
   NEXTGEN GALLERY (NGG) — THUMBNAIL GRID
   NGG sets inline width/height per thumbnail — the !important
   overrides are required to let grid control sizing instead.
   Verify against your actual rendered gallery output; exact
   classnames can shift slightly by NGG template/version.
   ============================================================ */
.ngg-galleryoverview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.ngg-gallery-thumbnail-box {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  text-align: left !important;
}

.ngg-gallery-thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ngg-gallery-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.14);
}

.ngg-gallery-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.ngg-gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--color-text-on-dark);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.ngg-gallery-thumbnail:hover .ngg-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.ngg-pagination,
.ngg_pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ngg-pagination a,
.ngg_pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  color: var(--color-text-primary);
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}

.ngg-pagination a:hover,
.ngg_pagination a:hover {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
}


/* ============================================================
   KEN TRIMMINS — HOMEPAGE SECTIONS
   ============================================================ */

/* --- Upcoming shows (index.php, from The Events Calendar) ---
   Desktop: the three shows sit side by side as compact cards.
   Phones: a tight list. Each whole card is clickable (stretched title link). */
.section.shows { padding: 56px 0; }
.shows .section__header--split { margin-bottom: 24px; }

.shows__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shows__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.shows__item:hover { border-color: var(--color-accent); transform: translateY(-2px); }

.shows__date {
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 7px;
  border: 1px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
  border-radius: var(--radius-sm);
  line-height: 1;
}
.shows__month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.shows__day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-top: 4px;
  color: var(--color-text-primary);
}

.shows__info { min-width: 0; }

.shows__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}
.shows__title a { color: var(--color-text-primary); }
.shows__title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.shows__item:hover .shows__title a { color: var(--color-accent-light); }
.shows__title a:focus-visible { outline: none; }
.shows__item:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 40%, transparent); }

.shows__meta { font-size: 13px; line-height: 1.5; color: var(--color-text-muted); }

.shows__empty { font-size: 16px; }

@media (max-width: 900px) {
  .section.shows { padding: 44px 0; }
  .shows__list { grid-template-columns: 1fr; gap: 10px; }
  .shows__item { padding: 12px 14px; align-items: center; }
}

/* --- Featured video --- */
.feature-video {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-bg-border);
  border-bottom: 1px solid var(--color-bg-border);
  padding: 80px 0;
}

.feature-video .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-video__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-section);
  border: 1px solid var(--color-bg-border);
}

.feature-video__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-video__title {
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.feature-video__content p { margin-bottom: 18px; }

@media (max-width: 900px) {
  .feature-video .container { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Education strip (about-strip): portrait photo crop --- */
.about-strip__image img { object-position: center 30%; }

/* --- Latest news on the homepage: three across --- */
.blog-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .blog-grid--three { grid-template-columns: 1fr; }
}

/* ============================================================
   THE EVENTS CALENDAR (/events/ and single events)
   TEC paints its views with its own --tec-* colour variables; these
   point them at the theme tokens so the calendar reads on dark.
   Verify against the live calendar after switching themes.
   ============================================================ */
.tribe-common,
.tribe-events,
.tribe-events-pg-template,
#tribe-events-pg-template {
  --tec-color-text-primary: var(--color-text-primary);
  --tec-color-text-primary-light: var(--color-text-muted);
  --tec-color-text-secondary: var(--color-text-secondary);
  --tec-color-text-disabled: var(--color-text-muted);
  --tec-color-text-events-title: var(--color-text-primary);
  --tec-color-text-event-title: var(--color-text-primary);
  --tec-color-text-event-date: var(--color-text-secondary);
  --tec-color-text-secondary-event-date: var(--color-text-muted);
  --tec-color-text-day-of-week-month: var(--color-text-muted);
  --tec-color-icon-primary: var(--color-text-muted);
  --tec-color-icon-active: var(--color-accent);
  --tec-color-icon-secondary: var(--color-text-muted);
  --tec-color-border-default: var(--color-bg-border);
  --tec-color-border-secondary: var(--color-bg-border);
  --tec-color-border-tertiary: var(--color-bg-border);
  --tec-color-border-active: var(--color-accent);
  --tec-color-background: var(--color-bg-page);
  --tec-color-background-events: var(--color-bg-page);
  --tec-color-background-secondary: var(--color-bg-section);
  --tec-color-background-transparent: transparent;
  --tec-color-background-events-bar-submit-button: var(--color-accent);
  --tec-color-background-events-bar-submit-button-hover: var(--color-accent-dark);
  --tec-color-text-events-bar-submit-button: var(--color-text-on-accent);
  --tec-color-text-events-bar-input: var(--color-text-primary);
  --tec-color-text-events-bar-input-placeholder: var(--color-text-muted);
  --tec-color-background-secondary-datepicker: var(--color-bg-section);
  --tec-color-accent-primary: var(--color-accent);
  --tec-color-accent-primary-hover: var(--color-accent-light);
  --tec-color-accent-primary-active: var(--color-accent-dark);
  --tec-color-accent-primary-background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  --tec-color-link-primary: var(--color-text-primary);
  --tec-color-link-accent: var(--color-accent);
  --tec-color-link-accent-hover: var(--color-accent-light);
  --tec-color-day-marker-month: var(--color-text-muted);
  --tec-color-day-marker-past-month: var(--color-text-muted);
  --tec-color-background-primary-multiday: color-mix(in srgb, var(--color-accent) 24%, transparent);
  --tec-color-background-primary-multiday-hover: color-mix(in srgb, var(--color-accent) 34%, transparent);
  --tec-color-background-tooltip: var(--color-bg-section);
}

/* With TEC's "Default Events Template" there is no page hero, so give
   the overlaid nav room. (With "Default Page Template" page.php's hero
   handles this already.) */
#tribe-events-pg-template {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 64px;
}

.tribe-events .tribe-events-c-search__button,
.tribe-events button.tribe-events-c-search__button {
  color: var(--color-text-on-accent);
}

/* Older TEC widgets/views that still hard-code white backgrounds */
.tribe-events-single,
.tribe-events-single .tribe-events-event-meta,
.tribe-events-c-subscribe-dropdown__content {
  background: transparent;
  color: var(--color-text-secondary);
}
.tribe-events-c-subscribe-dropdown__list {
  background: var(--color-bg-section) !important;
  border-color: var(--color-bg-border) !important;
}

/* ============================================================
   NINJA FORMS — dark-theme additions
   ============================================================ */
.nf-field-element select option { background: var(--color-bg-card); color: var(--color-text-primary); }
.nf-field-element input[type="date"],
.nf-field-element .pikaday__display {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color-scheme: dark;
}
.nf-form-cont input[type="button"] {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-on-accent);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  cursor: pointer;
}
.nf-form-cont input[type="button"]:hover { background: var(--color-accent-dark); }

/* Embedded videos in page content (ensemble pages) */
.entry-content iframe[src*="youtube"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
}

/* In-page anchors (/#ensembles from the nav, #shows from the hero) land
   below the fixed header instead of underneath it. */
.section[id] { scroll-margin-top: var(--nav-height); }
