/* ==========================================================================
   C-PAP — Cyber-Physical Assurance Platform | elce.ai
   Main Stylesheet — Dark Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary:      #01110A;
  --bg-secondary:    #0D1F1A;
  --bg-card:         #0F2820;
  --bg-card-hover:   #163D2A;

  /* Accent */
  --accent:          #003E1F;
  --accent-light:    #73BA9B;
  --brick-ember:     #CC493B;

  /* Status */
  --success:         #22C55E;
  --warning:         #F59E0B;
  --danger:          #EF4444;

  /* Text */
  --text-primary:    #FFFFFF;
  --text-secondary:  rgba(255, 255, 255, 0.75);
  --text-muted:      rgba(255, 255, 255, 0.50);

  /* Borders */
  --border:          #1A3D2B;

  /* Typography */
  --font-sans:       'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', 'Courier New', monospace;

  /* Sizing */
  --container-max:   1280px;
  --container-pad:   1.5rem;
  --radius:          6px;
  --radius-lg:       10px;

  /* Transitions */
  --transition:      0.2s ease;
}


/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover,
a:focus-visible {
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--text-primary);
}


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
  color: var(--text-primary);
}

code, pre {
  font-family: var(--font-mono);
}

code {
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--accent-light);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li + li {
  margin-top: 0.35rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}


/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.site-main {
  flex: 1;
}


/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 17, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 28px;
  width: auto;
  border-radius: 3px;
}

/* Navigation toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

/* Nav list */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.is-active {
  color: var(--accent-light);
}

/* Dropdowns */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 110;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-dropdown-link.is-active {
  color: var(--accent-light);
}


/* --------------------------------------------------------------------------
   6. Hero Sections
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 48rem;
}

.page-hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 40rem;
  line-height: 1.5;
}

/* Homepage hero — larger variant */
.home-hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.home-hero-title {
  font-size: 3.25rem;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 52rem;
}

.home-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}


/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-light);
  color: var(--bg-primary);
  border-color: var(--accent-light);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #8ECAAD;
  border-color: #8ECAAD;
  color: var(--bg-primary);
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.btn--ember {
  background: var(--brick-ember);
  color: var(--text-primary);
  border-color: var(--brick-ember);
}

.btn--ember:hover,
.btn--ember:focus-visible {
  background: #D95F53;
  border-color: #D95F53;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


/* --------------------------------------------------------------------------
   7b. Forms (Contact page)
   -------------------------------------------------------------------------- */
.contact-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(115, 186, 155, 0.15);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2373BA9B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}


/* --------------------------------------------------------------------------
   7c. Accordion (FAQ page)
   -------------------------------------------------------------------------- */
.faq-section + .faq-section {
  margin-top: 2.5rem;
}

.faq-section-title {
  font-size: 1.1rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--transition);
}

.accordion-trigger:hover {
  background: var(--bg-card-hover);
}

.accordion-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 1rem;
  transition: transform var(--transition);
  color: var(--accent-light);
}

.accordion-item[open] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.25rem 1rem;
  background: var(--bg-card);
}

.accordion-body p {
  font-size: 0.9375rem;
}


/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background var(--transition), border-color var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Stat cards (homepage) */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* --------------------------------------------------------------------------
   9. Tags & Badges
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-weight: 400;
}

.tag--framework {
  background: var(--accent);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tag--context {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
}

.tag--context:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.framework-tags,
.context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Domain badges (sector pages) */
.domain-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.domain-badge {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.domain-badge-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.15rem;
}

.domain-badge-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.domain-badge-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   10. Sector Page Layout
   -------------------------------------------------------------------------- */
.sector-grid {
  padding: 3rem 0;
}

.sector-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.sector-section:last-child {
  border-bottom: none;
}

.sector-section h2 {
  margin-bottom: 1.25rem;
}

.sector-section--highlight {
  background: var(--bg-card);
  margin: 0 calc(var(--container-pad) * -1);
  padding: 2rem var(--container-pad);
  border-radius: var(--radius-lg);
  border-bottom: none;
}

/* Case study card */
.case-study-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.case-study-card h3 {
  margin-bottom: 0.75rem;
}

.case-study-card p {
  margin-bottom: 1rem;
}

/* Sector CTA */
.sector-cta {
  text-align: center;
  padding: 3rem 0;
}

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

.sector-cta p {
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.sector-cta .cta-buttons {
  justify-content: center;
}


/* --------------------------------------------------------------------------
   11. Content Sections (general page use)
   -------------------------------------------------------------------------- */
.content-section {
  padding: 3rem 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 40rem;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}

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

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
}


/* --------------------------------------------------------------------------
   12. Tables
   -------------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:hover td {
  background: var(--bg-card);
}


/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem var(--container-pad) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-logo .logo-img {
  height: 24px;
  width: auto;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-width: 20rem;
}

.footer-contact a {
  font-size: 0.875rem;
  color: var(--accent-light);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-heading--spaced {
  margin-top: 1.5rem;
}

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

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.footer-legal a {
  color: var(--text-muted);
}

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

.footer-sep {
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   14. Utility Classes
   -------------------------------------------------------------------------- */
.text-accent  { color: var(--accent-light); }
.text-muted   { color: var(--text-muted); }
.text-ember   { color: var(--brick-ember); }
.text-center  { text-align: center; }
.text-mono    { font-family: var(--font-mono); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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


/* --------------------------------------------------------------------------
   15. Responsive — Tablet (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-pad: 1.25rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .page-hero { padding: 3rem 0 2rem; }
  .page-hero-title { font-size: 2.25rem; }

  .home-hero { padding: 4rem 0 3rem; }
  .home-hero-title { font-size: 2.5rem; }

  .card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .two-col {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

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

  .domain-badges {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  /* Mobile navigation */
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--container-pad);
  }

  .nav-link {
    padding: 0.65rem 0;
    font-size: 1rem;
    border-radius: 0;
  }

  .nav-dropdown {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: auto;
  }

  .nav-item.has-dropdown .nav-dropdown {
    display: block;
  }

  .nav-dropdown-link {
    padding: 0.4rem 0;
    font-size: 0.875rem;
  }
}


/* --------------------------------------------------------------------------
   16. Responsive — Mobile (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .page-hero { padding: 2rem 0 1.5rem; }
  .page-hero-title { font-size: 1.85rem; }
  .page-hero-subtitle { font-size: 1rem; }

  .home-hero { padding: 3rem 0 2.5rem; }
  .home-hero-title { font-size: 2rem; }
  .home-hero-subtitle { font-size: 1.0625rem; }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .stat-value {
    font-size: 1.75rem;
  }
}


/* --------------------------------------------------------------------------
   17. Responsive — Large Desktop (1440px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
  }

  .home-hero-title {
    font-size: 3.75rem;
  }
}


/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .nav-toggle,
  .cta-buttons {
    display: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
