
/* === UI Kit Styles (Primary) === */
:root {
  --accent: #87CEEB;
  --background: #f9f9f9;
  --border: #e0e0e0;
  --cool-gray: #e9edf2;
  --dusty-rose: #e7d7d5;
  --light-sage: #dcebe4;
  --light-text: #555555;
  --primary-dark: #0D3E6F;
  --primary: #CFE3F0;
  --radius: 8px;
  --shadow: rgba(15, 76, 129, 0.12);
  --soft-sand: #fdf8f4;
  --text: #222222;
  --white: #ffffff;
  --footer: #CFE3F0;
}

/* === Reset === */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: 0.2px;
  line-height: 1.6;
  margin: 0;
}

body:not(.home) .page-section {
  padding-top: 120px;
}

html, body {
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  width: 100%;
}

iframe {
  display: block;
  height: auto;
  max-width: 100%;
}

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

img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}

/* === Layout === */
.container {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 40px;
}

.section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--border); /* === New === */
}

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


.section-alt.cool {
  background-color: var(--cool-gray);
  border-top: 1px solid var(--border);
}

.section-alt.warm {
  background-color: var(--soft-sand);
  border-top: 1px solid var(--border);
}

.section-border {
  border-top: 1px solid var(--border);
}

/* === Eyebrow Section === */
.eyebrow {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 32px 0 28px; /* slightly more top/bottom padding for balance */
}

.eyebrow .container {
  margin: 0 auto;
  max-width: 1840px;
  padding: 0 40px;
}

/* Heading */
.eyebrow-heading {
  margin: 0 0 12px;
  font-family: "Merriweather", serif;
  font-size: 3rem; /* up from 2.5rem for more presence */
  font-weight: 600; /* slightly lighter for elegance */
  letter-spacing: 0.5px; /* refined spacing */
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 36px;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.6s ease;
}

/* Text */
.eyebrow-text {
  margin: 0;
  max-width: 1240px;
  color: var(--light-text);
  line-height: 1.65;
  /* Slightly smaller than heading but still responsive */
  font-size: clamp(1.5rem, 0.9rem + 0.5vw, 1.25rem);
  animation: fadeInUp 0.6s ease 40ms both;
}

/* Centered layout */
.eyebrow.center {
  text-align: center;
}

.eyebrow.center .eyebrow-text {
  margin-left: auto;
  margin-right: auto;
}

/* === Responsive Adjustments === */
@media (max-width: 1024px) {
  .eyebrow .container {
    padding: 0 32px;
  }

  .eyebrow-heading {
    font-size: 2.25rem; /* slightly smaller but still strong */
  }

  .eyebrow-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .eyebrow {
    padding: 24px 0 20px;
  }

  .eyebrow .container {
    padding: 0 20px;
  }

  .eyebrow-heading {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .eyebrow-text {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .eyebrow-heading {
    font-size: 1.5rem; /* minimum size for readability */
    line-height: 1.3;
  }

  .eyebrow-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* === Animations === */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}

@keyframes kenburnsZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.1);
  }
}

/* === Components === */
.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}
/* === Our-services Card Components === */
/* Vision */
.vision-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* always group cards at center */
  gap: 18px;
}

.card.vision-card {
  background-color: var(--cool-gray);
  flex: 1 1 320px;        /* base = 260px, can grow and shrink */
  max-width: 520px;       /* never exceed 320px wide */
  min-width: 280px;       /* never shrink below 260px */
}

.card.vision-card {
  position: relative;
  overflow: hidden; /* ensures the image doesn’t spill out */
  color: white;     /* optional, so text stays readable */ 
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 👈 pushes title up, button down */
  padding: 24px;
  overflow: hidden;
}

.card.vision-card h3 {
  margin-top: 2px;  /* reduce space above title */
  position: relative;
  z-index: 1;
}

.card.vision-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* make it act like background-size: cover */
  z-index: 0;        /* sit behind text */
}

.card.vision-card h3,
.card.vision-card p,
.card.vision-card a {
  position: relative;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 2; /* content floats above image */
}
/* Values */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* always group cards at center */
  column-gap: 150px;  /* horizontal spacing */
  row-gap: 80px;     /* vertical spacing */
}

.card.value-card {
  background-color: var(--cool-gray);
  flex: 1 1 320px;        /* base = 260px, can grow and shrink */
  max-width: 1000px;       /* never exceed 320px wide */
  min-width: 380px;       /* never shrink below 260px */
}

.card.value-card {
  position: relative;
  overflow: hidden; /* ensures the image doesn’t spill out */
  color: white;     /* optional, so text stays readable */ 
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 👈 pushes title up, button down */
  padding: 24px;
  overflow: hidden;
}

.card.value-card h3 {
  margin-top: 2px;  /* reduce space above title */
  position: relative;
  z-index: 1;
}

.card-content p {
  flex-grow: 1;   /* fills space, pushes button down */
  margin: 0 0 16px;
  font-size: 1.5rem;   /* bump size up */
  line-height: 1.7;    /* adjust spacing for readability */
}

.card-content a {
  align-self: flex-start;     /* button sits at bottom left */
}

.card.value-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* make it act like background-size: cover */
  z-index: 0;        /* sit behind text */
}

/* Blue overlay */
.card.value-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 62, 111, 0.65); /* deep brand navy tint */
  mix-blend-mode: soft-light;
  z-index: 1;
}

/* Vignette overlay */
.card.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0) 70%,      /* transparent in the middle */
    rgba(0,0,0,0.35) 100%   /* soft dark edge */
  );
  z-index: 2; /* sits above the blue tint, but below text */
  pointer-events: none;
}

.card.value-card h3,
.card.value-card p,
.card.value-card a {
  position: relative;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 2; /* content floats above image */
}

/* === The Frosted glass code === */
.frosted-glass {
  background-color: rgba(255, 255, 255, 0.15); /* base translucency */
  backdrop-filter: saturate(180%) blur(16px);  /* frosted glass effect */
  -webkit-backdrop-filter: saturate(180%) blur(16px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.3);   /* subtle outline */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);   /* soft shadow */
  border-radius: var(--radius);                /* consistent rounding */
  transition: all 0.3s ease;
}

/* === Button === */
.button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--white);
  color: var(--primary);
}
.button:hover {
  opacity: 0.95;
  transform: scale(1.03);
}

.button-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--primary-dark);
  color: white;
  box-shadow: 0 2px 8px var(--shadow);
}
.primary-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}


.btn {
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-block;
  padding: 14px 32px;
  transition: all 0.3s ease;
}

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

.btn-accent:hover {
  opacity: 0.9;
}

.btn:hover {
  opacity: 0.95;
  transform: scale(1.03);
}

.btn-primary {
  background-color: var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.custom-button {
  background-color: #185B9B;
  color: white;
  border-radius: 3px;
  display: inline-block;
  padding: 10px 20px;
  transition: all 0.3s;
}

.custom-button:hover {
  opacity: 0.95;
  transform: scale(1.03);
   text-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
}

.cta {
  padding: 80px 20px;
  background-color: var(--soft-sand);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #fff;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #e0e0e0;
}

.article-heading {
  margin-bottom: 10px;
}

.article-link {
  display: inline-block;
  margin-top: 10px;
}

.company-col {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.contact-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.divider-line {
  background: #ccc;
  height: 20px;
  width: 1px;
}

/* === Dropdown === */
.dropdown-menu {
  position: relative;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: none;
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.vision-section .dropdown-menu li {
  padding: 8px 20px;
}

.dropdown-menu li a {
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* === Flexbox === */
.focus-center {
  object-position: center 50%;
}

.focus-lower {
  object-position: center 80%;
}

.focus-top {
  object-position: center 20%;
}

.full-width {
  width: 100%;
}

.hr-divider {
  background: #ccc;
  height: 20px;
  width: 1px;
}

/* === Logos === */
.logo-container {
  justify-content: flex-start !important;
  align-items: flex-start;
  padding-left: 5%;
  max-width: 50%;
  display: flex;
  flex: 1 1 auto; /* allow it to shrink after spacer */
  min-width: 240px; /* optional: prevents it from collapsing too small */
}

.logo-img {
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 1));
  min-width: 240px;
  transition: filter 0.3s ease;
}

.logo-link {
  align-items: center;
  display: flex;
}

/* === Nav === */
.mobile-nav {
  animation: fadeInDown 0.3s ease;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: none;
}

.mobile-nav.show {
  display: block;
}

.nav-bar {
  display: flex;
  flex: 1 1 auto;
  gap: 50px;
  justify-content: center;
}

.nav-link {
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1;
}

.nav-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 4px 0;     /* ↓ Reduce vertical padding */
  gap: 50px;          /* ↓ Reduce horizontal spacing between sections */
  margin-bottom: -10px; /* ↓ Optional: pulls content below nav closer */
}

.navbar {
  align-items: center;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  margin: 0 12px;
}

.navbar a:hover {
}
.news-article {
  background: transparent;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px;
  padding: 20px;
}

.phone-link {
  align-items: center;
  display: flex;
  cursor: pointer;
}

/* === Search === */
.search-button {
  background: var(--primary);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
}

.search-button:hover {
  background: var(--accent);
}

.search-form {
  display: flex;
  gap: 6px;
  width: 100%;
}

.search-form.hidden {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
}

.search-input {
  border-radius: 4px;
  border: 1px solid #ccc;
  flex: 1;
  padding: 6px 10px;
}

.search-toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  z-index: 10;
}

.search-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.secondary-button:hover {
  opacity: 0.95;
  transform: scale(1.03);
}

.section-news {
  background: #f9f9f9;
  padding: 60px 20px;
}

.social-link {
  cursor: pointer;
}

.social-link:hover {
  color: var(--accent);
}

/* === Headers === */
.header-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  padding: 20px;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.4s ease;
}

.header-container.animate-in {
  transform: translateY(-100%);
}

.header-container.light-bg {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.header-container.light-bg .logo-img {
  filter: none !important;
}

.header-container.light-bg .nav-link,
.header-container.light-bg .phone-link,
.header-container.light-bg .social-link,
.header-container.light-bg .search-toggle-button {
  filter: none;
}

.header-container.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container.sticky {
  transform: translateY(0);
}

.header-container.transparent {
  background-color: rgba(0, 0, 0, 0);
  box-shadow: none;
}

.header-container.transparent .nav-link {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 1));
}

.header-contact-column {
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 280px;
  display: flex;
  flex-shrink: 10; /* 👈 Force it to shrink first */
  justify-content: flex-end;
}

.header-contact-wrapper {
  flex: 1 1 270px;
  min-width: 160px;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid var(--border);
}

/* === Hero === */
.hero-bar {
  align-items: flex-end;
  background-position: center center; /* 👈 controls picture position horizontal, verticle */
  background-size: cover;
  color: white;
  display: flex;
  height: 500px;
  justify-content: flex-start;
  margin-top: 142px;
  padding: 0 40px 30px 40px;
  position: relative;
}

.hero-bar-content {
  max-width: 720px;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  text-align: left;
  animation: fadeInUp 0.6s ease;
  background: rgba(13, 62, 111, 0.2);
  padding: 24px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.hero-bar::before {
  background: rgba(13, 62, 111, 0.45);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.hero-button-floating {
  font-size: 1rem;
  padding: 12px 24px;
  margin-left: 20px;     /* 👈 shifts it slightly right of content */
  margin-top: 12px;       /* optional spacing from text above */
  position: relative;     /* 👈 use relative to allow margin to work naturally */
  display: inline-block;
  z-index: 3;
}

.hero-description {
  color: #f0f0f0;
  max-width: 600px;
}

.hero-heading {
  margin: 0 0 10px;
  margin-bottom: 5px;
}

/* === Logos === */
.logo-container {
  justify-content: flex-start !important;
  align-items: flex-start;
  padding-left: 5%;
  max-width: 50%;
  display: flex;
  flex: 1 1 auto;  /* Allow shrinking */
  min-width: 180px;  /* Let it shrink, but not collapse */
}

.logo-img {
  height: auto;
  max-height: 100px;         /* ⬅ Slightly reduce at small sizes */
  width: auto;
  max-width: 100%;
  transition: filter 0.3s ease, max-height 0.3s ease;
  object-fit: contain;
}

.logo-link {
  align-items: center;
  display: flex;
}

/* === Body classes === */
.vision-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* always group cards at center */
  gap: 32px;
}

.vision-section {
  padding: 20px 10px;     /* Height / Horizontal */
  background-color: var(--background);
  border-top: 1px solid var(--border);
}
.vision-section-alt {
  background-color: var(--cool-gray);
  padding: 20px 20px;
  border-top: 1px solid var(--border);
}

.split-section {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between; /* ensures spacing on larger screens */
  gap: 40px;
}

.split-text {
  flex: 1.1;
  min-width: 300px;
  max-width: 600px; /* ✅ Optional: prevents text from over-expanding */
}

.split-image {
  flex: 1 1 0;
  min-width: 0; /* ✅ allow flex to scale freely */
}

.split-image {
  flex: 0.9;
  min-width: 300px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-overlay-text {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: white;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background-color: rgba(255, 255, 255, 0.15); /* base translucency */
  border: 1px solid rgba(255, 255, 255, 0.3);   /* subtle outline */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);   /* soft shadow */
  border-radius: var(--radius);
  padding: 12px 16px;
  max-width: 80%;
  text-shadow: none; /* optional: cleaner over frosted glass */
}

.image-overlay-text h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.image-overlay-text p {
  margin: 4px 0 0;
  font-size: 1rem;
}

.split-timeline {
  flex: 1 1 0;
  min-width: 300px;
  max-width: 600px;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.timeline-wrapper {
  max-height: 100%;
  padding: 24px 24px 24px 32px;
  overflow-y: auto;
  position: relative;
}

/* --- ADD: vertical connector line --- */
.timeline-grid {
  display: grid;
  gap: 32px;
  padding-left: 8px;
  padding-right: 8px;
  position: relative;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  top: calc(100px / 2);    /* 100px = .icon height */
  bottom: calc(100px / 2);
  left: calc(50px + 0px); /* 50px = half of icon's width */
  width: 4px;
  background-color: var(--primary);
  z-index: 0;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1; /* ensures icon and text stay above the line */
}

.timeline-step .icon {
  font-size: 60px;
  min-width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background-color: var(--cool-gray);
  border-radius: 50%;
  z-index: 2; /* icon above line */
}

.timeline-step .content h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.timeline-step .content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

/* Reveal-on-scroll baseline */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: opacity, transform;
}

/* When in view */
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
/* Responsive stacking for mobile */
@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
  }

  .split-timeline {
    width: 100%;
  }

  .timeline-step {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-step .icon {
    margin-bottom: 6px;
  }
}


  @media (max-width: 768px) {
    .split-section {
      flex-direction: column;
      text-align: center;
    }

    .split-text,
    .split-image {
      flex: 1 1 100%;
      max-width: 100%;
    }

    .split-image {
      padding-bottom: 48px; /* ensures overlay doesn't overlap timeline elements */
      position: relative;
    }

    .image-overlay-text {
      max-width: 90%;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
    }
  }
/* Icon List Cleanup */
.icon-list {
  font-size: 1.75rem;   /* increase base text size */
  line-height: 2.25;    /* better readability */
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-list-item {
  display: flex;
  align-items: flex-start;
  font-size: 3rem;   /* make icons bigger */
  margin-right: 12px;  /* spacing between icon and text */
  gap: 16px;
  margin-bottom: 20px;
}

.icon-list-item i {
  font-size: 2.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.icon-list-item span {
  flex: 1;
  font-size: 1.25rem;
  line-height: 1.6;
}
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.map-placeholder {
  background-color: var(--cool-gray);
  height: 240px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}
  .hide-on-mobile {
    display: none !important;
  }

  .show-on-mobile {
    display: block !important;
  }


/* === Footer === */
/* ===== FOOTER CONTAINER ===== */
.footer {
  background-color: var(--footer);
  color: var(--text);
  padding: 80px 20px 40px 20px; /* top right bottom left */
  margin-top: 10vh;
  text-align: center;
}

/* ===== FOOTER GRID LAYOUT ===== */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== FOOTER COLUMNS ===== */
.footer-col {
  flex: 0 1 auto;
  min-width: 200px;
  text-align: left;
  word-break: break-word;
}

.footer-col:first-child {
  margin-top: 0;
  padding-top: 0;
}

.footer-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 20px;
}

/* ===== FOOTER LISTS ===== */
.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

/* === Utilities === */
.bg-cool-gray {
  background-color: var(--cool-gray);
}

.bg-dusty-rose {
  background-color: var(--dusty-rose);
}

.bg-light {
  background-color: var(--background);
}

.bg-light-sage {
  background-color: var(--light-sage);
}

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

.bg-primary-dark {
  background-color: var(--primary-dark);
}

.bg-soft-sand {
  background-color: var(--soft-sand);
}

.border-default {
  border: 1px solid var(--border);
}

.flex-center {
  align-items: center;
  display: flex;
  justify-content: center;
}

.hide-on-mobile {
  display: block;
}

.show-on-mobile {
  display: none;
}

.mb-4 {
  margin-bottom: 24px;
}

.mt-4 {
  margin-top: 24px;
}

.radius {
  border-radius: var(--radius);
}

.screen-reader-text {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.shadow {
  box-shadow: 0 4px 12px var(--shadow);
}

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

/* =========================
   MEDIA QUERIES (consolidated)
   ========================= */

/* Hard guard: hide hamburger ≥768px and ensure desktop nav displays */
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none !important; }
  .nav-wrapper { display: flex !important; } /* desktop nav layout */
}

/* Large tablets & small desktops (≤1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .header-top-row { padding: 8px 24px; }
  .header-container { padding: 16px; }

  .logo-container { max-width: 40%; padding-left: 2%; }
  .logo-img { height: 80px; min-width: 200px; }

  .nav-wrapper { gap: 30px; }
  .nav-links { gap: 16px; }

  /* If your page uses hero & tiles, keep the sizing rhythms */
  .hero-slider, .slide-wrapper, .slides, .slide { height: 85vh; }
  .hero-text { top: 65%; max-width: 85%; }

  .promo-tiles {
    --tile-w: 280px;
    --tile-h: 340px;
    padding: 80px 0;
  }
  .promo-tile-grid {
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
  }
}

/* Mobile header layout & dropdown behavior (≤767.98px) */
@media (max-width: 767.98px) {
  /* Header: logo + hamburger, hide the extras */
  .header-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
  }
  .logo-container {
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
    padding-left: 0;
    justify-content: center;
  }
  .logo-container .logo-img { max-height: 44px; height: auto; width: auto; }

  .header-spacer,
  .header-contact-column { display: none !important; }

  /* Hamburger button */
  .mobile-menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto 0;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
  }

  /* Hide nav by default; show when toggled by JS (.is-open) */
  .nav-wrapper {
    display: none !important;
    width: 100%;
  }
  .nav-wrapper.is-open {
    display: block !important;
    width: 100%;
    padding: 8px 0 12px;
    position: relative;
    z-index: 3000;
  }

  /* Stack the nav links */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .nav-link {
    display: block;
    padding: 10px 14px;
    width: 100%;
    text-align: center;
  }

  /* Mobile dropdown behavior: make the menu flow in the document
     (static positioning) and let the toggle script add .show */
  .nav-item.dropdown { position: relative; }
  .nav-item.dropdown:hover > .dropdown-menu { display: none !important; }

  .dropdown-menu {
    position: static;
    display: none;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 6px 0;
    box-shadow: none;
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(0,0,0,0.1));
    border-radius: 8px;
    width: 92%;
    max-width: 520px;
    z-index: 2000;
  }
  .dropdown-menu.show { display: block; }
  .dropdown-item { display: block; padding: 10px 14px; }

  /* Hero & layout tweaks */
  .hero-slider, .slide-wrapper, .slides, .slide { height: 75vh; }
  .hero-text { top: 60%; max-width: 90%; }
  .hero-text h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.2; }
  .hero-text p { font-size: clamp(0.95rem, 3.5vw, 1.1rem); }

  .values-grid, .vision-grid { gap: 24px; }
  .card { padding: 20px; }
}

/* Mobile phones (≤640px) */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }

  .header-container { padding: 10px; }
  .header-top-row { padding: 10px; }

  .logo-container .logo-img { height: clamp(40px, 10vh, 70px); width: auto; }

  /* General buttons full-width */
  .btn,
  .button-primary,
  .custom-button,
  .cta-button {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
  }

  /* HERO buttons: stack + center + 5px gap, each 50vw */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .hero-buttons .btn,
  .hero-buttons .button-primary,
  .hero-buttons .custom-button,
  .hero-buttons .cta-button {
    width: 50vw;
    box-sizing: border-box;
  }

  .hero-slider, .slide-wrapper, .slides, .slide { height: 70vh; }

  /* Extra tidy-ups commonly used on your sub pages */
  .hero-text { top: 58%; max-width: 92%; padding: 0 12px; }
  .hero-text h1 { font-size: clamp(1.5rem, 6vw, 1.9rem); margin-bottom: 0.75rem; }
  .hero-text p { font-size: clamp(0.9rem, 4vw, 1rem); line-height: 1.4; }

  .values-grid, .vision-grid { gap: 20px; flex-direction: column; }
  .card { padding: 18px; margin-bottom: 16px; }

  .promo-tiles { --tile-w: 100%; --tile-h: 300px; padding: 48px 0; }
  .promo-tile { padding: 32px; min-height: 280px; }
  .promo-tile-grid { justify-content: center; gap: 20px; }

  .section { padding: 60px 16px; }
  .section-news { padding: 48px 16px; }

  .logo-carousel img { height: 80px; }
  .footer { padding: 32px 16px; }

  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: block !important; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 0 12px; }

  .logo-img { height: 50px; min-width: 120px; }

  .hero-slider, .slide-wrapper, .slides, .slide { height: 65vh; }

  /* keep your existing sub-page tweaks */
  .hero-bar { height: 320px; margin-top: 104px; padding: 0 12px 14px; }

  .hero-button-floating,
  .button,
  .button-primary,
  .custom-button { width: 100%; text-align: center; }

  .card.vision-card,
  .card.value-card { min-width: 220px; padding: 14px; border-radius: 10px; }
  .card-content p { font-size: 1rem; }
}
