:root {
  --sv-navy: #00163c;
  --sv-ink: #02294e;
  --sv-teal: #019f9e;
  --sv-aqua: #42cdca;
  --sv-orange: #fb5c05;
  --sv-amber: #fb8108;
  --sv-sun: #f8d52b;
  --sv-cream: #eef0d8;
  --sv-white: #fff;
  --sv-card: rgba(255, 255, 255, 0.9);
  --sv-shadow: 0 18px 50px rgba(4, 49, 63, 0.14);
  --sv-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
a { text-underline-offset: 0.2em; }
img { max-width: 100%; height: auto; }

.sv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 22, 60, 0.97);
  color: white;
  transition: box-shadow 180ms ease, background 180ms ease;
}
.admin-bar .sv-header { top: 32px; }
.sv-header.is-scrolled { box-shadow: 0 8px 25px rgba(4, 35, 45, 0.25); background: var(--sv-navy); }
.sv-header__inner { min-height: 92px; padding-inline: clamp(1rem, 4vw, 3rem); }
.sv-header a { color: white; text-decoration: none; }
.sv-site-logo:has(img) + .sv-reference-logo { display: none; }
.sv-reference-logo { display: flex; align-items: center; flex: 0 0 auto; }
.sv-reference-logo img { display: block; width: 160px; height: 80px; object-fit: contain; }
.sv-header .wp-block-site-logo img { max-height: 74px; width: auto; }
.sv-nav .wp-block-navigation-item__content { padding: 0.7rem 0.15rem; }
.sv-nav .current-menu-item > a,
.sv-nav a:hover,
.sv-nav a:focus-visible { color: var(--sv-sun); }
.sv-nav-cta > a { color: var(--sv-sun) !important; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.sv-page {
  min-height: 70vh;
  background:
    linear-gradient(90deg, rgba(255,250,242,.82), rgba(255,247,235,.54)),
    url('../images/steelvibes-background.jpg') center center / cover fixed;
}
.sv-page__content { padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem); }
.sv-hero { min-height: min(800px, calc(100vh - 92px)); display: grid; align-items: center; padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1rem, 4vw, 3rem); }
.sv-hero__inner { width: 100%; }
.sv-hero h1 { max-width: 900px; color: var(--sv-navy); margin-block: 0.25em 0.45em; text-wrap: balance; }
.sv-hero .has-large-font-size { max-width: 750px; }
.sv-kicker { margin-bottom: 0.5rem; color: var(--sv-teal); font-size: 0.82rem; font-weight: 850; letter-spacing: 0.075em; text-transform: uppercase; }
.sv-section { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem); }
.sv-section > h2 { max-width: 780px; margin-inline: auto; margin-bottom: 2.5rem; }

.sv-card {
  padding: clamp(1.4rem, 3vw, 2.35rem);
  border: 1.5px solid rgba(1, 159, 158, 0.55);
  border-radius: var(--sv-radius);
  background: var(--sv-card);
  box-shadow: var(--sv-shadow);
  backdrop-filter: blur(8px);
}
.sv-card > :first-child { margin-top: 0; }
.sv-card > :last-child { margin-bottom: 0; }
.sv-card h2, .sv-card h3 { color: var(--sv-navy); }
.sv-photo-placeholder { min-height: 290px; display: grid; place-content: center; text-align: center; color: var(--sv-teal); background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,252,252,.86)); }
.sv-home .sv-photo-placeholder { min-height: 420px; }
.sv-audio-card { margin-top: 2.5rem; min-height: 190px; display: grid; align-content: center; position: relative; padding-left: clamp(2rem, 10vw, 8rem); }
.sv-audio-card::before { content: '▶'; position: absolute; left: clamp(1.2rem, 4vw, 3rem); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--sv-teal); color: white; font-size: 1.45rem; padding-left: .15rem; }

.sv-grid { display: grid !important; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; padding: 0; }
.sv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sv-event { min-height: 275px; }
.sv-event__meta { font-weight: 700; }
.sv-text-link { font-weight: 800; }
.sv-empty { max-width: 680px; }

.sv-member h3 { margin: 0.85rem 0 0.1rem; font-size: 1.05rem; }
.sv-member p { margin: 0; font-size: 0.92rem; }
.sv-member__photo { display: grid; place-content: center; width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1.5px solid var(--sv-aqua); border-radius: 18px; background: rgba(255,255,255,.9); color: var(--sv-teal); font-weight: 800; text-transform: uppercase; }
.sv-gallery-placeholder > .sv-photo-placeholder { min-height: 250px; font-weight: 800; }

.wp-element-button,
button {
  border: 0;
  background: var(--sv-orange);
  color: white;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.wp-element-button:hover,
button:hover { transform: translateY(-2px); background: var(--sv-amber); box-shadow: 0 9px 24px rgba(0,22,60,.2); }
.wp-block-button.is-style-outline .wp-element-button { background: rgba(255,255,255,.72); border-color: var(--sv-navy); color: var(--sv-navy); }

.sv-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.sv-form label { display: grid; gap: .35rem; color: var(--sv-navy); font-weight: 750; }
.sv-form input,
.sv-form textarea { width: 100%; padding: .85rem 1rem; border: 1px solid rgba(11,59,75,.28); border-radius: 10px; background: rgba(255,255,255,.92); color: var(--sv-navy); font: inherit; }
.sv-form input:focus,
.sv-form textarea:focus { outline: 3px solid rgba(248,213,43,.48); border-color: var(--sv-teal); }
.sv-form__wide { grid-column: 1 / -1; }
.sv-form button { padding: .9rem 1.7rem; border-radius: 999px; background: var(--sv-orange); color: white; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.sv-form__privacy { font-size: .8rem; opacity: .8; }
.sv-honeypot { position: absolute !important; left: -9999px !important; }
.sv-notice { padding: 1rem; border-radius: 10px; font-weight: 700; }
.sv-notice--success { background: #e0f5ed; color: #155c43; }
.sv-notice--error { background: #fff0ee; color: #8b2d24; }

.sv-article { max-width: 900px; margin: 0 auto; }
.sv-centered { max-width: 700px; margin: 0 auto; text-align: center; }
.sv-footer { padding: 3.5rem clamp(1rem, 4vw, 3rem) 1.5rem; background: var(--sv-navy); color: white; }
.sv-footer h3, .sv-footer h4 { color: white; }
.sv-footer a { color: white; }
.sv-footer .wp-block-separator { opacity: .35; }

@media (max-width: 1000px) {
  .sv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; background: var(--sv-navy); color: white; }
  .sv-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; font-size: 1.25rem; }
}

@media (max-width: 782px) {
  .admin-bar .sv-header { top: 46px; }
  .sv-header__inner { min-height: 76px; }
  .sv-reference-logo img { width: 135px; height: 68px; }
  .sv-page { background-attachment: scroll; }
  .sv-hero { min-height: auto; padding-block: 4rem 5rem; }
  .sv-home .sv-photo-placeholder { min-height: 280px; }
  .sv-grid--2, .sv-grid--3 { grid-template-columns: 1fr; }
  .sv-form__grid { grid-template-columns: 1fr; }
  .sv-form__wide { grid-column: auto; }
  .sv-audio-card { padding: 7rem 1.5rem 1.75rem; }
  .sv-audio-card::before { left: 1.5rem; top: 1.5rem; transform: none; }
}

@media (max-width: 520px) {
  .sv-grid--4 { grid-template-columns: 1fr; }
  .sv-hero h1 br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-contrast: more) {
  .sv-card { background: #fff; border-width: 2px; backdrop-filter: none; }
  .sv-page { background-image: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)), url('../images/steelvibes-background.jpg'); }
}
