/* ==========================================================================
   Holt Johnson USAFE — styles inspired by usaferescue.com
   Colors: #ed1b2f (primary red), #414042 (header), #5b5b5b (footer), #292929
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Open+Sans:wght@400;600;700&display=swap");

:root {
  --color-primary: #ed1b2f;
  --color-primary-hover: #e41645;
  --color-primary-dark: #c01528;
  --color-accent-orange: #ff7d19;
  --color-header: #414042;
  --color-footer: #5b5b5b;
  --color-dark: #292929;
  --color-text: #212529;
  --color-text-muted: #777;
  --color-white: #ffffff;
  --color-light-gray: #e6e7e8;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Bracket headings — usaferescue.com style */
.bracket-title {
  display: inline-block;
  position: relative;
}

.bracket-title::before {
  content: "[";
  color: var(--color-primary);
  margin-right: 0.25rem;
}

.bracket-title::after {
  content: "]";
  color: var(--color-primary);
  margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-header);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  text-decoration: none;
}

.logo-link:hover {
  color: var(--color-white);
  opacity: 0.9;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--color-primary);
}

.logo-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.15rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
}

.site-nav a.active {
  border-bottom-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  background: linear-gradient(
      135deg,
      rgba(41, 41, 41, 0.92) 0%,
      rgba(65, 64, 66, 0.88) 50%,
      rgba(237, 27, 47, 0.25) 100%
    ),
    url("assets/images/hero-placeholder.svg") center / cover no-repeat;
  color: var(--color-white);
}

.hero-content {
  max-width: 720px;
  padding: 4rem 0;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-orange);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn-dark:hover {
  background: var(--color-header);
  border-color: var(--color-header);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-header {
  margin-top: var(--header-height);
  padding: 4rem 0 3rem;
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.page-header .title-underline {
  width: 80px;
  height: 5px;
  background: var(--color-primary);
  margin: 1.25rem auto 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section {
  padding: 4.5rem 0;
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section-gray {
  background: var(--color-light-gray);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-white);
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.09);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-accent-orange);
}

.section-dark .feature-card h3 {
  color: var(--color-white);
}

.section-dark .feature-card p {
  color: rgba(255, 255, 255, 0.75);
}

/* Industry tags */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.industry-tag {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--color-text-muted);
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.values-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Video grid */
.videos-content .page-header {
  padding: 3rem 0 2rem;
}

.videos-content > section {
  padding: 2.5rem 0 3rem;
}

.videos-content .section-header {
  margin-bottom: 2rem;
}

.video-featured {
  margin-bottom: 2rem;
}

.video-card--short {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.video-short-frame {
  background: var(--color-dark);
  padding: 0.75rem 0.75rem 0;
  display: flex;
  justify-content: center;
}

.video-wrapper--short {
  position: relative;
  width: 100%;
  max-width: 315px;
  margin: 0 auto;
  padding-bottom: 177.78%; /* 9:16 portrait */
  background: #000;
  overflow: hidden;
}

.video-wrapper--short iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card--short .video-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
}

.video-card--short h3 {
  color: var(--color-primary);
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.video-card--short p {
  padding: 0;
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.video-upcoming {
  padding-top: 0.25rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-grid-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 1.25rem;
}

.video-grid-label::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto 0.85rem;
}

.video-card {
  background: var(--color-white);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.09);
  overflow: hidden;
}

.video-card h3 {
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 1.1rem;
}

.video-card p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--color-dark);
}

.video-wrapper iframe,
.video-wrapper .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #292929 0%, #414042 100%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.video-placeholder .play-icon::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-left: 4px;
}

/* CTA band */
.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  max-width: 550px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.cta-band .btn-outline {
  border-color: var(--color-white);
}

.cta-band .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  line-height: 1.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  min-height: 50vh;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-header);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .site-nav.is-open {
    max-height: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .site-nav a {
    padding: 0.85rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .video-card--short {
    max-width: min(380px, 100%);
  }

  .video-wrapper--short {
    max-width: min(315px, 82vw);
  }

  .video-short-frame {
    padding: 0.65rem 0.65rem 0;
  }

  .videos-content .page-header {
    padding: 2.5rem 0 1.5rem;
  }

  .videos-content > section {
    padding: 2rem 0 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }
}
