@import 'brand-tokens.css';

/* ============================================================
   CSS Reset / Normalize
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-primary-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section {
  padding-block: 4rem;
}

.section:nth-of-type(even),
.section-alt {
  background-color: var(--color-surface);
}

/* ============================================================
   Header / Navigation (.navbar)
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
}

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

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-primary-ink);
  transition: color 0.2s ease;
}

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

.nav-cta {
  font-size: 0.8rem !important;
  padding: 0.55rem 1.1rem !important;
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle .hamburger {
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .hamburger::before {
  top: -7px;
}

.nav-toggle .hamburger::after {
  top: 7px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--bbc-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(221, 30, 37, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-ink);
  border: 2px solid var(--color-primary-ink);
}

.btn-secondary:hover {
  background-color: var(--color-primary-ink);
  color: var(--bbc-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 17, 16, 0.2);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background-color: var(--color-bg);
  padding-block: 5rem;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero h1 {
  max-width: 800px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 620px;
  margin-inline: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.card p {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: opacity 0.2s ease;
}

.card-link:hover {
  opacity: 0.8;
}

.card ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.card ul li {
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
  line-height: 1.5;
}

/* ============================================================
   Trust Grid (Home page values strip)
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.trust-item p {
  color: var(--color-secondary);
  max-width: none;
}

.trust-item strong {
  color: var(--color-primary-ink);
}

/* ============================================================
   Blockquote / Pull Quote
   ============================================================ */
blockquote,
.pull-quote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-primary-ink);
  background-color: var(--color-surface);
  border-radius: 0 8px 8px 0;
  max-width: 700px;
}

/* ============================================================
   CTA Banner (closing CTA sections)
   ============================================================ */
.cta-banner {
  background-color: var(--color-primary-ink);
  color: var(--bbc-white);
  text-align: center;
  padding-block: 4rem;
}

.cta-banner h2 {
  color: var(--bbc-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-banner .btn-primary {
  margin-right: 0.5rem;
}

.cta-banner .btn-secondary {
  color: var(--bbc-white);
  border-color: var(--bbc-white);
}

.cta-banner .btn-secondary:hover {
  background-color: var(--bbc-white);
  color: var(--color-primary-ink);
}

/* ============================================================
   CTA Section (generic centered CTA)
   ============================================================ */
.cta-section {
  text-align: center;
}

.cta-section .btn-group {
  justify-content: center;
}

/* ============================================================
   Bold Color-Blocked Sections
   Reuses the .cta-banner visual pattern for mid-page emphasis.
   ============================================================ */
.section-dark {
  background-color: var(--color-primary-ink) !important;
  color: var(--bbc-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--bbc-white);
}

.section-dark p,
.section-dark li {
  color: rgba(255, 255, 255, 0.88);
}

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

.section-dark .card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 4px solid var(--color-primary);
}

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

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

.section-dark .card-subtitle {
  color: var(--color-primary);
}

.section-dark .card-icon {
  background-color: var(--color-primary);
  color: var(--bbc-white);
}

.section-dark .trust-item p {
  color: rgba(255, 255, 255, 0.88);
}

.section-dark .trust-item strong {
  color: var(--bbc-white);
}

.section-dark .btn-secondary {
  color: var(--bbc-white);
  border-color: var(--bbc-white);
}

.section-dark .btn-secondary:hover {
  background-color: var(--bbc-white);
  color: var(--color-primary-ink);
}

.section-dark .check-list li {
  color: rgba(255, 255, 255, 0.88);
}

.section-dark .check-list li::before {
  color: var(--color-primary);
}

.section-dark .check-list li strong {
  color: var(--bbc-white);
}

.section-dark .bullet-list li {
  color: rgba(255, 255, 255, 0.88);
}

.section-dark .bullet-list li::before {
  color: var(--color-primary);
}

.section-dark a {
  color: var(--color-primary);
}

.hero.section-dark {
  background-color: var(--color-primary-ink) !important;
}

.hero.section-dark h1 {
  color: var(--bbc-white);
}

.hero.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Timeline / Steps (How It Works, For Sponsors)
   ============================================================ */
.steps {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 32px;
}

.steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}

.step {
  position: relative;
  padding-left: 40px;
  padding-bottom: 2.5rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step__number {
  position: absolute;
  left: -9px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--bbc-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-secondary);
}

.step p a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Numbered steps on home page (simpler ordered list) */
.section .steps,
section .steps {
  counter-reset: steps;
}

ol.steps {
  counter-reset: steps;
  padding-left: 0;
}

ol.steps li {
  position: relative;
  counter-increment: steps;
  padding-left: 3rem;
  padding-bottom: 1.25rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

ol.steps li::before {
  content: counter(steps) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ============================================================
   Callout Section
   ============================================================ */
.callout {
  background-color: var(--color-surface) !important;
  border-top: 4px solid var(--color-primary);
}

.callout ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.callout ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

.callout ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.callout a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   Check List (For Schools benefit list)
   ============================================================ */
.check-list {
  margin-top: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.check-list li strong {
  color: var(--color-primary-ink);
}

/* ============================================================
   Bullet List
   ============================================================ */
.bullet-list {
  margin-top: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ============================================================
   Numbered List (For Schools "What We Need")
   ============================================================ */
.numbered-list {
  counter-reset: numbered;
  margin-top: 1rem;
}

.numbered-list li {
  position: relative;
  counter-increment: numbered;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

.numbered-list li::before {
  content: counter(numbered) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-section {
  margin-bottom: 2.5rem;
}

.faq-section h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  text-align: left;
  color: var(--color-primary-ink);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--color-secondary);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--color-primary-ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background-color: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(221, 30, 37, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Validation States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--color-primary);
}

.error-message {
  display: none;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-top: 0.35rem;
}

.form-group.error .error-message {
  display: block;
}

/* Form success message */
.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--color-surface);
  border: 2px solid var(--bbc-green-dark);
  border-radius: 10px;
}

.form-success h3 {
  color: var(--bbc-green-dark);
  margin-bottom: 0.5rem;
}

/* Contact page layout */
.contact-section {
  padding-block: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.contact-info a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-info a:hover {
  color: var(--color-primary-ink);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--bbc-black);
  color: var(--bbc-white);
  padding-block: 3.5rem 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: var(--bbc-white);
  border-radius: 14px;
  padding: 10px;
  margin-inline: auto;
}

.footer-logo-badge img {
  width: 100%;
  height: auto;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bbc-white);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--bbc-white);
  opacity: 0.5;
  max-width: none;
}

/* ============================================================
   Section Headers (used on for-sponsors page)
   ============================================================ */
.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-inline: auto;
}

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

/* ============================================================
   Responsive — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }

  section {
    padding-block: 5rem;
  }

  .hero {
    padding-block: 6rem;
  }

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

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

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

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-logo-badge {
    margin-inline: 0;
  }
}

/* ============================================================
   Responsive — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .container {
    padding-inline: 2.5rem;
  }

  .nav-logo img {
    height: 52px;
  }

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

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

/* ============================================================
   Responsive — Mobile (below 768px)
   ============================================================ */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
  }

  /* Overlay when nav is open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero {
    padding-block: 3.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 300px;
  }

  .cta-banner .btn {
    display: block;
    margin: 0.5rem auto;
    max-width: 300px;
  }
}

/* ============================================================
   Stock Images / Page Images
   ============================================================ */
.hero-image {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  max-width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-image {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  max-width: 700px;
}

.page-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Center page-image when inside hero (which is text-align center) */
.hero .page-image {
  margin-inline: auto;
}

/* ============================================================
   Lucide Icons on Cards
   ============================================================ */
.card-icon {
  width: 20px;
  height: 20px;
  color: var(--bbc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 1rem;
}

/* ============================================================
   Reduced Motion
   ============================================================ */
/* No-JS fallback: AOS.css hides [data-aos] elements with opacity:0.
   If AOS JS fails to load, this ensures content remains visible.
   The JS adds .aos-ready to <html> when AOS initializes successfully. */
html:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  /* AOS animations — disable completely */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Announcement Banner (dismissible, injected by main.js)
   ============================================================ */
.announce-banner {
  background-color: var(--color-primary);
  color: var(--bbc-white);
  padding: 0.85rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  text-align: center;
  position: relative;
}

.announce-banner p {
  margin: 0;
  max-width: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bbc-white);
}

.announce-banner .btn {
  background-color: var(--bbc-white);
  color: var(--color-primary);
  border: 2px solid var(--bbc-white);
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announce-banner .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.announce-banner .announce-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bbc-white);
  opacity: 0.75;
  font-size: 1.4rem;
  line-height: 1;
}

.announce-banner .announce-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .announce-banner {
    padding: 1rem 2.5rem;
  }
}

/* ============================================================
   "Get Started" Modal (injected by main.js)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 17, 16, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.active {
  opacity: 1;
}

.modal {
  background-color: var(--color-surface);
  border-top: 6px solid var(--color-primary);
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem 2rem 2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-bg);
  color: var(--color-primary-ink);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--color-border);
}

.modal h3 {
  margin-bottom: 0.4rem;
  padding-right: 2rem;
}

.modal-sub {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  max-width: none;
}

.modal .form-group {
  margin-bottom: 1.1rem;
}

.modal .form-success {
  padding: 2rem 1rem;
}

.modal-full-page-link {
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.85rem;
}

.modal-full-page-link a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .modal {
    padding: 2rem 1.5rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal {
    transition: none;
  }
}
