/* Brand styling adapted from the Silent Tiger mock site. */
:root {
  --color-page: #090a0b;
  --color-section-alt: #101112;
  --color-surface: #141516;
  --color-surface-2: #191a1c;
  --color-ink: #f6f4ef;
  --color-muted: #b9b9b7;
  --color-line: #303033;
  --color-brand: #e50920;
  --color-brand-hover: #ff263c;
  --color-brand-dark: #08090a;
  --color-accent: #ff5264;
  --color-accent-soft: rgb(229 9 32 / 12%);
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --site-width: 1320px;
  --gutter: clamp(22px, 5.5vw, 88px);
  --section-space: 100px;
  --radius: 0;
  --button-radius: 0;
}

body { -webkit-font-smoothing: antialiased; }
::selection { background: #e50920; color: #fff; }
h1, h2, h3, p { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid #ff5264; outline-offset: 5px; }
#site-header { position: sticky; top: 0; z-index: 50; }
.site-header {
  --color-ink: #fff;
  --color-muted: #b9b9b7;
  --color-line: #303033;
  --color-accent: #ff5264;
  --color-blue: #ff5264;
  background: #050505;
  padding-block: 14px;
  box-shadow: none;
  border-color: #202020;
}
.nav { gap: 28px; }
.brand { gap: 14px; flex-shrink: 0; }
.brand-logo { display: block; width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.brand .brand-wordmark { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brand-wordmark strong { font-family: "Russo One", var(--font-body); font-size: 30px; letter-spacing: .5px; font-weight: 400; white-space: nowrap; color: #fff; }
.brand-wordmark small { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; letter-spacing: 4px; margin-top: 7px; text-align: center; color: #fff; white-space: nowrap; }
.brand-wordmark small::before, .brand-wordmark small::after { content: ""; height: 2px; flex: 1; min-width: 18px; background: var(--color-brand); }
.nav-links { gap: 28px; }
.nav-links a, .nav-dropdown summary { font-family: var(--font-display); font-size: 17px; color: #fff; }
.nav-links a:hover, .nav-dropdown summary:hover, .nav-dropdown[open] summary { color: var(--color-accent); }
.nav-dropdown-menu { background: #101112; border-radius: 0; box-shadow: 0 18px 46px #0006; }
.nav-dropdown-menu a { border-radius: 0; }
@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  /* Keep the pointer inside the dropdown while crossing the gap below Programs. */
  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -19px;
    height: 19px;
  }
}
.nav-toggle { background: transparent; border-color: #aaa; border-radius: 0; }
.nav-toggle span { background: #fff; }

.button {
  background: var(--color-brand);
  border: 1px solid var(--color-brand);
  border-radius: 0;
  padding: 17px 30px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.button:hover { background: var(--color-brand-hover); transform: translateY(-3px); box-shadow: 0 9px 30px #e509202e; }
.button:active { transform: none; }
.nav-action .button { font-size: 16px; padding: 14px 22px; letter-spacing: .8px; }
.section-eyebrow { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 4px; color: var(--color-accent); }
/* Count the hero as the first section; each page alternates from dark to light. */
#site-main > section {
  --color-page: #090a0b;
  --color-section-alt: #101112;
  --color-surface: #141516;
  --color-surface-2: #191a1c;
  --color-ink: #f6f4ef;
  --color-muted: #b9b9b7;
  --color-line: #303033;
  --color-accent: #ff5264;
  --color-blue: var(--color-accent);
  --color-blue-soft: var(--color-accent-soft);
  background: var(--color-page);
  color: var(--color-ink);
}
#site-main > section:nth-of-type(even) {
  --color-page: #f3f0e9;
  --color-section-alt: #ebe7df;
  --color-surface: #fffdf9;
  --color-surface-2: #e8e3da;
  --color-ink: #101112;
  --color-muted: #484642;
  --color-line: #d5d0c7;
  --color-accent: #bd1024;
}
/* Clip the viewport-fixed decoration to each dark section, behind its content. */
#site-main > section:nth-of-type(odd) {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
}
#site-main > section:nth-of-type(odd)::after {
  content: "";
  position: fixed;
  inset: -32px;
  z-index: -1;
  background: url("/_assets/media/images/logo-white-red.svg") no-repeat;
  background-size: clamp(640px, 82vw, 1100px) auto;
  background-position: calc(100% + 100px) center;
  opacity: .1;
  pointer-events: none;
  animation: logo-drift 12s linear infinite alternate;
}
#site-main > section:nth-of-type(odd) > .inner {
  position: relative;
  z-index: 2;
}
@keyframes logo-drift {
  from { transform: translate3d(-18px, -12px, 0); }
  to { transform: translate3d(18px, 12px, 0); }
}
.hero { padding-block: 48px; }
.home-hero { min-height: 600px; padding-block: 116px; display: flex; align-items: center; isolation: isolate; }
.home-hero .inner { padding-block: 0; }
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(7 8 9 / 96%) 0%, rgb(7 8 9 / 88%) 32%, rgb(7 8 9 / 56%) 57%, rgb(7 8 9 / 12%) 100%);
  pointer-events: none;
}
.home-hero-layout { position: relative; z-index: 2; display: block; }
.home-hero-copy { max-width: 660px; }
.home-hero h1 { font-size: clamp(38px, 4.3vw, 60px); font-weight: 400; letter-spacing: -1px; line-height: 1.1; margin-bottom: 22px; }
.home-hero p:not(.section-eyebrow) { font-size: 18px; line-height: 1.55; color: #eee; }
.home-hero-copy > p:not(.section-eyebrow) { max-width: 510px; }
.home-hero p.hero-note { font-size: 14px; margin-top: 12px; margin-bottom: 0; }
.home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 12%;
  box-shadow: none;
}
.hero-actions { margin-top: 28px; }
.hero:not(.home-hero) h1 { font-size: clamp(34px, 4.3vw, 56px); font-weight: 400; max-width: 1000px; line-height: 1.15; }
.hero:not(.home-hero) p:not(.section-eyebrow) { font-size: 18px; max-width: 760px; }
.hero h1, .section h1, .section h2, .section h3 { font-family: "Russo One", var(--font-body); font-weight: 400; }
.section h2 { font-size: clamp(30px, 3.3vw, 46px); font-weight: 400; line-height: 1.18; max-width: 1000px; margin-bottom: 25px; }
.split-copy h2 { font-size: clamp(30px, 2.7vw, 40px); }
.hero .text-accent, .section h2 .text-accent { color: var(--color-brand); white-space: normal; }
.section h2::before { content: ""; display: block; width: 48px; height: 2px; background: var(--color-brand); margin-bottom: 28px; }
.section-heading-center h2::before { margin-inline: auto; }
.section-eyebrow { display: flex; align-items: center; gap: 18px; }
.section-eyebrow::after { content: ""; display: block; width: 76px; height: 2px; background: var(--color-brand); }
.section-eyebrow + h2::before { content: none; }
.home-hero .section-eyebrow { color: var(--color-brand); font-size: 14px; letter-spacing: 3px; margin-bottom: 22px; }
.home-intro.section { padding-block: 0; }
.home-intro .split-section { gap: 0; align-items: stretch; }
.home-intro .section-photo { height: 400px; max-height: none; object-fit: cover; object-position: center 55%; }
.home-intro .split-copy { padding: 30px clamp(24px, 3vw, 44px); align-self: center; }
.home-intro h2 { margin-bottom: 18px; }
.home-intro h2::before { margin-bottom: 18px; }
.section p { font-size: 17px; line-height: 1.65; }
.section-photo { border-radius: 0; }
.service-detail .program-artwork { padding: 0; background: transparent; }
.split-copy a { text-underline-offset: 4px; }

.home-services > .inner > p { max-width: 850px; }
.service-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 45px; align-items: stretch; }
.service-item { display: flex; flex-direction: column; padding: 0 0 25px; background: var(--color-surface); border-radius: 0; box-shadow: none; transition: transform .3s, border-color .3s; }
.service-item:hover { transform: translateY(-8px); border-color: var(--color-brand); }
.service-card-media { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 24px; background: var(--color-page); border-bottom: 1px solid var(--color-line); }
.service-card-image.program-artwork { width: 90%; height: 90%; padding: 0; object-fit: contain; background: #fff; transition: transform .4s; }
.service-item:hover .service-card-image { transform: scale(1.04); }
.service-item h3 { font-size: 21px; font-weight: 400; line-height: 1.2; margin: 0 17px 15px; }
.service-item p { font-size: 15px; line-height: 1.65; margin-right: 17px; margin-left: 17px; }
.service-item p + p { margin-top: 12px; }
.service-bullets { margin: 20px 17px; font-size: 14px; }
.service-item .card-link { margin: auto 17px 0; padding-top: 12px; font-family: var(--font-display); font-size: 16px; letter-spacing: .6px; }

/* Instructor layout inherits the alternating section palette. */
.home-bio.section, .about-bio.section {
  border: 0;
  padding-block: 0;
}
.home-bio .profile-layout, .about-bio .profile-layout { grid-template-columns: .85fr 1.15fr; gap: 0; }
.profile-layout .instructor-photo { max-width: none; height: 100%; max-height: 760px; min-height: 620px; object-fit: cover; object-position: center 25%; }
.profile-layout .split-copy { padding: 64px clamp(28px, 4vw, 70px); }
.home-business-showcase h2 { max-width: 850px; }
.faq-item { border-radius: 0; }
.contact-card { background: var(--color-surface); border: 1px solid var(--color-line); border-top: 3px solid var(--color-brand); border-radius: 0; }
.contact-details a { color: var(--color-ink); text-decoration: none; }
.contact-details a:hover { color: var(--color-accent); }
.contact-details { overflow-wrap: anywhere; }
.map-placeholder { border: 1px solid var(--color-line); background: var(--color-surface); }
.site-footer { background: #070809; border-top: 1px solid #272727; }
.footer-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); gap: 50px; }
.footer-content > * { min-width: 0; }
.footer-lockup strong { font-size: 30px; }
.footer-lockup em { font-size: 10px; margin-top: 6px; letter-spacing: 2px; }
.footer-column h2 { font-family: var(--font-display); font-size: 23px; color: #fff; }
.footer-visit a { overflow-wrap: anywhere; }
.lead-modal-backdrop { background: rgb(0 0 0 / 75%); }
.lead-modal-panel { border: 1px solid var(--color-line); border-top: 3px solid var(--color-brand); }
.lead-form-status[data-status="error"] { color: #ff8793; }
.lead-form-status[data-status="success"] { color: #9cdbc1; }

@media (max-width: 1200px) {
  .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav, .nav-links { gap: 18px; }
  .brand-wordmark strong { font-size: 25px; }
  .brand-wordmark small { font-size: 9px; letter-spacing: 3px; }
  .nav-action .button { padding-inline: 16px; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .nav-action { display: none; }
  .brand-logo { width: 50px; height: 50px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .profile-layout .split-copy { padding: 44px 28px; }
}
@media (max-width: 720px) {
  :root { --gutter: 22px; --section-space: 64px; }
  .site-header { padding-block: 10px; }
  .nav { gap: 12px; }
  .brand { gap: 9px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-wordmark strong { font-size: clamp(18px, 5.2vw, 24px); }
  .brand-wordmark small { font-size: 8px; letter-spacing: 2px; gap: 5px; }
  .nav-action { display: none; }
  .nav-links { background: #050505; padding-block: 10px; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .nav-dropdown-menu { background: #101112; }
  .nav-links a, .nav-dropdown summary { font-size: 20px; }
  .nav-dropdown-menu a { white-space: normal; }
  .hero { padding-block: 32px; }
  .home-hero { min-height: 0; padding-block: 86px; }
  .home-hero::before { background: linear-gradient(90deg, rgb(7 8 9 / 88%), rgb(7 8 9 / 72%)); }
  .home-hero h1 { font-size: clamp(28px, 7.5vw, 48px); letter-spacing: -.5px; }
  .home-hero p:not(.section-eyebrow) { font-size: 17px; }
  .home-hero p.hero-note { font-size: 14px; }
  .home-hero-photo { object-position: 58% top; }
  .hero:not(.home-hero) h1 { font-size: clamp(28px, 7.5vw, 40px); }
  .section h2 { font-size: clamp(27px, 6.8vw, 36px); }
  .home-hero .section-eyebrow { font-size: 12px; letter-spacing: 2px; gap: 12px; }
  .home-hero .section-eyebrow::after { width: 32px; flex-shrink: 0; }
  .home-intro .section-photo { height: 240px; object-position: center 55%; }
  .home-intro .split-copy { padding: 24px 0 28px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .home-bio .profile-layout, .about-bio .profile-layout { grid-template-columns: 1fr; }
  .profile-layout .instructor-photo { height: auto; min-height: 0; max-height: 620px; object-fit: contain; }
  .profile-layout .split-copy { padding: 40px 0 48px; }
  .footer-content { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .lead-modal-panel { padding: 28px 20px; }
}
@media (max-width: 440px) {
  .service-list { grid-template-columns: 1fr; }
  .service-card-media { aspect-ratio: 1.4; }
  .service-card-image.program-artwork { width: 85%; height: 210px; }
  .service-item h3 { font-size: 25px; }
  .service-item p { font-size: 16px; }
  .service-item h3, .service-item p, .service-bullets, .service-item .card-link { margin-inline: 25px; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .service-item:hover, .service-item:hover .service-card-image { transform: none; }
}
