/* ============================================
   GEOMATICS SURVEY & ENGINEERING LTD
   Global Stylesheet - Production Ready
   ============================================ */

/* CSS Variables - Corporate Color System */
:root {
  /* Primary Palette */
/* Primary Palette */
--primary-dark: #C2410C;
--primary: #F97316;
--primary-light: #FB923C;
--cool: #333333;

/* Accent */
--accent: #EA580C;
--accent-light: #FDBA74;
  
  /* Neutrals */
  --text-dark: #1A1A1A;
  --text-body: #4A5568;
  --text-muted: #5F6B7A;
  --border: #E2E8F0;
  --bg-light: #F7FAFC;
  --bg-white: #FFFFFF;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: var(--bg-white);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--bg-white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-white);
}

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

.btn-accent:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION WITH BACKGROUND SLIDESHOW
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

/* Slideshow wrapper */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Each slide */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center; /* keeps image properly centered */
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 4s ease-in-out;
}

/* Active slide */
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 45, 0.68); /* adjust darkness here */
  z-index: 1;
}

/* Optional subtle pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

/* Keep content above slideshow */
.hero .container,
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  padding-top: 100px;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(17, 181, 228, 0.2);
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
  color: #fff !important;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  margin: 0;
  text-align: left;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease 0.6s forwards;
}


/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Background Variations */
.bg-light {
  background: var(--bg-light);
}

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

.bg-primary h2,
.bg-primary h3 {
  color: var(--bg-white);
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */
.card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--bg-white);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}



.affiliation-logo-wrapper {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
/* ============================================
   STATS / TRUST INDICATORS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 3fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* ============================================
   CORE VALUES - PRECISE
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.value-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transition: width var(--transition-base);
}

.value-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-letter {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.value-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ============================================
   SPLIT SECTIONS
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-content {
  max-width: 540px;
}

.split-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ============================================
   SERVICES
   ============================================ */

/* Service card image */
.service-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
margin-bottom:var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-header {
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
}

.service-body {
  padding: var(--space-md);

}

.service-list {
  list-style: none;
  margin-top: var(--space-sm);
}

.service-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.service-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ============================================
   TIMELINE / PROCESS
   ============================================ */
.timeline {
  position: relative;
  padding: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: var(--space-lg);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  background: var(--bg-white);
  padding: var(--space-md);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-width: 400px;
  margin: 0 var(--space-md);
  position: relative;
}

.timeline-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   TEAM / LEADERSHIP
   ============================================ */
.team-feature {
  background: var(--bg-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 400px 1fr;
}

.team-image {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.team-image-placeholder {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.team-image-placeholder svg {
  width: 120px;
  height: 120px;
  color: rgba(255, 255, 255, 0.8);
}

.team-content {
  padding: var(--space-lg);
}

.team-name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.team-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.credential-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.expertise-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  background: var(--bg-white);
  padding: var(--space-md);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--bg-white);
}

.contact-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-detail {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Form Styles */
.form {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 93, 184, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Office Map */
.office-map-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.office-map-card iframe {
  display: block;
  width: 100%;
  min-height: 380px;
}

.office-location-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.office-address {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1 1 320px;
}

.office-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.office-directions svg {
  width: 19px;
  height: 19px;
}

/* Map Placeholder */
.map-container {
  background: var(--bg-light);
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.map-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 48px;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-title {
  color: #fff !important;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-tagline {
  color: var(--accent);
  font-size: 0.875rem;
  font-style: italic;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--bg-white);
}

/* ============================================
   ANIMATIONS & REVEAL EFFECTS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-white { color: var(--bg-white); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.mt-4 { margin-top: var(--space-lg); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: var(--space-lg);
  border-radius: 16px;
  text-align: center;
  color: var(--bg-white);
}

.cta-banner h3 {
  color: var(--bg-white);
  margin-bottom: var(--space-sm);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .team-feature {
    grid-template-columns: 1fr;
  }
  
  .team-image {
    min-height: 300px;
  }
  
  .office-map-card iframe {
    min-height: 320px;
  }

  .office-location-footer {
    align-items: stretch;
  }

  .office-directions {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 0;
  }
  
  .timeline-number {
    left: 20px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  
  .hero-content {
    padding-top: 100px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@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;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .hero {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
/* ============================================
   FLOATING SURVEY TOOL BUTTONS
   ============================================ */
.calculator-float,
.gis-float {
  position: fixed;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.calculator-float { top: 105px; }
.gis-float { top: 175px; }

.calculator-float-icon,
.gis-float-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}

.calculator-float-icon svg,
.gis-float-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calculator-float-text,
.gis-float-text {
  order: -1;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  border: 1px solid var(--border);
}

.calculator-float:hover .calculator-float-text,
.calculator-float:focus-visible .calculator-float-text,
.gis-float:hover .gis-float-text,
.gis-float:focus-visible .gis-float-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.calculator-float:hover .calculator-float-icon,
.calculator-float:focus-visible .calculator-float-icon,
.gis-float:hover .gis-float-icon,
.gis-float:focus-visible .gis-float-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

html.theme-dark .calculator-float-icon,
html.theme-dark .gis-float-icon { color: #fff; }

html.theme-dark .calculator-float-text,
html.theme-dark .gis-float-text {
  background: #111827;
  color: #f8fafc;
  border-color: #334155;
}

@media (max-width: 600px) {
  .calculator-float,
  .gis-float { right: 16px; }
  .calculator-float { top: 88px; }
  .gis-float { top: 152px; }
  .calculator-float-icon,
  .gis-float-icon { width: 54px; height: 54px; }
  .calculator-float-icon svg,
  .gis-float-icon svg { width: 28px; height: 28px; }
  .calculator-float-text,
  .gis-float-text { display: none; }
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.whatsapp-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-icon svg {
  width: 31px;
  height: 31px;
  fill: #fff;
}

.whatsapp-text {
  padding: 9px 14px;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.whatsapp-float:hover .whatsapp-text,
.whatsapp-float:focus-visible .whatsapp-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.whatsapp-float:hover .whatsapp-icon,
.whatsapp-float:focus-visible .whatsapp-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.42), 0 8px 24px rgba(0, 0, 0, 0.22); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.22); }
}

html.theme-dark .whatsapp-text {
  background: #111827;
  color: #f8fafc;
  border: 1px solid #334155;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-icon {
    width: 54px;
    height: 54px;
  }

  .whatsapp-icon svg {
    width: 29px;
    height: 29px;
  }

  .whatsapp-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-icon {
    animation: none;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
:root {
  color-scheme: light;
}

html.theme-dark {
  color-scheme: dark;
}

html.theme-dark {
  --text-dark: #f3f4f6;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --bg-light: #111827;
  --bg-white: #0b1220;
  --cool: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.30);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 35px rgba(0,0,0,0.40);
}

html.theme-dark body {
  background-color: var(--bg-white);
  color: var(--text-body);
}

html.theme-dark .header {
  background: rgba(11, 18, 32, 0.96);
  border-bottom-color: rgba(255,255,255,0.08);
}

html.theme-dark .header.scrolled {
  background: rgba(11, 18, 32, 0.98);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

html.theme-dark .nav-link,
html.theme-dark .logo-text {
  color: #f8fafc;
}

html.theme-dark .nav-link:hover,
html.theme-dark .nav-link.active {
  color: var(--primary-light);
}

html.theme-dark .menu-toggle span {
  background: #f8fafc;
}

html.theme-dark .bg-light {
  background: #111827;
}

html.theme-dark .card,
html.theme-dark .service-card,
html.theme-dark .project-card,
html.theme-dark .team-card,
html.theme-dark .feature-card,
html.theme-dark .contact-card,
html.theme-dark .info-card,
html.theme-dark .testimonial-card,
html.theme-dark .stat-card,
html.theme-dark .form-card,
html.theme-dark .process-card,
html.theme-dark .value-card {
  background-color: #111827;
  border-color: #334155;
  color: var(--text-body);
  box-shadow: var(--shadow-md);
}

html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select {
  background: #0f172a;
  color: #f8fafc;
  border-color: #475569;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
  color: #94a3b8;
}

html.theme-dark input:focus,
html.theme-dark textarea:focus,
html.theme-dark select:focus {
  background: #111827;
  border-color: var(--primary-light);
}

html.theme-dark .footer {
  background: #050b16;
}

html.theme-dark .footer-links a,
html.theme-dark .footer-contact p,
html.theme-dark .footer-desc {
  color: rgba(255,255,255,0.72);
}

html.theme-dark .theme-toggle {
  color: #f8fafc;
  background: #172033;
  border-color: #334155;
}

html.theme-dark .theme-toggle:hover {
  background: #1e293b;
  border-color: var(--primary-light);
}

/* Theme switch */
.header-actions,
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-header-actions {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white);
  color: var(--text-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.theme-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.theme-icon-moon {
  display: none;
}

html.theme-dark .theme-icon-sun {
  display: none;
}

html.theme-dark .theme-icon-moon {
  display: inline;
}

@media (max-width: 768px) {
  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .header-actions .theme-toggle,
  .header-actions .btn {
    width: 100%;
  }

  .mobile-header-actions {
    display: flex;
  }

  .mobile-header-actions .theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .mobile-header-actions .theme-toggle .theme-icon {
    font-size: 1.2rem;
  }

  .mobile-header-actions .menu-toggle {
    margin-left: 0;
  }
}

/* Prevent a bright flash while the saved theme is being restored. */
html.theme-dark,
html.theme-dark body,
html.theme-dark .nav {
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Dark-mode cleanup for a few legacy inline styles */
html.theme-dark section[style*="#11B5E4"] {
  background-color: #7c2d12 !important;
}

html.theme-dark .article-thumb[style*="linear-gradient"] {
  background: linear-gradient(135deg, #1e293b, #334155) !important;
}
@media (max-width: 1024px) {
  .logo-text {
      display: none !important;
  }
}
/* =========================================
   GEOMATICS FOOTER
   ========================================= */

   .footer {
    background: #111827;
    color: #d1d5db;
    padding: 70px 0 0;
    position: relative;
    overflow: hidden;
}

/* Orange line at the top */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

/* BRAND */
.footer-brand {
    max-width: 380px;
}

.footer-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 18px;
}

.footer-desc {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* HEADINGS */
.footer-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 13px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* CONTACT */
.footer-contact p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-contact strong {
    color: #fff;
    font-weight: 600;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary);
}

/* SOCIAL ICONS */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


/* BOTTOM */
.footer-bottom {
    border-top: 1px solid #374151;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copyright,
.footer-tagline {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.footer-tagline {
    color: #9ca3af;
}


/* TABLET */
@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px 35px;
    }

    .footer-brand {
        max-width: 100%;
    }

}

/* MOBILE */
@media (max-width: 600px) {
    .footer {
        padding-top: 55px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   GEOMATICS RESPONSIVE HEADER + FOOTER FIXES
   ============================================ */

/* Header: prevent crowding on tablets/smaller laptops */
@media (max-width: 1100px) {
  .header-inner {
    height: 72px;
  }

  .logo-text {
    display: none !important;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--space-md) 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 0.25rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .header-actions .theme-toggle,
  .header-actions .btn {
    width: 100%;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .mobile-header-actions .theme-toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Desktop: keep the normal horizontal navigation */
@media (min-width: 1101px) {
  .mobile-header-actions {
    display: none;
  }

  .nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Footer contact items stay on one flex line; only the long text wraps naturally. */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin-top: 0.18rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(56%) sepia(96%) saturate(1750%) hue-rotate(349deg) brightness(101%) contrast(96%);
  transition: filter var(--transition-base), transform var(--transition-base);
}

.footer-contact-item strong {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 600;
}

.footer-contact-item .footer-contact-text,
.footer-contact-item a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-contact-item a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--primary-light);
}

html.theme-dark .footer-contact-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .footer {
    padding: 55px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-contact-item {
    font-size: 0.84rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-copyright,
  .footer-tagline {
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    height: 68px;
  }

  .nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }

  .logo img {
    height: 42px;
  }

  .mobile-header-actions .theme-toggle {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .menu-toggle {
    padding: 8px;
  }
}


/* =========================================
   CLIENT TESTIMONIALS MARQUEE
   ========================================= */
.testimonials-section {
  overflow: hidden;
}

.testimonials-section .section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.testimonials-section .section-heading p {
  color: var(--text-body);
  margin-top: .75rem;
}

.testimonials-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0 25px;
  cursor: grab;
}

.testimonials-marquee:active {
  cursor: grabbing;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.testimonials-marquee .testimonial-card {
  flex: 0 0 360px;
  width: 360px;
  min-height: 260px;
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}

.testimonials-marquee .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--primary);
  letter-spacing: 3px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--text-body);
  line-height: 1.75;
  margin: 0 0 24px;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-client strong,
.testimonial-client span {
  display: block;
}

.testimonial-client strong {
  color: var(--text-dark);
  font-size: .95rem;
}

.testimonial-client span {
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: 3px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
}

html.theme-dark .testimonials-marquee .testimonial-card {
  background: #111827;
  border-color: #334155;
}

@media (max-width: 768px) {
  .testimonials-marquee .testimonial-card {
    flex-basis: min(82vw, 340px);
    width: min(82vw, 340px);
    min-height: 245px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    transform: none !important;
  }
}

/* Footer social links and site-wide Back to Top */
.footer-brand .footer-social {
  margin-top: 22px;
  width: 100%;
}
.footer-brand .footer-social .footer-title {
  margin-bottom: 10px;
}
.footer-brand .footer-social .social-links {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.footer-brand .footer-social .social-link {
  width: 38px;
  height: 38px;
  min-width: 38px;
  color: #fff;
  text-decoration: none;
}
.footer-brand .footer-social .social-link svg {
  display: block;
  width: 19px;
  height: 19px;
}
.back-to-top {
  position: fixed; right: 24px; bottom: 96px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--primary); color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top span { font-size: 8px; font-weight: 700; line-height: 1; }
@media (max-width: 600px) {
  .footer-brand .footer-social .social-links { gap: 7px; }
  .footer-brand .footer-social .social-link { width: 36px; height: 36px; min-width: 36px; }
  .back-to-top { right: 16px; bottom: 82px; width: 48px; height: 48px; }
}

/* ============================================
   FOOTER - SMALL DEVICE RESPONSIVENESS
   ============================================ */
@media (max-width: 767px) {
  .footer {
    padding-top: 48px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }

  .footer-brand {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .footer-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
  }

  .footer-desc {
    max-width: 520px;
    margin: 0 auto 22px;
    font-size: 14px;
    line-height: 1.75;
  }

  .footer-brand .footer-social {
    margin-top: 18px;
  }

  .footer-brand .footer-social .footer-title {
    margin-bottom: 12px;
  }

  .footer-brand .footer-social .social-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-title {
    font-size: 16px;
    margin-bottom: 18px;
  }

  /* Hide footer heading accent lines on phones. */
  .footer-title::after {
    display: none;
  }

  .footer-links li {
    margin-bottom: 11px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-contact-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    width: 100%;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .footer-contact-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 3px;
  }

  /* On phones, keep the contact icons and actual details, but remove
     the descriptive labels (Our Office, Email, Phone). */
  .footer-contact-item strong {
    display: none;
  }

  .footer-contact-item .footer-contact-text,
  .footer-contact-item > span,
  .footer-contact-item > a,
  .footer-contact-item > strong + span,
  .footer-contact-item > strong + a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Keep the icon in the first column while the text occupies the second. */
  .footer-contact-item .footer-contact-text,
  .footer-contact-item > a,
  .footer-contact-item > span {
    grid-column: 2;
  }

  .footer-contact-item .footer-contact-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .footer-contact-item .footer-contact-text,
  .footer-contact-item > a,
  .footer-contact-item > span {
    display: block;
  }

  .footer-bottom {
    padding: 18px 0 22px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .footer-copyright,
  .footer-tagline {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .footer {
    padding-top: 42px;
  }

  .footer-grid {
    gap: 30px;
    padding-bottom: 30px;
  }

  .footer-desc {
    font-size: 13.5px;
  }

  .footer-title {
    font-size: 15.5px;
  }

  .footer-contact-item {
    font-size: 13.5px;
    column-gap: 9px;
  }

  .footer-brand .footer-social .social-links {
    gap: 7px;
  }

  .footer-brand .footer-social .social-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

@media (max-width: 360px) {
  .footer {
    padding-top: 36px;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-desc {
    font-size: 13px;
  }

  .footer-contact-item {
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 8px;
    font-size: 13px;
  }

  .footer-contact-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
  }

  .footer-brand .footer-social .social-link {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .footer-copyright,
  .footer-tagline {
    font-size: 11.5px;
  }
}


/* Contact page footer hours icon */
.footer-contact-item .footer-contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Performance: reserve media space and reduce layout shift while images load. */
img { max-width: 100%; }
.article-thumb, .related-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.service-detail-image { aspect-ratio: 16 / 10; object-fit: cover; }
.work-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* =========================================================
   GEOMATICS UI/UX SYSTEM v2
   Site-wide visual and interaction refinement
   ========================================================= */
:root{
  --container-width:1280px;
  --radius-sm:10px;
  --radius-md:14px;
  --radius-lg:20px;
  --focus-ring:0 0 0 4px rgba(249,115,22,.16);
  --surface-2:#f8fafc;
}
html{scroll-padding-top:88px}
body{overflow-x:hidden;background:var(--bg-white)}
.container{max-width:var(--container-width);padding-left:clamp(16px,3vw,32px);padding-right:clamp(16px,3vw,32px)}
::selection{background:rgba(249,115,22,.18);color:var(--text-dark)}
:focus-visible{outline:3px solid rgba(249,115,22,.42);outline-offset:2px}
button,a,input,select,textarea{touch-action:manipulation}
.skip-link{position:fixed;left:16px;top:12px;z-index:2000;padding:10px 14px;border-radius:10px;background:var(--text-dark);color:#fff;transform:translateY(-150%);transition:transform .2s ease;box-shadow:var(--shadow-lg)}
.skip-link:focus{transform:translateY(0);color:#fff}

.header{height:auto;border-bottom:1px solid transparent}
.header.scrolled{border-bottom-color:var(--border);background:rgba(255,255,255,.92)}
.header-inner{min-height:78px;height:78px}
.logo{min-width:0}
.logo img{height:44px;width:44px;object-fit:contain}
.logo-text{font-size:1.02rem;letter-spacing:-.01em;white-space:nowrap}
.nav{gap:18px}
.nav-list{gap:4px}
.nav-link{padding:9px 10px;border-radius:8px;white-space:nowrap}
.nav-link::after{display:none}
.nav-link:hover,.nav-link.active{background:rgba(249,115,22,.08);color:var(--primary)}
.header-actions{display:flex;align-items:center;gap:9px}
.header-actions .btn{white-space:nowrap}
.theme-toggle{min-height:40px;padding:8px 11px;border:1px solid var(--border);border-radius:10px;background:var(--bg-white);color:var(--text-dark);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:600 .82rem var(--font-body);transition:.2s ease}
.theme-toggle:hover{border-color:var(--primary-light);background:rgba(249,115,22,.05)}
.theme-icon{line-height:1}
.mobile-header-actions{display:none}
body.menu-open{overflow:hidden}

.btn{min-height:44px;border-radius:10px;padding:.72rem 1.05rem}
.btn:active{transform:translateY(0)}
.btn:disabled{cursor:not-allowed;opacity:.55}
.btn-secondary,.btn-outline{background:var(--bg-white);color:var(--text-dark);border:1px solid var(--border)}
.btn-secondary:hover,.btn-outline:hover{background:var(--bg-light);border-color:var(--primary);color:var(--primary)}

.section{padding:clamp(56px,7vw,96px) 0}
.section-header{margin-bottom:clamp(32px,5vw,56px)}
.section-subtitle{line-height:1.75}
.card,.value-card{border:1px solid var(--border);box-shadow:0 8px 24px rgba(15,23,42,.06)}
.card:hover,.value-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(15,23,42,.10)}

.hero{min-height:min(760px,100vh);padding-top:78px}
.hero-content{padding-top:40px;padding-bottom:40px}
.hero-title{max-width:880px;letter-spacing:-.035em}
.hero-subtitle{line-height:1.75}
.hero-label{background:rgba(249,115,22,.16);border:1px solid rgba(253,186,116,.25)}

.form-group label,.input-card label{color:var(--text-dark)}
input,select,textarea{max-width:100%}
input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:.75}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary)!important;box-shadow:var(--focus-ring)!important}
input[type="checkbox"],input[type="radio"]{accent-color:var(--primary)}
table{max-width:100%}
.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:14px}

.calculator-float,.gis-float,.whatsapp-float{transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}
.calculator-float:hover,.gis-float:hover,.whatsapp-float:hover{transform:translateY(-3px)}

.footer{margin-top:0}
.footer-grid{grid-template-columns:minmax(260px,1.45fr) repeat(3,minmax(150px,1fr));gap:42px}
.footer-links a{padding:3px 0}
.social-link{display:grid;place-items:center;border-radius:10px;transition:.2s ease}
.social-link:hover{background:rgba(249,115,22,.12);transform:translateY(-2px)}

@media(max-width:1100px){
  .header-inner{min-height:72px;height:72px}
  .hero{padding-top:72px}
}
@media(max-width:767px){
  .container{padding-left:18px;padding-right:18px}
  .section{padding:54px 0}
  .hero{min-height:650px}
  .hero-content{padding-top:30px}
  .hero-title{font-size:clamp(2rem,9vw,3rem)}
  .hero-subtitle{font-size:1rem}
  .hero-cta{gap:10px}
  .hero-cta .btn{width:100%}
  .footer-grid{grid-template-columns:1fr;gap:30px}
}
@media(max-width:480px){
  .container{padding-left:15px;padding-right:15px}
  .hero{min-height:620px}
  .hero-label{font-size:.72rem}
  .btn{width:auto}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
html.theme-dark{
  --text-dark:#f1f5f9;
  --text-body:#cbd5e1;
  --text-muted:#94a3b8;
  --border:#334155;
  --bg-light:#0f172a;
  --bg-white:#111827;
  --surface-2:#1e293b;
}
html.theme-dark body{background:#0b1220}
html.theme-dark .header{background:rgba(15,23,42,.94)}
html.theme-dark .header.scrolled{background:rgba(15,23,42,.88);border-bottom-color:#334155}
html.theme-dark .nav-link{color:#e2e8f0}
html.theme-dark .nav-link:hover,html.theme-dark .nav-link.active{background:rgba(249,115,22,.13);color:#fdba74}
html.theme-dark .theme-toggle{background:#111827;color:#e5e7eb;border-color:#334155}
html.theme-dark .btn-secondary,html.theme-dark .btn-outline{background:#111827;color:#e5e7eb;border-color:#334155}

/* ============================================
   SEO / PAGE NAVIGATION SYSTEM
   ============================================ */
.breadcrumbs{margin:0 0 18px;font-size:.78rem;color:var(--text-muted)}
.breadcrumbs ol{display:flex;align-items:center;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:0}
.breadcrumbs li{display:flex;align-items:center;gap:7px}
.breadcrumbs li+li::before{content:'›';color:var(--text-muted)}
.breadcrumbs a{color:var(--text-muted);font-weight:600}
.breadcrumbs a:hover{color:var(--primary)}
.breadcrumbs span[aria-current="page"]{color:var(--text-dark);font-weight:600}
.page-seo-intro{max-width:860px;margin:0 auto 42px;text-align:center}
.page-seo-intro h2{margin-bottom:12px}
.page-seo-intro p{color:var(--text-muted)}
/* Consistent H1 treatment across public page heroes. */
.hero-title,.service-detail-title,.calculator-tool-hero h1,.calculator-hero h1,.gis-hero h1,.page-hero h1{font-family:var(--font-heading);font-weight:700;line-height:1.12;letter-spacing:-.035em}
.btn-on-dark{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:none}
.btn-on-dark:hover,.btn-on-dark:focus-visible{background:#fff!important;color:var(--primary-dark)!important;border-color:#fff!important}

/* SEO landing pages */
.page-hero{padding:145px 0 72px;background:linear-gradient(135deg,var(--bg-light),var(--bg-white));border-bottom:1px solid var(--border)}
.page-hero .container{max-width:1080px}
.page-hero h1{max-width:900px;margin:8px 0 18px;font-size:clamp(2.25rem,5vw,4rem)}
.page-hero p{max-width:820px;font-size:1.08rem;color:var(--text-muted);margin:0}
.seo-content-section{padding:68px 0}
.seo-content-section:nth-of-type(even){background:var(--bg-light)}
.seo-copy{max-width:900px;margin:0 auto}
.seo-copy h2{margin-bottom:16px}
.seo-copy p{max-width:860px;color:var(--text-body)}
.seo-link-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.seo-link-card{display:block;padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--bg-white);box-shadow:var(--shadow-sm);transition:transform var(--transition-base),box-shadow var(--transition-base),border-color var(--transition-base)}
.seo-link-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--primary-light)}
.seo-link-card h3{font-size:1.08rem;margin-bottom:8px}
.seo-link-card p{font-size:.88rem;color:var(--text-muted);margin-bottom:15px}
.seo-link-card span{font-weight:700;color:var(--primary)}
@media(max-width:900px){.seo-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-hero{padding:125px 0 58px}}
@media(max-width:600px){.seo-link-grid{grid-template-columns:1fr}.page-hero{padding:112px 0 48px}.seo-content-section{padding:50px 0}.page-hero p{font-size:1rem}}
/* Unified public-page hero headers */
.page-hero,.calculator-hero,.gis-hero{background:linear-gradient(135deg,var(--bg-light),var(--bg-white));border-bottom:1px solid var(--border)}
.page-hero h1,.calculator-hero h1,.gis-hero h1{font-size:clamp(2.25rem,5vw,4rem);font-weight:700;letter-spacing:-.035em}
.calculator-hero{padding:145px 0 72px;text-align:left}
.calculator-hero .container{max-width:1080px}
.calculator-hero p{max-width:820px;color:var(--text-muted);font-size:1.08rem}
.gis-hero{padding:145px 0 55px}
@media(max-width:600px){.calculator-hero{padding:112px 0 48px}.gis-hero{padding:112px 0 42px}}

/* SEO support content: useful to people as well as search engines. */
.calculator-seo-support { padding-top: 56px; padding-bottom: 56px; }
.calculator-seo-copy { max-width: 900px; margin: 0 auto; }
.calculator-seo-copy h2 { margin: 0 0 14px; }
.calculator-seo-copy h3 { margin: 28px 0 10px; font-size: 1.08rem; }
.calculator-seo-copy p { max-width: 820px; color: var(--text-muted); line-height: 1.8; }
.calculator-seo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.calculator-seo-links a { display: inline-flex; gap: 7px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--primary); text-decoration: none; background: var(--bg-light); font-weight: 600; }
.calculator-seo-links a:hover { text-decoration: underline; }


/* ==========================================================
   V18.7 RESPONSIVE HEADER + NAVIGATION PATCH
   Fixes the mobile hamburger being hidden by a later
   .mobile-header-actions { display:none } rule.
   ========================================================== */

@media (max-width: 1100px) {
  .header-inner {
    min-width: 0;
  }

  .mobile-header-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 100002;
  }

  .mobile-header-actions .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
    margin: 0;
    gap: 5px;
    flex: 0 0 42px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-header-actions .menu-toggle span {
    display: block !important;
    width: 25px;
    height: 2px;
    flex: 0 0 2px;
    background: var(--text-dark);
    border-radius: 2px;
  }

  html.theme-dark .mobile-header-actions .menu-toggle span {
    background: #f8fafc;
  }

  .mobile-header-actions .theme-toggle {
    display: inline-flex !important;
    flex: 0 0 42px;
  }

  /* Keep the desktop navigation hidden until the hamburger opens it. */
  .nav {
    z-index: 100001;
  }
}

@media (min-width: 1101px) {
  .mobile-header-actions {
    display: none !important;
  }
}
