/* Theme variables */
:root {
  --blue: #3C3B6E;
  --red: #B22234;
  --white: #FFFFFF;
  --gold: #E5C07B;
  --text: #1f2937;
  --muted: #6b7280;
  /* Sitewide patriotic gradient background (not applied to hero) */
  --bg: linear-gradient(135deg, #2f2e5b 0%, #3C3B6E 35%, #f5f7ff 70%, #eaeefc 100%);
  --header-height-desktop: 240px;
  --header-height-mobile: 72px;
  --footer-height-desktop: 80px;
  --footer-height-mobile: 80px;
  --container: 1100px;
  --radius: 12px;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Sticky footer layout: make body a flex column and push main content to fill height */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content area grows to push footer to page bottom on short pages */
.site-content {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: Poppins, Inter, system-ui, sans-serif;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

h3 {
  font-weight: 600;
}

p,
li {
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  height: var(--header-height-mobile);
  border-bottom: 6px solid var(--red);
  background: linear-gradient(180deg, #3C3B6E 0%, #2f2e5b 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 0;
  z-index: 1001;
}

@media (min-width: 768px) {
  .site-header {
    height: var(--header-height-desktop);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .brand {
    gap: 16px;
  }
}

.brand-text {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 14px;
}

@media (min-width: 768px) {
  .brand-text {
    font-size: 18px;
  }
}

.brand-text {
  white-space: nowrap;
}

.brand-logo {
  display: inline-block;
  height: 160px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 120px;
  }
}

/* Preloader overlay */
#preloader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

#preloader-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease;
}

.preloader-logo {
  width: 120px;
  height: auto;
  animation: preloader-pulse 1.2s ease-in-out infinite;
  opacity: 0.95;
}

@keyframes preloader-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* Circular ring around the logo */
.preloader-circle {
  position: relative;
  display: inline-block;
}

.preloader-circle::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(#E5C07B, #3C3B6E, #E5C07B);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: preloader-spin 1.4s linear infinite;
}

.preloader-circle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: preloader-spin-rev 2.2s linear infinite reverse;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloader-spin-rev {
  to {
    transform: rotate(360deg);
  }
}

/* Inline SVG EC monogram sizing */
.brand-mark {
  display: inline-block;
  height: 80px;
  width: auto;
}

@media (min-width: 768px) {
  .brand-mark {
    height: 96px;
  }
}

/* Text-based EC mark */
.brand-mark-text {
  display: inline-flex;
  align-items: center;
}

.brand-initial {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  font-size: 32px;
}

@media (min-width: 768px) {
  .brand-initial {
    font-size: 36px;
  }
}

.brand-initial-e {
  color: #111827;
  margin-right: 2px;
}

.brand-initial-c {
  color: var(--blue);
  margin-left: 2px;
}

/* Fallback SVG sizing to match image logo */
.logo {
  display: inline-block;
  height: 80px;
  width: 80px;
}

@media (min-width: 768px) {
  .logo {
    height: 96px;
    width: 96px;
  }
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: transparent;
  position: relative;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.nav-toggle:active {
  border-color: rgba(255, 255, 255, 0.8);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(229, 192, 123, 0.8);
  outline-offset: 2px;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}

.nav-toggle .nav-toggle-bar:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}

/* Turn the hamburger into an X when expanded */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

/* Ensure mobile menu links are readable on white background */
body.nav-open .site-nav a {
  color: var(--text);
}

.site-nav li {
  display: inline-block;
}

.site-nav li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
}

.site-nav li a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Header-specific button polish */
.site-header .site-nav .btn {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
}

.site-header .site-nav .btn-primary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.site-header .site-nav .btn-primary:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Header CTA button (outside nav)
   Make base styles neutral so variant classes (e.g., .btn-apply) can show through. */
.site-header .header-cta {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Preserve previous white pill style for non-apply variants only */
.site-header .header-cta:not(.btn-apply) {
  background: #ffffff;
  color: var(--blue);
  border: 2px solid #ffffff;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14);
}

.site-header .header-cta:not(.btn-apply):hover {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.18);
  transform: translateY(-1px);
}

.header-inner {
  gap: 10px;
}

/* Mobile-only tweaks: keep hamburger visible and shrink CTA pill */
@media (max-width: 767px) {
  .header-inner {
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-toggle {
    margin-left: auto;
    z-index: 1002;
  }

  .site-header .header-cta {
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1;
    height: 34px;
    border-radius: 9999px;
    border-width: 1px;
  }

  .site-header .header-cta:not(.btn-apply) {
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.14);
  }

  .site-header .header-cta:not(.btn-apply):hover {
    transform: none;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
  }

  /* Compact hamburger proportions for mobile */
  .nav-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.35);
  }

  .nav-toggle-bar {
    width: 18px;
    height: 2px;
  }

  .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translate(-50%, calc(-50% - 5px));
  }

  .nav-toggle .nav-toggle-bar:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translate(-50%, calc(-50% + 5px));
  }
}

/* Mobile nav open */
/* Mobile nav: full-screen panel under header */
body.nav-open {
  overflow: hidden;
}

body.nav-open .site-nav ul {
  display: block;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
  z-index: 1000;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.site-nav ul li {
  display: block;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .site-nav ul li {
    display: inline-block;
    margin-bottom: 0;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.6);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

.btn-primary:hover {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 6px 14px rgba(178, 34, 52, 0.22);
}

.btn-secondary:hover {
  background: #a61e2f;
  box-shadow: 0 10px 22px rgba(178, 34, 52, 0.28);
  transform: translateY(-1px);
}

/* Apply Now: high-visibility yellow CTA with subtle breathing glow */
.btn-apply {
  background: linear-gradient(180deg, #FFE082, #FFCA28);
  color: #2F2E5B;
  /* deep blue for contrast */
  border: 2px solid #FFC107;
  box-shadow: 0 10px 24px rgba(255, 193, 7, 0.35);
}

.btn-apply:hover {
  box-shadow: 0 14px 28px rgba(255, 193, 7, 0.45);
  transform: translateY(-1px);
}

.btn-apply:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.35);
}

.attention {
  animation: applyGlow 6s ease-in-out infinite;
}

@keyframes applyGlow {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(255, 193, 7, 0.35);
  }

  50% {
    box-shadow: 0 16px 32px rgba(255, 193, 7, 0.55);
  }
}

/* Home CTA: professional animated frame with subtle moving sheen */
.btn-cta-highlight {
  position: relative;
  isolation: isolate;
  /* keep pseudo-elements contained */
  border: 2px solid transparent;
  /* allows gradient border */
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(60, 59, 110, 0.35), rgba(178, 34, 52, 0.35), rgba(229, 192, 123, 0.35)) border-box;
  background-size: auto, 300% 300%;
  animation: btnBorderShift 12s linear infinite;
  color: var(--blue);
  overflow: hidden;
  /* confine sheen inside the button */
  border-radius: inherit;
  /* respect button rounding */
}

.btn-cta-highlight:hover {
  transform: translateY(0);
}

.btn-cta-highlight::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(229, 192, 123, 0) 0%, rgba(229, 192, 123, 0.35) 50%, rgba(229, 192, 123, 0) 100%);
  border-radius: inherit;
  transform: translateX(-120%) skewX(-18deg);
  animation: btnSheen 4s ease-in-out infinite;
}

@keyframes btnBorderShift {
  0% {
    background-position: 0% 0%, 0% 50%;
  }

  50% {
    background-position: 0% 0%, 100% 50%;
  }

  100% {
    background-position: 0% 0%, 0% 50%;
  }
}

@keyframes btnSheen {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }

  60% {
    transform: translateX(180%) skewX(-18deg);
  }

  100% {
    transform: translateX(180%) skewX(-18deg);
  }
}

.link-arrow {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.link-arrow::after {
  content: ' →';
}

/* Hero with waving flag ribbon */
.hero {
  position: relative;
  padding: 100px 0 120px;
  min-height: 520px;
  /* All pages: use site hero background image with subtle dark overlay */
  background-image: linear-gradient(180deg, rgba(60, 59, 110, 0.35), rgba(47, 46, 91, 0.35)), url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Allow pages to provide a contextual hero background via CSS variable */
.hero.hero--image {
  background-image: linear-gradient(180deg, rgba(60, 59, 110, 0.40), rgba(47, 46, 91, 0.40)), var(--hero-image);
}

/* Ensure hero content uses light text for contrast */
.hero>.container {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

/* Home-only: Pexels background image override */
/* Home: video hero */
.hero--video {
  position: relative;
  overflow: hidden;
  background: none;
  min-height: 85vh;
  padding: 140px 0 160px;
}

.hero--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60, 59, 110, 0.45), rgba(47, 46, 91, 0.45));
  z-index: 1;
}

.hero--video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero--video {
    min-height: 90vh;
  }
}

@media (min-width: 1200px) {
  .hero--video {
    min-height: 100vh;
  }
}

/* Accordion component */
.accordion {
  max-width: var(--container);
  margin: 0 auto;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  padding: 16px 18px;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.accordion-toggle:focus {
  outline: 3px solid rgba(60, 59, 110, 0.25);
  outline-offset: 2px;
}

.accordion-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid #6b7280;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(225deg);
  border-color: var(--blue);
}

.accordion-content {
  padding: 0 18px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
  background: #fafafa;
  border-top: 1px solid #f3f4f6;
}

.accordion-item.open .accordion-content {
  padding: 14px 18px 16px;
  max-height: 1200px;
  opacity: 1;
}

.accordion-content ul {
  margin: 0;
  padding-left: 18px;
}

.accordion-content li {
  margin: 6px 0;
  color: var(--text);
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 0 16px;
    min-height: 640px;
  }
}

.hero-title {
  font-size: 2.4rem;
  margin: 0 0 14px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #ffffff;
  max-width: 65ch;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Continuous light sweep effect for hero title */
.hero-title.hero-title--shine {
  position: relative;
  overflow: hidden;
}

.hero-title.hero-title--shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -25%;
  height: 100%;
  width: 20%;
  background: linear-gradient(75deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  filter: blur(1px);
  opacity: 0.8;
  transform: skewX(-20deg);
  animation: heroLightSweep 2.8s linear infinite;
  mix-blend-mode: screen;
}

@keyframes heroLightSweep {
  0% {
    left: -25%;
  }

  50% {
    left: 60%;
  }

  100% {
    left: 120%;
  }
}

/* Gentle glow pulse to keep text lively but readable */
.hero-title.hero-title--glow {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35), 0 0 18px rgba(255, 255, 255, 0.20);
  animation: heroGlowPulse 4.5s ease-in-out infinite;
}

@keyframes heroGlowPulse {

  0%,
  100% {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.30), 0 0 18px rgba(255, 255, 255, 0.18);
  }

  50% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.55), 0 0 28px rgba(255, 255, 255, 0.30);
  }
}

/* Professional left-to-right text reveal (keeps original color) */
.hero-title.hero-title--reveal {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: heroTitleReveal 1600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: clip-path;
}

@keyframes heroTitleReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.flag-ribbon {
  position: absolute;
  inset: 0 auto auto 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  background:
    /* stripes */
    repeating-linear-gradient(180deg,
      var(--red) 0px,
      var(--red) 20px,
      var(--white) 20px,
      var(--white) 40px);
  mask-image: radial-gradient(100% 60% at 50% 0%, #000 55%, transparent 70%);
  opacity: 0.25;
  transform-origin: left center;
  animation: ribbon-wave 8s ease-in-out infinite;
}

.flag-ribbon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 140px;
  width: 28%;
  background: var(--blue);
  mask-image: radial-gradient(90% 70% at 20% 0%, #000 55%, transparent 75%);
}

.flag-ribbon::after {
  /* small gold accent line */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

@keyframes ribbon-wave {

  0%,
  100% {
    transform: translateY(0) skewX(0deg);
    background-position: 0 0;
  }

  50% {
    transform: translateY(6px) skewX(-3deg);
    background-position: 0 6px;
  }
}

/* Sections */
.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

/* Professional, clean surfaces with subtle depth */
.section .container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  /* slate-200 */
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  padding: 32px;
  color: var(--text);
}

/* Alternating sections: softer wash to avoid stark repetition */
.section.alt {
  background: linear-gradient(180deg, rgba(60, 59, 110, 0.04) 0%, rgba(178, 34, 52, 0.04) 100%);
}

.section.alt .container {
  background: #ffffff;
  border-color: #e5e7eb;
}

/* Team / Experts section */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  padding: 14px 14px 18px;
}

.team-media {
  position: relative;
}

.team-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 2px);
}

.team-social {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
  color: var(--primary);
}

.social-btn:hover {
  background: #f1f5f9;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.team-name {
  margin: 12px 8px 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.team-title {
  margin: 0 8px 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 10px;
  color: var(--blue);
}

.section-lead {
  color: #374151;
  max-width: 80ch;
}

/* Section divider for clearer separation (excludes hero) */
.section-divider .container {
  border-top: 1px solid rgba(31, 41, 55, 0.12);
  padding-top: 28px;
}

/* Grid & cards */
.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Booking form refinements */
.booking-form .card label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.booking-form .form-control {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  /* slate-300 */
  background: #ffffff;
  color: var(--text);
}

.booking-form .form-control::placeholder {
  color: #6b7280;
  /* muted */
}

.booking-form .form-control:focus {
  outline: 0;
  border-color: #3C3B6E;
  box-shadow: 0 0 0 3px rgba(60, 59, 110, 0.15);
}

.booking-form .form-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

.booking-form .card--full {
  grid-column: 1 / -1;
}

.booking-form .actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.booking-form .actions .btn-primary {
  padding: 12px 18px;
  border-radius: 8px;
}

.booking-form .actions .subtle {
  opacity: 0.85;
}

/* Input sublabels and grid helpers */
.label-sub {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .input-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Schedule group (date + time), more professional spacing */
.schedule-group {
  align-items: end;
}

.schedule-group .form-control {
  height: 40px;
}

/* Quick subject chips for contact form */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #374151;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.chip:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1f2937;
}

.chip:focus-visible {
  outline: 3px solid rgba(60, 59, 110, 0.25);
  outline-offset: 2px;
}

.card {
  border: 1px solid #e5e7eb;
  /* slate-200 */
  border-radius: var(--radius);
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.card--clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.16);
}

.card--clickable:focus {
  outline: 3px solid rgba(60, 59, 110, 0.25);
  outline-offset: 2px;
}

.card-title {
  margin: 0 0 6px;
  color: var(--blue);
}

.card-meta {
  color: var(--muted);
  margin: 0 0 4px;
}

.card-fee {
  font-weight: 700;
  color: var(--red);
  margin: 0 0 8px;
}

.card-desc {
  margin: 0;
}

.fees .fee-card h3 {
  margin: 0 0 6px;
}

.fees .fee-card p {
  margin: 0;
  color: var(--text);
}

/* Testimonials */
.testimonials {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial {
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--blue);
  background: #fff;
  border-radius: var(--radius);
}

.testimonial p {
  margin: 0 0 6px;
}

/* Our Impact stats section */
.stats-section {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  text-align: center;
  padding: 60px 0;
}

.stats-section .section-title {
  color: #3C3B6E;
  font-weight: 700;
  margin-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #B22234;
  transition: transform 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #3C3B6E;
  margin-bottom: 8px;
}

.stat-label {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .stat-value {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

/* CTA banner */
.cta-banner {
  background: var(--blue);
  color: var(--white);
  padding: 36px 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
}

.cta-title {
  margin: 0;
}

/* Notice card styling (e.g., selected service summary) */
.card--notice {
  background: #ffffff;
  border-color: rgba(60, 59, 110, 0.40);
}

/* Footer (sticky bottom, adaptive height) */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
  color: #e5e7eb;
  border-top: 4px solid var(--red);
  padding: 20px 0;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 24px 0;
  }
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-contact p {
  margin: 2px 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-contact a {
  color: #f3f4f6;
  /* neutral, not blue */
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.site-footer a:visited {
  color: #f3f4f6;
}

.footer-contact a:hover,
.footer-contact a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.footer-brand {
  font-weight: 600;
  color: #e5e7eb;
  opacity: 0.9;
}

/* Footer links (clean, non-blue, stylish) */
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #f3f4f6;
  /* light neutral, not blue */
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  opacity: 0.9;
}

.footer-links a:hover,
.footer-links a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  opacity: 1;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flag-ribbon {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* Media images and star ratings utilities */
.section-media {
  margin: 0 0 16px;
}

.section-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.section-media figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.stars .star {
  width: 18px;
  height: 18px;
  color: #ffb800;
}

.stars .star svg {
  display: block;
}

.review-card .stars {
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .section-media img {
    aspect-ratio: 21 / 9;
    max-height: 360px;
  }
}

.review-card {
  position: relative;
}

.review-card .stars {
  display: inline-flex;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 8px;
}

.review-card .star svg {
  display: block;
}

.review-card .card-desc {
  font-size: 1rem;
  color: var(--text);
  margin: 6px 0 8px;
}

.review-card .card-meta {
  color: var(--muted);
}

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

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Payment Methods - Footer (professional, minimal, fits existing footer) */
.footer-payments {
  width: 100%;
  padding: 12px 0 8px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-payments .footer-title {
  font-size: 2rem;
  color: #f3f4f6;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin: 0 0 10px;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.payment-logos img {
  max-height: 80px;
  width: auto;
  filter: grayscale(15%) brightness(0.95) contrast(1.05);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.payment-logos img:hover {
  transform: scale(1.06);
  filter: none;
}

@media (max-width: 600px) {
  .payment-logos img {
    max-height: 28px;
  }
}

/* Floating WhatsApp button above Crisp */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 100000;
  display: inline-block;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
}

.whatsapp-float img {
  display: block;
  width: 80px;
  height: 80px;
}

.whatsapp-float:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .whatsapp-float img {
    width: 48px;
    height: 48px;
  }
}