/* style.css (clean, valid, de-duplicated) */
html, body {
  width: 100%;
  overflow-x: hidden;
}

:root {
  --bg: #0b1824;
  --bg-alt: #121f2d;
  --accent: #1abc9c;
  --accent-soft: rgba(26, 188, 156, 0.15);
  --accent-strong: #16a085;
  --text: #ecf0f1;
  --muted: #95a5a6;
  --danger: #e74c3c;
  --card-border: #223245;
  --text-light: #95a5a6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2a3d 0, #020711 70%);
  color: var(--text);
}

/* =========================
   Layout
   ========================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================
   Header / nav
   ========================= */
.site-header {
  background: rgba(2, 10, 25, 0.95);
  border-bottom: 1px solid #1f3147;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.logo-group,
.logo-group a,
.logo-group img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.logo-group img {
    display: block;
}


.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Global link style (pill) */
a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.9rem;
  color: var(--accent);
  background: rgba(26, 188, 156, 0.08);
  border: 1px solid rgba(26, 188, 156, 0.25);
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  background: var(--accent);
  color: #0a1a1f;
  border-color: var(--accent);
}

/* Nav links as clean text */
.nav-links a {
  display: inline;
  padding: 10 !important;
  margin: 10 !important;
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent) !important;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.nav-user {
    margin-left: 12px;
    font-size: 0.85rem;
    color: #95a5a6;
}
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.nav-dropdown-toggle::after {
    content: "▾";
    font-size: 0.75rem;
    opacity: 0.85;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #12202d;
    border: 1px solid #223245;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    color: #ecf0f1;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

/* Old mobile nav block replaced by hamburger menu v43 — see end of file */


/* =========================
   Hero
   ========================= */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  align-items: center;
}

.hero-text {
  flex: 1 1 520px;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 2rem;
  margin: 0 0 10px;
}

.hero-text p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 620px;
}

.hero-buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Keep banner compact */
.hero-banner{
  flex: 0 1 420px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-banner img{
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;      /* make it a square */
  height: auto;             /* ignored when aspect-ratio controls height */
  object-fit: cover;        /* fill the square */
  object-position: center;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  display: block;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.btn.primary {
  background: var(--accent);
  color: #021019;
}

.btn.ghost {
  border-color: #3c4b5e;
  color: var(--muted);
}

.btn:hover {
  background: var(--accent-strong);
  color: #021019;
  transform: translateY(-1px);
}

/* =========================
   Intro two-column layout (YOUR missing piece)
   ========================= */
.feature-section {
  display: grid;
  grid-template-columns: 60% 40%; /* use % to avoid any parser weirdness */
  gap: 40px;
  align-items: start;
  margin-top: 10px;
}

.feature-section > * {
  min-width: 0;
}

/* =========================
   Cards / sections
   ========================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.card {
  background: rgba(4, 13, 28, 0.95);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================
   Forms
   ========================= */
form { margin-top: 16px; }

label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

input[type="text"],
input[type="date"],
input[type="file"],
select {
  width: 100%;
  max-width: 380px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2d3e52;
  background: #071320;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

input[type="file"] { padding: 6px; }

button,
input[type="submit"] {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #021019;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 4px;
}

button:hover,
input[type="submit"]:hover {
  background: var(--accent-strong);
}

/* =========================
   Analysis cards
   ========================= */
.analysis-card {
  background: rgba(4, 13, 28, 0.95);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.header-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.stats {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.thumbs img {
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid #2c3d50;
}

small.caption {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 2px;
  color: var(--muted);
}

/* =========================
   NDVI legend layout
   ========================= */
.ndvi-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.ndvi-row img {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #2c3d50;
}

.legend-box {
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 260px;
  color: var(--muted);
}

.color-bar {
  width: 100%;
  height: 14px;
  border: 1px solid #555;
  margin: 4px 0 8px;
  border-radius: 999px;
}

.color-bar-ndvi {
  background: linear-gradient(to right, #000000, #004d1a, #00ff66);
}

.color-bar-delta {
  background: linear-gradient(to right, #e74c3c, #f1c40f, #2ecc71);
}

/* =========================
   Banner slider (if you use it elsewhere)
   ========================= */
.banner-slider {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.banner-slider .slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
}

.banner-slider .slide {
  min-width: 100%;
  height: 100%;
}

.banner-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  bottom: 30px;
  left: 40px;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.banner-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.banner-slider .prev { left: 10px; }
.banner-slider .next { right: 10px; }

/* =========================
   Pixel tooltip
   ========================= */
.pixel-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.85);
  color: #ecf0f1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 2000;
  max-width: 220px;
  border: 1px solid #2ecc71;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hover-numeric {
  cursor: crosshair;
  image-rendering: pixelated;
}

/* =========================
   Image Compare Slider (works with CSS vars OR inline backgrounds)
   ========================= */
.image-compare-container{
  --before: none;
  --after: none;
  --pos: 50%;

  position: relative;
  width: 100%;
  max-width: 520px;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.image-compare-container .compare-base,
.image-compare-container .compare-overlay{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* If you set --before/--after in HTML, these apply.
   If you set background-image inline on the divs, inline will override. */
.image-compare-container .compare-base{
  background-image: var(--before);
}
.image-compare-container .compare-overlay{
  background-image: var(--after);
  width: var(--pos);
  overflow: hidden;
}

.image-compare-container .slider-handle{
  position: absolute;
  top: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: rgba(255,255,255,.95);
  z-index: 5;
}

.image-compare-container .slider-handle::after{
  content:"";
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.image-compare-container .slider-handle::before{
  content:"⇆";
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 18px;
  color: #111;
  z-index: 6;
}

.compare-caption{
  text-align:center;
  margin-top: .6rem;
  font-weight: 600;
}

/* =========================
   Tables
   ========================= */
.table-basic {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-basic th,
.table-basic td {
  border-bottom: 1px solid #223245;
  padding: 6px 8px;
  text-align: left;
}

.table-basic th {
  background: #101a25;
  color: #ecf0f1;
  font-weight: 500;
}

/* =========================
   Footer (single, final version)
   ========================= */
.site-footer {
  background: #020812;
  border-top: 1px solid #1a2a3a;
  padding: 24px 0;
  margin-top: 40px;
  color: #cdd2d8;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left { flex: 1; text-align: left; color: #a7c7d9; }
.footer-center { flex: 1; text-align: center; }
.footer-right { flex: 1; text-align: right; }

.support-title {
  font-size: 0.9rem;
  color: #6cb0d6;
  margin-bottom: 6px;
}

.support-logos {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.support-logos img {
  height: 32px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.support-logos img:hover { opacity: 1; }

.site-footer a.no-style {
  all: unset;
  display: inline;
  cursor: pointer;
  color: var(--accent);
}
.site-footer a.no-style:hover { text-decoration: underline; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .feature-section { grid-template-columns: 1fr; }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-banner {
    justify-content: flex-start;
    flex: 0 1 auto;
    width: 100%;
  }

  .hero-banner img {
    max-width: 520px;
    max-height: 320px;
  }

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

  .footer-left, .footer-center, .footer-right {
    text-align: center;
  }
}

@media (max-width: 600px) {
  body { font-size: 14px; }

  .hero-text h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .container { padding: 16px; }
}
/* ===== Image Compare (no drifting) ===== */
.image-compare-container{
  --pos: 50%;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  box-sizing: border-box;
}


/* two image layers pinned */
/*.image-compare-container .compare-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    
  object-position: center;
  display: block;
}*/

.image-compare-container .compare-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* keep full image, no cropping */
  object-position: center;
  display: block;
}

/* clip the top image only */
.image-compare-container .compare-img.overlay{
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* ===== Fix slider line + knob alignment ===== */
.image-compare-container .slider-handle{
  position: absolute;
  top: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 4px;                 /* the line itself */
  height: 100%;
  background: rgba(255,255,255,.95);
  z-index: 10;
}

/* knob sits centered on the 4px line */
.image-compare-container .slider-handle::after{
  content:"⇆";
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  color: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  font-size: 18px;
}

/* remove the old ::before line if you had it */
.image-compare-container .slider-handle::before{
  content: none !important;
}



/*Flood watch*/

.image-compare-container-flood {
  position: relative;
  width: 700px;
  height: 700px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #cfd8dc;
  cursor: ew-resize;
  background: #000;
  line-height: 0;
}

.image-compare-container-flood .compare-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* keep full image, no cropping */
  object-position: center;
  display: block;
}


/* clip the top image only */
.image-compare-container-flood .compare-img.overlay{
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* ===== Fix slider line + knob alignment ===== */
.image-compare-container-flood .slider-handle{
  position: absolute;
  top: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 4px;                 /* the line itself */
  height: 100%;
  background: rgba(255,255,255,.95);
  z-index: 10;
}

/* knob sits centered on the 4px line */
.image-compare-container-flood .slider-handle::after{
  content:"⇆";
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  color: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  font-size: 18px;
}

/* remove the old ::before line if you had it */
.image-compare-container-flood .slider-handle::before{
  content: none !important;
}

.image-compare-container-flood,
.image-compare-container-flood * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.image-compare-container-flood img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.image-compare-container-flood .slider-handle,
.image-compare-container-flood .slider-handle::after {
  pointer-events: none;
}

.image-compare-container-flood.fw-slider-with-mask .after-layer{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.image-compare-container-flood.fw-slider-with-mask .compare-img.base{
  z-index: 1;
}

.image-compare-container-flood.fw-slider-with-mask .compare-img.flood-mask{
  z-index: 2;
  pointer-events: none;
}

.image-compare-container-flood.fw-slider-with-mask .compare-img.overlay{
  z-index: 3;
}

.image-compare-container-flood.fw-slider-with-mask.fw-mask-off .compare-img.flood-mask{
  display: none;
}


.fw-overlay-viewer {
  position: relative;
  width: 700px;
  height: 700px;
  max-width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.fw-overlay-viewer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fw-overlay-mask {
  z-index: 2;
  pointer-events: none;
}

.fw-overlay-base {
  z-index: 1;
}

.fw-overlay-viewer.fw-overlay-off .fw-overlay-mask {
  display: none;
}

.fw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

/*For flooding slider*/
.fw-compare-block {
    position: relative;
}

.fw-compare-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.fw-label-left {
    float: left;
}

.fw-label-right {
    float: right;
    text-align: right;
}

.fw-image-compare {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #111;
    clear: both;
}

.fw-image-compare img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.fw-img-base {
    position: relative;
    z-index: 1;
}

.fw-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.fw-img-overlay {
    display: block;
    width: 100%;
    height: auto;
}

.fw-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.fw-slider-handle {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ccc;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fw-slider-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

@media (max-width: 768px) {
    .fw-compare-label {
        font-size: 0.8rem;
    }

    .fw-slider-handle {
        width: 32px;
        height: 32px;
    }
}

.video-center-block {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.video-center-block h2 {
  margin-bottom: 0.75rem;
}

.video-center-block p {
  margin: 0 auto 1.5rem;
  max-width: 760px;
  color: var(--text-light);
}

.video-wrap.large {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.video-wrap.large iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   NEW STYLES v39 — Solutions-first redesign
   ========================= */

/* Eyebrow label */
.eo-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

/* Section header (centred intro) */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-header h2 { font-size: 1.8rem; margin: 0 0 12px; }
.section-header p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* Alternate section background */
.eo-section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

/* =========================
   HOMEPAGE HERO
   ========================= */
.eo-hero {
  padding: 60px 0 40px;
}
.eo-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eo-hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 16px;
}
.eo-hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 24px;
}
.eo-hero-visual .compare-caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* =========================
   SOLUTION CARDS (homepage grid)
   ========================= */
/* 2x2 grid on desktop, 1 col on mobile */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* Override global a{} styles — cards must not look like pill links */
.solution-card {
  display: block;
  background: rgba(4, 13, 28, 0.95) !important;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid var(--card-border) !important;
  text-decoration: none !important;
  color: var(--text) !important;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
}
/* Override global a:hover{} — keep background dark on hover */
.solution-card:hover {
  background: rgba(4, 13, 28, 0.95) !important;
  border-color: var(--accent) !important;
  color: var(--text) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
/* Featured insurance card — slightly elevated treatment */
.solution-card--insurance {
  border-top: 3px solid #e67e22;
  background: rgba(230, 126, 34, 0.04) !important;
}
.solution-card--insurance:hover {
  background: rgba(230, 126, 34, 0.07) !important;
  border-color: #e67e22 !important;
}
.solution-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.solution-card h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--text);
}
.solution-who {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 600;
}
.solution-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
}
.solution-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
/* Accent top borders per sector */
.solution-card--flood   { border-top: 3px solid #3498db; }
.solution-card--agri    { border-top: 3px solid #2ecc71; }
.solution-card--ngo     { border-top: 3px solid #9b59b6; }

/* =========================
   CARD ICON
   ========================= */
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

/* =========================
   DEMO TOOLS GRID
   ========================= */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.demo-card {
  background: rgba(4, 13, 28, 0.95);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  padding: 20px;
  position: relative;
}
.demo-badge {
  display: inline-block;
  background: var(--accent);
  color: #021019;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.demo-visual {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  height: 180px;
}
.demo-visual .image-compare-container {
  height: 180px;
}
.demo-visual .compare-img {
  height: 180px;
  object-fit: cover;
}
.demo-visual--index {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  height: 180px;
}
.index-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px;
}
.index-chip {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.demo-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.demo-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================
   SERVICES (homepage section)
   ========================= */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.service-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
  line-height: 1;
}
.service-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}
.service-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.services-side {
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-block {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 360px;
}
.quote-block p {
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin: 0 0 12px;
}
.quote-block span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   CTA SECTION (homepage bottom)
   ========================= */
.eo-cta-section {
  background: linear-gradient(135deg, rgba(26,188,156,0.08) 0%, rgba(26,188,156,0.03) 100%);
  border-top: 1px solid rgba(26,188,156,0.2);
}
.eo-cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.eo-cta-inner h2 { font-size: 1.8rem; margin: 0 0 14px; }
.eo-cta-inner p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* =========================
   SOLUTION PAGE HEROES
   ========================= */
.solution-hero {
  padding: 72px 0 56px;
  border-bottom: 3px solid var(--card-border);
  background-size: cover;
  background-position: center;
  position: relative;
}
.solution-hero .container { max-width: 800px; }
.solution-hero h1 { font-size: 2rem; line-height: 1.3; margin: 8px 0 16px; }
.solution-hero .eo-hero-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }

/* Sector hero banners — background image + dark overlay */
.solution-hero--flood {
  border-bottom-color: #3498db;
  background-image:
    linear-gradient(to right, rgba(11,24,36,0.90) 0%, rgba(11,24,36,0.60) 100%),
    url('images/flood_aerial_submerged_town.jpg');
}
.solution-hero--agri {
  border-bottom-color: #2ecc71;
  background-image:
    linear-gradient(to right, rgba(11,24,36,0.88) 0%, rgba(11,24,36,0.55) 100%),
    url('images/agriculture_aerial_terraced.jpg');
  background-position: center 40%;
}
.solution-hero--insurance {
  border-bottom-color: #e67e22;
  background-image:
    linear-gradient(to right, rgba(11,24,36,0.90) 0%, rgba(11,24,36,0.65) 100%),
    url('images/wildfire_hillside_night.jpg');
  background-position: center 30%;
}
.solution-hero--ngo {
  border-bottom-color: #9b59b6;
  background-image:
    linear-gradient(to right, rgba(11,24,36,0.88) 0%, rgba(11,24,36,0.60) 100%),
    url('images/disaster_rescue_workers.jpg');
}
.solution-hero--services {
  border-bottom-color: var(--accent);
  background-image:
    linear-gradient(to right, rgba(11,24,36,0.88) 0%, rgba(11,24,36,0.55) 100%),
    url('images/drone_aerial_survey.jpg');
  background-position: center 60%;
}
.solution-hero--contact   { border-bottom-color: var(--accent); }

/* Bullet list */
.eo-list {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}
.eo-list li { margin-bottom: 4px; }

/* =========================
   CASE STUDY PLACEHOLDER
   ========================= */
.case-study-placeholder {
  background: rgba(4, 13, 28, 0.8);
  border: 1px dashed var(--card-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.case-study-label {
  display: inline-block;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.case-study-placeholder h2 { font-size: 1.3rem; margin: 0 0 10px; }
.case-study-placeholder p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* =========================
   SERVICES PAGE
   ========================= */
.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: rgba(4, 13, 28, 0.95);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  padding: 28px 24px;
}
.service-card--primary {
  border-color: var(--accent);
  background: rgba(26,188,156,0.04);
}
.service-card-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.service-card h3 { font-size: 1.2rem; margin: 0 0 6px; }
.service-best-for {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.service-card .eo-list { margin-top: 0; }

/* Process steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.process-num {
  min-width: 40px;
  height: 40px;
  background: var(--accent);
  color: #021019;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.process-step h3 { font-size: 1rem; margin: 0 0 4px; }
.process-step p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.55; }

/* =========================
   CONTACT PAGE
   ========================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.contact-form-wrap { width: 100%; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}
.required { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2d3e52;
  background: #071320;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; line-height: 1.5; }
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-info-block {
  background: rgba(4,13,28,0.95);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  padding: 20px;
}
.contact-info-block h3 { font-size: 1rem; margin: 0 0 12px; }
.contact-info-block p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.contact-info-block a { color: var(--accent); }
.contact-success {
  text-align: center;
  padding: 60px 20px;
  background: rgba(26,188,156,0.05);
  border: 1px solid var(--accent);
  border-radius: 16px;
}
.contact-success h2 { margin: 10px 0 10px; }
.contact-success p { color: var(--muted); }
.contact-error {
  background: rgba(231,76,60,0.1);
  border: 1px solid var(--danger);
  color: #f1948a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE — new sections
   ========================= */
@media (max-width: 768px) {
  .eo-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .eo-hero-text h1 { font-size: 1.6rem; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { background: rgba(4,13,28,0.95) !important; }
  .demo-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .services-cards { grid-template-columns: 1fr; }
}

/* Hot topic badge on solution cards */
.solution-hot-badge {
  display: inline-block;
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid rgba(230, 126, 34, 0.5);
  color: #e67e22;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* =========================
   FOOTER — recentred v40
   ========================= */
.footer-inner-new {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner-new p {
  margin: 0;
  font-size: 0.88rem;
  color: #a7c7d9;
}
.footer-inner-new .supporter-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-inner-new img {
  opacity: 0.8;
  filter: brightness(1.1);
}
@media (max-width: 600px) {
  .footer-inner-new {
    flex-direction: column;
    text-align: center;
  }
}

/* Footer logo link — clean, no pill border */
a.footer-logo-link,
a.footer-logo-link:hover {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-block !important;
  opacity: 1;
}
a.footer-logo-link:hover img {
  opacity: 0.85;
  transition: opacity 0.2s;
}

/* =========================
   HAMBURGER MENU (mobile) v43
   ========================= */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff !important;
    border-radius: 2px;
    border: none !important;
    transition: transform 0.25s, opacity 0.2s;
}
.nav-hamburger.nav-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.nav-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.nav-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-hamburger { display: flex !important; }

    /* Nav hidden by default, shown when .nav-open toggled by JS */
    #navLinks {
        display: none !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding: 12px 0 8px;
        border-top: 1px solid #1f3147;
        margin-top: 8px;
    }
    #navLinks.nav-open {
        display: flex !important;
    }

    /* Each top-level nav item full width */
    #navLinks > a,
    #navLinks > .nav-dropdown {
        width: 100%;
        padding: 10px 4px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: block !important;
    }

    /* Dropdown menus: hidden by default, toggled via JS */
    #navLinks .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        border-radius: 8px;
        margin-top: 4px;
        box-shadow: none;
        border: 1px solid #1f3147;
        min-width: 100%;
    }
    #navLinks .nav-dropdown-menu.mobile-open {
        display: block !important;
    }
    #navLinks .nav-dropdown-menu a {
        padding: 10px 16px;
        font-size: 0.9rem;
        display: block !important;
    }

    /* Request a Demo button */
    #navLinks > a.btn {
        margin-top: 8px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        display: block !important;
    }

    /* Reset desktop dropdown padding */
    .nav-dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Desktop hover-open: disable on mobile */
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none !important;
    }
    #navLinks .nav-dropdown-menu.mobile-open {
        display: block !important;
    }

    /* Hide hamburger on desktop handled by default display:none */
}

/* =========================
   PHOTO STRIP — 3-col image gallery on solution pages
   ========================= */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.photo-strip__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}
.photo-strip__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.photo-strip__item:hover img {
  transform: scale(1.04);
}
.photo-strip__item figcaption {
  padding: 10px 14px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* =========================
   INDEX SECTOR PHOTO STRIP
   ========================= */
.index-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 240px;
  overflow: hidden;
}
.ips-item {
  position: relative;
  overflow: hidden;
  display: block;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.ips-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.65) saturate(0.9);
}
.ips-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.5) saturate(1.1);
}
.ips-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 16px;
  background: linear-gradient(to top, rgba(11,24,36,0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  transition: padding 0.3s ease;
}
.ips-item:hover .ips-label {
  padding-bottom: 22px;
  color: var(--accent);
}
@media (max-width: 768px) {
  .index-photo-strip {
    grid-template-columns: repeat(2, 1fr);
    height: 320px;
  }
}
@media (max-width: 480px) {
  .index-photo-strip {
    grid-template-columns: 1fr 1fr;
    height: 280px;
  }
}
