
/* === 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: #0F4C81;
  --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: 1140px;
  padding: 0 20px;
}

.section {
  padding: 80px 20px;
}

.section-alt {
  background-color: #f4f8fb;
}

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

/* === 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);
  margin-bottom: 24px;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* === 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);
  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: absolute;
  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 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;
}

.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-link.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: 8px 0;
  gap: 50px;
}

.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;
  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-spacer {
  flex: 0 1.5 300px;
}

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

/* === Header IDs === */
#hero-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
}

#hero-header.hide {
  display: none;
}

#sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  transform: translateY(-100%);
  transition: transform 0.6s ease, background-color 0.5s ease;
}

#sticky-header.sticky {
  transform: translateY(0);
  transform-origin: top center;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 6px 16px;
  transition: all 0.4s ease;
}

#sticky-header.sticky .button-primary {
  padding: 4px 10px;
  border-radius: 4px;
  height: auto;
  min-height: unset;
}

#sticky-header.sticky .header-contact-wrapper {
  padding: 0;
  gap: 8px;
}

#sticky-header.sticky .header-top-row {
  padding: 0;
  margin-bottom: 4px;
}

#sticky-header.sticky .logo-img {
  height: 50px;
}

#sticky-header.sticky .nav-link {
  padding: 4px 10px;
}

#sticky-header.sticky .nav-links {
  gap: 10px;
  margin: 0;
}

#sticky-header.sticky .nav-wrapper {
  padding: 0;
  margin: 0;
  align-items: center;
  min-height: 0;
}

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

.hero-bar-content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  text-align: left;
  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 {
  background-color: var(--primary);
  color: var(--white);
  padding: 100px 20px;
  position: relative;
  height: 90vh;
  background: url('/wp-content/uploads/ph-photos/pic-1.png') center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  color: var(--white);
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 2;
  margin-bottom: 20%;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content p {
  margin-bottom: 2rem;
}

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

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

.hero-image {
  height: 100px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 34, 68, 0.4);
  z-index: 1;
}

.hero-slider {
  height: 100vh;
  margin-top: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-slider .slides {
  position: relative;
}

.hero-slider .slides img {
  display: block;
  height: 100vh;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.hero-text {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  max-width: 90vw;
  width: 90%;
  padding: 0 1rem;
  box-sizing: border-box;
  color: white;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease;
}

.hero-text h1 {
  animation-delay: 0.3s;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 5s ease-out 0.5s forwards;
}

.hero-text p {
  color: white !important;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 5s ease-out 1s forwards;
}

.hero-text.loaded {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

/* === Logos === */
.logo-container {
  justify-content: flex-start !important;
  align-items: flex-start;
  padding-left: 5%;
  max-width: 50%;
  display: flex;
  flex: 1;
}

.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;
}

/* === Vignette Overlays === */
.overlay-1 {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.1) 100%);
}

.overlay-2 {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.1) 100%);
}

.overlay-3 {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.1) 100%);
}

.overlay-4 {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
}

.overlay-5 {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
}

.overlay-6 {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.vignette-overlay.overlay-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0.1) 100%);
}

/* === Slides === */
.slide {
  height: 100vh;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease;
  transform-origin: center;
}

.slide-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide.kenburns {
  animation: kenburnsZoom 10s ease-in-out forwards;
}

.slides {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* === Style Elements === */
.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;
}

.promo-tiles {
  position: relative;
  margin-top: 0;
  padding-top: 150px;
  margin-bottom: 0;
  padding-bottom: 150px;
  overflow: hidden;
  background-color: white;
}

.promo-wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
}

.promo-title {
  position: relative;
  z-index: 2;
}

.promo-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* force 2 columns */
  gap: 24px;
  padding-left: 8.8%;
  padding-right: 8.8%;
  justify-items: center;
}


.promo-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  text-decoration: none;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.2),
    inset -4px -4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background-blend-mode: overlay;

  /* NEW: Make tile width flexible but never too small */
  flex: 1 1 0;
  min-width: 180px;
  max-width: 280px; /* Optional: limits max tile width */
}


.promo-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.2),
    inset -4px -4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background-blend-mode: overlay;
  border-radius: var(--radius);
  overflow: hidden;
}

.promo-tile:hover .promo-card {
  transform: rotateY(180deg);
}

/* Expanded state styling */
.promo-tile.expanded {
  flex: 1 1 100%;
  max-width: 100%;
  height: auto;
  z-index: 10;
}

.promo-tile.expanded .promo-card {
  transform: rotateY(180deg);
}

.promo-tile.flipped .promo-card {
  transform: rotateY(180deg);
}

promo-tile .promo-back {
  display: none; /* hide back by default */
}

promo-tile.flipped .promo-front {
  display: none; /* hide front when flipped */
}

.promo-tile.flipped .promo-back {
  display: flex; /* show back when flipped */
}

/* Entry Animation */
.animated-tile {
  opacity: 0;
  animation: slideFadeIn 1.2s ease-out forwards;
}

.promo-tile:nth-child(1) { animation-delay: 0.5s; }
.promo-tile:nth-child(2) { animation-delay: 0.9s; }
.promo-tile:nth-child(3) { animation-delay: 1.3s; }
.promo-tile:nth-child(4) { animation-delay: 1.7s; }

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* timeline */
.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);
}
/* === 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
   ========================= */

/* Desktop & large tablets (≥768px)
   - Show desktop nav; hide hamburger */
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none !important; }
  .nav-wrapper { display: flex !important; }
}

/* Mid screens (≤1024px)
   - Gentle spacing/rhythm tweaks only */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .header-top-row { padding: 8px 24px; }
  .header-container { padding: 16px; }

  .logo-container { max-width: 45%; padding-left: 2%; }
  .logo-img { height: 90px; min-width: 220px; }

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

  .hero-text { top: 65%; max-width: 85%; }
}

/* Mobile layout & dropdown behaviour (≤767.98px)
   - Hamburger toggles .nav-wrapper.is-open (handled by JS)
   - Dropdown becomes flow content; .show controls visibility */
@media (max-width: 767.98px) {
  /* Header compaction */
  .header-container { padding: 8px; }
  .header-top-row {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 16px; padding: 10px 20px;
  }

  /* Logo sizing */
  .logo-container {
    flex: 1 1 100%; justify-content: center; text-align: center;
    padding-left: 0; max-width: 100%;
  }
  .logo-img { max-height: 60px; height: auto; width: auto; filter: none; }

  /* Contact cluster */
  .header-contact-column {
    flex: 1 1 100%; justify-content: center; text-align: center;
  }
  .header-contact-wrapper {
    display: flex; flex-direction: row; justify-content: center;
    align-items: center; gap: 16px; flex-wrap: wrap; width: 100%;
    margin-top: 12px;
  }
  .phone-link, .button-primary { font-size: 14px; white-space: nowrap; }

  /* Nav hidden by default; show when JS adds .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 links */
  .nav-links {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin: 15px 0;
  }
  .nav-link { display: block; width: 100%; text-align: center; padding: 10px 14px; }

  /* Dropdown (mobile) — disable hover open, use flow layout */
  .nav-item.dropdown { position: relative; }
  .nav-item.dropdown:hover > .dropdown-menu { display: none !important; }

  .dropdown-menu {
    position: static;
    display: none;        /* shown by JS via .show */
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 6px 0;
    width: 92%;
    max-width: 520px;
    border-radius: var(--radius);
    box-shadow: none;
    background: var(--white);
    border: 1px solid var(--border);
  }
  .dropdown-menu.show { display: block; }
  .dropdown-menu li { padding: 8px 16px; }
  .dropdown-menu li a { display: block; padding: 10px 14px; }

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

  /* Optional hero/footer tweaks for services pages */
  .hero-text {
    top: 65%; left: 50%; transform: translate(-50%, -50%) translateY(20px);
    max-width: 90%; text-align: center; padding: 0 16px;
  }
  .hero-text h1 { font-size: 2rem; line-height: 1.3; }
  .hero-text p  { font-size: 1rem; line-height: 1.5; }

  .footer-grid { flex-direction: column; align-items: center; }
  .footer-col { flex: 1 1 100%; margin-bottom: 24px; text-align: center; align-items: center; }
  .footer-col:not(:last-child) { border-right: none; padding-right: 0; }
}

/* Phones (≤640px) — comfortable tap targets & stacked CTAs */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Make common buttons full-width when used inside hero/CTA */
  .btn, .button, .button-primary, .custom-button, .cta-button {
    width: 100%; text-align: center; padding: 12px 24px;
  }
}

/* Small phones (≤480px) — tighter heights */
@media (max-width: 480px) {
  .logo-img { height: 50px; min-width: 120px; }

  /* Hero bars commonly used on services pages */
  .hero-bar { height: 320px; margin-top: 104px; padding: 0 12px 14px; }
}