/* ============ RESET & VARIABLES ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
}

/* Brand tokens – CSBT brand system (csbt-brand skill, brand-tokens.md). Do not add new hues. */
:root {
  --navy-dark: #0a2a33;   /* navy  – primary base */
  --navy-light: #0e3540;  /* navy, slightly lifted for layered panels */
  --navy-mid: #0b5a69;    /* teal  – logo wordmark, secondary dark panels */
  --orange: #f5821f;      /* signal orange – main accent */
  --orange-hover: #e8562a;/* orange ribbon dark stop */
  --green: #2e9e62;       /* growth green – secondary accent (~1/3 of orange use) */
  --bg-light: #f1f4f5;    /* panel */
  --bg-section: #e6ecee;  /* mist */
  --text-dark: #1f2a30;   /* ink – body text on light */
  --text-gray: #5e6b73;   /* slate – secondary text */
  --text-light-gray: #a9bec4; /* steel – muted text on navy */
  --white: #ffffff;
  --border-color: #d3dcdf;/* rule */
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(10, 42, 51, 0.08);
  --orange-text-safe: #a85a08; /* orange for small text on white – 4.9:1 (brand orange fails below 24px) */
  --footer-gradient: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  --footer-text-muted: rgba(255, 255, 255, 0.7);
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* ============ HORIZONTAL SCROLL PREVENTION ============ */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
video,
iframe,
table {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--white);
}
.text-light-gray {
  color: var(--text-light-gray);
}
.text-orange {
  color: var(--orange);
}

.link-arrow,
.badge-text,
.info-block a,
.office-contact a,
.sidebar-services-list a:hover,
.sidebar-services-list li.active a {
  color: var(--orange-text-safe);
}

/* --orange is for backgrounds, shapes and large text only. Text ON orange must be navy (see brand.css .btn-primary); white on orange fails WCAG AA. */

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-dark);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.btn-block {
  width: 100%;
}

/* ============ BADGE / SECTION HEADER ============ */
.badge-outline {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  margin-bottom: 20px;
}
.badge-text {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2,
.text-center h2 {
  font-size: 36px;
  margin-bottom: 14px;
}
.section-header p,
.text-center > p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

.admin-notice {
  grid-column: 1/-1;
  background: #fff8eb;
  border: 1px dashed var(--orange);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: var(--text-gray);
}
.admin-notice a {
  color: var(--orange);
  font-weight: 600;
}
/* Public-facing empty state (see bss_empty_state()) */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-gray);
  padding: 24px 0;
}

/* ============ HEADER ============ */
.site-header {
  background: transparent;
  padding: 16px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
/* ---- Sticky header state (added by JS on scroll) ---- */
.site-header.is-stuck {
  position: fixed;
  background: rgba(255, 255, 255, 0.92); /* fallback when backdrop-filter is unsupported */
  box-shadow: 0 6px 24px rgba(15, 27, 45, 0.12);
  padding: 8px 0;
  animation: bssStickyHeaderIn 0.35s ease;
}
/* Glass navbar: translucent white + blur of the content scrolling underneath.
   Applied on a ::before layer so the dropdown panel keeps its own backdrop. */
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header.is-stuck {
    background: transparent;
  }
  .site-header.is-stuck::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(15, 27, 45, 0.08);
    pointer-events: none;
    z-index: -1;
  }
}
@keyframes bssStickyHeaderIn {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.site-header.is-stuck .site-logo,
.site-header.is-stuck .site-logo .logo-text {
  color: var(--text-dark);
}
.site-header.is-stuck .main-nav .nav-menu > li > a {
  color: var(--text-dark);
}
.site-header.is-stuck .main-nav .nav-menu > li.menu-item-object-page > a,
.site-header.is-stuck .main-nav .nav-menu > li.has-dropdown > a,
.site-header.is-stuck .main-nav .nav-menu > li:nth-child(2) > a,
.site-header.is-stuck .main-nav .nav-menu > li:nth-child(3) > a {
  background: transparent;
}
.site-header.is-stuck .main-nav .nav-menu > li > a:hover,
.site-header.is-stuck .main-nav .nav-menu > li > a:focus {
  color: var(--orange);
}
.site-header.is-stuck .mobile-menu-toggle span {
  background: var(--text-dark);
}
.site-header.is-stuck .call-box {
  background: rgba(15, 27, 45, 0.55);
  box-shadow: 0 6px 20px rgba(15, 27, 45, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  .site-header.is-stuck {
    animation: none;
  }
  .site-header {
    transition: none;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  margin-left: -20px;
}
/* Custom logo is its own <a> (the_custom_logo()) — match .site-logo alignment */
.header-inner .custom-logo-link {
  display: flex;
  align-items: center;
  margin-left: -20px;
}
.header-inner .custom-logo-link img {
  display: block;
  max-width: 275px;
  height: auto;
}
.logo-icon {
  background: var(--orange);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.main-nav .nav-menu {
  display: flex;
  gap: 10px;
  align-items: center;
}
.main-nav .nav-menu > li {
  position: relative;
}
/* ============ DROPDOWN NAVIGATION ============ */
.main-nav .nav-menu > li > a {
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav .nav-menu > li.has-dropdown > a .dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.main-nav .nav-menu > li.has-dropdown:hover > a .dropdown-arrow,
.main-nav .nav-menu > li.has-dropdown:focus-within > a .dropdown-arrow {
  transform: rotate(180deg);
}

/* About/Services dropdown triggers — no pill background */
.main-nav .nav-menu > li.menu-item-object-page > a,
.main-nav .nav-menu > li.has-dropdown > a {
  background: transparent;
}
.main-nav .nav-menu > li > a:hover,
.main-nav .nav-menu > li > a:focus {
  color: var(--orange);
}

/* Dropdown Panel — glassmorphism (translucent + blur) */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(15, 27, 45, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 220px;
  box-shadow: 0 20px 45px rgba(15, 27, 45, 0.28);
  border-radius: 12px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 10;
  list-style: none;
}
.main-nav li.has-dropdown:hover > .sub-menu,
.main-nav li.has-dropdown:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu li {
  position: relative;
}
.main-nav .sub-menu a {
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 12px;
  display: block;
  border-radius: 6px;
  font-size: 14px;
  background: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--orange);
}
/* On the white sticky header the backdrop is light, so deepen the glass for contrast */
.site-header.is-stuck .main-nav .sub-menu {
  background: rgba(15, 27, 45, 0.78);
}

/* Nested (3rd level) dropdown — shifts to the right */
.main-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* Mobile dropdown adjustments */
@media (max-width: 992px) {
  .main-nav .nav-menu > li.has-dropdown > a {
    background: transparent;
  }
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    display: none;
    width: 100%;
  }
  .main-nav li.has-dropdown.open > .sub-menu {
    display: block;
  }
  .main-nav .sub-menu a {
    color: var(--text-light-gray);
  }
  .main-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--orange);
  }
  /* Sticky header on mobile: dropdown panel stays dark, so keep links light */
  .site-header.is-stuck .main-nav .nav-menu > li > a {
    color: var(--white);
  }
  .site-header.is-stuck .main-nav .nav-menu > li.menu-item-object-page > a,
  .site-header.is-stuck .main-nav .nav-menu > li.has-dropdown > a,
  .site-header.is-stuck .main-nav .nav-menu > li:nth-child(2) > a,
  .site-header.is-stuck .main-nav .nav-menu > li:nth-child(3) > a {
    background: transparent;
  }
}

.main-nav .nav-menu > li:nth-child(2) > a,
.main-nav .nav-menu > li:nth-child(3) > a {
  background: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: -20px;
}
.call-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 27, 45, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 16px;
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.18);
}
.call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.call-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.call-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 400;
}
.call-number {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.call-number:hover,
.call-number:focus {
  color: var(--orange);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
}

/* ============ HERO ============ */
.hero-section {
  background: linear-gradient(
      rgba(15, 27, 45, 0.7),
      rgba(15, 27, 45, 0.7)
    ),
    url('../images/hero-bg.jpg'); /* default; Customizer "Home hero – background photo" overrides it */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  /* Vertical only, so .container keeps its side gutter on mobile (DES-08) */
  padding-top: 160px !important;
  padding-bottom: 80px !important;
}
/* Later legacy .hero-grid rules reset horizontal padding to 0; the higher
   specificity here keeps the 20px gutter at every breakpoint (DES-08). */
.container.hero-grid {
  padding-left: 20px;
  padding-right: 20px;
}
.hero-title {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-desc {
  color: var(--text-light-gray);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hero-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}
.hero-stat-box strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  font-family: var(--font-heading);
}
.hero-stat-box span {
  color: var(--text-light-gray);
  font-size: 11px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual-box {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-main-icon {
  font-size: 80px;
  color: var(--orange);
}
.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.icon-shield {
  top: -10px;
  right: -10px;
}
.icon-gear {
  bottom: 60px;
  right: -20px;
}
.icon-wrench {
  bottom: -10px;
  left: -10px;
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============ STATS BAR ============ */
.stats-section {
  background: #f1f5f9; /* Matched from reference: bg-muted */
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}
.stat-item {
  transition: color 0.3s ease;
  cursor: default;
}
.stat-item .stat-number {
  font-size: 48px; /* Matched larger scale from reference */
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.stat-item p {
  color: var(--text-gray);
  font-size: 16px;
  margin: 0;
  transition: color 0.3s ease;
}
.stat-item:hover .stat-number {
  color: var(--orange); /* Hover effect from reference group-hover:text-accent */
}
.stat-item:hover p {
  color: var(--text-dark);
}

/* ============ SERVICES ============ */
.services-section {
  padding: 90px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  transition: all 0.25s ease;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--orange);
}
.service-icon {
  width: 54px;
  height: 54px;
  background: #fff3e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ============ CLIENTS ============ */
.clients-section {
  background: var(--bg-section);
  padding: 0;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 30px;
}
.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.client-circle {
  width: 64px;
  height: 64px;
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.client-logo span {
  font-size: 12px;
  color: var(--text-gray);
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
  background: var(--navy-dark);
  padding: 90px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 60px;
}
.testimonial-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 100px;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-heading);
  pointer-events: none;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stars {
  margin-bottom: 18px;
  display: flex;
  gap: 4px;
}

.star {
  color: rgba(255, 255, 255, 0.2);
  font-size: 18px;
}

.star.filled {
  color: var(--orange);
  text-shadow: 0 0 8px rgba(247, 148, 29, 0.4);
}

.testimonial-text {
  color: var(--text-light-gray);
  font-size: 15px;
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial-card h4 {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.testimonial-role {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* All-reviews slider (continuous slide, pause on hover) */
.testimonials-slider-wrapper {
  overflow: hidden;
  width: 100%;
  margin: 40px 0 60px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.testimonials-slider-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: scrollReviews 60s linear infinite;
}

.testimonials-slider-wrapper:hover .testimonials-slider-track {
  animation-play-state: paused;
}

/* Fixed width + right margin on each card = exact 50% half-track → seamless loop */
.testimonials-slider-track .testimonial-card {
  flex: 0 0 auto;
  width: 380px;
  margin-right: 24px;
}

@keyframes scrollReviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .testimonials-slider-track .testimonial-card {
    width: 300px;
    margin-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-slider-track {
    animation: none;
  }
}

.review-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px;
  text-align: left;
}
.review-form-wrapper h3 {
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  color: var(--text-light-gray);
  font-size: 13px;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.star-rating-input {
  display: flex;
  gap: 8px;
  font-size: 22px;
  cursor: pointer;
}
.star-rating-input .star-select {
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
}
.star-rating-input .star-select.active {
  color: var(--orange);
}
.form-message {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
}
.form-message.success {
  color: #4ade80;
}
.form-message.error {
  color: #f87171;
}

/* Pending-approval banner above the review form */
.review-message {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.review-message.success,
.review-message.error {
  display: block;
}
.review-message.success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.review-message.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* ============ PROJECTS ============ */
.projects-section {
  padding: 90px 0;
  background: var(--bg-section);
}
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-gray);
  transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}
.project-image {
  position: relative;
  height: 200px;
  background: var(--border-color);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.project-content {
  padding: 22px;
}
.project-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.project-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.project-content p {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 14px;
}
.link-arrow {
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
}

/* ============ CTA ============ */
.cta-section {
  position: relative;
  isolation: isolate;
  background: var(--navy-dark); /* fallback when backdrop-filter is unsupported */
  padding: 80px 0;
}
/* Keep the content above the decorative + glass layers */
.cta-section > * {
  position: relative;
  z-index: 2;
}
/* ---- Deep glass CTA ----
   Rich near-opaque navy glass with a single warm accent glow.
   ::before = the accent light source, ::after = the frosted panel that blurs it. */
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .cta-section {
    background: transparent;
  }
  .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      /* single warm accent, low and to the left */
      radial-gradient(620px 340px at 4% 100%, rgba(247, 148, 29, 0.6) 0%, rgba(247, 148, 29, 0) 66%),
      /* deep base so the panel never washes out */
      linear-gradient(160deg, #16233a 0%, #0b1424 58%, #101b2e 100%);
  }
  .cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(11, 20, 36, 0.34) 0%,
      rgba(11, 20, 36, 0.46) 55%,
      rgba(11, 20, 36, 0.6) 100%
    );
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -50px 90px rgba(0, 0, 0, 0.3);
    pointer-events: none;
  }
}
.cta-section h2 {
  color: var(--white);
  font-size: 34px;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-light-gray);
  max-width: 550px;
  margin: 0 auto 30px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}
.cta-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-light-gray);
  font-size: 13px;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--navy-dark); /* fallback when backdrop-filter is unsupported */
  /* The brand 62/38 band (.csbt-band) is the footer's top edge – no extra
     orange border or top padding above it (they doubled the line). */
  padding-top: 0;
}
/* Keep every child above the decorative + glass layers */
.site-footer > * {
  position: relative;
  z-index: 2;
}

/* ---- Deep glass footer ----
   Same rich navy glass as the CTA above, with the accent glow carried
   over from the CTA so the two panels read as one continuous surface. */
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-footer {
    background: transparent;
  }
  .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      /* the accent continues from the CTA's glow, sitting just under the seam */
      radial-gradient(700px 380px at 4% 0%, rgba(247, 148, 29, 0.5) 0%, rgba(247, 148, 29, 0) 66%),
      /* deep base so the panel never washes out */
      linear-gradient(160deg, #101b2e 0%, #0b1424 58%, #16233a 100%);
  }
  .site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(11, 20, 36, 0.34) 0%,
      rgba(11, 20, 36, 0.46) 55%,
      rgba(11, 20, 36, 0.6) 100%
    );
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -50px 90px rgba(0, 0, 0, 0.3);
    pointer-events: none;
  }
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-top: 56px; /* space below the brand band */
  padding-bottom: 50px;
}
.footer-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.footer-about p {
  color: var(--text-light-gray);
  font-size: 13px;
  margin-bottom: 20px;
}
.social-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.social-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
}
/* ISO Certification (matches reference design) */
.footer-iso-cert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-iso-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(247, 148, 29, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-check-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--orange);
}
.footer-iso-text {
  display: flex;
  flex-direction: column;
}
.footer-iso-title {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px;
  line-height: 1.4;
}
.footer-iso-text > .footer-iso-title, .footer-iso-text > .footer-iso-sub {
  margin: 0;
}
.footer-iso-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
}
.footer-menu li {
  margin-bottom: 10px;
}
.footer-menu a {
  color: var(--text-light-gray);
  font-size: 13px;
}
.footer-menu a:hover {
  color: var(--orange);
}
.footer-col p {
  color: var(--text-light-gray);
  font-size: 13px;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
}
.certifications {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.certifications span {
  color: var(--text-light-gray);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
}
.footer-bottom p {
  color: var(--text-light-gray);
  font-size: 12px;
  margin-top: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 20px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .call-box {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }
  .hero-stats,
  .stats-grid,
  .services-grid,
  .testimonials-grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero-stats,
  .stats-grid,
  .services-grid,
  .testimonials-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }
}

/* ============ GENERIC PAGE HERO (About/Services/Projects/Contact/Gallery) ============ */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy-mid) 100%
  );
  padding: 150px 0 60px;
}
.badge-solid {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.badge-solid-dark {
  display: inline-block;
  background: var(--navy-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.page-hero-title {
  color: var(--white);
  font-size: 42px;
  max-width: 700px;
  margin-bottom: 18px;
}
.page-hero-desc {
  color: var(--text-light-gray);
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 15px;
}

/* ============ OUR STORY ============ */
.our-story-section {
  padding: 90px 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-content h2 {
  font-size: 32px;
  margin: 10px 0 20px;
}
.story-content p {
  color: var(--text-gray);
  margin-bottom: 16px;
  font-size: 15px;
}
.story-features {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
  flex-wrap: wrap;
}

.story-image-wrap {
  position: relative;
}
.story-image-wrap img,
.story-placeholder {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}
.story-placeholder {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.story-overlay-badge {
  position: absolute;
  bottom: -20px;
  left: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 16px 24px;
  text-align: left;
}
.story-overlay-badge strong {
  display: block;
  font-size: 26px;
  color: var(--navy-dark);
  font-family: var(--font-heading);
}
.story-overlay-badge span {
  font-size: 12px;
  color: var(--text-gray);
}

/* ============ JOURNEY TIMELINE ============ */
.journey-section {
  background: var(--bg-section);
  padding: 90px 0;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}
.journey-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-color);
}
.journey-dot {
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
}
.journey-year {
  display: block;
  color: var(--orange);
  font-size: 18px;
  margin-bottom: 6px;
}
.journey-item p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ============ CERTIFICATIONS ============ */
.certifications-section {
  padding: 90px 0;
}
.certs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.cert-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
}
.cert-icon {
  font-size: 30px;
  margin-bottom: 12px;
}
.cert-card h4 {
  font-size: 14px;
  margin-bottom: 6px;
}
.cert-card span {
  font-size: 12px;
  color: var(--text-gray);
}

/* ============ QUALITY POLICY ============ */
.quality-policy-section {
  background: var(--navy-dark);
  padding: 60px 0;
}
.quality-list {
  max-width: 700px;
  margin: 30px auto 0;
  display: grid;
  gap: 16px;
}
.quality-list li {
  color: var(--text-light-gray);
  font-size: 14px;
}
.quality-list li::marker {
  content: "";
}

/* ============ LEADERSHIP TEAM ============ */
.leadership-section {
  background: var(--bg-section);
  padding: 90px 0;
}
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
}
.team-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff3e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-placeholder {
  font-size: 32px;
}
.team-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.team-position {
  display: block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-experience {
  font-size: 12px;
  color: var(--text-gray);
}

/* ============ RESPONSIVE ADDITIONS ============ */
@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .journey-grid {
    grid-template-columns: 1fr 1fr;
  }
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .leadership-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .journey-grid,
  .certs-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-title {
    font-size: 28px;
  }
}
/* ============ SERVICES ARCHIVE GRID ============ */
.services-archive-section {
  padding: 90px 0 60px;
}

.service-card-full {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}
.service-card-full:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card-image {
  position: relative;
  height: 180px;
  background: var(--border-color);
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-icon {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-card-body {
  padding: 32px 24px 24px;
}
.service-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card-body > p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 16px;
}

.service-features-list {
  margin-bottom: 18px;
}
.service-features-list li {
  color: var(--text-dark);
  font-size: 13px;
  margin-bottom: 8px;
}
.service-features-list li::marker {
  content: "";
}

/* ============ OUR PROCESS ============ */
.process-section {
  background: var(--bg-section);
  padding: 90px 0;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}
.process-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.process-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-heading);
}
.process-text h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.process-text p {
  color: var(--text-gray);
  font-size: 13px;
}

/* ============ FAQ ACCORDION ============ */
.faq-section {
  padding: 90px 0;
}
.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}
.faq-toggle-icon {
  transition: transform 0.25s ease;
  color: var(--orange);
}
.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 10px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ============ SINGLE SERVICE PAGE ============ */
.single-service-content {
  padding: 70px 0;
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
.service-detail-image {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}
.service-detail-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.service-detail-text {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 30px;
}
.service-detail-text p {
  margin-bottom: 16px;
}
.service-detail-features h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.service-detail-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-cta-box {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 30px 24px;
  margin-bottom: 24px;
}
.sidebar-cta-box h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 10px;
}
.sidebar-cta-box p {
  color: var(--text-light-gray);
  font-size: 13px;
  margin-bottom: 20px;
}
.sidebar-cta-box .btn {
  margin-bottom: 10px;
}
.sidebar-cta-box .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.sidebar-services-list {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-services-list h4 {
  font-size: 16px;
  margin-bottom: 16px;
}
.sidebar-services-list li {
  margin-bottom: 10px;
}
.sidebar-services-list a {
  color: var(--text-gray);
  font-size: 14px;
}
.sidebar-services-list li.active a,
.sidebar-services-list a:hover {
  color: var(--orange);
  font-weight: 600;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-sidebar {
    position: static;
  }
}
@media (max-width: 576px) {
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}
/* ============ PROJECTS ARCHIVE ============ */
.projects-archive-section {
  padding: 70px 0 90px;
}
.projects-grid-archive {
  grid-template-columns: repeat(3, 1fr);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag-pill {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.project-budget {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 14px;
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}
.page-numbers {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 600;
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ============ SINGLE PROJECT ============ */
.single-project-hero {
  padding-bottom: 50px;
}
.single-project-meta {
  display: flex;
  gap: 24px;
  color: var(--text-light-gray);
  font-size: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.single-project-featured-image {
  max-width: 1200px;
  margin: -40px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.single-project-featured-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.single-project-content {
  padding: 70px 0;
}
.project-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
.project-detail-text {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 30px;
}
.project-detail-text p {
  margin-bottom: 16px;
}

.project-detail-tags {
  margin-bottom: 40px;
}
.project-detail-tags h4,
.project-gallery-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  height: 140px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.project-detail-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-info-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-info-box h4 {
  font-size: 16px;
  margin-bottom: 16px;
}
.info-list li {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
}
.info-list li strong {
  color: var(--text-dark);
}

.related-projects-section {
  background: var(--bg-section);
  padding: 0;
}
.related-projects-section h2 {
  margin-bottom: 40px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .projects-grid-archive {
    grid-template-columns: 1fr 1fr;
  }
  .project-detail-grid {
    grid-template-columns: 1fr;
  }
  .project-detail-sidebar {
    position: static;
  }
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .projects-grid-archive {
    grid-template-columns: 1fr;
  }
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
  .single-project-featured-image img {
    height: 260px;
  }
}

/* ============ LIGHTBOX ============ */
.bss-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.bss-lightbox-overlay.active {
  display: flex;
}
.bss-lightbox-overlay img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 34px;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
}

/* ============ GALLERY PAGE ============ */
.gallery-page-section {
  padding: 70px 0 90px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  background: var(--border-color);
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  background: linear-gradient(
    to top,
    rgba(15, 27, 45, 0.9) 0%,
    rgba(15, 27, 45, 0) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-badge-tag {
  align-self: flex-start;
  background: var(--navy-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.gallery-item-title {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid-item {
    height: 220px;
  }
}

/* ============ CONTACT PAGE ============ */
.contact-page-section {
  padding: 70px 0 90px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form-box h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.form-subtext {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 26px;
}

.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-form .form-group {
  margin-bottom: 18px;
}
.quote-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.quote-form .form-message {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
}
.quote-form .form-message.success {
  color: #16a34a;
}
.quote-form .form-message.error {
  color: #dc2626;
}

.contact-info-box h2 {
  font-size: 22px;
  margin-bottom: 24px;
}
.info-block {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}
.info-icon {
  width: 42px;
  height: 42px;
  background: #fff3e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.info-block strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.info-block p {
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 4px;
}
.info-block a {
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
}
.info-sub {
  color: var(--text-gray);
  font-size: 12px;
}

.offices-heading {
  font-size: 16px;
  margin: 30px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.office-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
.office-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.office-card p {
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 8px;
}
.office-contact {
  font-size: 13px;
}
.office-contact a {
  color: var(--orange);
}

.map-embed-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 576px) {
  .quote-form .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-box {
    padding: 24px;
  }
}

/* ============ BLOG ARCHIVE & CARDS ============ */
.blog-archive-section {
  padding: 70px 0 90px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blog-card-image {
  position: relative;
  display: block;
  height: 200px;
  background: var(--border-color);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.blog-card-body {
  padding: 22px;
}
.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.blog-card-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.blog-card-body h3 a {
  color: var(--text-dark);
}
.blog-card-body h3 a:hover {
  color: var(--orange);
}
.blog-card-body p {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 14px;
}

/* ============ SINGLE BLOG POST ============ */
.single-post-hero {
  padding-bottom: 50px;
}
.single-post-meta {
  display: flex;
  gap: 24px;
  color: var(--text-light-gray);
  font-size: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.single-post-featured-image {
  max-width: 1200px;
  margin: -40px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.single-post-featured-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.single-post-content {
  padding: 70px 0;
}
.post-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
.post-detail-text {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.8;
}
.post-detail-text h2,
.post-detail-text h3 {
  color: var(--text-dark);
  margin: 30px 0 14px;
}
.post-detail-text p {
  margin-bottom: 18px;
}
.post-detail-text img {
  border-radius: 10px;
  margin: 20px 0;
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
}
.author-box img {
  border-radius: 50%;
}
.author-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.author-box p {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
}

.post-detail-sidebar {
  position: sticky;
  top: 100px;
}
.related-posts-section {
  background: var(--bg-section);
  padding: 0;
}
.related-posts-section h2 {
  margin-bottom: 40px;
}

/* ============ CAREERS PAGE ============ */
.why-join-section {
  padding: 90px 0;
  background: var(--bg-section);
}
.why-join-section h2 {
  margin-bottom: 40px;
}
.why-join-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-join-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.why-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.why-join-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
}
.why-join-card p {
  font-size: 13px;
  color: var(--text-gray);
}

.open-positions-section {
  padding: 90px 0;
}
.open-positions-section h2 {
  margin-bottom: 40px;
}
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.job-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.job-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-gray);
  flex-wrap: wrap;
}
.job-card-actions {
  display: flex;
  gap: 12px;
}

.apply-form-section {
  background: var(--bg-section);
  padding: 90px 0;
}
.apply-form-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.apply-form-box h2 {
  text-align: center;
  margin-bottom: 8px;
}
.apply-form-box .form-subtext {
  text-align: center;
  margin-bottom: 30px;
}

/* ============ SINGLE JOB PAGE ============ */
.single-job-content {
  padding: 70px 0;
}
.job-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
.job-detail-text {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 20px;
}
.job-detail-section {
  margin-bottom: 30px;
}
.job-detail-section h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.job-detail-sidebar {
  position: sticky;
  top: 100px;
}

/* ============ SIMPLE CONTENT PAGE (Privacy/Terms/Sitemap) ============ */
.simple-page-hero {
  padding-bottom: 50px;
}
.simple-content-section {
  padding: 70px 0 90px;
}
.simple-content-wrap {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.8;
}
.simple-content-wrap h2 {
  color: var(--text-dark);
  font-size: 24px;
  margin: 35px 0 16px;
}
.simple-content-wrap h3 {
  color: var(--text-dark);
  font-size: 19px;
  margin: 25px 0 12px;
}
.simple-content-wrap p {
  margin-bottom: 16px;
}
.simple-content-wrap ul,
.simple-content-wrap ol {
  margin: 0 0 16px 20px;
}
.simple-content-wrap li {
  margin-bottom: 8px;
  list-style: disc;
}
.simple-content-wrap a {
  color: var(--orange);
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .post-detail-grid,
  .job-detail-grid {
    grid-template-columns: 1fr;
  }
  .post-detail-sidebar,
  .job-detail-sidebar {
    position: static;
  }
  .why-join-grid {
    grid-template-columns: 1fr 1fr;
  }
  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 576px) {
  .blog-grid,
  .why-join-grid {
    grid-template-columns: 1fr;
  }
  .single-post-featured-image img {
    height: 240px;
  }
}

/* ============ 404 ERROR PAGE ============ */
.error-404-section {
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy-mid) 100%
  );
  padding: 100px 0;
  min-height: 70vh;
  min-height: 70dvh; /* dynamic viewport height — fixes iOS Safari address bar jump */
  display: flex;
  align-items: center;
}

.error-404-section .container {
  max-width: 700px;
}
.error-404-visual {
  position: relative;
  margin-bottom: 30px;
}
.error-code {
  font-size: 140px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--font-heading);
  line-height: 1;
  display: block;
}
.error-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 56px;
}
.error-404-section h1 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 14px;
}
.error-desc {
  color: var(--text-light-gray);
  max-width: 480px;
  margin: 0 auto 36px;
}

.error-search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 50px;
}
.error-search-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 14px;
}
.error-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.error-search-form input:focus {
  outline: none;
  border-color: var(--orange);
}

.error-quick-links h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.quick-link-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px 14px;
  text-align: center;
  color: var(--text-light-gray);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.quick-link-card:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-3px);
}
.quick-link-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.back-home-btn {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============ SEARCH RESULTS PAGE ============ */
.search-hero {
  padding-bottom: 50px;
}
.hero-search-form {
  max-width: 500px;
  margin-top: 24px;
}
.hero-search-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 14px;
}
.hero-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.hero-search-form {
  display: flex;
  gap: 10px;
}

.search-results-section {
  padding: 70px 0 90px;
}
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.search-result-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  align-items: center;
}
.search-result-image {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-type {
  display: inline-block;
  background: #fff3e0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.search-result-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.search-result-body h3 a {
  color: var(--text-dark);
}
.search-result-body h3 a:hover {
  color: var(--orange);
}
.search-result-body p {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.no-results-box {
  padding: 60px 0;
}
.no-results-box .error-icon {
  position: static;
  transform: none;
  font-size: 50px;
  display: block;
  margin-bottom: 20px;
}
.no-results-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.no-results-box p {
  color: var(--text-gray);
  max-width: 450px;
  margin: 0 auto 36px;
}
.no-results-box .quick-link-card {
  background: var(--bg-section);
  border-color: var(--border-color);
  color: var(--text-gray);
}
.no-results-box .quick-link-card:hover {
  background: var(--orange);
  color: var(--white);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .error-code {
    font-size: 90px;
  }
  .error-icon {
    font-size: 40px;
  }
  .quick-links-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-result-card {
    flex-direction: column;
    align-items: stretch;
  }
  .search-result-image {
    width: 100%;
    height: 180px;
  }
  .error-search-form,
  .hero-search-form {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ HEADER SEARCH TOGGLE ============ */
.search-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}
.search-toggle-btn:hover {
  background: var(--orange);
}

.header-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 20px;
  display: none;
  z-index: 998;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.header-search-panel.open {
  display: block;
}
.header-search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  align-items: center;
}
.header-search-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 14px;
}
.header-search-form button[type="submit"] {
  background: var(--orange);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
.close-search-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ============ TOUCH DEVICE DROPDOWN SUPPORT ============ */
/* Force dropdown visible when .open class is added via JS (touch tap), regardless of screen width */
.main-nav .nav-menu li.has-dropdown.open > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
/* ============ TOUCH TARGET SIZE FIXES ============ */
.social-icon {
  width: 40px;
  height: 40px;
}
.search-toggle-btn {
  width: 44px;
  height: 44px;
}
.star-rating-input .star-select {
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ============ CROSS-BROWSER FORM RESET ============ */
input,
textarea,
select,
button {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 8px;
  font-family: inherit;
}

/* Custom select dropdown arrow (consistent across browsers) */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Fix iOS zoom-on-focus bug (inputs under 16px trigger auto-zoom on iPhone) */
input,
textarea,
select {
  font-size: 16px;
}
@media (min-width: 576px) {
  input,
  textarea,
  select {
    font-size: 14px;
  }
}

/* Remove tap highlight flash on mobile Chrome/Safari */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Fix file input button styling consistency */
input[type="file"] {
  padding: 10px 14px;
}
input[type="file"]::-webkit-file-upload-button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  margin-right: 12px;
  cursor: pointer;
  font-size: 13px;
}
/* ============ PRINT STYLES ============ */

@media print {
  .site-header,
  .site-footer,
  .hero-buttons,
  .btn,
  .filter-tabs,
  .mobile-menu-toggle,
  .search-toggle-btn,
  .cta-section,
  .review-form-wrapper,
  form {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }
  .hero-section,
  .cta-section,
  .testimonials-section,
  .quality-policy-section,
  .page-hero {
    background: #fff !important;
    color: #000 !important;
  }
  h1,
  h2,
  h3,
  h4,
  .page-hero-title,
  .hero-title {
    color: #000 !important;
  }
  a {
    text-decoration: underline;
    color: #000 !important;
  }
}
/* ============ HONEYPOT (hidden from real users, visible to bots) ============ */
.bss-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ============ ACCESSIBILITY: SKIP LINK & SCREEN-READER TEXT ============ */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link.screen-reader-text:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100000;
  background: var(--orange);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
/* ============ ACCESSIBILITY: FOCUS VISIBILITY ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible,
.service-card:focus-visible,
.project-card:focus-visible,
.gallery-grid-item:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dark background sections need a lighter outline for contrast */
.site-header a:focus-visible,
.site-header button:focus-visible,
.hero-section a:focus-visible,
.testimonials-section a:focus-visible,
.testimonials-section input:focus-visible,
.testimonials-section textarea:focus-visible,
.cta-section a:focus-visible,
.site-footer a:focus-visible,
.error-404-section a:focus-visible,
.error-404-section input:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* Remove default outline only when :focus-visible is supported and not active (keeps old-browser fallback safe) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Reset native button styles since .faq-question is now a <button> */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.lightbox-close {
  background: none;
  border: none;
  cursor: pointer;
}
.star-select {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
}
/* ============ CUSTOM LOGO SIZING (handles both uploaded logo AND text fallback) ============ */
.site-logo img.custom-logo {
  max-height: 50px;
  width: auto;
  display: block;
}
.site-logo .logo-icon {
  background: var(--orange);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 18px;
  flex-shrink: 0;
}
.site-logo .logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

/* On small mobile, shrink logo text font or hide tagline if needed */
@media (max-width: 400px) {
  .site-logo .logo-text {
    font-size: 13px;
  }
}

.footer-logo img.custom-logo {
  max-height: 44px;
  width: auto;
  filter: brightness(-50%) invert(1); /* makes logo white if it's a dark/colored PNG — remove this line if client's logo is already white/light */
}

/* ===== Our Valuable Clients / Partners Logo Marquee ===== */
.clients-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 44px;
  /* Smooth fade-in/fade-out at both edges so logos blend into the section */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

.clients-slider-track {
  display: flex;
  width: max-content;
  /* Equal gap between every logo — no fixed item width, flexible sizes */
  gap: 32px;
  /* Very slow, constant-speed seamless scroll — linear keeps the loop jump-free.
     !important overrides any external/customizer-injected animation (e.g. scroll-clients 25s). */
  animation: scrollLogos 180s linear infinite !important;
  will-change: transform;
}

.clients-slider-wrapper:hover .clients-slider-track {
  animation-play-state: paused;
}

.client-logo-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Flexible width — shrinks to fit logo + name, no fixed width */
  width: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-item img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(55%);
  opacity: 0.72;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  white-space: nowrap;
  letter-spacing: 0.2px;
  opacity: 0.85;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-item:hover {
  transform: translateY(-6px);
}

.client-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.client-logo-item:hover span {
  color: var(--orange);
  opacity: 1;
}

/* Name-only item (client without a logo) */
.client-logo-item:not(:has(img)) span {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  opacity: 0.8;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .clients-slider-track {
    gap: 20px;
  }
  .client-logo-item {
    width: auto;
  }
  .client-logo-item img {
    max-height: 40px;
  }
  .client-logo-item span {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-slider-track {
    animation: none;
  }
  .clients-slider-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.clients-view-all {
  margin-top: 34px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  font-size: 15px;
  transition: gap 0.25s ease, color 0.25s ease;
}

.btn-view-all:hover {
  gap: 10px;
  color: var(--orange-hover);
}

.all-clients-page {
  padding: 90px 0;
  background: var(--white);
}
.all-clients-page .text-center {
  margin-bottom: 60px;
}
.all-clients-page h1 {
  font-size: 36px;
  margin-bottom: 14px;
}
.all-clients-page p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* All Clients Page Grid */
.clients-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.client-card {
  text-align: center;
  padding: 25px;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: 0.3s;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.client-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
  border-color: var(--orange);
}

.client-card img {
  max-height: 70px;
  width: auto;
  margin-bottom: 15px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.client-card:hover img {
  transform: scale(1.05);
}

.client-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

@media (max-width: 768px) {
  .clients-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ HERO — layout overrides (legacy slider CSS removed, ARC-12) ============ */
@media(max-width:768px) {
  .hero-visual {margin-top:30px;}
}
@media(max-width:768px) {
  .hero-visual {margin-top:40px;}
}
.hero-section {
  padding: 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 993px) {
  .hero-section { min-height: auto; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: start;
  min-height: auto;
  padding: 0;
}
.hero-content { padding-top: 20px; }
.hero-visual {
  position: sticky;
  top: 0;
  align-self: start;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  z-index: 2;
}
/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 100px; min-height: 0; }
  .hero-visual { position: relative; top: auto; align-self: auto; padding-top: 0; order: 2; }
  .hero-content { order: 1; }
}
@media (max-width: 480px) {
  .hero-grid { padding: 50px 0 90px; }
}
.hero-section {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { padding-top: 0 !important; }
.hero-visual {
  position: static !important;
  top: auto !important;
  align-self: auto !important;
  padding-top: 0 !important;
  display: flex;
  justify-content: center;
  z-index: 2;
}
/* Responsive — stack on mobile */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 0; }
  .hero-visual { position: static; top: auto; align-self: auto; padding-top: 0; order: 2; }
  .hero-content { order: 1; }
}
