/* Base Styles - Core Variables and Reset */
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --brand: #2f4a59;
  --brand-600: #27414f;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 14px;
  --container: 1200px;
  
  /* Typography Scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --text-5xl: 36px;
  --text-6xl: 48px;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}

* { 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  padding: 0; 
  background: var(--bg); 
  color: var(--text); 
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  /* Reduce font-swap induced CLS on browsers that support it */
  font-size-adjust: 0.5;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Contact layout hardening - force equal column heights across locales */
.contact-layout { align-items: stretch; }
.contact-layout > * { display: flex; flex-direction: column; min-height: 100%; }
.contact-form-section, .contact-info-section { height: 100%; }
.enhanced-contact-form { flex: 1 1 auto; display: flex; flex-direction: column; }
.form-header { flex-shrink: 0; }
.form-group:has(textarea) { flex: 1 1 auto; display: flex; }
.form-group textarea { flex: 1 1 auto; }

/* Stabilize header and hero to avoid CLS */
header, .header-inner { min-height: 72px; }
.hero-media img { aspect-ratio: 648 / 621; display: block; }

/* English-only compact contact section (reduce overall height) */
html[lang="en"] .contact-form-section { padding: 24px; }
html[lang="en"] .contact-info-section { gap: 20px; }
html[lang="en"] .contact-info-card { padding: 20px; }
html[lang="en"] .enhanced-contact-form { flex: 0 0 auto; }
html[lang="en"] .form-group textarea { min-height: 100px; flex: 0 0 auto; }
html[lang="en"] .form-group input, 
html[lang="en"] .form-group textarea { padding: 12px 14px; min-height: 44px; }

a { 
  color: var(--brand); 
  text-decoration: none; 
}

a:hover { 
  text-decoration: underline; 
}

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

/* Header Styles */
header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: rgba(255,255,255,.85); 
  backdrop-filter: saturate(180%) blur(12px); 
  border-bottom: 1px solid var(--border); 
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.brand img { 
  width: 160px; 
  height: auto; 
}

nav ul { 
  display: flex; 
  gap: 18px; 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  align-items: center; 
}

nav a { 
  font-weight: 600; 
  color: var(--text); 
  opacity: .8; 
  padding: 8px 10px; 
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover, nav a:focus { 
  opacity: 1; 
  background: #f1f5f9; 
  text-decoration: none;
}

nav a.active { 
  position: relative;
  color: var(--brand);
  font-weight: 600;
  transition: all 0.3s ease;
}

nav a.active::after {
  width: 80%;
}

.lang { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.lang label { 
  font-size: 14px; 
  color: var(--muted); 
}

.lang select { 
  padding: 6px 8px; 
  border-radius: 8px; 
  border: 1px solid var(--border); 
  background: #fff; 
}

/* Hero Section */
.hero { 
  padding: 140px 0 100px; 
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.hero-grid { 
  display: grid; 
  grid-template-columns: 1.15fr 1fr; 
  gap: 60px; 
  align-items: center; 
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow { 
  color: #2f4a59; 
  font-weight: 700; 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  font-size: 12px; 
  margin-bottom: 28px;
  line-height: 1.4;
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(47, 74, 89, 0.1) 0%, rgba(47, 74, 89, 0.15) 100%);
  border-radius: 50px;
  border: 1px solid rgba(47, 74, 89, 0.2);
}

h1, .hero h1 { 
  font-size: clamp(44px, 6vw, 64px) !important; 
  line-height: 1.1 !important; 
  margin: 0 0 32px !important; 
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.035em !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.sub { 
  color: #475569; 
  font-size: clamp(19px, 2.5vw, 23px); 
  margin: 0 0 40px; 
  line-height: 1.75; 
  font-weight: 400;
  max-width: 640px;
}

.value-line { 
  color: #1e3540; 
  margin: 0 0 40px; 
  font-style: normal; 
  font-weight: 700;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  display: block;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(47, 74, 89, 0.08) 0%, rgba(47, 74, 89, 0.12) 100%);
  border-radius: 12px;
  border-left: 4px solid #2f4a59;
  max-width: fit-content;
}


.hero-media { 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  background: #00000006; 
}

/* Section Base */
section { 
  padding: 96px 0; 
}
/* Reduce compounded gap between consecutive sections */
section + section { padding-top: 56px; }

section.alt { 
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); 
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
  section + section { padding-top: 32px; }
  
  h1, .hero h1 {
    font-size: clamp(36px, 8vw, 48px) !important;
    line-height: 1.15 !important;
    margin-bottom: 24px !important;
  }
  
  .hero {
    padding: 80px 0 60px !important;
  }
  
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

section#services { 
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); 
}

section:not(:first-child)::before { 
  content: ''; 
  display: block; 
  height: 1px; 
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%); 
  margin: 0 auto; 
  width: 300px; 
  position: relative; 
  top: -60px; 
}

.section-title { 
  font-size: clamp(40px, 5vw, 56px); 
  font-weight: 700;
  margin: 0 0 24px; 
  text-align: center;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: #64748b;
  text-align: center;
  max-width: 750px;
  margin: 0 auto 64px;
  line-height: 1.7;
  font-weight: 400;
}

p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #475569;
  font-size: 17px;
}

h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 24px;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h3 {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
  margin: 0 0 16px;
  color: #1e293b;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
  transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle:active {
  background: rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.mobile-nav-link {
  color: white;
  text-decoration: none;
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  padding: 16px 24px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.mobile-lang {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-lang label {
  color: white;
  font-size: var(--text-base);
  margin-bottom: 8px;
  display: block;
}

.mobile-lang select {
  background: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: var(--text-base);
}

.mobile-nav-cta {
  background: var(--brand);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  transition: all 0.3s ease;
  margin-top: 16px;
}

.mobile-nav-cta:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

/* Footer */
footer { 
  padding: 32px 0; 
  border-top: 1px solid var(--border); 
  color: var(--muted); 
  text-align: center; 
}

/* Accessibility */
.skip-link { 
  position: absolute; 
  left: -9999px; 
  top: auto; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

/* Ensure content is visible on mobile when AOS JS is not loaded */
@media (max-width: 768px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Visually hidden (for accessibility/SEO-friendly anchor text) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus { 
  position: static; 
  width: auto; 
  height: auto; 
  padding: 10px; 
  background: var(--brand); 
  color: #fff; 
  border-radius: 8px; 
}

/* Responsive */
@media (max-width: 960px) { 
  .hero-grid { 
    grid-template-columns: 1fr; 
  } 
  .brand img { 
    width: 140px; 
  } 
}

@media (max-width: 768px) { 
  /* Show mobile menu toggle, hide desktop nav */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-inner nav {
    display: none;
  }
  
  .lang {
    display: none;
  }
  
  .brand img { 
    width: 120px !important; 
  } 
}
/* Component Styles - Reusable Components */

/* Optimize Font Awesome font display to avoid FOIT */
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
}

/* Unified CTA Button System */
.cta, .primary-cta, .secondary-cta, .service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.cta, .primary-cta {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(47, 74, 89, 0.2);
  border: none;
}

.secondary-cta, .service-learn-more {
  background: transparent;
  color: #2f4a59;
  border: 2px solid #2f4a59;
  padding: 16px 24px;
  min-width: 220px;
  border-radius: 16px;
  box-shadow: none;
  font-weight: 700;
  justify-content: center;
}

/* Center the CTA block under projects section */
.text-center { text-align: center; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: #64748b; }

/* Project pages – make only the main hero title white */
.project-hero h1 { color: #ffffff; }
.project-hero .back-btn { color: rgba(255,255,255,0.9); }
.project-hero .back-btn:hover { color: #ffffff; }

.cta:hover, .primary-cta:hover {
  background: linear-gradient(135deg, #1e3540 0%, #14262e 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(47, 74, 89, 0.25);
  text-decoration: none;
}

.secondary-cta:hover, .service-learn-more:hover {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(47, 74, 89, 0.25);
  text-decoration: none;
  border-color: #2f4a59;
}

.cta i, .primary-cta i, .secondary-cta i, .service-learn-more i {
  transition: transform 0.2s ease;
}

.cta:hover i, .primary-cta:hover i, .secondary-cta:hover i, .service-learn-more:hover i {
  transform: translateX(4px);
}

/* Cards */
.card { 
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 16px; 
  padding: 40px; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
  border-color: #cbd5e1;
}

.card h3 { 
  margin: 0 0 16px; 
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.card p { 
  margin: 0; 
  color: #64748b; 
  line-height: 1.75;
  font-size: 17px;
}

/* Grid Systems */
.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

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

/* Services Section Redesign */
.services-main-title { 
  font-size: clamp(32px, 4vw, 48px); 
  color: var(--brand); 
  text-align: center; 
  margin: 0 0 16px; 
  font-weight: 700; 
}

.services-subtitle { 
  font-size: clamp(16px, 2.5vw, 20px); 
  color: var(--muted); 
  text-align: center; 
  max-width: 800px; 
  margin: 0 auto 48px; 
  line-height: 1.6; 
}

.services-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
  margin-bottom: 48px; 
}

.service-card { 
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 16px; 
  padding: 48px 32px; 
  text-align: center; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #2f4a59 0%, #1e3540 100%);
  transition: width 0.4s ease;
}

.service-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 24px 48px rgba(0,0,0,0.12); 
  border-color: #cbd5e1;
}

.service-card:hover::after {
  width: 100%;
}

.service-icon-large { 
  width: 88px; 
  height: 88px; 
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%); 
  border-radius: 20px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto 28px; 
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-large {
  transform: scale(1.1) rotate(5deg);
}

.service-icon-large i { 
  color: white; 
  font-size: 40px; 
}

.service-card h3 { 
  color: #0f172a; 
  font-size: clamp(22px, 2.5vw, 26px); 
  margin: 0 0 20px; 
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.service-card p { 
  color: #64748b; 
  margin: 0 0 24px; 
  line-height: 1.75;
  font-size: 17px;
}

.service-features { 
  list-style: none; 
  padding: 0; 
  margin: 0 0 24px; 
  text-align: left; 
}

.service-features li { 
  color: var(--text); 
  padding: 6px 0; 
  position: relative; 
  padding-left: 20px; 
}

.service-features li:before { 
  content: '•'; 
  color: #f97316; 
  font-weight: bold; 
  position: absolute; 
  left: 0; 
}


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

/* Ensure “Learn More” aligns at the bottom of each service card */
.service-card .service-learn-more { 
  margin-top: auto; 
  align-self: center; 
}


@media (max-width: 968px) { 
  .services-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
  } 
}

@media (max-width: 640px) { 
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  } 
  .service-card { 
    padding: 20px; 
  } 
}

/* Trust Indicators Section */
#trust-indicators { 
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); 
}

.trust-title { 
  font-size: clamp(28px, 4vw, 42px); 
  color: var(--brand); 
  text-align: center; 
  margin: 0 0 16px; 
  font-weight: 700; 
}

.trust-subtitle { 
  font-size: clamp(16px, 2.5vw, 18px); 
  color: var(--muted); 
  text-align: center; 
  max-width: 700px; 
  margin: 0 auto 48px; 
  line-height: 1.6; 
}

.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 32px; 
  margin-bottom: 48px;
}

.stat-card { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 24px; 
  text-align: center; 
  box-shadow: var(--shadow); 
}

.stat-icon { 
  width: 60px; 
  height: 60px; 
  background: #f97316; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto 20px; 
}

.stat-icon i { 
  color: white; 
  font-size: 28px; 
}

.stat-number { 
  font-size: clamp(32px, 4vw, 48px); 
  font-weight: 700; 
  color: var(--brand); 
  margin-bottom: 8px; 
}

.stat-label { 
  font-size: 18px; 
  font-weight: 600; 
  color: var(--text); 
  margin-bottom: 4px; 
}

.stat-desc { 
  font-size: 14px; 
  color: var(--muted); 
}

/* Value Propositions */
.value-props-section {
  margin-top: 48px;
}

.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-prop {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-icon i {
  color: white;
  font-size: 28px;
}

.value-prop h3 {
  color: var(--brand);
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: 600;
}

.value-prop p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 968px) { 
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
  } 
  .value-prop-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) { 
  .stats-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  } 
  .stat-card { 
    padding: 20px; 
  } 
  .value-prop {
    padding: 24px 20px;
  }
}

/* Project Cards */
.project-card { 
  display: flex; 
  align-items: flex-start; 
  gap: 16px; 
}

/* Center the 2 project cards and limit width when only two items */
#projects .grid-3 { 
  grid-template-columns: repeat(2, minmax(300px, 500px)); 
  justify-content: center; 
  gap: 32px; 
}

/* Ensure project cards keep CTAs aligned at the bottom */
#projects .project-card { align-items: flex-start; position: relative; padding-bottom: 96px; }
#projects .project-content { display: flex; flex-direction: column; height: 100%; }
/* Place the project CTA centered horizontally across the whole card */
#projects .project-card .service-learn-more { 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%); 
  bottom: 32px; 
  margin-top: 0 !important; 
}
/* Slightly increase card height on desktop so CTAs align comfortably */
#projects .project-card { min-height: 420px; }
@media (max-width: 1120px) { #projects .project-card { min-height: unset; } }

@media (max-width: 1120px) {
  #projects .grid-3 { 
    grid-template-columns: 1fr; 
    max-width: 720px; 
    margin: 0 auto; 
  }
}

.project-thumbnail { 
  flex-shrink: 0; 
  width: 60px; 
  height: 60px; 
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%); 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.project-icon { 
  color: white; 
  font-size: 24px; 
}

.project-content { 
  flex: 1; 
}

.project-content h3 { 
  margin: 0 0 8px; 
}

.project-content p { 
  margin: 0; 
}

/* Mobile Sticky CTA */
.mobile-sticky-cta { 
  display: none; 
  position: fixed; 
  bottom: 20px; 
  left: 20px; 
  z-index: 100; 
  background: var(--brand); 
  padding: 8px 16px; 
  border-radius: 25px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
  transition: all 0.3s ease;
}

.mobile-sticky-cta:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.mobile-sticky-cta a { 
  color: #fff; 
  font-weight: var(--font-semibold); 
  text-align: center; 
  display: block; 
  font-size: var(--text-sm); 
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) { 
  .mobile-sticky-cta { 
    display: block; 
  } 
}

@media (max-width: 480px) {
  .mobile-sticky-cta {
    bottom: 15px;
    left: 15px;
    padding: 6px 12px;
  }
  
  .mobile-sticky-cta a {
    font-size: var(--text-xs);
  }
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

.fab[href*="tel"] {
  background: #10b981;
  color: white;
}

.fab.back-to-top {
  background: var(--brand);
  color: white;
}

.fab:hover {
  transform: scale(1.1);
  text-decoration: none;
}
/* Enhanced About Section Styles */
.about-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
}

.lead-text {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 48px 0;
}

.about-pillar {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon i {
  color: white;
  font-size: 28px;
}

.about-pillar h3 {
  color: var(--brand);
  font-size: clamp(20px, 2.5vw, 24px);
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about-pillar p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
  font-size: 16px;
}

.about-pillar p:last-child {
  margin-bottom: 0;
}

.team-expertise {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 48px 0;
}

.team-expertise h3 {
  color: var(--brand);
  font-size: 28px;
  margin: 0 0 20px;
  text-align: center;
  font-weight: 600;
}

.team-expertise > p {
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px;
  font-size: 16px;
}

.expertise-areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.expertise-item {
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 10px;
  border-left: 4px solid var(--brand);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.expertise-item strong {
  color: var(--brand);
}

.mission-statement {
  text-align: center;
  max-width: 800px;
  margin: 48px auto;
}

.mission-content {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
  color: #ffffff !important;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.mission-content h3 {
  color: #ffffff !important;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 24px;
  font-weight: 700;
}

.mission-content p {
  line-height: 1.8;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 17px;
}

.mission-content p:last-child {
  margin-bottom: 0;
}

.about-cta {
  text-align: center;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cta-text {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 24px;
  font-weight: 500;
}


/* Responsive Design */
@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .expertise-areas {
    grid-template-columns: 1fr;
  }
  
  .about-pillar,
  .team-expertise,
  .mission-content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .about-pillar,
  .team-expertise {
    padding: 20px;
  }
  
  .mission-content {
    padding: 24px 20px;
  }
  
  .about-cta {
    padding: 24px 20px;
  }
}
/* Enhanced Projects Section Styles */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  background: var(--surface);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.eu-projects-section {
  margin-top: 64px;
  padding: 48px 32px; /* add horizontal padding so cards don't touch edges */
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.eu-projects-section h3 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px;
}

.eu-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.eu-project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.eu-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%);
  transition: height 0.3s ease;
}

.eu-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.eu-project-card:hover::before {
  height: 100%;
}

.eu-project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.eu-flag {
  font-size: 24px;
}

.eu-program {
  background: #1e40af;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.eu-project-card h4 {
  color: var(--brand);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.eu-project-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 968px) {
  .eu-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .eu-projects-section {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .eu-project-card {
    padding: 20px;
  }
}
/* Enhanced Contact Section Styles */
.contact-subtitle {
  font-size: clamp(17px, 2.5vw, 20px);
  color: #64748b;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto 64px;
}

/* Enhanced Form Section */
.contact-form-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.contact-form-section:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.form-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(47, 74, 89, 0.2);
}

.form-icon i {
  color: white;
  font-size: 22px;
}

.form-header h3 {
  color: #0f172a;
  font-size: clamp(20px, 2.5vw, 24px);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.enhanced-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.form-group label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  color: #1e293b;
  font-family: inherit;
  min-height: 48px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2f4a59;
  box-shadow: 0 0 0 4px rgba(47, 74, 89, 0.08);
  background: #fafbfc;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  padding-top: 16px;
}

.submit-btn {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(47, 74, 89, 0.2);
  width: 100%;
  margin-top: 6px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1e3540 0%, #14262e 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(47, 74, 89, 0.25);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 16px rgba(47, 74, 89, 0.2) !important;
}

.form-feedback {
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  display: none;
  font-weight: 500;
}

.form-feedback.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* Contact Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: #cbd5e1;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(47, 74, 89, 0.2);
}

.info-icon i {
  color: white;
  font-size: 22px;
}

.info-icon.quick-response {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.info-icon.email {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
}

.info-icon.phone {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
}

.info-icon.location {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
}

.info-content {
  flex: 1;
}

.contact-info-card h4 {
  color: #0f172a;
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.contact-info-card p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.contact-detail {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-top: 6px !important;
}

.contact-detail a {
  color: var(--brand);
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.detail-note {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin-top: 4px !important;
}

/* Map */
.map-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.map-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #64748b;
}

.map-placeholder i {
  font-size: 48px;
  color: #f97316;
}

.map-placeholder span {
  font-size: 16px;
  font-weight: 500;
}

/* Social Section */
.social-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: #cbd5e1;
}

.social-section h4 {
  color: #0f172a;
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 119, 181, 0.3);
  text-decoration: none;
}

.social-link i {
  font-size: 20px;
  color: #0077b5;
  transition: color 0.3s ease;
}

.social-link:hover i {
  color: white;
}

/* Responsive Design */
@media (max-width: 968px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-section {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .contact-info-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .form-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .contact-form-section {
    padding: 20px;
  }
}
/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 24px;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid #2f4a59;
}

.cookie-consent-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.cookie-icon i {
  font-size: 28px;
  color: white;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h3 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.cookie-text p {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cookie-link {
  color: #2f4a59;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
}

.cookie-link:hover {
  color: #1e3540;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #2f4a59 0%, #1e3540 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(47, 74, 89, 0.2);
}

.cookie-btn-primary:hover {
  background: linear-gradient(135deg, #1e3540 0%, #14262e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 74, 89, 0.3);
}

.cookie-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.cookie-btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 20px 16px;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .cookie-icon {
    align-self: center;
  }
  
  .cookie-text {
    text-align: center;
    min-width: 0;
  }
  
  .cookie-text h3 {
    font-size: 16px;
  }
  
  .cookie-text p {
    font-size: 13px;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    padding: 14px 24px;
  }
}

/* Additional Responsive Enhancements */

/* ========================================
   EXTRA SMALL PHONES (< 375px)
======================================== */
@media (max-width: 374px) {
  /* Hero */
  .hero {
    padding: 60px 0 40px !important;
  }
  
  h1, .hero h1 {
    font-size: clamp(28px, 10vw, 36px) !important;
    margin-bottom: 20px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Better text wrapping for all headings */
  h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Prevent text overflow in cards */
  .service-card,
  .contact-info-card,
  .stat-card,
  .value-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Buttons */
  .cta, .primary-cta {
    padding: 14px 24px !important;
    font-size: 15px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Services */
  .service-card {
    padding: 24px 16px !important;
  }
  
  /* Contact Form */
  .contact-form-section {
    padding: 32px 20px !important;
  }
  
  .submit-btn {
    padding: 16px 32px !important;
  }
}

/* ========================================
   SMALL PHONES (375px - 480px)
======================================== */
@media (max-width: 480px) {
  /* Hero Image - Prevent overflow */
  .hero-media img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
  }
  
  /* General image improvements */
  img {
    border-radius: 8px;
    object-fit: cover;
  }
  
  /* Service card images */
  .service-card img,
  .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .stat-card {
    padding: 24px 20px !important;
  }
  
  /* Value Propositions */
  .value-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .value-card {
    padding: 24px 20px !important;
  }
  
  /* Map */
  .map-container {
    min-height: 300px !important;
  }
  
  /* Footer */
  footer {
    padding: 24px 0 !important;
    font-size: 14px !important;
  }
}

/* ========================================
   LANDSCAPE PHONES (< 768px height)
======================================== */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  /* Hero - Reduce padding in landscape */
  .hero {
    padding: 60px 0 40px !important;
  }
  
  /* Mobile menu - Make scrollable */
  .mobile-nav-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
  }
  
  /* Reduce stat card height */
  .stat-card {
    padding: 20px !important;
  }
}

/* ========================================
   TABLETS (768px - 1024px)
======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Services - 2 columns on tablets */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
  }
  
  /* Stats - 2 columns on tablets */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Projects - 2 columns */
  .eu-projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Contact - Stack but with better spacing */
  .contact-layout {
    gap: 48px !important;
  }
}

/* ========================================
   LARGE TABLETS (1024px - 1200px)
======================================== */
@media (min-width: 1024px) and (max-width: 1200px) {
  /* Adjust container max-width */
  .container {
    padding: 0 32px !important;
  }
  
  /* Hero */
  .hero-grid {
    gap: 48px !important;
  }
}

/* ========================================
   SMALL DESKTOPS (1200px - 1440px)
======================================== */
@media (min-width: 1200px) and (max-width: 1440px) {
  .container {
    padding: 0 40px !important;
  }
}

/* ========================================
   LARGE DESKTOPS (> 1920px)
======================================== */
@media (min-width: 1920px) {
  /* Prevent content from getting too wide */
  .hero-grid,
  .contact-layout,
  .stats-grid {
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Increase font sizes slightly */
  html {
    font-size: 18px !important;
  }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for touch */
  nav a,
  .mobile-nav-link {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Remove hover effects on touch devices */
  .service-card:hover,
  .contact-info-card:hover,
  .eu-project-card:hover {
    transform: none !important;
  }
  
  /* Better form inputs for touch */
  input,
  textarea,
  select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    min-height: 44px;
    padding: 12px 16px;
  }
  
  /* Ensure all buttons meet touch target requirements */
  button,
  .btn,
  .cta,
  .primary-cta,
  .secondary-cta,
  .service-learn-more,
  .submit-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    margin: 8px 0;
  }
  
  /* Better spacing between interactive elements */
  .service-card,
  .contact-info-card,
  .stat-card {
    margin-bottom: 16px;
  }
  
  /* Improve grid gaps for mobile */
  .services-grid,
  .stats-grid,
  .value-grid,
  .eu-projects-grid {
    gap: 20px !important;
  }
  
  /* Ensure single column layouts on very small screens */
  .services-grid,
  .stats-grid,
  .value-grid,
  .eu-projects-grid,
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
  
  /* Better card spacing */
  .service-card,
  .stat-card,
  .value-card,
  .contact-info-card {
    margin-bottom: 20px;
  }
}

/* ========================================
   MEDIUM PHONES (481px - 640px)
======================================== */
@media (min-width: 481px) and (max-width: 640px) {
  /* Better grid layouts for medium phones */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  
  /* Contact layout - side by side on medium phones */
  .contact-layout {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  
  /* Better button sizing */
  .cta, .primary-cta {
    padding: 16px 28px !important;
    font-size: 16px !important;
  }
}

/* ========================================
   HIGH DPI SCREENS (Retina, etc.)
======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  /* Hide non-essential elements */
  .mobile-menu-toggle,
  .mobile-nav,
  .floating-actions,
  .cookie-consent-banner,
  .back-to-top,
  header nav {
    display: none !important;
  }
  
  /* Expand collapsed sections */
  * {
    background: white !important;
    color: black !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
  }
  
  /* Show URLs */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 12px;
    color: #666;
  }
}

/* ========================================
   DARK MODE PREFERENCE (Future-proofing)
======================================== */
@media (prefers-color-scheme: dark) {
  /* Uncomment when ready to support dark mode
  :root {
    --bg: #1a1a1a;
    --text: #e5e5e5;
    --muted: #a0a0a0;
    --surface: #2a2a2a;
    --border: #404040;
  }
  */
}

/* ========================================
   REDUCED MOTION PREFERENCE
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Keep existing animations */
}

/* ========================================
   FORCED COLORS MODE (Accessibility)
======================================== */
@media (forced-colors: active) {
  /* Ensure proper contrast in high contrast mode */
  .cta,
  .primary-cta,
  button {
    border: 2px solid currentColor !important;
  }
}

