:root {
  color-scheme: light;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #2b1613;
  background: #fff8f6;
  --bg: #fff8f6;
  --surface: #ffffff;
  --surface-alt: #ffe9e6;
  --surface-muted: #ffdad4;
  --border: #e4e2e2;
  --text: #2b1613;
  --text-muted: #646464;
  --primary: #bc0100;
  --primary-soft: #ffdad4;
  --primary-contrast: #ffffff;
  --accent: #0059ba;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

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

button {
  font: inherit;
  border: none;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 100px;
}

.section-alt {
  background: var(--surface-alt);
}

.site-header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  color: var(--text-muted);
  font-weight: 600;
}

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

.button {
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.button-link {
  background: transparent;
  color: var(--primary);
  padding: 0;
  border-radius: 0;
}

.hero {
  padding-top: 6.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.2fr 1fr;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.highlight {
  color: var(--primary);
}

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

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

.map-wrapper {
  position: relative;
  min-height: 420px;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  filter: grayscale(0.15) brightness(1.05);
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.school-grid,
.career-grid,
.skills-grid,
.sample-grid {
  display: grid;
  gap: 1.5rem;
}

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

.map-card {
  min-height: 260px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.map-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.school-list {
  display: grid;
  gap: 1rem;
}

.school-item {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: var(--primary);

}


.career-grid {
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
}

.career-card {
  background: var(--secondary-container, #e4e2e2);
  padding: 2rem;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.career-icon {
  font-size: 3rem;
  color: var(--primary);
}

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.skill-icon {
  font-size: 2.25rem;
  color: var(--primary);
}

.guide-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.guide-card h3 {
  margin: 0.5rem 0 0;
}

.pdf-wrapper {
  margin-top: 2rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.pdf-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pdf-actions .button {
  min-width: 160px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
}

.cookie-title {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

.cookie-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 600px;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
}

.cookie-policy-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.cookie-policy-link:hover {
  color: var(--primary);
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--primary);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

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

.modal-body {
  color: var(--text);
  line-height: 1.6;
}

.modal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--text);
}

.modal-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.modal-body p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.modal-body ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.modal-body li {
  margin-bottom: 0.5rem;
}

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

.modal-body a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .modal-content {
    max-width: 90%;
    padding: 1.5rem;
    margin: 1rem;
  }
}

@media (max-width: 960px) {
  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }

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

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 1rem;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-actions .button {
    width: 100%;
  }
}

.pdf-container {
  display: none;
  width: min(100%, 900px);
  max-width: 100%;
  aspect-ratio: 1 / 1.414;
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-container.active {
  display: block;
}

.sample-grid {
  grid-template-columns: 1fr 2fr;
}

.sample-note {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sample-note .italic {
  font-style: italic;
}

.lesson-steps {
  display: grid;
  gap: 1rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 0.24;
}

.text-center {
  text-align: center;
  margin-top: 3rem;
}

.text-center .button {
  margin-bottom: 1.5rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-brand,
.footer-copy {
  text-align: center;
  font-size: 0.95rem;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--primary);
  z-index: 110;
  transition: width 0.2s ease;
}

.mobile-menu-button {
  display: none;
  background: transparent;
  color: var(--text);
}

@media (max-width: 960px) {

  .hero-grid,
  .career-grid,
  .school-grid,
  .skills-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: none;

    pointer-events: none;
    z-index: 120;
  }

  .site-nav.open {
    display: flex;
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    text-align: left;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .hero {
    padding-top: 7rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .button {
    width: 100%;
    max-width: 320px;
  }

  .text-center .button {
    max-width: 100%;
  }

  .button+.button {
    margin-top: 1rem;
  }

  .guide-card {
    justify-items: stretch;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  /* Center content (including buttons) in career section on small screens */
  .career-grid>div {
    text-align: center;
  }

  .pdf-container {
    height: 55vh;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .pdf-container,
  .pdf-container.active {
    display: none;
  }
}
