:root {
  --brand-blue: #0b2f55;
  --brand-blue-dark: #07213b;
  --brand-accent: #4da8ff;
  --bg-alt: #0f3d6d;
  --text: #14202b;
  --text-light: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.25);
  --max-width: 1220px;
  --gradient: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  background: #f8fafc;
}
img { max-width: 100%; height: auto; border-radius: var(--radius); }
.visually-hidden {
  position: absolute;
  width: 1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* --- Header + Hero background --- */
.site-header, .hero.gradient-bg { background-color: #034694; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: .65rem 0;
  box-shadow: none;
}
.logo {
  font-weight: 700; font-size: 1.2rem;
  text-decoration: none; color: #03223b;
  display: flex; align-items: center; gap: .4rem; letter-spacing:.5px;
}
.logo-mark {
  background: var(--brand-accent); color: #03223b;
  padding: .25rem .5rem; border-radius: 4px; font-weight: 800; letter-spacing: 1px;
}

/* --- Primary Nav + Hover Dropdown --- */
.nav {
  list-style: none; margin:0; padding:0;
  display:flex; gap:1.2rem;
}
.nav a { color: #fff; text-decoration: none; font-weight:600; }
.nav a:hover, .nav a:focus { text-decoration: underline; }
.nav .highlight a {
  background: var(--brand-accent); color: #03223b;
  padding:.5rem .9rem; border-radius: var(--radius); font-weight:600;
}

/* Dropdown */
.nav .dropdown { position: relative; }
.nav .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--brand-blue-dark);
  list-style: none; padding: 0.5rem 0; margin: 0;
  border-radius: var(--radius); min-width: 200px; box-shadow: var(--shadow); z-index: 100;
}
.nav .dropdown-menu li a {
  display:block; padding: .5rem 1rem; color: var(--text-light);
  text-decoration:none; white-space: nowrap;
}
.nav .dropdown-menu li a:hover {
  background: var(--brand-accent); color:#03223b;
}
.nav .dropdown:hover .dropdown-menu { display:block; }

/* Menu button (mobile) */
.menu-toggle {
  display:none; background:none; border:2px solid #fff;
  color:#fff; border-radius: var(--radius); padding:.4rem .75rem; font-weight:600;
}

/* --- HERO --- */
.hero { color: #03223b; padding: 4rem 0 3.5rem; }
.hero-grid {
  display:grid; gap:2.5rem;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  align-items:center;
}
.hero-copy h1 {
  margin-top:0; font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height:1.08; color: white;
}
.lead { font-size:32px; max-width: 50ch; color:white; }
.usp-list {
  list-style:none; padding:0; margin:1.2rem 0; display:grid; gap:.5rem;
}
.usp-list li { background: rgba(255,255,255,0.25); padding:.55rem .75rem; border-radius: var(--radius); }
.cta-row { display:flex; flex-wrap: wrap; gap:1rem; margin-top:1.2rem; }
.mini-contact { margin-top:1rem; font-size:.9rem; }
.mini-contact a { color: var(--brand-accent); }

/* --- Buttons --- */
.btn {
  --btn-bg: var(--brand-accent); --btn-color:#03223b;
  cursor:pointer; border:none; font-weight:600; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.85rem 1.25rem; border-radius: var(--radius);
  transition: background .25s, transform .25s; font-size:.95rem;
}
.btn.primary { background: var(--brand-accent); color:#03223b; }
.btn.secondary { background: var(--brand-blue-dark); color:#fff; }
.btn.ghost {
  background:#ff6f00; color:#fff; box-shadow: 0 4px 10px rgba(255,94,98,.3);
  transition: background .3s ease, transform .25s ease, box-shadow .3s ease;
}
.btn.ghost:hover { background:#E55F00; box-shadow: 0 6px 14px rgba(255,94,98,.4); transform: translateY(-2px); }
.btn.small { padding:.6rem .9rem; font-size:.85rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* --- Trust strip --- */
.trust-strip {
  background-color:#034694; color:#cfe9ff; font-size:.9rem;
  padding:.6rem 0; overflow:hidden;
}
.trust-label { font-weight:600; margin-right:1rem; }
.client-logos {
  list-style:none; display:flex; gap:1.8rem; margin:0; padding:0;
  font-weight:500; text-transform:uppercase; letter-spacing:.5px;
}

/* --- Services --- */
.services-section { padding: 3.5rem 0 3rem; }
.section-head h2 { margin-top:0; font-size: clamp(1.8rem, 3.8vw, 2.4rem); }
.services-grid {
  margin-top:2rem; display:grid; gap:1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background:#fff; border:1px solid #e2e8f0; padding:1.05rem 1.05rem 1.2rem;
  border-radius: var(--radius); display:flex; flex-direction:column; gap:.4rem;
  transition: border-color .25s, box-shadow .25s;
}
.service-card h3 { font-size:1.05rem; margin:.15rem 0; }
.service-card a { text-decoration:none; color: var(--brand-blue-dark); }
.service-card:hover { border-color: var(--brand-accent); box-shadow: var(--shadow); }

/* --- Coverage --- */
.coverage-section { background:#ffffff; padding:3.5rem 0 3rem; }
.coverage-grid {
  display:grid; gap:2.4rem; grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  align-items:start;
}
.m25-map {
  background:#fff; padding:1rem; border-radius: var(--radius); text-align:center; color:#061b2c;
}
.m25-map svg { max-width:320px; width:100%; height:auto; }
.ring-outer { fill:none; stroke:#4da8ff; stroke-width:6; opacity:.3; }
.ring-inner { fill:none; stroke:#4da8ff; stroke-width:6; }
.map-text { fill:#fff; font-size:20px; font-weight:600; }
.map-note { font-size:.85rem; font-style:italic; margin-top:.75rem; }

/* --- SLA --- */
.sla-section { background: var(--gradient); color:#03223b; padding:3.2rem 0 3rem; text-align:center; }
.metrics-grid { display:grid; gap:2rem; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); margin-top:1.5rem; }
.metric { text-align:center; }
.metric-value { font-size:2rem; font-weight:700; display:block; }
.metric-label { font-size:.85rem; text-transform:uppercase; letter-spacing:.5px; opacity:.85; }

/* --- Testimonials --- */
.testimonials { background:#071d31; color:#fff; padding:3.4rem 0 3.1rem; position:relative; }
.testimonials h2 { text-align:center; margin-top:0; }
.testimonial-rotator { max-width:780px; margin:1.8rem auto 0; position:relative; }
.testimonial {
  margin:0; opacity:0; position:absolute; inset:0; transition: opacity .7s;
  font-size:1.05rem; line-height:1.55;
}
.testimonial.active { position:relative; opacity:1; }
.testimonial footer { margin-top:.9rem; font-size:.85rem; opacity:.9; }
.testimonial-controls {
  display:flex; gap:.75rem; justify-content:center; margin-top:2rem;
}
.testimonial-controls button {
  background:#0d355a; border:1px solid #2d567c; color:#fff;
  padding:.55rem .85rem; border-radius:50%; cursor:pointer;
}
.testimonial-controls button:hover { background:#144a82; }

/* --- Sustainability --- */
.sustain-section { background:#ffffff; padding:3.2rem 0; }
.sustain-list { list-style:disc; margin:1rem 0 1.2rem 1.25rem; }

/* --- Resource teaser --- */
.resource-teaser { background:#0b2f55; color:#fff; padding:3.4rem 0 3rem; }
.resource-card {
  margin-top:1.7rem; background:#07213b; border:1px solid #15446d;
  padding:1.4rem 1.5rem 1.6rem; border-radius: var(--radius); max-width:640px;
}
.resource-card a { color: var(--brand-accent); }
.resource-card a.btn { color:#03223b; }

/* --- Quote --- */
.quote-section { background:#ffffff; padding:3.5rem 0; }
.quote-grid {
  display:grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap:2.5rem; align-items:start;
}
.quote-form {
  background:#f1f6fb; border:1px solid #d1e1ee;
  padding:1.4rem 1.5rem 1.6rem; border-radius: var(--radius);
  display:grid; gap:1rem;
}
.quote-form label {
  display:grid; font-size:.85rem; font-weight:600; gap:.4rem;
  text-transform:uppercase; letter-spacing:.5px;
}
.quote-form input, .quote-form select {
  padding:.7rem .75rem; border:1px solid #b7c8d6; border-radius: var(--radius);
  background:#fff; font-size:.95rem;
}
.quote-form input:focus, .quote-form select:focus {
  outline:2px solid var(--brand-accent); outline-offset:2px;
}
.form-note { font-size:.8rem; min-height:1.2rem; }

/* --- FAQ --- */
.faq-section { background:white; padding:3.3rem 0; }
.faq-section details {
  border:1px solid #d5e2ed; background:#fff; border-radius: var(--radius);
  margin-bottom:.9rem; padding:.85rem 1rem;
}
.faq-section summary { cursor:pointer; font-weight:600; list-style:none; }
.faq-section summary::-webkit-details-marker { display:none; }
.faq-section details[open] { border-color: var(--brand-accent); }

/* --- Footer --- */
.site-footer {
  background-color: #034694;
  color: #d4e8f9;
  padding: 3rem 0 2rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1.25rem;
}
.site-footer h3, .site-footer h4 { color:#fff; margin-top:0; margin-bottom:.75rem; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin-bottom:.4rem; }
.site-footer a { color:#ffffff; text-decoration:none; transition: opacity .25s, text-decoration .25s; }
.site-footer a:hover { opacity:.85; text-decoration:underline; }
.site-footer .footer-grid div:nth-child(3) ul { columns: 2; column-gap: 2rem; }
.areas-served-list { columns: 2; column-gap: 2rem; }
.copyright {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: .85rem;
  color: #cfe9ff;
}
.back-to-top {
  position: fixed; bottom:1.4rem; right:1.4rem;
  background: var(--brand-accent); color:#03223b; text-decoration:none;
  padding:.55rem .75rem; border-radius: var(--radius); font-weight:600; font-size:.8rem;
  box-shadow: var(--shadow);
}
.back-to-top:hover { background:#6cb8ff; }

/* --- On-Brand Mobile Drawer (fully working) --- */
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }

  /* Drawer panel */
  #mobile-menu {
    position: fixed;
    top: 0;
    right: 0; /* change to left:0 for left drawer */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--brand-blue-dark);
    color: #fff;
    padding: 1.25rem 1rem;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;

    /* animation setup */
    transform: translateX(100%);   /* hidden position (offscreen right) */
    transition: transform 0.35s ease;

    /* always measurable for animation */
    display: block;
  }

  /* key trick — override default display:none on [hidden] */
  #mobile-menu[hidden] {
    display: block;
    transform: translateX(100%);
    pointer-events: none;
    visibility: hidden;
  }

  /* when JS removes hidden attribute, slide it in */
  #mobile-menu:not([hidden]) {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  /* Links */
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .mobile-menu a,
  .mobile-menu button.dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.75rem 0.9rem;
    border-radius: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .mobile-menu a:hover,
  .mobile-menu button.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Dropdown */
  .mobile-menu .dropdown-menu {
    display: none;
    margin-top: 0.2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-menu .dropdown button[aria-expanded="true"] + .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mobile-menu .dropdown-menu a {
    font-size: 0.95rem;
    color: #e6f3ff;
    background: transparent;
    padding: 0.55rem 0.9rem;
  }

  .mobile-menu .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Optional dim overlay (if you add body.menu-open in JS) */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
  }

  /* Footer single column */
  .site-footer .footer-grid div:nth-child(3) ul,
  .areas-served-list { columns: 1; }
  
  /* Close (X) button */
	.menu-close {
	  position: absolute;
	  top: 0.8rem;
	  right: 0.8rem;
	  background: none;
	  border: none;
	  color: #fff;
	  font-size: 1.8rem;
	  font-weight: 700;
	  cursor: pointer;
	  line-height: 1;
	  padding: 0.25rem;
	  opacity: 0.8;
	  transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.menu-close:hover {
	  opacity: 1;
	  transform: scale(1.1);
	}
	/* Drawer header (for close button spacing) */
.menu-header {
  position: initial;
  top: 0;
  background: var(--brand-blue-dark);
  padding: 0.5rem 0 0.8rem;
  margin-bottom: 0.75rem;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
}

/* Close (X) button */
.menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Add slight top padding below header to prevent accidental taps */
.mobile-menu ul {
  padding-top: 0.5rem;
}


}

/* --- Scrollbars --- */
::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background:#0b2f55; }
::-webkit-scrollbar-thumb { background:#164975; border-radius:5px; }
::-webkit-scrollbar-thumb:hover { background:#1d5b91; }

/* --- Brand carousel --- */
/* --- Brand carousel --- */
.brand-carousel {
  text-align: center;
  padding: 60px 0;
  background: #f4f8fb;
  overflow: hidden;
}

.brand-carousel h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #333;
}

.brand-grid {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.brand-grid ul {
  display: grid;
  grid-template-columns: repeat(3, 200px); /* fixed size columns */
  justify-content: center;                 /* centers grid horizontally */
  align-content: center;                   /* centers grid vertically if shorter */
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  transition: opacity 0.8s ease;
}

.brand-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: 120px;
  width: 200px; /* matches the grid column width */
}

.brand-grid img {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.brand-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .brand-grid ul {
    grid-template-columns: repeat(2, 160px);
    grid-template-rows: auto;
    gap: 20px;
  }

  .brand-grid li {
    width: 160px;
  }
}

/* Small enhancements */
.service-card:focus-within { outline:2px solid var(--brand-accent); outline-offset:2px; }

/* --- Enhanced Coverage & Sustainability --- */
.gradient-slice {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  padding: 4rem 0 3.5rem;
}
.coverage-content .icon { font-size: 1.2rem; margin-right: .5rem; }
.coverage-points li {
  display: flex; align-items: center; margin-bottom: .8rem; font-size: 1rem; color: #14202b;
}
.fade-in {
  opacity: 0; transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.gradient-bg-light {
  background: linear-gradient(120deg, #c2e9fb 0%, #e0f3ff 100%);
  padding: 4rem 0;
}
.sustain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 2.5rem;
}
.sustain-copy h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  color: #03223b;
}
.sustain-list li {
  border-radius: var(--radius);
  margin-bottom: .5rem;
}
.sustain-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
