/* ============================================================
   QCMS — Quality Clinical Management Solutions
   Main Stylesheet
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

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

:root {
  --navy:       #1a2744;
  --navy-deep:  #0f1729;
  --navy-mid:   #233058;
  --red:        #cc2b2b;
  --red-hover:  #b02222;
  --steel:      #2e5f8a;
  --cream:      #f5f0e8;
  --sand:       #e8e0d4;
  --white:      #ffffff;

  --text-dark:  #1a2744;
  --text-mid:   #3d4f6e;
  --text-light: #6b7c9a;
  --text-muted: #8898aa;
  --border:     rgba(26, 39, 68, 0.13);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --ease:      0.3s ease;
  --shadow:    0 4px 24px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 39, 68, 0.16);
}

html {
  scroll-behavior: auto;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

body.is-loading {
  overflow: hidden;
}

body.is-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- PAGE LOADER ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(46,95,138,0.18), transparent 40%),
    linear-gradient(135deg, #0b1223 0%, #162341 55%, #0f1729 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: loaderSweep 1.6s ease-in-out infinite;
}

.page-loader__inner {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.page-loader__logo {
  width: min(220px, 62vw);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.28));
  animation: loaderPulse 1.8s ease-in-out infinite;
}

.page-loader__line {
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.page-loader__line span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(204,43,43,0.18) 0%, rgba(204,43,43,1) 50%, rgba(255,255,255,0.7) 100%);
  animation: loaderBar 1.2s ease-in-out infinite;
}

.page-loader__text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

@keyframes loaderBar {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(255%); }
}

@keyframes loaderSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.02); opacity: 1; }
}


/* ---------- LAYOUT UTILITIES ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ---------- TYPOGRAPHY UTILITIES ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-eyebrow--light { color: rgba(255,255,255,0.55); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-heading em {
  font-style: italic;
  color: var(--red);
}
.section-heading--light { color: var(--white); }
.section-heading--light em { color: var(--sand); }

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 8px;
}

.section-rule {
  width: 44px;
  height: 3px;
  background: var(--red);
  margin: 18px 0 24px;
  border-radius: 2px;
}
.section-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-rule { margin-bottom: 0; }


/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.services__grid .service-card:nth-child(2)  { transition-delay: 0.08s; }
.services__grid .service-card:nth-child(3)  { transition-delay: 0.16s; }
.services__grid .service-card:nth-child(4)  { transition-delay: 0.04s; }
.services__grid .service-card:nth-child(5)  { transition-delay: 0.12s; }
.services__grid .service-card:nth-child(6)  { transition-delay: 0.20s; }

/* Stagger program cards */
.programs__row .program-card:nth-child(2) { transition-delay: 0.10s; }
.programs__row .program-card:nth-child(3) { transition-delay: 0.20s; }
.programs__row .program-card:nth-child(4) { transition-delay: 0.30s; }


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: transparent;
  color: var(--navy);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 6px 20px rgba(204, 43, 43, 0.3);
}

.btn--full { width: 100%; }


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(12, 19, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  background: var(--navy-deep);
  box-shadow: 0 2px 32px rgba(0,0,0,0.35);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-link { display: flex; align-items: center; }
.nav__logo      { height: 42px; width: auto; mix-blend-mode: screen; }

/* Nav links list */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color var(--ease);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active { color: var(--white); }

/* Chevron icon */
.nav__chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--ease);
  flex-shrink: 0;
}

/* Dropdown wrapper */
.nav__dropdown { position: relative; }

.nav__dropdown.open .nav__chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 13px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background var(--ease), color var(--ease);
}
.nav__dropdown-item:hover {
  background: var(--cream);
  color: var(--red);
}

/* CTA button in nav */
.nav__cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 10px 18px;
  border-radius: 4px;
  margin-left: 10px;
  transition: background var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 16px rgba(204,43,43,0.35);
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 4px;
  transition: background var(--ease);
}
.nav__toggle:hover { background: rgba(255,255,255,0.08); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  /* Hero background: assets/images/hero-fallback.jpg — C-arm with table */
  background: url('../assets/images/hero-fallback.jpg') center center / cover no-repeat;
  background-color: var(--navy-deep); /* Fallback while image loads */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(9, 14, 30, 0.70) 0%,
    rgba(9, 14, 30, 0.35) 60%,
    rgba(9, 14, 30, 0.05) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 820px;
  padding: 0 40px;
  margin-left: max(40px, calc((100vw - 1200px) / 2));
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.hero__headline em {
  font-style: italic;
  color: var(--red);
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 40px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* Hero entrance — CSS animation, no JS */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__anim {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.is-loading .hero__anim,
body.is-loading .hero__scroll-hint {
  animation-play-state: paused;
}

body.is-loaded .hero {
  animation: siteReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes siteReveal {
  from { opacity: 0.7; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll hint arrow */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 40px;
  z-index: 2;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}
.hero__scroll-hint span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.45);
  border-bottom: 2px solid rgba(255,255,255,0.45);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.45; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}


/* ============================================================
   ABOUT / OUR MISSION
   ============================================================ */
.about {
  padding: 110px 0;
  background: var(--cream);
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.about__image:hover img { transform: scale(1.03); }

.about__copy p {
  font-size: 0.965rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.about__copy .btn { margin-top: 12px; }


/* ============================================================
   COMPREHENSIVE SERVICES
   ============================================================ */
.services {
  padding: 60px 0 110px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow */
.services::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(46,95,138,0.25) 0%, transparent 68%);
  pointer-events: none;
}
.services::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(204,43,43,0.08) 0%, transparent 68%);
  pointer-events: none;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.service-card:hover {
  background: rgba(255,255,255,0.075);
  border-color: rgba(204,43,43,0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.service-card__icon {
  width: 44px; height: 44px;
  color: var(--red);
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover .service-card__icon { transform: translateY(-4px); }
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 16px;
}
.service-card ul li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.48);
  padding: 4px 0 4px 15px;
  position: relative;
  line-height: 1.5;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
}


/* ============================================================
   SPECIALIZED PROGRAMS
   ============================================================ */
.programs {
  padding: 60px 0 110px;
  background: var(--white);
}

/* Row 1: 4 columns */
.programs__row { margin-bottom: 22px; }
.programs__row--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
/* Row 2: 3 columns centered */
.programs__row--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 912px; /* 3/4 of 1216px grid width ~ 912 */
  margin-left: auto;
  margin-right: auto;
}

.program-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px 28px;
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.program-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.program-card--featured:hover {
  border-color: var(--steel);
  box-shadow: 0 8px 32px rgba(46,95,138,0.12);
}

.program-card__icon {
  width: 38px; height: 38px;
  color: var(--steel);
  margin-bottom: 14px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.program-card:hover .program-card__icon { transform: translateY(-4px); }
.program-card__icon svg { width: 100%; height: 100%; }

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.program-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}
.program-card ul { margin-top: 4px; }
.program-card ul li {
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 3px 0 3px 13px;
  position: relative;
  line-height: 1.45;
}
.program-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--steel);
  border-radius: 50%;
}


/* ============================================================
   MEET THE TEAM
   ============================================================ */
.team {
  padding: 110px 0;
  background: var(--cream);
}

.team__coming-soon {
  text-align: center;
  padding: 64px 40px;
  border: 2px dashed var(--sand);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 0 auto;
}
.team__cs-icon {
  width: 72px; height: 72px;
  color: var(--sand);
  margin: 0 auto 24px;
}
.team__cs-icon svg { width: 100%; height: 100%; }
.team__coming-soon h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.team__coming-soon p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}


/* ============================================================
   CAREERS
   ============================================================ */
.careers {
  padding: 110px 0;
  background: var(--white);
}

.careers__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.careers__intro p {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}

.careers__positions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.careers__positions span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--steel);
  background: rgba(46,95,138,0.08);
  border: 1px solid rgba(46,95,138,0.2);
  border-radius: 100px;
  padding: 5px 14px;
}

.careers__form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}


/* ---------- FORM ELEMENTS ---------- */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group { margin-bottom: 20px; }

.form__group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.req { color: var(--red); }

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); }

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--navy); }

.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231a2744' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
  cursor: pointer;
}

.form__group textarea { resize: vertical; min-height: 120px; }

/* File upload custom */
.form__file-wrap { position: relative; }
.form__file-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.form__file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.form__file-wrap:hover .form__file-label {
  border-color: var(--navy);
  color: var(--text-dark);
}
.form__file-label::before {
  content: '📎';
  font-size: 1rem;
}

/* Modal form has lighter background for form groups */
.modal .form__group input,
.modal .form__group select,
.modal .form__group textarea {
  background: var(--cream);
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  background: url('../assets/images/contact-bg.jpg') center center / cover no-repeat;
  background-color: var(--navy-deep);
}

.contact__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(9, 14, 30, 0.75) 0%,
    rgba(26, 39, 68, 0.55) 100%
  );
}

.contact__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact__heading p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 32px;
  margin-top: 4px;
}

.contact__info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact__info-card:last-of-type { border-bottom: none; }

.contact__info-icon {
  width: 22px; height: 22px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact__info-icon svg { width: 100%; height: 100%; }

.contact__info-text strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 5px;
}
.contact__info-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 4px;
}
.contact__info-text a { transition: color var(--ease); }
.contact__info-text a:hover { color: var(--white); }
.contact__info-text span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
}

/* Socials */
.contact__socials {
  display: flex;
  gap: 12px;
  padding-top: 28px;
}

.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.social-icon--sm {
  width: 36px; height: 36px;
  border-color: rgba(255,255,255,0.15);
}
.social-icon--sm svg { width: 16px; height: 16px; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  padding-top: 72px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Note: If QCMS logo is white-on-transparent, no filter needed.
         If logo is dark-on-transparent, uncomment the line below:
         filter: brightness(0) invert(1);              */
.footer__logo {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
  mix-blend-mode: screen;
}

.footer__brand p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.85;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer__socials { display: flex; gap: 10px; }

.footer__links h4,
.footer__contact h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer__links ul li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--white); }

.footer__contact p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 6px;
}
.footer__contact a { transition: color var(--ease); }
.footer__contact a:hover { color: var(--white); }
.footer__note {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.32) !important;
  margin-bottom: 14px !important;
}

.footer__bar {
  text-align: center;
  padding: 20px 40px;
}
.footer__bar p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
}


/* ============================================================
   CONSULTATION MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 30, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  max-width: 660px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scrollbar-width: thin;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.modal__close:hover { background: var(--sand); }

.modal__header { margin-bottom: 28px; }
.modal__header h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal__header p {
  font-size: 0.9rem;
  color: var(--text-mid);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- 1100px --- */
@media (max-width: 1100px) {
  .programs__row--4 { grid-template-columns: repeat(2, 1fr); }
  .programs__row--3 { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
}

/* --- 960px --- */
@media (max-width: 960px) {
  /* Mobile nav */
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--navy-deep);
    padding: 20px 24px 28px;
    gap: 2px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s ease, opacity 0.32s ease;
    z-index: 898;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link { width: 100%; padding: 10px 12px; }

  .nav__dropdown { width: 100%; }
  .nav__dropdown-toggle { width: 100%; justify-content: space-between; }

  .nav__dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    transition: opacity 0.2s ease, max-height 0.3s ease;
  }
  .nav__dropdown.open .nav__dropdown-menu {
    opacity: 1;
    max-height: 200px;
    transform: none !important;
  }
  .nav__dropdown-item { color: rgba(255,255,255,0.65); padding: 10px 20px; }
  .nav__dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--white); }

  .nav__cta { margin-left: 0; margin-top: 8px; width: 100%; text-align: center; }

  /* Sections */
  .about__inner { grid-template-columns: 1fr; gap: 44px; }

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

  .programs__row--4 { grid-template-columns: repeat(2, 1fr); }
  .programs__row--3 { grid-template-columns: repeat(2, 1fr); }
  /* Last card in row-3 on 2-col: stretch full width */
  .programs__row--3 .program-card:nth-child(3) { grid-column: 1 / -1; max-width: 460px; margin: 0 auto; width: 100%; }

  .careers__inner { grid-template-columns: 1fr; gap: 44px; }

  .contact__inner { grid-template-columns: 1fr; gap: 52px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* --- 640px --- */
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .nav__inner { padding: 0 24px; }
  .about__inner { padding: 0 24px; }

  .about { padding: 80px 0; }
  .services { padding: 80px 0; }
  .programs { padding: 80px 0; }
  .team { padding: 80px 0; }
  .careers { padding: 80px 0; }
  .contact { padding: 80px 0; }

  .services__grid { grid-template-columns: 1fr; }
  .programs__row--4 { grid-template-columns: 1fr; }
  .programs__row--3 { grid-template-columns: 1fr; }
  .programs__row--3 .program-card:nth-child(3) { grid-column: auto; max-width: 100%; }

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

  .modal { padding: 36px 24px; }
  .careers__form { padding: 32px 24px; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__brand { grid-column: auto; }
}


/* HERO VIDEO LAYER */
.hero { position: relative; overflow: hidden; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__content { position: relative; z-index: 2; }


/* ============================================================
   SCHEDULE PAGE
   ============================================================ */
.schedule-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(46,95,138,0.12), transparent 32%),
    linear-gradient(180deg, #f7f3ec 0%, #ffffff 32%, #f7f3ec 100%);
}

.schedule-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 41, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.schedule-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.schedule-header__brand {
  display: flex;
  align-items: center;
}

.schedule-header__logo {
  height: 42px;
  width: auto;
}

.schedule-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color var(--ease), transform var(--ease);
}

.schedule-header__back:hover {
  color: var(--white);
  transform: translateX(-2px);
}

.schedule-main {
  padding: 56px 0 96px;
}

.schedule-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
}

.schedule-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(26, 39, 68, 0.14);
}

.schedule-panel--visual {
  min-height: 620px;
  background:
    linear-gradient(135deg, rgba(9, 14, 30, 0.84) 0%, rgba(26, 39, 68, 0.72) 58%, rgba(9, 14, 30, 0.82) 100%),
    url('../assets/images/hero-fallback.jpg') center center / cover no-repeat;
  color: var(--white);
}

.schedule-panel--content {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(26,39,68,0.08);
  padding: 40px 36px;
}

.schedule-panel__inner {
  position: relative;
  z-index: 1;
  padding: 72px 56px;
  max-width: 640px;
}

.schedule-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.schedule-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--white);
}

.schedule-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 30px;
}

.schedule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.84);
  font-size: 0.78rem;
  font-weight: 500;
}

.schedule-card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 14px;
}

.schedule-card-copy {
  color: var(--text-mid);
  line-height: 1.82;
  margin-bottom: 28px;
}

.schedule-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.schedule-info-card {
  background: var(--white);
  border: 1px solid rgba(26,39,68,0.08);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(26, 39, 68, 0.06);
}

.schedule-info-card strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.schedule-info-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.schedule-actions .btn {
  min-width: 220px;
}

.schedule-note {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-light);
}

.schedule-note strong {
  color: var(--text-dark);
}

@media (max-width: 960px) {
  .schedule-hero {
    grid-template-columns: 1fr;
  }

  .schedule-panel--visual {
    min-height: 500px;
  }

  .schedule-panel__inner {
    padding: 56px 36px;
  }

  .schedule-header__inner {
    padding: 16px 24px;
  }
}

@media (max-width: 640px) {
  .schedule-main {
    padding: 28px 0 72px;
  }

  .schedule-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-panel--content {
    padding: 28px 22px;
  }

  .schedule-panel__inner {
    padding: 42px 24px;
  }

  .schedule-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .schedule-card-title {
    font-size: 1.7rem;
  }

  .schedule-actions .btn {
    width: 100%;
    min-width: 0;
  }
}


/* ============================================================
   POLISH — additional subtle animations & warmth
   ============================================================ */

/* Section rule — draws in from left when revealed */
.reveal.visible .section-rule {
  animation: ruleGrow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}
@keyframes ruleGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* Section eyebrow — subtle fade-slide */
.reveal.visible .section-eyebrow {
  animation: eyebrowIn 0.5s ease 0.1s both;
}
@keyframes eyebrowIn {
  from { opacity: 0; letter-spacing: 0.3em; }
  to   { opacity: 1; letter-spacing: 0.18em; }
}

/* Warm red underline on about/careers headings */
.about__copy .section-heading,
.careers__intro .section-heading {
  position: relative;
  display: block;
}

/* Contact info card — subtle left-border accent on hover */
.contact__info-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact__info-card:hover {
  transform: translateX(4px);
}

/* Footer brand tagline warm accent */
.footer__brand p {
  border-left: 2px solid rgba(204, 43, 43, 0.25);
  padding-left: 12px;
}

/* Careers position tags — subtle pop on hover */
.careers__positions span {
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.careers__positions span:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Nav CTA — warm pulse on page load to draw attention */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 43, 43, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(204, 43, 43, 0.18); }
}
body.is-loaded .nav__cta {
  animation: ctaPulse 2.4s ease 1.5s 2;
}
