/* ===================================
   Peak EMS Design System
   Fonts: Karla (headings), Inter (body)
   Primary: #1951dc | Dark: #081222

   Breakpoints:
     sm:  480px
     md:  768px
     lg:  1024px
     xl:  1200px
     2xl: 1400px
     3xl: 1600px
   =================================== */

/* ————————————————————————————————————
   1. CSS Custom Properties
   ———————————————————————————————————— */
:root {
  --color-primary: #1951dc;
  --color-primary-dark: #0f3dba;
  --color-dark: #081222;
  --color-white: #ffffff;
  --color-bg-light: #fafafa;
  --color-bg-blue-tint: #f6faff;
  --color-border: #e9e9e9;
  --color-border-light: #e7eaf0;
  --color-border-mid: #cfd5e2;
  --color-text-muted: #636d83;
  --color-text-light: #9aa4b7;
  --color-label-dark: #052b40;
  --color-accent-orange: #ec5b14;

  --font-heading: 'Karla', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1528px;
  --side-padding: 20px;
  --radius-pill: 100px;
  --radius-card: 24px;
  --radius-card-sm: 16px;
  --radius-review: 10px;
  --radius-input: 8px;

  --shadow-input: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
}

@media (min-width: 768px) {
  :root {
    --side-padding: 60px;
  }
}

@media (min-width: 1200px) {
  :root {
    --side-padding: 100px;
  }
}

/* ————————————————————————————————————
   2. Base / Reset Additions
   ———————————————————————————————————— */
html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  text-align: left;
  font-size: 16px;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  background: var(--color-white);
}

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

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

p, span, li, a, label {
  font-family: var(--font-body);
}

/* ————————————————————————————————————
   3. Typography
   ———————————————————————————————————— */

/* --- Headings --- */
h1 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -1px;
}

h2 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.56px;
}

h3 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
}

h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

h5 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 26px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -0.52px;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -1px;
  }
  h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.72px;
  }
  h3 {
    font-size: 32px;
    line-height: 38px;
  }
  h4 {
    font-size: 26px;
    line-height: 36px;
  }
}

@media (min-width: 1600px) {
  h1 {
    font-size: 55px;
    line-height: 64px;
    letter-spacing: -1.5px;
  }
  h2 {
    font-size: 46px;
    line-height: 58px;
    letter-spacing: -0.92px;
  }
  h3 {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.8px;
  }
  h4 {
    font-size: 32px;
    line-height: 44px;
    letter-spacing: -0.64px;
  }
}

/* --- Hero Title --- */
.peak-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: -1px;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .peak-hero-title {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (min-width: 1024px) {
  .peak-hero-title {
    font-size: 48px;
    line-height: 56px;
  }
}

@media (min-width: 1600px) {
  .peak-hero-title {
    font-size: 80px;
    line-height: 91px;
    letter-spacing: -2px;
  }
}

/* --- Section Title --- */
.peak-section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.64px;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .peak-section-title {
    font-size: 46px;
    line-height: 58px;
    letter-spacing: -0.92px;
  }
}

/* --- Blue Panel Subtitle --- */
.peak-panel-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.4px;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .peak-panel-subtitle {
    font-size: 26px;
    line-height: 44px;
    letter-spacing: -0.52px;
  }
}

/* --- Large Body Text --- */
.peak-body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .peak-body-lg {
    font-size: 24px;
    line-height: 30px;
  }
}

/* --- Standard Body Text --- */
.peak-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .peak-body {
    font-size: 20px;
    line-height: 30px;
  }
}

/* --- Badge Text --- */
.peak-badge-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-primary);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .peak-badge-text {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ————————————————————————————————————
   4. Layout
   ———————————————————————————————————— */
main {
  height: auto;
  min-height: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}

/* Section container */
.peak-section {
  width: 100%;
  max-width: 1728px;
  margin: 0 auto;
  padding: 40px var(--side-padding);
  overflow: hidden;
}

@media (min-width: 768px) {
  .peak-section {
    padding: 60px var(--side-padding);
  }
}

/* Full-width wrapper for coloured backgrounds. */
.peak-section-wrap {
  width: 100%;
  overflow: hidden;
}

/* ————————————————————————————————————
   5. Shared Component Classes
   ———————————————————————————————————— */

/* --- Section Header (centered title + subtitle) ---
   Used by: nremt_prep, testimonials, faq_section */
.peak-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
}

/* --- Title Wrap (title + subtitle column) --- */
.peak-title-wrap {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  .peak-title-wrap {
    text-align: left;
  }
}

/* --- Form Field (label + input column) ---
   Used by: contact_hero, ready_to_start, locations_hero */
.peak-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* --- Image Container (rounded overflow-hidden wrapper) ---
   Used by: enrollment, ready_to_start, courses_hero, locations_hero */
.peak-image-container {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.peak-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ————————————————————————————————————
   6. Buttons
   ———————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  padding: 16px 24px;
  height: 60px;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn--secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.btn--small {
  height: 50px;
  padding: 16px 14px;
}

/* ————————————————————————————————————
   7. Feature Item (arrow + text)
   ———————————————————————————————————— */
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-item__text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .feature-item__text {
    font-size: 22px;
    line-height: 30px;
  }
}

/* ————————————————————————————————————
   8. Form Inputs
   ———————————————————————————————————— */
.peak-input {
  height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-input);
  background: var(--color-white);
  box-shadow: var(--shadow-input);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--color-dark);
  width: 100%;
  outline: none;
}

.peak-input:focus {
  border-color: var(--color-primary);
}

.peak-input::placeholder {
  color: var(--color-text-light);
}

.peak-select {
  height: 48px;
  padding: 10px 14px;
  padding-right: 40px;
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-input);
  background: var(--color-white);
  box-shadow: var(--shadow-input);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--color-dark);
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23636d83' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}

.peak-select:invalid,
.peak-select option[value=""] {
  color: var(--color-text-light);
}

.peak-select:focus {
  border-color: var(--color-primary);
}

.peak-textarea {
  padding: 10px 14px;
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-input);
  background: var(--color-white);
  box-shadow: var(--shadow-input);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-dark);
  width: 100%;
  outline: none;
  resize: vertical;
}

.peak-textarea:focus {
  border-color: var(--color-primary);
}

.peak-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--color-label-dark);
}

/* ————————————————————————————————————
   9. Utilities (only actively used)
   ———————————————————————————————————— */
.bg-light { background-color: var(--color-bg-light); }
