/* --- VARIABLES --- */
:root {
  /* Colors (domain-generated from 'example.com') */
  --exam-color-primary: #265930;      /* Dark Green */
  --exam-color-secondary: #47d161;   /* Bright Green */
  --exam-color-accent: #e052c6;      /* Pink Accent */
  --exam-color-background: #121212;  /* Dark Background */
  --exam-color-surface: #1e1e1e;     /* Slightly Lighter Dark */
  --exam-color-text-primary: #eef6f0;/* Light Text */
  --exam-color-text-secondary: #b0b0b0;/* Muted Text */
  
  /* Typography */
  --exam-font-heading: 'Raleway', sans-serif;
  --exam-font-body: 'Roboto', sans-serif;
  --exam-font-size-base: 16px;
  --exam-font-size-h1: 3rem;
  --exam-font-size-h2: 2.25rem;
  --exam-font-size-h3: 1.75rem;
  
  /* Spacing */
  --exam-space-xs: 0.5rem;
  --exam-space-sm: 1rem;
  --exam-space-md: 2rem;
  --exam-space-lg: 4rem;
  --exam-space-xl: 6rem;
  
  /* Layout */
  --exam-container-max: 1200px;
  --exam-radius-sm: 4px;
  --exam-radius-md: 8px;
  --exam-radius-lg: 20px; /* soft cards */
  
  /* Shadows */
  --exam-shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --exam-shadow-md: 0 4px 8px rgba(0,0,0,0.3);
  --exam-shadow-lg: 0 8px 16px rgba(0,0,0,0.4);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--exam-font-body);
  font-size: var(--exam-font-size-base);
  line-height: 1.6;
  color: var(--exam-color-text-primary);
  background-color: var(--exam-color-background);
}

h1, h2, h3, h4 {
  font-family: var(--exam-font-heading);
  font-weight: 700;
  color: var(--exam-color-secondary);
  line-height: 1.2;
  margin-bottom: var(--exam-space-sm);
}

h1 { font-size: var(--exam-font-size-h1); }
h2 { font-size: var(--exam-font-size-h2); }
h3 { font-size: var(--exam-font-size-h3); }

a { 
  color: var(--exam-color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--exam-color-accent); }

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

ul { list-style: none; }

/* --- LAYOUT --- */
.exam-container {
  max-width: var(--exam-container-max);
  margin: 0 auto;
  padding: 0 var(--exam-space-md);
}
.exam-container--narrow {
  max-width: 800px;
}

.exam-section {
  padding: var(--exam-space-lg) 0;
}

.exam-section__title {
  text-align: center;
  margin-bottom: var(--exam-space-md);
}

/* --- COMPONENTS --- */
.exam-btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--exam-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.exam-btn--primary {
  background-color: var(--exam-color-secondary);
  color: var(--exam-color-background);
  border-color: var(--exam-color-secondary);
}
.exam-btn--primary:hover {
  background-color: var(--exam-color-accent);
  border-color: var(--exam-color-accent);
  color: var(--exam-color-background);
}

.exam-btn--secondary {
  background-color: transparent;
  color: var(--exam-color-secondary);
  border-color: var(--exam-color-secondary);
}
.exam-btn--secondary:hover {
  background-color: var(--exam-color-secondary);
  color: var(--exam-color-background);
}

.exam-btn--tertiary {
    color: var(--exam-color-accent);
    padding: 0;
    border: none;
    background: none;
    text-transform: none;
}
.exam-btn--tertiary:hover {
    text-decoration: underline;
}

.exam-btn--full-width { display: block; width: 100%; }
.exam-btn--small { padding: 10px 20px; font-size: 0.9rem; }

.exam-card {
  background-color: var(--exam-color-surface);
  border-radius: var(--exam-radius-lg);
  padding: var(--exam-space-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--exam-shadow-lg);
}

/* --- HEADER --- */
.exam-header {
  padding: var(--exam-space-sm) 0;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  transition: padding 0.3s ease;
}
.exam-header--sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.exam-header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exam-header__logo {
  font-family: var(--exam-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--exam-color-secondary);
}
.exam-nav__list {
  display: flex;
  gap: var(--exam-space-md);
}
.exam-nav__link {
  color: var(--exam-color-text-primary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.exam-header__hamburger { display: none; }

/* --- HERO --- */
.exam-hero {
  color: var(--exam-color-text-primary);
  text-align: center;
  position: relative;
}
.exam-hero--slider {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exam-hero__slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.exam-hero__slide--active { opacity: 1; }
.exam-hero__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.exam-hero__content {
  position: relative;
  z-index: 2;
}
.exam-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: var(--exam-space-sm);
}
.exam-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto var(--exam-space-md) auto;
  color: var(--exam-color-text-secondary);
}

.exam-hero--page {
  padding: var(--exam-space-lg) 0;
  background-color: var(--exam-color-surface);
  text-align: center;
}
.exam-hero__title-page { color: var(--exam-color-secondary); margin-bottom: var(--exam-space-xs); }
.exam-hero__subtitle-page { color: var(--exam-color-text-secondary); }

/* --- CTA SECTIONS --- */
.exam-cta--fullwidth {
  background-color: var(--exam-color-primary);
}
.exam-cta__container {
  text-align: center;
}
.exam-cta__title { margin-bottom: var(--exam-space-sm); }
.exam-cta__text { 
  max-width: 700px; 
  margin: 0 auto var(--exam-space-md) auto; 
  color: var(--exam-color-text-primary);
}
.exam-cta--simple { text-align: center; }
.exam-cta--alt-bg { background-color: var(--exam-color-surface); }

/* --- PROCESS STEPS --- */
.exam-process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--exam-space-md);
}
.exam-process__step {
  text-align: center;
}
.exam-process__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--exam-color-secondary);
  line-height: 1;
  margin-bottom: var(--exam-space-sm);
}
.exam-process__title { color: var(--exam-color-text-primary); margin-bottom: var(--exam-space-xs); }
.exam-process__text { color: var(--exam-color-text-secondary); }

/* --- FEATURES ALTERNATING --- */
.exam-features__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--exam-space-md);
  align-items: center;
  margin-bottom: var(--exam-space-lg);
}
.exam-features__item:last-child { margin-bottom: 0; }

.exam-features__image-wrapper {
  border-radius: var(--exam-radius-lg);
  overflow: hidden;
}
.exam-features__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exam-features__content { text-align: center; }
.exam-features__title { color: var(--exam-color-text-primary); }
.exam-features__text { color: var(--exam-color-text-secondary); margin-bottom: var(--exam-space-sm);}

/* --- TESTIMONIALS --- */
.exam-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--exam-space-md);
}
.exam-testimonial__text { 
  font-style: italic;
  margin-bottom: var(--exam-space-md);
  color: var(--exam-color-text-secondary);
}
.exam-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--exam-space-sm);
}
.exam-testimonial__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.exam-testimonial__name { font-weight: 700; color: var(--exam-color-text-primary); }

/* --- ABOUT PAGE & POLICY PAGES --- */
.exam-text--prose p { margin-bottom: var(--exam-space-sm); color: var(--exam-color-text-secondary); }
.exam-text__updated { font-size: 0.9rem; color: var(--exam-color-text-secondary); margin-bottom: var(--exam-space-md); }
.exam-text--prose .exam-text__list { list-style: disc; margin-left: 1.5rem; margin-bottom: var(--exam-space-sm); }
.exam-text--prose .exam-text__list li { margin-bottom: var(--exam-space-xs); color: var(--exam-color-text-secondary); }
.exam-text--prose h2 { margin-top: var(--exam-space-md); margin-bottom: var(--exam-space-sm); }

.exam-quote__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--exam-space-md);
  align-items: center;
}
.exam-quote__image { border-radius: var(--exam-radius-lg); }
.exam-quote__text { font-size: 1.5rem; font-style: italic; margin-bottom: var(--exam-space-sm); }
.exam-quote__author { font-weight: 700; color: var(--exam-color-secondary); }

.exam-features--grid .exam-features__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--exam-space-md);
}
.exam-feature-card { text-align: center; }
.exam-feature-card__icon { width: 60px; height: 60px; margin: 0 auto var(--exam-space-sm); }
.exam-feature-card__title { color: var(--exam-color-text-primary); }
.exam-feature-card__text { color: var(--exam-color-text-secondary); }

.exam-gallery--grid .exam-gallery__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--exam-space-sm);
}
.exam-gallery__image { border-radius: var(--exam-radius-md); }

/* --- FAQ PAGE --- */
.exam-faq__item { 
  border-bottom: 1px solid var(--exam-color-primary);
  margin-bottom: var(--exam-space-sm);
}
.exam-faq__question {
  font-size: 1.25rem;
  font-weight: 700;
  padding: var(--exam-space-sm) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--exam-color-text-primary);
}
.exam-faq__question::after {
  content: '+';
  font-size: 2rem;
  transition: transform 0.3s ease;
  color: var(--exam-color-secondary);
}
.exam-faq__item[open] .exam-faq__question::after { transform: rotate(45deg); }
.exam-faq__answer {
  padding-bottom: var(--exam-space-md);
  color: var(--exam-color-text-secondary);
}

/* --- CONTACT PAGE --- */
.exam-contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--exam-space-lg);
}
.exam-contact__title { text-align: center; }
.exam-form__group { margin-bottom: var(--exam-space-md); }
.exam-form__label { display: block; margin-bottom: var(--exam-space-xs); font-weight: 500; }
.exam-form__input, .exam-form__textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--exam-radius-sm);
  border: 1px solid var(--exam-color-primary);
  background-color: var(--exam-color-surface);
  color: var(--exam-color-text-primary);
  font-family: var(--exam-font-body);
}
.exam-form__input:focus, .exam-form__textarea:focus {
  outline: none;
  border-color: var(--exam-color-secondary);
  box-shadow: 0 0 0 2px var(--exam-color-secondary);
}

.exam-contact__info-block { margin-bottom: var(--exam-space-md); text-align: center; }
.exam-contact__info-title { margin-top: var(--exam-space-md); color: var(--exam-color-secondary); }
.exam-contact__link { color: var(--exam-color-text-primary); }
.exam-contact__link:hover { text-decoration: underline; }
.exam-contact__hours-list { list-style: none; padding: 0; color: var(--exam-color-text-secondary); }

/* --- LEGAL PAGES --- */
.exam-legal__section { margin-bottom: var(--exam-space-md); }
.exam-legal__title { color: var(--exam-color-secondary); border-bottom: 2px solid var(--exam-color-primary); padding-bottom: var(--exam-space-xs); }
.exam-legal p { margin-bottom: var(--exam-space-sm); color: var(--exam-color-text-secondary); }

/* --- FOOTER --- */
.exam-footer {
  background-color: var(--exam-color-surface);
  padding-top: var(--exam-space-lg);
  color: var(--exam-color-text-secondary);
}
.exam-footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--exam-space-md);
  padding-bottom: var(--exam-space-lg);
}
.exam-footer__title { font-size: 1.2rem; color: var(--exam-color-secondary); margin-bottom: var(--exam-space-sm); }
.exam-footer__text { margin-bottom: var(--exam-space-sm); }
.exam-footer__list li { margin-bottom: var(--exam-space-xs); }
.exam-footer__link { color: var(--exam-color-text-secondary); }
.exam-footer__link:hover { color: var(--exam-color-text-primary); }
.exam-footer__bottom {
  text-align: center;
  padding: var(--exam-space-md) 0;
  border-top: 1px solid var(--exam-color-primary);
  font-size: 0.9rem;
}

/* --- COOKIE BANNER --- */
.exam-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--exam-color-surface);
    color: var(--exam-color-text-primary);
    padding: var(--exam-space-md);
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    flex-wrap: wrap;
    gap: var(--exam-space-sm);
}
.exam-cookie-banner__text { margin-right: var(--exam-space-md); }
.exam-cookie-banner__link { color: var(--exam-color-secondary); text-decoration: underline; }
.exam-cookie-banner__actions { display: flex; gap: var(--exam-space-sm); }

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
  .exam-features__item {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .exam-features__item:nth-child(even) .exam-features__image-wrapper {
    order: 2;
  }
  .exam-features__content { text-align: left; }

  .exam-quote__container { grid-template-columns: 300px 1fr; }
  
  .exam-contact__container {
    grid-template-columns: 1fr 1fr;
  }
  .exam-contact__title { text-align: left; }
  .exam-contact__info-block { text-align: left; }
}

@media (max-width: 767px) {
  .exam-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--exam-color-surface);
  }
  .exam-nav--open { display: block; }
  .exam-nav__list {
    flex-direction: column;
    padding: var(--exam-space-md);
    text-align: center;
  }
  .exam-header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
  }
  .exam-header__hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--exam-color-text-primary);
    transition: all 0.3s ease;
  }
  .exam-header__hamburger--open .exam-header__hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .exam-header__hamburger--open .exam-header__hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .exam-header__hamburger--open .exam-header__hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}