/* ============================================================
   OPTIMUM GEOSPATIAL  –  main.css
   Fonts: Playfair Display (headings) | DM Sans (body) | DM Mono (accents)
   Palette: Burgundy #800020 | Royal Blue #2A52BE | White #FFFFFF
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --burgundy:        #800020;
  --burgundy-dark:   #5c0018;
  --burgundy-light:  #a3002a;
  --royal-blue:      #2A52BE;
  --royal-blue-dark: #1e3d8f;
  --royal-blue-light:#4169d4;
  --white:           #ffffff;
  --off-white:       #f8f8f6;
  --light-gray:      #f0eff0;
  --mid-gray:        #9a9a9a;
  --dark:            #1a1a2e;
  --text:            #2d2d2d;
  --shadow-sm:       0 2px 12px rgba(0,0,0,.08);
  --shadow-md:       0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:       0 20px 60px rgba(0,0,0,.16);
  --radius:          12px;
  --radius-lg:       20px;
  --transition:      .3s cubic-bezier(.4,0,.2,1);
  --font-head:       'Playfair Display', Georgia, serif;
  --font-body:       'DM Sans', system-ui, sans-serif;
  --font-mono:       'DM Mono', monospace;
  --nav-offset:      120px;   /* topbar + navbar combined height (auto-set by JS) */
}



/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ── Typography ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
p  { font-weight: 300; }

.section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: block;
  margin-bottom: .5rem;
}
.section-title { color: var(--dark); }
.section-title span { color: var(--burgundy); }
.section-title.light, .section-title.light span { color: var(--white); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-burgundy {
  background: var(--burgundy);
  color: var(--white);
  border: 2px solid var(--burgundy);
  padding: .6rem 1.6rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .04em;
  transition: var(--transition);
}
.btn-burgundy:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(128,0,32,.35); }

.btn-outline-burgundy {
  background: transparent;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
  padding: .6rem 1.6rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .04em;
  transition: var(--transition);
}
.btn-outline-burgundy:hover { background: var(--burgundy); color: var(--white); transform: translateY(-2px); }

.btn-blue {
  background: var(--royal-blue);
  color: var(--white);
  border: 2px solid var(--royal-blue);
  padding: .6rem 1.6rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .04em;
  transition: var(--transition);
}
.btn-blue:hover { background: var(--royal-blue-dark); border-color: var(--royal-blue-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,82,190,.35); }

/* ── Top Bar ───────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: .45rem 0;
  font-family: var(--font-mono);
}
.topbar a { color: rgba(255,255,255,.75); transition: var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-right a { margin-left: .8rem; font-size: .85rem; }

/* ── Navbar ────────────────────────────────────────────── */
.main-nav {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128,0,32,.1);
  padding: .8rem 0;
  transition: var(--transition);
  z-index: 1040;
}
.main-nav.scrolled { box-shadow: var(--shadow-md); padding: .5rem 0; }

.navbar-brand { display: flex; align-items: center; line-height: 1.1; }
.navbar-logo   {
  height: 3.4rem;        /* 2.75rem × 1.25 */
  max-height: 3.4rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: height var(--transition), max-height var(--transition);
}
.main-nav.scrolled .navbar-logo { height: 2.75rem; max-height: 2.75rem; }
.brand-optimum { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--burgundy); letter-spacing: .06em; }
.brand-geo     { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--royal-blue); letter-spacing: .06em; }

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .04em;
  color: var(--dark) !important;
  padding: .4rem .75rem !important;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--burgundy);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover { color: var(--burgundy) !important; }
.nav-link.active { color: var(--burgundy) !important; }

.dropdown-menu { border: none; box-shadow: var(--shadow-md); border-radius: var(--radius); padding: .5rem; }
.dropdown-item { font-size: .85rem; border-radius: 6px; padding: .5rem .9rem; transition: var(--transition); }
.dropdown-item:hover { background: rgba(128,0,32,.08); color: var(--burgundy); }

.toggler-icon { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.toggler-icon span { display: block; width: 24px; height: 2px; background: var(--dark); transition: var(--transition); border-radius: 2px; }

/* ── Hero Slider ────────────────────────────────────────── */
/* Slider + stats bar share the viewport (minus navbar/topbar above).
   .hero-slider-section is the height controller; the swiper flex-grows
   into the remaining space, the stats bar never shrinks. */
.hero-slider-section {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-offset, 120px));
  min-height: 600px;
  max-height: 900px;
}

.hero-swiper {
  width: 100%;
  flex: 1;          /* takes remaining space after the stats bar */
  min-height: 0;    /* allow flex item to shrink properly */
  height: auto;
  max-height: none;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background image */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.swiper-slide-active .hero-slide-bg { transform: scale(1); }

/* Gradient fallback (no image) */
.hero-slide-bg--gradient {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(42,82,190,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(128,0,32,.3) 0%, transparent 55%),
    linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 45%, #0d1b3e 100%);
  transform: scale(1) !important;
}

/* Overlay */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 1;
}

/* Grid texture */
.hero-slide .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(42,82,190,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,82,190,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Content */
.hero-slide-content {
  position: relative;
  z-index: 3;
  padding-bottom: 2rem;
  width: 100%;
}
.min-vh-slide {
  min-height: 0;     /* let the inner row fill its flex parent naturally */
  height: 100%;
}

/* Label */
.hero-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.9);
  padding: .4rem .9rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  animation: slideUp .7s ease both;
  animation-delay: .3s;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--burgundy);
}

/* Heading */
.hero-slide-heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 1.4rem;
  animation: slideUp .7s ease both;
  animation-delay: .5s;
}

/* Subheading */
.hero-slide-sub {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.75);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 0;
  animation: slideUp .7s ease both;
  animation-delay: .7s;
}

/* CTAs */
.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideUp .7s ease both;
  animation-delay: .9s;
}
.hero-cta-outline {
  border: 2px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 50px;
  padding: .6rem 1.6rem;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .04em;
  transition: var(--transition);
}
.hero-cta-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

/* Slide-up animation */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Navigation arrows */
.hero-swiper-prev,
.hero-swiper-next {
  width: 48px !important;
  height: 48px !important;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(8px);
  color: #fff !important;
  transition: var(--transition) !important;
}
.hero-swiper-prev:hover,
.hero-swiper-next:hover {
  background: var(--burgundy) !important;
  border-color: var(--burgundy) !important;
}
.hero-swiper-prev::after,
.hero-swiper-next::after {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* Pagination dots */
.hero-swiper-pagination { bottom: 1.5rem !important; }
.hero-swiper-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.4);
  opacity: 1;
  transition: var(--transition);
}
.hero-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--burgundy);
  width: 28px;
  border-radius: 4px;
}

/* ── Stats bar ──────────────────────────────────────────── */
.hero-stats-bar {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.1rem 0;
  flex-shrink: 0;     /* never compress below natural height */
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  padding: .4rem 2.5rem;
  flex: 1;
  min-width: 120px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.hero-stat-number {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-top: .25rem;
}

/* Mobile — use small-viewport units to avoid mobile browser chrome shifts */
@media (max-width: 767px) {
  .hero-slider-section {
    height: calc(100svh - var(--nav-offset, 100px));
    min-height: 520px;
    max-height: 760px;
  }
  .hero-swiper {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-slide-heading { font-size: 2rem; }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: .4rem 1rem; min-width: 80px; }
  .hero-stat-number { font-size: 1.5rem; }
  .hero-swiper-prev, .hero-swiper-next { display: none !important; }
  .hero-swiper-pagination { bottom: 1rem !important; }
}

/* ── Section spacing ───────────────────────────────────── */
.section { padding: 3rem 0 6rem; }
.section-sm { padding: 4rem 0; }
.section-dark { background: var(--dark); }
.section-off { background: var(--off-white); }
.section-burgundy { background: var(--burgundy); }

/* ── Service Featured Image ────────────────────────────── */
.service-featured-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.service-featured-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.service-featured-img:hover img { transform: scale(1.02); }

/* Decorative corner accents */
.service-img-accent {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 6px;
  z-index: 1;
}
.service-img-accent--tl {
  top: -10px; left: -10px;
  background: var(--burgundy);
  opacity: .18;
}
.service-img-accent--br {
  bottom: -10px; right: -10px;
  background: var(--royal-blue);
  opacity: .18;
}

/* ── Service Icon Fallback Display ─────────────────────── */
.service-icon-display {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(128,0,32,.18), transparent 65%);
}
.service-icon-large {
  font-size: 5rem;
  color: var(--burgundy);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px rgba(128,0,32,.45));
  display: block;
  margin-bottom: 1.2rem;
}
.service-icon-label {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

/* ── Services ────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  height: 100%;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--burgundy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(128,0,32,.12); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(128,0,32,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--burgundy);
  margin-bottom: 1.3rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--burgundy); color: var(--white); }
.service-card h4 { font-size: 1.1rem; margin-bottom: .8rem; }
.service-card ul { padding-left: 1.1rem; font-size: .88rem; color: #555; }
.service-card ul li { margin-bottom: .3rem; }

/* ── Industries ────────────────────────────────────────── */
.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50px;
  padding: .65rem 1.2rem;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}
.industry-chip i { color: var(--royal-blue); font-size: 1rem; }
.industry-chip:hover { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(128,0,32,.25); }
.industry-chip:hover i { color: var(--white); }

/* ── Stats Banner ──────────────────────────────────────── */
.stats-section { background: var(--burgundy); padding: 4rem 0; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-number sup { font-size: 1.5rem; }
.stat-label { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: .4rem; }
.stat-divider { width: 1px; background: rgba(255,255,255,.2); align-self: stretch; margin: auto 0; }

/* ── Why Choose Us ─────────────────────────────────────── */
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.why-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(42,82,190,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--royal-blue);
  margin: 0 auto 1.2rem;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--royal-blue); color: var(--white); transform: scale(1.1); }
.why-card h5 { font-size: 1rem; margin-bottom: .6rem; }
.why-card p { font-size: .88rem; color: #666; }

/* ── Testimonials ──────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(128,0,32,.12);
  position: absolute;
  top: -1rem; left: 1.5rem;
  line-height: 1;
}
.testimonial-stars { color: #f4a800; font-size: .85rem; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: #555; font-size: .93rem; margin-bottom: 1.2rem; }
.testimonial-author strong { font-size: .9rem; }
.testimonial-author span { font-size: .8rem; color: var(--mid-gray); display: block; }

/* ── About Page ────────────────────────────────────────── */
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--burgundy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.value-card h5 { font-size: 1rem; margin-bottom: .4rem; }
.value-card p { font-size: .88rem; color: #666; margin: 0; }
.value-icon { font-size: 1.4rem; color: var(--burgundy); margin-bottom: .6rem; }

/* ── Director Card ─────────────────────────────────────── */
.director-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.director-accent { position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: var(--burgundy); border-radius: 0 0 0 100%; opacity: .5; }
.director-blue   { position: absolute; bottom: 0; left: 0; width: 80px; height: 80px; background: var(--royal-blue); border-radius: 0 100% 0 0; opacity: .5; }

/* ── Contact Form ──────────────────────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}
.form-label { font-size: .85rem; font-weight: 500; color: var(--dark); letter-spacing: .03em; }
.form-control, .form-select {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(128,0,32,.12);
  outline: none;
}
.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}
.contact-info-item {
  display: flex; gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-item i {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(128,0,32,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy);
  font-size: .9rem;
  flex-shrink: 0;
}
.contact-info-item strong { color: var(--white); font-size: .9rem; display: block; margin-bottom: .2rem; }
.contact-info-item span, .contact-info-item a { color: rgba(255,255,255,.65); font-size: .88rem; }

/* ── Page Hero / Banner ────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before { display: none; }

/* Suppress AOS on page-hero children — no animation, no artefacts */
.page-hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.page-hero .container  { position: relative; z-index: 2; }
.page-hero .section-label { display: none; }
.page-hero h1          { font-size: 2.4rem; font-weight: 700; color: var(--white); margin: 0 0 .4rem; line-height: 1.2; }
.page-hero h1 span     { color: var(--burgundy); }
.page-hero .breadcrumb { margin: 0; padding: 0; background: none; }
.page-hero .breadcrumb-item            { color: rgba(255,255,255,.5); font-size: .8rem; }
.page-hero .breadcrumb-item.active     { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.25); }
.page-hero .mt-2       { margin-top: .35rem !important; }

/* ── Technology Grid ───────────────────────────────────── */
.tech-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tech-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(128,0,32,.12); }
.tech-item i { font-size: 2rem; color: var(--royal-blue); margin-bottom: .8rem; display: block; }
.tech-item h6 { font-size: .9rem; margin: 0; }

/* ── Featured Project Cards ────────────────────────────── */
.project-featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-featured-img {
  position: relative; height: 280px; overflow: hidden; background: var(--dark);
}
.project-featured-img img { width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.4,0,.2,1); }
.project-featured-card:hover .project-featured-img img { transform: scale(1.06); }
.project-featured-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a1a2e,#0d1b3e); }
.project-featured-placeholder i { font-size:4rem;color:rgba(128,0,32,.35); }
.project-featured-overlay { position:absolute;top:.85rem;left:.85rem;display:flex;flex-direction:column;gap:.4rem;align-items:flex-start; }
.project-featured-badge { background:rgba(244,168,0,.92);color:#fff;font-size:.7rem;font-family:var(--font-mono);letter-spacing:.07em;padding:.25rem .7rem;border-radius:50px; }
.project-featured-body { padding:1.8rem;flex:1; }
.project-featured-body h3 { font-size:1.25rem;margin-bottom:.5rem; }
.project-client { font-family:var(--font-mono);font-size:.74rem;color:var(--royal-blue);margin-bottom:.7rem;letter-spacing:.04em; }
.project-date   { font-size:.78rem;color:#bbb;margin-top:.8rem; }
.project-featured-body p { font-size:.9rem;color:#666; }

/* ── Project Card Image Placeholder ──────────────────────*/
.project-img-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--dark),#1e1e3f); }
.project-img-placeholder i { font-size:2.5rem;color:rgba(128,0,32,.3); }

/* ── Project Cards ─────────────────────────────────────── */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img { height: 200px; background: var(--light-gray); overflow: hidden; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-cat { background: var(--burgundy); color: var(--white); font-size: .72rem; font-family: var(--font-mono); letter-spacing: .1em; padding: .25rem .7rem; border-radius: 50px; display: inline-block; }
.project-body { padding: 1.5rem; }
.project-body h5 { font-size: 1rem; margin-bottom: .5rem; }
.project-body p { font-size: .85rem; color: #666; margin: 0; }

/* ── Blog Cards ────────────────────────────────────────── */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img { height: 180px; overflow: hidden; background: var(--light-gray); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-family: var(--font-mono); font-size: .75rem; color: var(--mid-gray); margin-bottom: .7rem; }
.blog-body h5 { font-size: 1rem; margin-bottom: .6rem; flex: 1; }
.blog-read { font-size: .85rem; color: var(--burgundy); font-weight: 500; margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; transition: var(--transition); }
.blog-read:hover { gap: .8rem; }

/* ── CTA Banner ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-section::after {
  content: '';
  position: absolute;
  left: -50px; bottom: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(42,82,190,.15);
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.75); }
.btn-white { background: var(--white); color: var(--burgundy); border: 2px solid var(--white); padding: .7rem 2rem; border-radius: 50px; font-weight: 600; font-size: .9rem; transition: var(--transition); }
.btn-white:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); }
.footer-top { padding: 5rem 0 3rem; }
.footer-brand { display: flex; flex-direction: column; }
.footer-logo  { height: 40px; width: auto; max-width: 160px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; display: block; }
.footer-brand .brand-optimum { font-size: 1.4rem; color: var(--burgundy); }
.footer-brand .brand-geo { font-size: 1.4rem; color: var(--royal-blue); }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); max-width: 280px; margin-top: .5rem; }
.footer-heading { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: .7rem; }
.footer-contact i { color: var(--burgundy); width: 16px; flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); font-size: .85rem; transition: var(--transition); margin-right: .5rem; }
.footer-socials a:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.2rem 0; font-size: .82rem; color: rgba(255,255,255,.35); }
.footer-admin-link a { color: rgba(255,255,255,.2); transition: var(--transition); font-family: var(--font-mono); font-size: .78rem; }
.footer-admin-link a:hover { color: rgba(255,255,255,.5); }

/* ── Alert / Flash messages ────────────────────────────── */
.alert-success-custom { background: rgba(0,150,80,.08); border: 1px solid rgba(0,150,80,.3); color: #006635; border-radius: var(--radius); padding: 1rem 1.5rem; }
.alert-error-custom   { background: rgba(128,0,32,.08); border: 1px solid rgba(128,0,32,.3); color: var(--burgundy); border-radius: var(--radius); padding: 1rem 1.5rem; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 5rem 0; }
  .hero-ring { width: 300px; height: 300px; }
  .hero-ring::before { width: 240px; height: 240px; }
  .hero-visual { margin-top: 3rem; }
  .stat-divider { display: none; }

  /* Navbar buttons on mobile — compact, full-width, normal weight */
  .navbar-collapse .btn-burgundy,
  .navbar-collapse .btn-blue {
    display: block;
    width: 100%;
    text-align: center;
    padding: .5rem 1rem;
    font-size: .88rem;
    border-radius: 8px;
    margin-top: .25rem;
    box-shadow: none !important;
    transform: none !important;
  }
  /* Remove the extra left margin added on desktop */
  .navbar-collapse .nav-item.ms-lg-2 { margin-left: 0 !important; }
  .navbar-collapse .nav-item.ms-lg-1 { margin-left: 0 !important; }
}
@media (max-width: 767px) {
  .section { padding: 4rem 0; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-number { font-size: 1.7rem; }
  .topbar .topbar-left { display: none; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
}