/* =========================================
   CAPITAL BUILD CONSTRUCTION - ENTERPRISE CSS
   Light, Clean, Premium Construction Theme
========================================= */

:root {
  --primary: #1f4e79;
  --primary-light: #2a6db0;
  --primary-dark: #163a5c;
  --text-dark: #111827;
  --text-body: #374151;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg-light: #ffffff;
  --bg-alt: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -6px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
    --primary-bg: rgba(31, 78, 121, 0.1);
  --white: #ffffff;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  line-height: 1.65;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p {
  color: var(--text-body);
  font-size: 1.0625rem;
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

address {
  font-style: normal;
  color: var(--text-light);
}

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
  position: relative;
}

/* =========================================
   BUTTONS - PREMIUM INTERACTIONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: 0 10px 25px -5px rgba(31, 78, 121, 0.35);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn.large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}



/* =========================================
   HEADER & NAVIGATION - FIXED & POLISHED
========================================= */

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* Offset for top bar */
body:not(.scrolled) #main-header {
  top: 36px;
}

.header-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  top: 0 !important;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative; /* Critical for mobile toggle positioning */
}

.logo {
  height: 48px;
  width: auto;
}

/* Desktop Nav */
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(31, 78, 121, 0.2);
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* =========================================
   UNIQUE HAMBURGER - "ARCHITECTURAL" STYLE
   Staggered lines like building levels
========================================= */
.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 10001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}
/* The three lines - staggered lengths like a building silhouette */
.hamburger-line {
  display: block;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}


/* Base line styles */
.mobile-toggle .line {
  display: block;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger-line.line-1 {
  width: 28px;
}
.hamburger-line.line-2 {
  width: 20px;
  background-color: var(--primary-light);
}

.hamburger-line.line-3 {
  width: 28p
}

/* Middle line styling */
.mobile-toggle .line.line-2 {
  width: 20px;
  background-color: var(--primary-light);
}

/* Hover effect - align lines */
.mobile-toggle:hover .line.line-2 {
  width: 28px;
  background-color: var(--primary);
}

/* =========================================
   OPEN STATE (The X Transformation)
   This triggers ONLY when aria-expanded="true"
========================================= */
.mobile-toggle[aria-expanded="true"] {
  /* Optional: Change background of button if desired */
  background-color: transparent; 
}

/* Open State (The X) */
.mobile-toggle[aria-expanded="true"] .line-1 {
  transform: translateY(8px) rotate(45deg);
  background-color: #fff;
  width: 28px;
}
.mobile-toggle[aria-expanded="true"] .line-2 {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle[aria-expanded="true"] .line-3 {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #fff;
  width: 28px;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.line-top {
  width: 28px;
  align-self: flex-end;
}

.line-mid {
  width: 20px; /* Shorter middle - unique architectural look */
  align-self: flex-end;
  background-color: var(--primary-light); /* Accent color */
}
/* Staggered lengths - architectural style */
.mobile-toggle span:nth-child(1) {
  width: 28px;
  align-self: flex-end;
}

.mobile-toggle span:nth-child(2) {
  width: 20px;
  align-self: flex-end;
  background-color: var(--primary-light);
}

.mobile-toggle span:nth-child(3) {
  width: 28px;
  align-self: flex-end;
}

.line-btm {
  width: 28px;
  align-self: flex-end;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Animation to X when open */
.mobile-toggle[aria-expanded="true"] .line-top {
  transform: translateY(8px) rotate(45deg);
  width: 28px; /* Full width when X */
  background-color: #fff;
}

.mobile-toggle[aria-expanded="true"] .line-mid {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle[aria-expanded="true"] .line-btm {
  transform: translateY(-8px) rotate(-45deg);
  width: 28px;
  background-color: #fff;
}

/* Hover effect - lines align to same length */
.mobile-toggle:hover .line-2 {
  width: 28px;
  background-color: var(--primary);
}


/* Hover effect - align all lines */
.mobile-toggle:hover .hamburger-line.line-2 {
  width: 28px;
  background-color: var(--primary);
}

/* Open State (X transformation) - FIXED */
.mobile-toggle[aria-expanded="true"] .hamburger-line.line-1 {
  transform: translateY(8px) rotate(45deg);
  background-color: #fff;
  width: 28px;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line.line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line.line-3 {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #fff;
  width: 28px;
}

/* Show hamburger on mobile */
@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
  }
}


/* Hover - align to same length */
.mobile-toggle:hover span:nth-child(2) {
  width: 28px;
  background-color: var(--primary);
}

/* Animation to X when open */
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #fff;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #fff;
}

/* =========================================
   MOBILE OVERLAY - FULL SCREEN
========================================= */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 2rem;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Fix for hidden attribute */
.mobile-overlay[hidden] {
  display: none !important;
}

.mobile-overlay:not([hidden]) {
  display: flex !important;
}

.mobile-overlay-inner {
  text-align: center;
  width: 100%;
  max-width: 400px;
}
/* =========================================
   MOBILE MENU - BULLETPROOF VISIBILITY FIX
========================================= */

/* Catch ALL links inside the overlay nav, with or without classes */
.mobile-overlay-nav a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important; /* Force white text */
  text-decoration: none;
  padding: 0.75rem;
}

/* Force links visible when menu is open - overrides opacity:0 animation */
.mobile-overlay.open .mobile-overlay-nav a {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.mobile-overlay-nav a:hover {
  color: #fff !important;
}

/* CTA style stays distinct */
.mobile-overlay-nav a.cta,
.mobile-overlay-nav a.nav-cta {
  background: #fff;
  color: var(--primary-dark) !important;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 1rem;
  display: inline-block;
}

/* Ensure contact section is visible too */
.mobile-overlay.open .mobile-overlay-contact {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.mobile-overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: block;
  padding: 0.75rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

/* Staggered entrance animation */
.mobile-overlay.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay.open li:nth-child(1) .mobile-nav-link { transition-delay: 0.1s; }
.mobile-overlay.open li:nth-child(2) .mobile-nav-link { transition-delay: 0.18s; }
.mobile-overlay.open li:nth-child(3) .mobile-nav-link { transition-delay: 0.26s; }
.mobile-overlay.open li:nth-child(4) .mobile-nav-link { transition-delay: 0.34s; }
.mobile-overlay.open li:nth-child(5) .mobile-nav-link { transition-delay: 0.42s; }

.mobile-nav-link:hover {
  color: #fff;
  transform: translateX(8px);
}

.mobile-nav-link.cta {
  background: #fff;
  color: var(--primary-dark) !important;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 1rem;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mobile-nav-link.cta:hover {
  transform: scale(1.05);
  color: var(--primary) !important;
}

.mobile-overlay-contact {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.5s;
}

.mobile-overlay.open .mobile-overlay-contact {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay-contact a,
.mobile-overlay-contact p {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-overlay-contact a:hover {
  color: #fff;
}

/* =========================================
   TOP UTILITY BAR (Mears-style dark strip)
========================================= */
#top-bar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  gap: 1rem;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
  font-weight: 500;
}

.top-bar-link:hover {
  color: white;
}

.top-bar-link svg {
  opacity: 0.7;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.top-bar-text {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* Hide top bar on scroll */
.top-bar-hidden {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .header-container {
    height: 70px;
  }
  
  .logo {
    height: 40px;
  }
}


@media (max-width: 768px) {
  #top-bar {
    display: none;
  }
  
  body:not(.scrolled) #main-header {
    top: 0;
  }
  
  .mobile-nav-link {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 64px;
  }
  
  .logo {
    height: 36px;
  }
  
  .mobile-nav-link {
    font-size: 1.5rem;
    padding: 0.6rem;
  }
  
  .hamburger-line {
    height: 2px;
  }
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  padding: 10rem 0 8rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#f3f4f6 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}

.hero-content {
  display: flex;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 750px;
}

.hero h1 {
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero */
.page-hero {
  padding: 7rem 0 4rem;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 640px;
  color: var(--text-light);
}

/* =========================================
   SECTIONS
========================================= */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* =========================================
   CARDS - PREMIUM STYLE
========================================= */
.card {
  background: white;
  padding: 2.25rem;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin-bottom: 0.75rem;
}

/* =========================================
   PORTFOLIO
========================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.portfolio-grid.full {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: block;
  color: inherit;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 1.25rem;
}

.portfolio-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.portfolio-info .location {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.portfolio-info .desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.portfolio-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0));
  color: var(--white);
  padding: 2rem 1.25rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.portfolio-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* =========================================
   SERVICE DETAIL
========================================= */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-split.reverse {
  direction: rtl;
}

.service-split.reverse .service-text {
  direction: ltr;
}

.service-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.service-list {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
}

.service-list li {
  list-style: disc;
  margin-bottom: 0.6rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* =========================================
   ABOUT
========================================= */
.about-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-stats {
  display: grid;
  gap: 1.5rem;
  position: sticky;
  top: 120px;
}

.stat {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* =========================================
   CONTACT
========================================= */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
}

.contact-list.large li {
  margin-bottom: 1.5rem;
}

.contact-list.large strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
  font-weight: 600;
}

.contact-list.large a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.05rem;
}

.contact-list.large a:hover {
  color: var(--primary-light);
}

.map-wrapper {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-form-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
  background-color: white;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* =========================================
   CTA BANNER
========================================= */
.cta-banner {
  background-color: var(--bg-alt);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  margin-bottom: 0.25rem;
}

.cta-inner p {
  color: var(--text-light);
}

/* =========================================
   USP GRID
========================================= */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.usp-card {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.usp-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.usp-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}
/* =========================================
   ENTERPRISE UK FOOTER (UNIFIED COLORS)
========================================= */

.enterprise-footer {
  /* Unified deep blue gradient matching the CTA */
  background: linear-gradient(180deg, #1f4e79 0%, #0b1d30 100%);
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

/* Subtle architectural grid overlay */
.enterprise-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Footer CTA */
.footer-cta {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.04); /* Slight glass effect over the gradient */
}

.footer-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 0;
}

.footer-eyebrow {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-cta h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.footer-cta p {
  color: rgba(255,255,255,0.8);
  max-width: 620px;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.footer-call-link {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 0.2rem;
  transition: all 0.2s ease;
}

.footer-call-link:hover {
  color: #dbeafe;
  border-color: #dbeafe;
}

/* Main Footer Grid (Rebalanced to 4 columns) */
.footer-main {
  position: relative;
  padding: 4.5rem 0 3rem;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 58px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-brand-text {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-trust-list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.footer-trust-list span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Spring effect */
}

.footer-socials a:hover {
  color: #fff;
  background: var(--primary-light, #2a6db0);
  border-color: var(--primary-light, #2a6db0);
  transform: translateY(-4px) scale(1.1);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Columns */
.enterprise-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: grid;
  gap: 0.8rem;
}

.footer-col li, .footer-col a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

/* Contact Column */
.footer-contact-item {
  margin-bottom: 1.25rem;
}

.footer-contact-item span {
  display: block;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.footer-contact-item a, .footer-contact-item address {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: normal;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  background: #25D366;
  color: #062e16 !important;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-whatsapp:hover {
  transform: translateY(-2px);
  background: #31e675;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
/* =========================================
   FOOTER LEGAL - FIXED MOBILE ALIGNMENT
========================================= */

.footer-legal {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 0;
  background: rgba(0,0,0,0.15);
}

.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-legal-left p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

.footer-disclaimer {
  margin-top: 0.5rem !important;
  max-width: 760px;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.footer-legal-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  white-space: nowrap;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* ===== FOOTER MOBILE FIX ===== */
@media (max-width: 768px) {
  /* Main grid stacks properly */
  .footer-main-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  
  .footer-brand-col {
    grid-column: auto !important;
  }
  
  .footer-contact-col {
    grid-column: auto !important;
  }
  
  /* CTA stacks */
  .footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 0;
  }
  
  .footer-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-call-link {
    text-align: center;
    display: block;
  }
  
  /* LEGAL SECTION - THE MAIN FIX */
  .footer-legal-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  
  .footer-legal-left {
    text-align: center;
  }
  
  .footer-legal-left p {
    max-width: 100%;
  }
  
  .footer-disclaimer {
    max-width: 100%;
  }
  
  .footer-legal-links {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /* WhatsApp button full width */
  .footer-whatsapp {
    width: 100%;
    justify-content: center;
  }
  
  /* Social icons centered */
  .footer-socials {
    justify-content: center;
  }
  
  /* Trust list centered */
  .footer-trust-list {
    text-align: center;
  }
  
  /* Logo centered */
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-brand-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .footer-legal-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .footer-contact-item {
    text-align: center;
  }
  
  .footer-contact-item span {
    text-align: center;
  }
  
  .footer-contact-item a,
  .footer-contact-item address {
    text-align: center;
  }
}
/* =========================================
   BACK TO TOP BUTTON (FIXED)
========================================= */

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary, #1f4e79);
  color: white;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  
  /* CRITICAL: High z-index to sit above everything */
  z-index: 99999; 
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevents invisible button from blocking mouse clicks */
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Visible state */
.back-to-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important; /* Allow clicks when visible */
  transform: translateY(0) scale(1) !important;
}

/* Pulsing radar ring */
.back-to-top-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-light, #2a6db0);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Hover Effects */
.back-to-top-btn:hover {
  background: var(--primary-light, #2a6db0);
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(31, 78, 121, 0.5);
}

.back-to-top-btn:hover::before {
  inset: -10px;
  opacity: 0.6;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.back-to-top-btn svg {
  transition: transform 0.3s ease;
  pointer-events: none; /* Let clicks pass through to the button */
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 480px) {
  .back-to-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
  }
}

/* =========================================
   ANIMATIONS
========================================= */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Only hide when JS has activated (adds .js-loaded to body) */
.js-loaded .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  html { scroll-padding-top: 70px; }
  .hero { padding-top: 8rem; }
  .service-split,
  .about-split,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  .service-split.reverse {
    direction: ltr;
  }
  .about-stats {
    position: static;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  .hero {
    padding: 6rem 0 4rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    gap: 2rem;
  }
  .portfolio-grid.teaser {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   HERO BANNER WITH BLURRED BACKGROUND
========================================= */
.hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c0c0e;
}

.hero-banner-bg {
  position: absolute;
  inset: -20px; /* Extend beyond edges for blur effect */
  background: 
    linear-gradient(135deg, rgba(31, 78, 121, 0.85) 0%, rgba(42, 109, 176, 0.75) 50%, rgba(17, 24, 39, 0.95) 100%),
    url('images/hero-bg.png') center/cover no-repeat;
  background-attachment: fixed;
  filter: blur(1px); /* ✨ SUBTLE BLUR HERE */
  transform: scale(1.1); /* Counteract blur shrinkage */
  animation: heroZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}

@media (min-width: 992px) {
  .hero-banner-bg {
    background-attachment: fixed;
  }
}

@keyframes heroZoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.2); }
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.4) 0%,
    rgba(17, 24, 39, 0.6) 100%
  );
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 0;
  max-width: 760px;
}

.eyebrow.light {
  color: #a7c7e7;
}

.hero-banner h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-banner .hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* White outline button variant (for dark hero) */
.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-white-outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* Scroll-down cue at bottom of hero */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 80vh;
    background-attachment: scroll; /* Fixed attachment is janky on mobile */
  }

  .hero-banner .hero-buttons {
    flex-direction: column;
  }

  .hero-banner .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span {
    animation: none;
  }
}

/* =========================================
   ABOUT PAGE - ENTERPRISE SECTIONS
========================================= */

/* Eyebrow Text (Small uppercase labels) */
.section-eyebrow, .hero-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* 1. Our Story Grid */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-story-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-story-text h2 {
  margin-bottom: 1.5rem;
}

.about-story-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* 2. Mission, Vision, Promise (MVP) Grid */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mvp-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.mvp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.mvp-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* 3. Process Grid (5 Steps) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 4. Expanded Stats Grid */
.stats-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block {
  padding: 2rem;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
}

/* 5. Accreditations Grid */
.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.accreditation-badge {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.accreditation-badge:hover {
  border-color: var(--primary);
  background: #f0f7ff; /* Very light blue tint on hover */
}

.accreditation-badge h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.accreditation-badge p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   ABOUT PAGE - RESPONSIVE TWEAKS
========================================= */

@media (max-width: 992px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-story-image img {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .mvp-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid-full {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CONTACT PAGE - ENTERPRISE ENHANCEMENTS
========================================= */

/* Contact Hero */
.contact-hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 78, 121, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
}
.contact-hero .container {
  position: relative;
  z-index: 1;
}
.contact-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
}
.contact-hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Contact Methods Grid */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.contact-method {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-method h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.contact-method a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}
.contact-method a:hover {
  color: var(--primary);
}

/* Map Wrapper */
.map-wrapper {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.map-wrapper:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.trust-badge {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary);
}
.trust-badge h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}
.trust-badge p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form Enhancements */
.contact-form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.contact-form-card h2 {
  margin-bottom: 0.5rem;
}
.contact-form-card > p {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Form Status */
.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}
.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group .required {
  color: #ef4444;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Errors */
.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  height: 1rem;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Form Note */
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Submit Button */
#submit-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
#submit-spinner {
  width: 20px;
  height: 20px;
  color: var(--white);
}

/* FAQ Grid */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question svg {
  transition: transform 0.2s ease;
  color: var(--primary);
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 0 1.25rem 0;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}

/* =========================================
   CONTACT PAGE - RESPONSIVE BREAKPOINTS
========================================= */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .contact-hero {
    padding: 8rem 0 4rem;
  }
  .contact-hero h1 {
    font-size: 2.25rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-badges {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form-card {
    padding: 2rem;
  }

  .faq-grid {
    max-width: 100%;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .method-icon {
    width: 40px;
    height: 40px;
  }

  .trust-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .badge-icon {
    width: 36px;
    height: 36px;
  }
}
/* =========================================
   PORTFOLIO PRO GALLERY ENHANCEMENTS
========================================= */

/* Portfolio Hero with Stats */
.portfolio-hero {
  padding: 60px 0 4rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 78, 121, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 78, 121, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.portfolio-hero .container {
  position: relative;
  z-index: 1;
}

.portfolio-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.portfolio-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portfolio-stat .stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.portfolio-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Filter Pills with Count */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-count {
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-btn:hover .filter-count {
  background: var(--primary-bg);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-btn.active .filter-count {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* Portfolio Grid - Pro Gallery */
.portfolio-grid.full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Portfolio Card - Image Focused */
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

/* Image Container - Takes Priority */
.portfolio-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
}

/* Overlay - Smooth Reveal */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, 0.95) 0%,
    rgba(17, 24, 39, 0.7) 40%,
    rgba(17, 24, 39, 0.3) 70%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.portfolio-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.portfolio-location {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.portfolio-card:hover .portfolio-view {
  gap: 0.75rem;
}

/* Badge - Top Right */
.portfolio-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(31, 78, 121, 0.9);
  color: var(--white);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  z-index: 2;
}

/* Info Section */
.portfolio-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.portfolio-info .location {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-info .desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-grid.full {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .portfolio-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 100px 0 3rem;
  }
  
  .portfolio-stats {
    gap: 1.5rem;
  }
  
  .portfolio-stat .stat-value {
    font-size: 2rem;
  }
  
  .portfolio-grid.full {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .portfolio-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* =========================================
   SERVICES PAGE - ENTERPRISE ENHANCEMENTS
========================================= */

/* Services Hero (matches other page heroes) */
.services-hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 78, 121, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
}
.services-hero .container {
  position: relative;
  z-index: 1;
}
.services-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
}
.services-hero p {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Service Anchor Nav Cards */
.service-nav-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.service-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-nav-card {
  position: relative;
  display: block;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.service-nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-nav-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.service-nav-card:hover::before {
  transform: scaleX(1);
}
.service-nav-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}
.service-nav-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.service-nav-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.service-nav-arrow {
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s ease;
  display: inline-block;
}
.service-nav-card:hover .service-nav-arrow {
  transform: translateY(4px);
}

/* Service Detail Sections */
.service-detail {
  scroll-margin-top: 100px; /* Fixes anchor position under fixed header */
}

.service-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-split.reverse {
  direction: rtl;
}
.service-split.reverse > * {
  direction: ltr;
}

.service-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.service-image:hover img {
  transform: scale(1.04);
}

.service-text h2 {
  margin-bottom: 1rem;
}
.service-text > p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.service-list {
  margin-bottom: 2rem;
  padding-left: 0;
  list-style: none;
}
.service-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
  line-height: 1.6;
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Service Meta Row (Duration / Budget / Guarantee) */
.service-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.service-meta-item {
  text-align: center;
}
.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.meta-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

/* Service Actions */
.service-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.service-actions .link {
  margin-top: 0;
}

/* Included Strip */
.included-strip {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.section-alt .included-strip {
  background: var(--white);
}
.included-strip h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 2rem;
}
.included-grid span {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Why Choose Us Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--primary-bg);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 auto;
}

/* =========================================
   SERVICES PAGE - RESPONSIVE BREAKPOINTS
========================================= */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .service-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-split.reverse {
    direction: ltr;
  }
  /* Image always ABOVE text on mobile/tablet for visual impact */
  .service-image {
    order: -1;
    max-width: 640px;
  }

  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .services-hero {
    padding: 8rem 0 4rem;
  }
  .services-hero h1 {
    font-size: 2.25rem;
  }

  .service-nav-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-meta-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .service-meta-item {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .meta-label {
    margin-bottom: 0;
  }

  .service-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .service-actions .btn {
    width: 100%;
    max-width: none;
  }
  .service-actions .link {
    text-align: center;
  }

  .included-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .service-nav-card {
    padding: 1.5rem;
  }
  .included-strip {
    padding: 1.5rem;
  }
  .why-card {
    padding: 1.5rem;
  }
}

/* =========================================
   HOME PAGE - PREMIUM ADJUSTMENTS
========================================= */

/* Hero Banner with Parallax */
.hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c0c0e;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(31, 78, 121, 0.85) 0%, rgba(42, 109, 176, 0.75) 50%, rgba(17, 24, 39, 0.95) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
  background-attachment: fixed; /* Parallax effect */
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.3) 0%,
    rgba(17, 24, 39, 0.5) 100%
  );
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 0;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.9);
}

.hero-banner-content h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-banner-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-cue span {
  display: block;
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

.scroll-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Animated Stats Bar */
.stats-bar {
  background: var(--primary);
  padding: 3rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
}

/* USP Cards with Icons */
.usp-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.usp-card {
  text-align: center;
}

.usp-card h3 {
  margin-bottom: 0.75rem;
}

/* Service Teaser Cards */
.service-teaser-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.service-teaser-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-teaser-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s ease;
}

.service-teaser-link:hover {
  gap: 0.75rem;
}

.link-arrow {
  transition: transform 0.3s ease;
}

.service-teaser-link:hover .link-arrow {
  transform: translateX(4px);
}

/* Portfolio Cards with Enhanced Hover */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: block;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, 0.95) 0%,
    rgba(17, 24, 39, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-card:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.portfolio-link {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Process Preview */
.process-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.process-preview-step {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-width: 140px;
  transition: all 0.3s ease;
}

.process-preview-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.process-preview-step h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.process-preview-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.process-arrow {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 300;
}

/* CTA Enhancements */
.cta-inner {
  align-items: flex-start;
}

.cta-content {
  max-width: 600px;
}

.cta-trust {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cta-trust span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-banner-bg {
    background-attachment: scroll; /* Disable parallax on mobile for performance */
  }
  
  .scroll-cue {
    display: none; /* Hide on mobile */
  }
  
  .process-preview {
    flex-direction: column;
  }
  
  .process-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .hero-banner-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-banner-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn.large {
    width: 100%;
    max-width: 280px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .cta-inner {
    flex-direction: column;
  }
  
  .cta-trust {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .service-teaser-card {
    padding: 2rem 1.5rem;
  }
}

/* =========================================
   SERVICES TEASER - PERFECT CENTERING
========================================= */
#services-teaser {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  justify-items: center;
}

.service-teaser-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  max-width: 280px;
  width: 100%;
}

.service-teaser-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-teaser-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-teaser-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-teaser-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.service-teaser-link:hover {
  gap: 0.75rem;
}

.link-arrow {
  transition: transform var(--transition-fast);
}

.service-teaser-link:hover .link-arrow {
  transform: translateX(4px);
}

/* Center the CTA button */
.section-cta {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .service-teaser-card {
    max-width: 100%;
  }
  
  .hero-banner-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn.large {
    width: 100%;
    max-width: 300px;
  }
}

/* =========================================
   ABOUT PAGE - MEARS GROUP INSPIRED
========================================= */

/* About Hero Banner */
.about-hero-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: -20px;
  background: url('images/about-hero.jpg') center/cover no-repeat;
  filter: blur(4px);
  transform: scale(1.1);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.8) 0%,
    rgba(31, 78, 121, 0.7) 100%
  );
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 8rem 0 5rem;
}

.about-hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Statement Block (Mears-style accent bar) */
.statement-block {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 900px;
}

.statement-accent {
  width: 6px;
  min-height: 100%;
  background: var(--primary);
  border-radius: 3px;
  flex-shrink: 0;
  align-self: stretch;
}

.statement-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.statement-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Content Split (Image + Text) */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-split-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.content-split-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.content-split-image:hover img {
  transform: scale(1.03);
}

.content-split-text {
  max-width: 540px;
}

.content-split-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.content-split-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Check List */
.check-list {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Full-Width Image Break */
.full-width-image {
  width: 100%;
  overflow: hidden;
  max-height: 450px;
}

.full-width-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* About Stats Bar */
.about-stats-bar {
  background: var(--primary);
  padding: 4rem 0;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.about-stat {
  color: white;
}

.about-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  display: inline;
}

.about-stat-suffix {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.about-stat-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

/* MVP Cards with Accent */
.mvp-card {
  position: relative;
  padding: 2.5rem;
  padding-top: 3rem;
}

.mvp-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Timeline (Mears-style vertical) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-alt);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.timeline-content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Value Cards */
.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.value-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 280px;
}

/* Delay-5 for timeline */
.delay-5 { transition-delay: 0.5s; }

/* =========================================
   ABOUT PAGE - RESPONSIVE
========================================= */
@media (max-width: 992px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .content-split.reverse {
    direction: ltr;
  }
  
  .content-split-image {
    max-height: 400px;
  }
  
  .content-split-image img {
    aspect-ratio: 16/9;
    max-height: 400px;
  }
  
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .mvp-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: 2rem;
  }
  
  .timeline-marker {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
    left: -2rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .statement-block {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .statement-accent {
    width: 60px;
    min-height: 4px;
    height: 4px;
  }
  
  .about-hero-content {
    padding: 7rem 0 4rem;
  }
}

@media (max-width: 768px) {
  .about-hero-banner {
    min-height: 60vh;
  }
  
  .about-hero-content h1 {
    font-size: 2.25rem;
  }
  
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-stat-number {
    font-size: 2.5rem;
  }
  
  .full-width-image,
  .full-width-image img {
    height: 300px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-marker {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    left: -1.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-hero-content {
    padding: 6rem 0 3rem;
  }
  
  .about-hero-content h1 {
    font-size: 1.75rem;
  }
  
  .value-card {
    padding: 1.75rem;
  }
  
  .mvp-card {
    padding: 1.75rem;
    padding-top: 2.5rem;
  }
}


/* =========================================
   TESTIMONIALS
========================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* Gold accent line at top */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Stars */
.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

/* Quote */
.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-card blockquote p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* Large opening quote mark */
.testimonial-card blockquote p::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  line-height: 1;
}

/* Author */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-info strong {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info span {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
}





/* =========================================
   ABOUT PAGE POLISH
========================================= */

.about-credibility-strip {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
}

.about-credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.about-credibility-item {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 1.5rem;
}

.credibility-number {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.75rem;
}

.about-credibility-item h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-credibility-item p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.testimonial-stars {
  color: #d4af37;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial-card p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testimonial-author strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Better hero spacing on About */
.about-hero-banner {
  min-height: 72vh;
}

.about-hero-content {
  max-width: 760px;
}

/* CTA polish */
.cta-content p {
  max-width: 620px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-credibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-credibility-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-credibility-item {
    padding-left: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

/* =========================================
   GENERAL IMPROVEMENTS
========================================= */
/* Smooth transitions for all interactive elements */
* {
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Better focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =========================================
   HEADER & NAVIGATION IMPROVEMENTS
========================================= */
/* Ensure header has proper z-index stacking */
#main-header {
  z-index: 1000;
}

/* Mobile overlay should be above everything */
.mobile-overlay {
  z-index: 10000;
}

/* =========================================
   BUTTON IMPROVEMENTS
========================================= */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* =========================================
   CARD HOVER EFFECTS
========================================= */
.card, .portfolio-card, .usp-card {
  position: relative;
  overflow: hidden;
}

.card::before, .portfolio-card::before, .usp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(31, 78, 121, 0.05) 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.card:hover::before, .portfolio-card:hover::before, .usp-card:hover::before {
  transform: translateX(100%);
}

/* =========================================
   FOOTER IMPROVEMENTS
========================================= */
.enterprise-footer {
  position: relative;
}

.enterprise-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* =========================================
   RESPONSIVE IMPROVEMENTS
========================================= */
@media (max-width: 768px) {
  /* Better mobile spacing */
  .section {
    padding: 3rem 0;
  }

  /* Mobile menu improvements */
  .mobile-overlay {
    padding: 1rem;
  }

  .mobile-overlay-inner {
    max-width: 100%;
    padding: 2rem 1rem;
  }

  .mobile-nav-link {
    font-size: 1.5rem;
    padding: 0.5rem;
  }
}
/* =========================================
   FAQ PAGE
========================================= */

.faq-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.faq-category {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-answer a {
  color: var(--primary);
  font-weight: 600;
}

.faq-answer a:hover {
  color: var(--primary-light);
}

@media (max-width: 992px) {
  .faq-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
  /* =========================================
   LEGAL PAGES
========================================= */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-meta {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-meta p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-list li {
  list-style: disc;
  margin-bottom: 0.6rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.98rem;
}

.legal-content a {
  color: var(--primary);
  font-weight: 600;
}

.legal-content a:hover {
  color: var(--primary-light);
}

/* =========================================
   ENTERPRISE PAGE LOADER
   Architectural Blueprint Animation
========================================= */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}

/* Subtle grid pattern background */
.page-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 78, 121, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 78, 121, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Loader Content Container */
.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* =========================================
   ARCHITECTURAL ANIMATION
   Blueprint-style lines drawing a structure
========================================= */

.loader-architectural {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertical and horizontal lines */
.arch-line {
  position: absolute;
  background: var(--primary, #1f4e79);
  opacity: 0;
  animation: drawLine 2s ease-in-out infinite;
}

.line-1 { width: 28px; }
.line-2 { width: 20px; align-self: flex-end; background-color: var(--primary-light); }
.line-3 { width: 28px; }

@keyframes drawLine {
  0%, 100% {
    opacity: 0;
    height: 0;
    width: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 1;
    height: 60%;
    width: 60%;
  }
  75% {
    opacity: 1;
  }
}

/* Corner accents */
.arch-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-light, #2a6db0);
  opacity: 0;
  animation: cornerPulse 2s ease-in-out infinite;
}

.corner-tl {
  top: 10%;
  left: 10%;
  border-right: none;
  border-bottom: none;
  animation-delay: 0s;
}

.corner-br {
  bottom: 10%;
  right: 10%;
  border-left: none;
  border-top: none;
  animation-delay: 1s;
}

@keyframes cornerPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================
   LOGO
========================================= */

.loader-logo {
  opacity: 0;
  animation: logoFadeIn 0.8s ease-out 0.5s forwards;
}

.loader-logo img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1); /* Makes logo white */
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* =========================================
   LOADING TEXT
========================================= */

.loader-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: textFadeIn 0.8s ease-out 0.8s forwards;
}

.loader-text-main {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.loader-text-dots {
  display: flex;
  gap: 0.2rem;
}

.dot {
  color: var(--primary-light, #2a6db0);
  font-size: 1.5rem;
  font-weight: 700;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes textFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* =========================================
   PROGRESS BAR
========================================= */

.loader-progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: progressFadeIn 0.8s ease-out 1s forwards;
}

.loader-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary, #1f4e79), var(--primary-light, #2a6db0));
  border-radius: 2px;
  animation: progressFill 2.5s ease-out 1.2s forwards;
}

@keyframes progressFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes progressFill {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* =========================================
   LOADER HIDDEN STATE
========================================= */

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader.loaded .loader-content {
  transform: scale(0.95);
  transition: transform 0.6s ease;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
  .loader-architectural {
    width: 150px;
    height: 150px;
  }

  .loader-logo img {
    height: 60px;
  }

  .loader-text-main {
    font-size: 0.9rem;
  }

  .loader-progress {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .loader-architectural {
    width: 120px;
    height: 120px;
  }

  .loader-logo img {
    height: 50px;
  }

  .loader-text-main {
    font-size: 0.85rem;
  }

  .loader-progress {
    width: 120px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .page-loader::before,
  .arch-line,
  .arch-corner,
  .loader-logo img,
  .dot,
  .loader-progress-bar {
    animation: none;
  }

  .loader-logo,
  .loader-text,
  .loader-progress {
    opacity: 1;
  }

  .loader-progress-bar {
    width: 100%;
  }
}

/* Fallback: Show content if JS fails */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* =========================================
   LEGAL PAGES - ENTERPRISE GRADE
========================================= */

/* Legal Hero */
.legal-hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ffffff 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 78, 121, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 78, 121, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Breadcrumb polish */
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.legal-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-breadcrumb a:hover {
  color: var(--primary-light);
   text-decoration: underline;
}

.legal-breadcrumb span:not(:has(a)) {
  color: var(--text-light);
}

/* Legal Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Sidebar */
.legal-sidebar {
  position: sticky;
  top: 120px;
}

.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.legal-toc h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  margin-bottom: 0.6rem;
}

.legal-toc a {
  color: var(--text-body);
  font-size: 0.9rem;
  display: block;
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.2s;
}

.legal-toc a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 1rem;
}

/* Download Box */
.legal-download-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.75rem;
  border-radius: var(--radius);
  text-align: center;
}

.legal-download-box h4 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.legal-download-box p {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.legal-download-box .btn {
  background: white;
  color: var(--primary);
  border-color: white;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.legal-download-box .btn:hover {
  background: transparent;
  color: white;
}

/* Legal Content */
.legal-content {
  max-width: 100%;
}

/* Meta Box */
.legal-meta-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin-bottom: 2.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.meta-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Callout */
.legal-callout {
  display: flex;
  gap: 1.25rem;
  background: linear-gradient(135deg, #ebf4fb 0%, #f0f8ff 100%);
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.callout-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.callout-content strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.callout-content p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

/* Legal Sections */
.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 120px;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.section-num {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.6;
  min-width: 40px;
}

.legal-section h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.legal-section p {
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-list li {
  list-style: disc;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.legal-list li strong {
  color: var(--text-dark);
}

.legal-section a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.legal-section a:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* Purpose Grid */
.legal-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.purpose-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.purpose-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.purpose-card h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.purpose-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-light);
}

/* Rights Grid */
.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.right-item {
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.right-item:hover {
  border-left-color: var(--primary-light);
  background: var(--bg-alt);
}

.right-item h4 {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-family: 'Inter', sans-serif;
}

.right-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-light);
}

/* Contact Card */
.legal-contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1rem;
}

.legal-contact-card h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.legal-contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-contact-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.legal-contact-card li:last-child {
  border-bottom: none;
}

/* Related Documents */
.legal-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.legal-related h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.legal-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.related-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.related-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.related-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.related-card:hover .related-arrow {
  transform: translateX(5px);
}

/* Fallback for no-js */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* =========================================
   LEGAL RESPONSIVE
========================================= */
@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-toc {
    display: none; /* Hide TOC on mobile - use browser back/forward */
  }

  .legal-purpose-grid,
  .legal-rights-grid,
  .legal-related-grid {
    grid-template-columns: 1fr;
  }

  .legal-meta-box {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 3rem 0 2rem;
  }

  .legal-section h2 {
    font-size: 1.3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .section-num {
    font-size: 1rem;
  }

  .legal-callout {
    flex-direction: column;
    text-align: center;
  }

  .callout-icon {
    margin: 0 auto;
  }
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 100000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Hide secondary email on medium screens to prevent top-bar overflow */
@media (max-width: 1100px) {
  .tb-hide-md { display: none; }
}

/* Long emails wrap cleanly in footer */
.footer-contact-item a { overflow-wrap: anywhere; }


/* Spam honeypot: hidden visually but available to basic spam bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}