/* ========== ROOT VARIABLES ========== */
:root {
  --bg:#ffffff;
  --card:#f6f6f6;
  --line:#dddddd;
  --band: #ededed;
  --text:#000000;
  --muted:#444444;
  --brand:#0057ff;
  --accent:#0056b3;
  --radius:14px;
  --shadow:0 4px 16px rgba(0,0,0,.12);
  --max:1200px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
}



/* ========== RESET / BASE ========== */
* { box-sizing:border-box; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  font: 16px/1.6 'Montserrat', sans-serif;
  color: var(--text);
  background: url("background1.png") center center / cover no-repeat fixed;
}

a { color:var(--brand); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; display:block; }
.container { width:min(100% - 2rem, var(--max)); margin-inline:auto; }

/* ========== TOP BANNER ========== */
.top-banner {
  background-color: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

.top-banner-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
  gap: 1rem;
  .tb-left  { margin-left: -30rem;  }   /* moves it closer to edge */
  .tb-right { margin-right: -30rem; }   /* moves it closer to edge */
}

.tb-left   { justify-self: start; }
.tb-center { justify-self: center; text-align: center; }
.tb-right  { justify-self: end; text-align: right; }

/* links inside the banner */
.top-banner a { color:#fff; text-decoration: underline; }
.top-banner a:hover { text-decoration: none; }

/* Responsive: stack on small screens */
@media (max-width: 700px) {
  .top-banner-grid {
    grid-template-columns: 1fr;      /* single column */
    row-gap: .25rem;
  }
  .tb-left, .tb-center, .tb-right {
    justify-self: center;             /* center all when stacked */
    text-align: center;
  }
}


/* ========== HEADER & NAVIGATION ========== */
header {
  position:sticky;
  top:0;
  z-index:10;
  background:#1e1e1e;
  border-bottom:1px solid var(--line);
}
.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.5rem 0;
}
/* Moves nav words slightly lower to align with logo */
.topbar nav a {
  position: relative;
  top: 10px;          /* nudges each link down */
}
/* Lift the Contact Us button slightly */
.topbar .btn.brand {
  position: relative;
  top: -3px;       /* ⬅ try -3px to -6px depending on what looks best */
}




.brand {
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight:800;
  letter-spacing:.2px;
}
.brand-logo {
  height:150px;
  width:auto;
  display:block;
}
.brand-name {
  font-size:0.0rem;
  font-weight:900;
  letter-spacing:.3px;
  margin-left:1rem;
  white-space:nowrap;
}
nav ul {
  display:flex;
  gap:1rem;
  list-style:none;
  margin:0;
  padding:0;
}
nav a {
  color: #ffffff;            /* white text */
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}
nav a:hover {
  color: #d0d0d0;            /* lighter gray when hovered */
}

nav a:hover { color:var(--brand); }

/* ========== BUTTONS ========== */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.7rem 1rem;
  border-radius:8px;
  border:1px solid #d0d6e0;
  background:#fff;
  color:#000;
  font-weight:700;
  box-shadow:var(--shadow);
}
.btn.brand {
  background:var(--brand);
  color:#ffffff;
  border-color:transparent;
}
.btn.brand:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 87, 255, 0.4);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}


/* ========== SECTIONS ========== */
section { padding:3rem 0; }
.section-head { margin-bottom:1rem; }
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.2em;
  color:var(--brand);
  font-weight:800;
  font-size:.82rem;
}
h2 { font-size:clamp(1.4rem,1.6vw + 1rem,2.2rem); margin:.2rem 0; }
.muted { color:var(--muted); }
/* ===== Logo Wall (6-up) ===== */
.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-card {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 100px;
}
/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.tcard figure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
}

.tcard img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 9999px;
  border: 2px solid var(--brand);
}

.t-name { margin: 0; font-weight: 800; }
.t-role { margin: .15rem 0 .6rem; color: var(--muted); font-size: .95rem; }

.tcard blockquote {
  margin: 0;
  line-height: 1.6;
  position: relative;
  padding-left: .9rem;
  border-left: 3px solid var(--brand);
  color: var(--text);
  /* For dark footers, override color where needed */
}

/* Responsive */
@media (max-width: 1000px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .testimonials { grid-template-columns: 1fr; } }


/* Keep logos tidy: scale without distortion */
.logo-card img {
  max-width: 100%;
  max-height: 44px;        /* adjust if you want them taller */
  object-fit: contain;
  filter: grayscale(100%) opacity(.85);
  transition: filter .2s ease, transform .2s ease;
}

.logo-card:hover img {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-1px);
}

/* Responsive: 3 columns tablet, 2 on phones */
@media (max-width: 1000px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
}
/* === Dropdown menu === */
.has-submenu { position: relative; }

/* ===== Dropdown Menu (vertical list) ===== */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;                 /* positions it below the parent link */
  left: -185%;
  display: flex;
  flex-direction: column;    /* ⬅ makes the list go DOWN */
  min-width: 220px;
  margin: .3rem 0 0;
  padding: .5rem 0;
  background: #ffffff;       /* dropdown background */
  border: 1px solid #d0d6e0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 20;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu li {
  width: 100%;
}

.submenu a {
  display: block;
  padding: .6rem 1rem;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.submenu a:hover {
  background: #f2f5ff;
  color: var(--brand);
}


/* If your header is dark, keep top-level links white */
header nav > ul > li > a { color: #fff; }



/* ========== GRID & CARDS ========== */
.grid { display:grid; gap:1rem; }
.g-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.g-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (max-width:900px){ .g-3,.g-2 { grid-template-columns:1fr; } }
.card {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
/* ===== Contact Info Text (right side card) ===== */

/* This targets the right-side info block inside the contact section */
#contact .card .p {
  color: #000000;   /* ← change this to whatever color you want */
}

/* Optional: make headings (like "Office") a little brighter */
#contact .card h3 {
  color: #000000;   /* bright white headings */
  font-weight: 700;
}

/* Optional: adjust muted or paragraph text */
#contact .card p,
#contact .card strong {
  color: #000000;   /* white body and bold text */
}

.p { padding:1.2rem; }

/* ========== HERO ========== */
.hero {
  border-bottom:1px solid var(--line);
  background:linear-gradient(to bottom right, #e9f2ff 0%, #ffffff 100%);
  text-align:center;
  padding:5rem 0 4rem;
}
.hero h1 {
  font-size:clamp(2rem,3vw + 1rem,3.6rem);
  line-height:1.05;
  margin:0;
}
.hero p {
  color:var(--muted);
  font-size:clamp(1rem,.6vw + .9rem,1.25rem);
  max-width:700px;
  margin:1rem auto 2rem;
}
.cta { display:flex; gap:.7rem; justify-content:center; flex-wrap:wrap; }

/* ========== FOOTER ========== */
footer {
  background: #222;          /* keep your footer color */
  color: #ffffff;            /* make all text white */
  border-top: 1px solid #444;
  padding: 2rem 0 3rem;
}
.foot {
  display:grid;
  gap:1rem;
  grid-template-columns:1.2fr .8fr .8fr .8fr;
}
/* ===== Contact Form Text Colors ===== */

/* Labels, small text, and button text */
#contact form,
#contact form label,
#contact form button {
  color: #000000;   /* ← change this to your desired color */
}

/* Text typed by the user */
#contact form input,
#contact form textarea {
  color: #000000;   /* ← user-entered text color */
}

/* Placeholder text (the faint gray example text) */
#contact form input::placeholder,
#contact form textarea::placeholder {
  color: rgba(0, 0, 0, 0.7);  /* slightly lighter white */
}

/* Input field background (to stay readable on dark footer) */
#contact form input,
#contact form textarea {
  background: rgba(255, 255, 255, 0.1);   /* semi-transparent white tint */
  border: 1px solid rgba(0, 0, 0, 0.7);
}

/* Optional: highlight on focus */
#contact form input:focus,
#contact form textarea:focus {
  outline: 2px solid var(--brand);  /* AIMS blue highlight */
  outline-offset: 2px;
}
/* ===== Larger, Full-Width Contact Form Fields ===== */
#contact form {
  width: 100%;                  /* make the whole form stretch full width */
  max-width: 700px;             /* optional: limit how wide it gets */
  margin: 0 auto;               /* center it horizontally */
  padding: 2rem;                /* more space inside */
  border-radius: 10px;
}

#contact input,
#contact textarea {
  display: block;
  width: 100%;                  /* stretch inputs to full form width */
  height: 60px;                 /* taller inputs */
  padding: 0.9rem 1rem;         /* comfortable inner space */
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;              /* bigger text inside inputs */
  line-height: 1.4;
  box-sizing: border-box;
  margin-bottom: 1rem;          /* spacing between each field */
}

#contact textarea {
  height: 70px;                /* make the message box larger */
  resize: vertical;             /* let users resize vertically if needed */
}
/* ===== Make contact form labels bold ===== */
#contact form label {
  font-weight: 700;       /* makes text bold */
  color: #000000;         /* adjust if needed — white for dark background */
  font-size: 1.15rem;     /* slightly larger font for clarity */
  display: block;         /* puts each label on its own line */
  margin-bottom: 0.3rem;  /* space between label and input */
}
.footer-description {
  color: #ffffff;
}
/* 1) Keep submenu open while hovering it (not just the parent) */
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.submenu:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 2) Remove the hover gap between the trigger and the panel */
.submenu {
  top: 100%;
  margin-top: 0;              /* was .3rem – remove it to kill the gap */
  /* keep your other styles: position:absolute; background; etc. */
}

/* 3) Add a tiny invisible "buffer" so diagonal moves don't close it */
.has-submenu { position: relative; }
.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;                /* invisible bridge */
}

/* 4) Make sure it's on top of the header/nav */
.submenu { z-index: 1000; }

/* 5) Optional: give the Services link a bit more bottom padding = bigger target */
.has-submenu > a {
  padding-bottom: 10px;
}
/* Force white text on branded buttons (covers all types) */
button.btn.brand,
input.btn.brand[type="submit"],
a.btn.brand,
#contact .btn.brand,
footer #contact .btn.brand,
footer .footer-contact .btn.brand {
  color: #ffffff !important;
  background: var(--brand) !important;
  border-color: transparent !important;
}
/* ===== Second-level dropdown: drops DOWN, offset right ===== */
.has-subsubmenu { position: relative; }

/* --- NESTED (2nd-level) MENU: drop DOWN under Apostille, slightly indented --- */

/* 1) Anchor the nested panel to the Apostille <li> inside the first submenu */
.submenu .has-subsubmenu { position: relative; }

/* 2) Hard-reset any previous side-flyout rules */
.submenu-2 {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
}

/* 3) Real positioning: BELOW the Apostille item, with a small right indent */
.submenu .has-subsubmenu > .submenu-2 {
  position: absolute;
  top: 100%;              /* directly below Apostille item */
  left: 0;                /* aligned to the Apostille item’s left edge */
  margin-left: 12px;      /* small indent to the right */
  min-width: 260px;
  padding: .4rem 0;
  background: #fff;
  border: 1px solid #d0d6e0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform: translateY(8px);
  z-index: 1001;
}

/* 4) Show when hovering Apostille item */
.submenu .has-subsubmenu:hover > .submenu-2,
.submenu .has-subsubmenu:focus-within > .submenu-2 {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 5) Usual item styling */
.submenu-2 a {
  display: block;
  padding: .6rem 1rem;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  white-space: normal;   /* allow wrapping for long labels */
}
.submenu-2 a:hover {
  background: #f2f5ff;
  color: var(--brand);
}

/* 6) Keep it easy to reach: remove vertical gap under Apostille */
.submenu { gap: 0; } /* if you had gap set on .submenu as flex */





button.btn.brand:hover,
input.btn.brand[type="submit"]:hover,
a.btn.brand:hover,
#contact .btn.brand:hover {
  color: #ffffff !important;
  background: var(--accent) !important;
}

/* ===== Bullet list color styling ===== */
ul li {
  color: #ffffff;                /* white list text */
  transition: color 0.2s ease;
}

/* Optional: also style links inside lists */
ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul li:hover,
ul li a:hover {
  color: var(--brand);           /* AIMS blue on hover */
}
/* ===== Footer bullet + link color control ===== */

/* Default: white bullets + white text */
footer ul li::marker {
  color: #ffffff;
  transition: color 0.2s ease;
}
footer ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover: only changes when hovering the link */
footer ul li a:hover {
  color: var(--brand);
}
footer ul li a:hover::before {
  content: '';
  position: absolute;
  left: -1.2em;              /* aligns with bullet position */
  color: var(--brand);
}
/* Reset non-footer lists back to normal */
section ul li,
.card ul li {
  color: var(--text);
}
section ul li a,
.card ul li a {
  color: var(--brand);
}
/* Prevent horizontal scroll globally */
html, body { max-width: 100%; overflow-x: hidden; }

/* Make media never exceed the viewport */
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Box-sizing sanity (if not already set) */
*, *::before, *::after { box-sizing: border-box; }



/* NESTED DROPDOWN: stack DOWN inside the same panel */
.submenu li.has-subsubmenu { position: static; }   /* anchor is normal flow */

.submenu-2 {
  /* kill any old flyout styles */
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;

  /* in-flow stacked list */
  display: none;                 /* hidden until hover */
  margin: .4rem 0 0 1rem;        /* indent to the right */
  padding: 0;                    /* no extra box padding */
  list-style: disc inside;       /* simple, like a normal list */
  background: transparent;       /* blend with the parent dropdown */
  border: 0;
  box-shadow: none;
}

.submenu li.has-subsubmenu:hover > .submenu-2,
.submenu li.has-subsubmenu:focus-within > .submenu-2 {
  display: block;                /* show nested list under Apostille */
}

.submenu-2 li { width: 100%; }

.submenu-2 a {
  display: block;
  padding: .4rem 0;              /* compact spacing like a normal list */
  color: #000;
  text-decoration: none;
  font-weight: 600;
  white-space: normal;           /* wrap long labels */
}

.submenu-2 a:hover {
  color: var(--brand);
  background: transparent;       /* keep background clean */
}

/* Optional: style the parent "Apostille…" hint */
.submenu li.has-subsubmenu > a::after {
  content: " ▾";                 /* down caret to hint it expands downward */
  font-weight: 700;
}
/* force a horizontal shift regardless of other layout rules */
.submenu li.has-subsubmenu > .submenu-2 {
  transform: translateX(21.25rem) !important;  /* negative to move left */
}
/* Nudge up + widen (positioned version) */
.submenu li.has-subsubmenu { position: relative; }

.submenu li.has-subsubmenu > .submenu-2 {
  position: absolute !important;
  margin-top: -3.6rem;               /* raise it slightly (try -4px to -10px) */
  left: 1.25rem;            /* your right-shift value */
  width: 320px;             /* make panel wider */
  background: #fff;
  border: 1px solid #d0d6e0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: .4rem 0;
  z-index: 1001;
}

/* Thicker rows */
.submenu-2 a {
  display: block;
  padding: .7rem 1rem;
  line-height: 1.35;
  white-space: normal;
}
/* Accent override for nested menu */
.submenu li.has-subsubmenu > .submenu-2 {
  border-left: 3px solid var(--brand) !important;
  background: linear-gradient(to right, #f8faff 0%, #ffffff 60%) !important;
}
/* Base: no row background */
.submenu-2 a { background: transparent !important; }

/* Hover the whole row (li) so the accent aligns edge-to-edge */
.submenu-2 li:hover {
  background: #f5f8ff !important;               /* soft fill */
  box-shadow: inset 3px 0 0 0 var(--brand);     /* blue accent bar on the left */
}
.submenu-2 li:hover > a {
  color: var(--brand) !important;               /* text turns blue */
}
/* Match first-level dropdown hover style with the nested one */
.submenu li:hover {
  background: #f5f8ff !important;               /* same soft fill */
  box-shadow: inset 3px 0 0 0 var(--brand);     /* blue accent bar */
}

.submenu li:hover > a {
  color: var(--brand) !important;               /* blue text on hover */
}
/* ——— First-level dropdown: stable left rail + clean row highlight ——— */

/* 1) Persistent rail on the whole panel */
.submenu {
  border-left: 3px solid var(--brand);
  background: #fff;
}

/* 2) Normalize row structure: no hover on LI, do it on the <a> */
.submenu li { position: relative; }
.submenu li > a {
  position: relative;           /* so we can place the bar on the link itself */
  display: block;
  padding: .6rem 1rem;
  background: transparent !important;
  color: #000;
  text-decoration: none;
}

/* 3) The hover bar lives on the <a>, so it only appears over the real hit area */
.submenu li > a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .15s ease, box-shadow .15s ease;
}

/* 4) Hover/focus state: soft fill + blue bar + blue text (like the 2nd list) */
.submenu li > a:hover,
.submenu li > a:focus,
.submenu li > a:focus-visible {
  background: #f5f8ff !important;    /* soft fill */
  color: var(--brand) !important;     /* blue text */
}
.submenu li > a:hover::before,
.submenu li > a:focus::before,
.submenu li > a:focus-visible::before {
  background: var(--brand);           /* the inner blue bar */
}

/* 5) Kill older conflicting hover styles (box-shadow bar / li:hover) */
.submenu li:hover {
  box-shadow: none !important;
  background: transparent !important;
}
.submenu a:hover { background: transparent; } /* we'll control it above */

/* Ensure the parent is the positioning context */
.submenu > li.has-subsubmenu { position: relative !important; }

/* Hard override: push ALL second-level menus further right */
.submenu > li.has-subsubmenu > .submenu-2 {
  position: absolute !important;
  left: 23.6rem !important;          /* ⬅ increase to 4rem/5rem if needed */
  margin-top: -3.65rem !important;   /* keep your vertical alignment */
  transform: none !important;       /* cancel any previous translateX */
  margin-left: 0 !important;        /* cancel any previous margin nudge */
  width: 340px !important;          /* optional, gives more room */
  z-index: 1001;
}
html { scroll-behavior: smooth; }

.has-submenu.open > .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Breadcrumb */
.breadcrumb { font-size: .95rem; margin: 1rem 0 .5rem; color: var(--muted); display:flex; align-items:center; gap:.4rem; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Badges strip */
.badges { display:flex; flex-wrap:wrap; gap:.6rem 1rem; margin: .5rem 0 1.5rem; padding:0; list-style:none; }
.badges li { background: #f5f8ff; border:1px solid #d0d6e0; border-radius: 9999px; padding: .35rem .75rem; font-weight:600; }

/* Service cards polish */
.cards .card.p { display:flex; flex-direction:column; gap:.5rem; }
.card-icon { font-size: 1.6rem; line-height: 1; }
.btn.small { padding: .5rem .8rem; font-size: .95rem; border-radius: 10px; }
.btn.ghost { background: transparent; border:1px solid var(--brand); color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }

/* CTA strip */
.cta-strip {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  border:1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f8faff 0%, #ffffff 70%);
  text-align: center;
}
.cta-strip h2 { margin: 0 0 .3rem; }
.cta-actions { display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; }

/* Responsive niceties */
@media (max-width: 700px) {
  .badges { gap:.5rem .6rem; }
  .cta-strip { text-align:left; }
  .cta-actions { justify-content:flex-start; }
}
/* === Fix text color for service cards on Services page === */
.cards .card,
.cards .card p,
.cards .card h3,
.cards .card a {
  color: #000000 !important;       /* force black text */
}

/* Optional: make hover text blue to match your brand */
.cards .card a:hover {
  color: var(--brand) !important;
}

.cards .card {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* === Services Cards: left border + matching hover accent === */

.cards .card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d0d6e0;
  border-left: 4px solid var(--brand);   /* persistent left border */
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.2s ease-in-out;
}

/* Hover effect — match the dropdown list vibe */
.cards .card:hover {
  background: #f5f8ff;                  /* light blue fill */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-left-color: #0040cc;           /* a bit deeper blue accent */
}

/* Title + text behavior */
.cards .card h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.15s ease;
}
.cards .card:hover h3 a {
  color: var(--brand);
}

/* Optional: subtle glow animation for link on hover */
.cards .card a.btn.small:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 8px rgba(0,87,255,0.4);
}
/* Stronger hover rule for service cards */
.cards .card:hover {
  background: #f5f8ff !important;        /* ⬅ force background change */
  border-left-color: #0040cc !important; /* slightly darker AIMS blue */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  transition: all 0.2s ease-in-out;
}
/* === Turn all card text blue on hover === */
.cards .card:hover,
.cards .card:hover h3,
.cards .card:hover h3 a,
.cards .card:hover p,
.cards .card:hover a,
.cards .card:hover li {
  color: var(--brand) !important;
}

/* Optional: make sure the "Learn more" button text stays white if the button turns blue */
.cards .card:hover a.btn.small {
  color: #fff !important;
}
/* === Make the whole service card clickable === */
.cards .card a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

/* Inherit hover style when hovering anywhere on card */
.cards .card:hover a.card-link {
  color: var(--brand);
}

/* Keep the inner text and button styles consistent */
.cards .card a.card-link h3,
.cards .card a.card-link p,
.cards .card a.card-link span {
  pointer-events: none; /* prevents weird link stacking behavior */
}
.grid.cards, .grid.cards > li { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }

/* ===== Hero slideshow ===== */
.hero {
  position: relative;
  min-height: 460px;            /* adjust height to taste */
  display: grid;
  place-items: center;
  color: #fff;
  overflow: clip;
}
.hero .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;           /* or left if you prefer */
  padding: 3rem 1rem;
  max-width: var(--max);
}

/* dark overlay for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45));
  z-index: 1;
}

/* slides container */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;         /* ensure clicks go to buttons */
}

/* each slide cross-fades in sequence */
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(.8);       /* keeps text readable */
  transform: scale(1.05);       /* subtle zoom */
  animation: heroFade 24s infinite;
}

/* stagger the timing for 4 slides */
.hero-slides img:nth-child(1) { animation-delay: 0s;  }
.hero-slides img:nth-child(2) { animation-delay: 6s;  }
.hero-slides img:nth-child(3) { animation-delay: 12s; }
.hero-slides img:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; transform: scale(1.02); }
  20%  { opacity: 1; transform: scale(1.0);  }
  25%  { opacity: 0; transform: scale(1.0);  }
  100% { opacity: 0; transform: scale(1.05); }
}

/* responsive tweaks */
@media (max-width: 700px) {
  .hero { min-height: 380px; }
  .hero .hero-inner { text-align: left; }
  .hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
}
/* === HOMEPAGE SERVICES PREVIEW === */
.services-preview {
  max-width: 1200px;     /* keeps the grid from stretching too wide */
  margin: 0 auto;         /* centers the grid inside the container */
}

.services-preview .card {
  flex: 1;
  min-height: 100%;
}

/* Responsive balance */
@media (max-width: 1000px) {
  .services-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .services-preview {
    grid-template-columns: 1fr;
  }
}
/* === Make "Learn More" buttons brand blue === */
.cards .card .btn.small {
  background: var(--brand);        /* AIMS blue */
  color: #ffffff;                  /* white text */
  border: 1px solid var(--brand);
  transition: all 0.2s ease-in-out;
}

/* Hover effect — invert colors slightly for depth */
.cards .card .btn.small:hover {
  background: #0040cc;             /* darker blue hover */
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 87, 255, 0.35);
  transform: translateY(-2px);
}
/* === Make Services cards use the same light gray background as other site blocks === */
#services .card {
  background: var(--card) !important;
      /* your site's light gray block color */
  border: 1px solid #d0d6e0;
  border-left: 4px solid var(--brand);
  transition: all 0.2s ease-in-out;
}

/* keep hover effect blue and lifting */
#services .card:hover {
  background: #f5f8ff !important;      /* light blue hover */
  border-left-color: #0040cc !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ensure text stays readable */
#services .card h3,
#services .card p,
#services .card a {
  color: #000 !important;
}
/* === Match Services page card color to the site's block gray === */
#services-page .card {
  background: var(--card) !important;       /* same gray as home blocks */
  border: 1px solid #d0d6e0;
  border-left: 4px solid var(--brand);
  transition: all 0.2s ease-in-out;
}

/* Hover: same brand-blue accent and subtle lift */
#services-page .card:hover {
  background: #f5f8ff !important;        /* light blue tint on hover */
  border-left-color: #0040cc !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Keep text readable */
#services-page .card h3,
#services-page .card p,
#services-page .card a {
  color: #000 !important;
}
/* === Restore text color change on hover for all service cards === */

/* Homepage (#services) */
#services .card:hover,
#services .card:hover h3,
#services .card:hover h3 a,
#services .card:hover p,
#services .card:hover a,
#services .card:hover li {
  color: var(--brand) !important;  /* AIMS blue */
}

/* Services Page (#services-page) */
#services-page .card:hover,
#services-page .card:hover h3,
#services-page .card:hover h3 a,
#services-page .card:hover p,
#services-page .card:hover a,
#services-page .card:hover li {
  color: var(--brand) !important;
}

/* Keep the "Learn More" button text white even when hovered */
#services .card:hover a.btn.small,
#services-page .card:hover a.btn.small {
  color: #fff !important;
}
/* === Remove persistent left border, keep it only on hover === */

/* Homepage cards (default state = no border) */
#services .card {
  border-left: 0 !important;          /* no border by default */
  transition: all 0.2s ease-in-out;
}

/* Add left border back on hover */
#services .card:hover {
  border-left: 4px solid var(--brand) !important;  /* AIMS blue accent */
}

/* Services page cards (same logic) */
#services-page .card {
  border-left: 0 !important;          /* no border by default */
  transition: all 0.2s ease-in-out;
}

#services-page .card:hover {
  border-left: 4px solid var(--brand) !important;
}
/* === Animated left border for service cards === */

/* Remove the static border completely */
#services .card,
#services-page .card {
  position: relative;
  border-left: none !important;
  overflow: hidden; /* hides the line when it's outside the card */
}

/* Create the blue border as a pseudo-element */
#services .card::before,
#services-page .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
  transform: translateY(100%); /* hidden below the card */
  transition: transform 0.25s ease-in-out;
}

/* On hover, slide the blue bar up into view */
#services .card:hover::before,
#services-page .card:hover::before {
  transform: translateY(0);
}

/* keep the rest of the hover effects the same */
#services .card:hover,
#services-page .card:hover {
  background: #f5f8ff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
/* === ABOUT SECTION (Card-style Block) === */
.about-section {
  background: none;                 /* keep white page background */
  padding: 4rem 0;
}

.about-section .container {
  background: #ededed;              /* light gray block (matches your other cards) */
  border: 1px solid #d0d6e0;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 3rem 2rem;
}

.about-section .section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.about-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.about-grid p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #000;
}

.about-grid .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-grid .badges li {
  background: #ededed;
  border: 1px solid #d0d6e0;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  color: #000;
}

/* Responsive layout for tablets & phones */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-section .section-head {
    text-align: left;
  }

  .about-grid img {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    display: block;
  }
}
/* === Larger footer logo === */
.footer-brand img {
  height: 150px;       /* increase this number to make it bigger */
  width: auto;
  opacity: 0.95;
  transition: transform 0.2s ease;
}

.footer-brand img:hover {
  transform: scale(1.05);  /* gentle zoom on hover */
}
/* === Footer column alignment tweak === */

/* === FOOTER POLISH: bullets, label styling, logo fix === */

/* footer grid structure */
footer .container.foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

/* logo fix – keep perfect proportions */
.footer-brand img {
  height: 150px;          /* you liked this size */
  width: auto;            /* fixes any stretching */
  object-fit: contain;
  opacity: 0.95;
  transition: transform 0.2s ease;
}

.footer-brand img:hover {
  transform: scale(1.05);
}

/* headings (Links, Resources, Social) */
footer .container.foot strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;      /* larger */
  color: var(--brand);    /* AIMS blue */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* lists with bullet points restored */
footer .container.foot ul {
  list-style: disc;        /* bullet style */
  list-style-position: inside;
  padding-left: 0.5rem;
  margin: 0;
}

footer .container.foot li {
  margin: 0.3rem 0;
}

footer .container.foot a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer .container.foot a:hover {
  color: var(--brand);
}

/* responsive cleanup */
@media (max-width: 800px) {
  footer .container.foot {
    grid-template-columns: 1fr;
  }

  footer .container.foot strong {
    text-align: left;
  }

  footer .container.foot ul {
    list-style-position: outside;
    padding-left: 1rem;
  }
}
/* === Center the footer column headings and their lists === */

/* center headings and lists for columns 2–4 */
footer .container.foot > div:nth-child(2),
footer .container.foot > div:nth-child(3),
footer .container.foot > div:nth-child(4) {
  text-align: center;
}

/* center the heading text */
footer .container.foot strong {
  text-align: center;
  width: 100%;
}

/* center the bullets under each heading */
footer .container.foot ul {
  list-style-position: inside; /* bullets stay aligned under text */
  padding-left: 0;
  margin: 0 auto;
  display: inline-block; /* keeps list tight and centered */
  text-align: left;      /* so bullets align neatly inside */
}

/* responsive reset (keep mobile left-aligned) */
@media (max-width: 800px) {
  footer .container.foot > div:nth-child(2),
  footer .container.foot > div:nth-child(3),
  footer .container.foot > div:nth-child(4) {
    text-align: left;
  }

  footer .container.foot ul {
    display: block;
    text-align: left;
  }
}
/* Minimal Card Form */
.contact-block { padding: 3rem 0; }
.card-simple {
  background: #ededed; border: 1px solid #d0d6e0; border-radius: var(--radius);
  padding: 1.25rem;
}
.form-field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.form-field label { font-weight: 700; color: #000; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .85rem .9rem; border: 1px solid #cfd6e0; border-radius: 10px; background: #fff;
  font: inherit;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,87,255,.14);
}
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note a { color: var(--brand); text-decoration: none; }
.hp { display:none !important; }
@media (max-width: 820px){ .card-simple{padding:1rem} }
/* === CONTACT FORM AIMS COLOR + BUTTON POLISH === */

/* Card background and border */
.card-simple {
  background: #ededed;                 /* same light gray as your other blocks */
  border: 1px solid #d0d6e0;
  border-radius: var(--radius);
  padding: 2rem;                       /* more breathing room */
}

/* Input & textarea colors */
.card-simple input,
.card-simple textarea {
  background: #ffffff;
  border: 1px solid #ccd2da;
  border-radius: 10px;
  color: #000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus effect: blue outline */
.card-simple input:focus,
.card-simple textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.15);
}

/* Labels + text */
.card-simple label {
  font-weight: 600;
  color: #000;
}

/* Button: same size + color as other site buttons */
.card-simple .btn.brand {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2.2rem;              /* larger button size */
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover / active states */
.card-simple .btn.brand:hover {
  background: #0040cc;
  box-shadow: 0 4px 12px rgba(0,87,255,0.3);
  transform: translateY(-2px);
}
.card-simple .btn.brand:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Small form note link (optional color match) */
.card-simple .form-note a {
  color: var(--brand);
  text-decoration: none;
}
.card-simple .form-note a:hover {
  text-decoration: underline;
}
.form-success { color: #1b7f2a; font-weight: 600; }
.form-error   { color: #b00020; font-weight: 600; }
/* === Prevent textarea resize in contact form === */
.card-simple textarea {
  resize: none;          /* stops manual resizing */
}
/* === Make contact form intro text white === */
.contact-block .section-head p.muted {
  color: #ffffff !important;
}
/* Style just the "Or email us" text */
.card-simple .form-note .note-label {
  color: #000 !important;
  font-weight: 600;
}
/* Custom file upload */
.file-upload { display: grid; gap: .45rem; }
.file-upload .file-input {
  position: absolute;
  left: -9999px; /* hide the native control, keep it accessible */
}
.file-upload .file-trigger {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
}
.file-upload .file-summary {
  display: block;
  color: #000;          /* readable */
  font-size: .95rem;
  line-height: 1.4;
  min-height: 1.2em;
  opacity: .9;
}
.file-upload .file-help { margin-top: .15rem; }
/* File upload UI */
.file-upload { display: grid; gap: .5rem; }
.file-upload .file-input {
  position: absolute;
  left: -9999px; /* visually offscreen but fully functional */
}
.file-summary { color: #000; opacity: .9; }
.file-list { list-style: disc; list-style-position: inside; margin: .25rem 0 0; padding: 0; }
.file-list li { margin: .2rem 0; }

/* Small image preview pill */
.file-list img {
  display: inline-block;
  max-width: 60px;
  max-height: 60px;
  vertical-align: middle;
  margin-right: .4rem;
  border-radius: 6px;
  border: 1px solid #d0d6e0;
  background: #fff;
}
.file-upload { display: grid; gap: .45rem; }
.file-summary { color: #000; opacity: .9; }
/* Apply page polish */
.apply-grid .card {
  background: #f2f4f7;                 /* same gray as other blocks */
  border: 1px solid #d0d6e0;
  border-radius: var(--radius);
}

.apply-card { padding: 1.25rem; }

.apply-card h2 { margin: 0 0 .35rem; }
.apply-sub { margin: 1rem 0 .4rem; font-size: 1.05rem; }

.apply-list {
  list-style: disc;
  list-style-position: inside;
  margin: 0 0 1rem;
  padding: 0;
}
/* === Remove stray bullet points from Apply page cards === */
.apply-grid {
  list-style: none !important;   /* removes bullets from the grid */
  padding-left: 0 !important;
  margin: 0;
}

.apply-grid > li {
  list-style: none !important;   /* ensures no marker on individual cards */
  margin: 0;
  padding: 0;
}
/* === Hover highlight for Apply page cards === */
.apply-grid .card {
  background: #f2f4f7;                  /* same gray base */
  border: 1px solid #d0d6e0;
  border-left: 0;                       /* remove static left border */
  border-radius: var(--radius);
  transition: all 0.25s ease-in-out;
  position: relative;
  overflow: hidden;
}

/* Add animated blue border from bottom (same as services) */
.apply-grid .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
  transform: translateY(100%);
  transition: transform 0.25s ease-in-out;
}

/* Hover state — blue lift & animated border */
.apply-grid .card:hover {
  background: #f5f8ff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.apply-grid .card:hover::before {
  transform: translateY(0);
}

/* Text turns AIMS-blue when hovered */
.apply-grid .card:hover,
.apply-grid .card:hover h2,
.apply-grid .card:hover h3,
.apply-grid .card:hover p,
.apply-grid .card:hover li {
  color: var(--brand) !important;
}

/* Keep buttons readable */
.apply-grid .card:hover .btn.brand {
  color: #fff !important;
}
/* === Make Apply page cards equal height and aligned === */

/* Ensure the grid rows stretch evenly */
.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  align-items: stretch;        /* stretches both cards to equal height */
}

/* Force cards to fill the same height */
.apply-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Let inner .apply-card expand inside each */
.apply-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Optional: even out internal spacing */
.apply-card form {
  margin-top: auto;
}

/* Adjust inner spacing so both cards sit evenly */
.apply-card h2,
.apply-card p,
.apply-card ul,
.apply-card form {
  margin-bottom: 1rem;
}
/* ===== Apostille & Notary v2 (scoped) ===== */
#services-page .card { background:#f2f4f7; border:1px solid #d0d6e0; border-radius:var(--radius); position:relative; overflow:hidden; transition:all .25s ease-in-out; }
#services-page .card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--brand); transform:translateY(100%); transition:transform .25s ease-in-out; }
#services-page .card:hover { background:#f5f8ff !important; box-shadow:0 4px 12px rgba(0,0,0,.08); transform:translateY(-3px); }
#services-page .card:hover::before { transform:translateY(0); }
#services-page .card:hover h3,
#services-page .card:hover p,
#services-page .card:hover li { color:var(--brand) !important; }

#services-page .hero-split { padding: 2.5rem 0; }
#services-page .hero-split-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap:1.5rem; align-items:stretch; }
#services-page .hero-copy .eyebrow { color:var(--brand); font-weight:700; }
#services-page .hero-copy h1 { margin:.25rem 0 .5rem; }
#services-page .hero-actions { display:flex; gap:.75rem; flex-wrap:wrap; margin-top:.5rem; }
#services-page .hero-panel { padding:1rem; }

#services-page .tight-cards .card.p { padding:1rem; }
#services-page .tight-cards h3 { margin:0 0 .35rem; }

#services-page .doc-matrix { gap:1.25rem; }
#services-page .doc-cta { margin-top:1.25rem; text-align:center; }
#services-page .doc-cta .btn { margin-top:.5rem; }

#services-page .band-steps { background:#f8f9fb; padding:1.5rem 0; border-top:1px solid #e4e8ef; border-bottom:1px solid #e4e8ef; }
#services-page .steps-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:1rem; }
#services-page .step { display:flex; gap:.8rem; align-items:flex-start; }
#services-page .step-num { width:2rem; height:2rem; border-radius:50%; background:var(--brand); color:#fff; font-weight:800; display:grid; place-items:center; }

#services-page .tick { list-style:'✓  '; padding-left:1.1rem; margin:.25rem 0 0; color:#000; }
#services-page .dash { list-style:disc; list-style-position:inside; margin:.25rem 0 0; padding:0; color:#000; }
#services-page .micro { font-size:.9rem; }

@media (max-width: 980px){
  #services-page .hero-split-grid { grid-template-columns: 1fr; }
  #services-page .steps-grid { grid-template-columns: 1fr; }
}
/* Notary request form polish (matches apply cards) */
.inline-options { display: flex; gap: 1rem; align-items: center; }
.inline-options label { font-weight: 600; color: #000; }

.terms-field .terms-label {
  display: inline-flex; gap: .5rem; align-items: center; color: #000;
}
.terms-field a { color: var(--brand); text-decoration: none; }
.terms-field a:hover { text-decoration: underline; }

/* File upload summary (reuse pattern) */
.file-upload { display: grid; gap: .45rem; }
.file-summary { color: #000; opacity: .9; }

/* === AIMS Select: force brand styling === */
html body select.aims-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  width: 100% !important;
  padding: 0.85rem 2.5rem 0.85rem 0.9rem !important; /* space for arrow */
  border: 1px solid #ccd2da !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: #000 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;

  /* custom blue arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230057FF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.9rem center !important;
  background-size: 1rem !important;
}

html body select.aims-select:hover {
  border-color: var(--brand) !important;
}

html body select.aims-select:focus {
  outline: none !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(0,87,255,.15) !important;
}

/* remove legacy native arrows */
select.aims-select::-ms-expand { display: none !important; }
select.aims-select::-webkit-calendar-picker-indicator { filter: opacity(0); }

/* === Custom dropdown style === */
.aims-dropdown { position: relative; width: 100%; font-family: 'Montserrat', sans-serif; }
.aims-dropdown .dropdown-toggle {
  width: 100%; background: #fff; border: 1px solid #ccd2da; border-radius: 10px;
  padding: 0.85rem 0.9rem; text-align: left; cursor: pointer; position: relative;
}
.aims-dropdown .dropdown-toggle::after {
  content: ""; position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230057FF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-size: 1rem 1rem; background-repeat: no-repeat;
}
.aims-dropdown .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  background: #fff; border: 1px solid #d0d6e0; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  margin-top: .25rem; padding: .25rem 0; list-style: none;
}
.aims-dropdown .dropdown-menu li {
  padding: .6rem .9rem; cursor: pointer; transition: background .15s ease;
}
.aims-dropdown .dropdown-menu li:hover {
  background: #e8f0ff;
}
.aims-dropdown.open .dropdown-menu { display: block; }

html body select.aims-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 100% !important;
  padding: 0.85rem 2.5rem 0.85rem 0.9rem !important;
  border: 1px solid #ccd2da !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: #000 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230057FF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.9rem center !important;
  background-size: 1rem !important;
}
html body select.aims-select:hover { border-color: var(--brand) !important; }
html body select.aims-select:focus {
  outline: none !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(0,87,255,.15) !important;
}
select.aims-select::-ms-expand { display: none !important; }

/* === NAV SUBMENUS: visibility + stacking fix === */
header nav .submenu,
header nav .submenu-2 {
  position: absolute;
  display: none;                 /* hidden by default */
  background: #fff;
  border: 1px solid #d0d6e0;
  border-radius: 8px;
  box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.12));
  z-index: 2000;                 /* on top of forms etc. */
  min-width: 260px;
  padding: .4rem 0;
}

header nav li.has-submenu:hover > .submenu {
  display: block;
}

header nav .submenu li.has-subsubmenu { position: relative; }

header nav .submenu li.has-subsubmenu:hover > .submenu-2 {
  display: block;
}

/* Position your second-level panel next to the first */
header nav .submenu li.has-subsubmenu > .submenu-2 {
  top: 0;
  left: 100%;
  margin-left: .5rem;            /* small gap */
}

/* Make submenu items comfy + clickable */
header nav .submenu a,
header nav .submenu-2 a {
  display: block;
  padding: .7rem 1rem;
  line-height: 1.35;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

header nav .submenu a:hover,
header nav .submenu-2 a:hover {
  background: #eef4ff;
  color: var(--brand);
  border-left: 4px solid var(--brand);
}

/* ===== AIMS Custom Dropdown (conflict-free) ===== */
.aims-dd { position: relative; width: 100%; font-family: 'Montserrat', sans-serif; }
.aims-dd__toggle {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #ccd2da;
  border-radius: 10px;
  padding: 0.85rem 2.5rem 0.85rem 0.9rem;
  cursor: pointer;
  line-height: 1.3;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.aims-dd__toggle:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,87,255,.15);
}
.aims-dd__arrow {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230057FF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-size: 1rem 1rem; background-repeat: no-repeat;
}

/* Menu panel */
.aims-dd__menu {
  display: none;
  position: absolute; z-index: 3000;
  left: 0; right: 0; top: calc(100% + .25rem);
  background: #fff;
  border: 1px solid #d0d6e0;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  list-style: none; margin: 0; padding: .25rem 0;
  max-height: 280px; overflow: auto;
}
.aims-dd.open .aims-dd__menu { display: block; }

/* Items */
.aims-dd__menu li {
  padding: .65rem .9rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  color: #000;
}
.aims-dd__menu li:hover,
.aims-dd__menu li:focus {
  background: #e8f0ff;
  color: var(--brand);
  outline: none;
}

/* Reduce overlap issues on small screens */
@media (max-width: 480px) {
  .aims-dd__menu { max-height: 60vh; }
}

/* === AIMS custom select (no JS, no conflicts) === */
.aims-sel { position: relative; width: 100%; font-family: 'Montserrat', sans-serif; }
.aims-sel summary {
  list-style: none; cursor: pointer; user-select: none;
  background: #fff; border: 1px solid #ccd2da; border-radius: 10px;
  padding: .85rem .9rem; line-height: 1.3;
  box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.aims-sel[open] summary { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,87,255,.15); }
.aims-sel summary::-webkit-details-marker { display: none; }  /* remove default marker */

.aims-sel__arrow {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230057FF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-size: 1rem 1rem; background-repeat: no-repeat;
}

.aims-sel__menu {
  position: absolute; left: 0; right: 0; z-index: 3500;
  margin-top: .25rem; padding: .25rem 0;
  background: #fff; border: 1px solid #d0d6e0; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  list-style: none;
  max-height: 280px; overflow: auto;
}
.aims-sel[open] .aims-sel__menu { display: block; }
.aims-sel:not([open]) .aims-sel__menu { display: none; }

.aims-sel__menu li {
  padding: .65rem .9rem; cursor: pointer; color: #000;
  transition: background .15s, color .15s;
}
.aims-sel__menu li:hover { background: #e8f0ff; color: var(--brand); }

/* === Apostille page: ensure nav sits above page content === */
#services-page ~ header,
#services-page header,
header {
  position: relative !important;
  z-index: 5000 !important;
}

/* Submenus on their own higher layer */
header nav .submenu,
header nav .submenu-2 {
  z-index: 6000 !important;
}

/* Ensure the menu is clickable and above content */
.aims-sel { position: relative; width: 100%; font-family: 'Montserrat', sans-serif; }
.aims-sel summary {
  list-style: none; cursor: pointer; user-select: none;
  background: #fff; border: 1px solid #ccd2da; border-radius: 10px;
  padding: .85rem .9rem; line-height: 1.3;
  transition: border-color .2s, box-shadow .2s;
}
.aims-sel[open] summary { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,87,255,.15); }
.aims-sel summary::-webkit-details-marker { display: none; }
.aims-sel__arrow {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230057FF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-size: 1rem 1rem; background-repeat: no-repeat;
}

.aims-sel__menu {
  position: absolute; left: 0; right: 0; z-index: 3500;
  margin-top: .25rem; padding: .25rem 0;
  background: #fff; border: 1px solid #d0d6e0; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  list-style: none; max-height: 280px; overflow: auto;
  display: none;
}
.aims-sel[open] .aims-sel__menu { display: block; }

/* Make options clickable buttons for reliability */
.aims-sel__menu li { margin: 0; }
.aims-sel__menu button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: .65rem .9rem; cursor: pointer; color: #000;
  font: inherit; line-height: 1.3;
  transition: background .15s, color .15s;
}
.aims-sel__menu button:hover,
.aims-sel__menu button:focus {
  background: #e8f0ff; color: var(--brand); outline: none;
}

/* === Submenu-2 width & text wrapping fix === */
header nav .submenu-2 {
  min-width: 320px !important;          /* was ~260px; gives breathing room */
  max-width: 420px !important;          /* keeps it from stretching too far */
  white-space: normal !important;       /* allow wrapping */
  word-wrap: break-word !important;
}

/* make each link block expand to its content height */
header nav .submenu-2 a {
  display: block;
  line-height: 1.35;
  padding: .7rem 1rem;
  white-space: normal;                  /* wrap to next line if needed */
}

/* optional: improve look of multi-line items */
header nav .submenu-2 a span {
  display: inline;                      /* ensures inline text wraps nicely */
}
/* === Add breathing room inside submenus === */
header nav .submenu,
header nav .submenu-2 {
  padding-top: 0.4rem !important;
  padding-bottom: 1.6rem !important;  /* <-- extra space at bottom */
  border-radius: 8px !important;
}

/* Optional: extra visual separation from the header */
header nav li.has-submenu > .submenu {
  margin-top: 0.4rem !important;      /* small gap below header bar */
}
/* === Limit submenu-2 item text to two lines === */
header nav .submenu-2 a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;               /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important;      /* allow 2-line wrapping only */
  word-break: break-word !important;
  line-height: 1.35;
  padding: .7rem 1rem;
}
/* === Prevent submenu width shift & rewrap on hover === */

/* Lock submenu-2 width so hover border doesn't force a reflow */
header nav .submenu-2 {
  width: auto !important;
  min-width: 340px !important;       /* make sure it's wide enough */
  max-width: none !important;
  white-space: normal !important;
}

/* Make sure hover border doesn’t shrink text space */
header nav .submenu-2 a {
  border-left: 4px solid transparent; /* reserve space for hover border */
  padding: .7rem calc(1rem - 4px) .7rem 1rem; /* balance left border */
  transition: background .15s, color .15s;
  line-height: 1.35;
}

/* When hovering, color the existing reserved border */
header nav .submenu-2 a:hover {
  border-left-color: var(--brand);
  background: #eef4ff;
  color: var(--brand);
}

/* Apply page: normalize both upload buttons (Officer + Security) */
.form.card-simple .file-upload {
  display: grid !important;
  gap: 0.45rem !important;
  justify-items: center !important;
  text-align: center !important;
}

.form.card-simple .file-upload .attach-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 260px !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
  padding: 0.9rem 1.2rem !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.form.card-simple .file-upload .attach-btn:hover {
  background: #0040cc !important;
  box-shadow: 0 4px 12px rgba(0,87,255,.3) !important;
}

/* Make the invisible input cover the whole button reliably */
.form.card-simple .file-upload .attach-btn input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

/* Summary text under the button */
.form.card-simple .file-upload .file-summary {
  color: #000 !important;
  font-size: 0.95rem !important;
}

/* keep card heights even and kill the top gap */
.apply-card {
  display: flex !important;
  flex-direction: column !important;
}
.apply-card .section-head { margin-bottom: 1rem !important; }
.apply-card .apply-form { margin-top: 0 !important; padding-top: 0 !important; }

/* remove extra top margin on the first block in each form */
.apply-card .apply-form > .form-field:first-of-type,
.apply-card .apply-form > .grid:first-of-type,
.apply-card .apply-form > *:first-child {
  margin-top: 0 !important;
}

/* normalize row spacing so one card doesn't sit higher */
.apply-card .apply-form .grid { gap: 1rem !important; }

/* remove the gap above the attach button group */
.apply-card .apply-form .upload-group { margin-top: 0 !important; }
.apply-card .apply-form textarea { margin-bottom: .75rem !important; }

/* pin actions to bottom so both cards align perfectly */
.apply-card .apply-form .form-actions {
  margin-top: auto !important;
}
/* Grid with two cards: push the 2nd (Officer) form down slightly */
.grid.g-2 > li.card:nth-of-type(2) .form.card-simple,
.apply-grid       > li.card:nth-of-type(2) .form.card-simple {
  margin-top: 10px;   /* tweak 6–14px until perfectly parallel */
}

/* Invisible filler list item to equalize card heights */
.spacer-li {
  list-style: none;
  height: 0.6rem;           /* matches one bullet’s vertical height */
  margin: 0;
  padding: 0;
  visibility: hidden;
}
/* Nudge the Officer form only */
.officer-form {
  margin-top: 10px !important;       /* moves entire form down slightly */
}

/* optional: tiny buffer above its attach button for visual balance */
.officer-form .file-upload {
  margin-top: -px !important;
}


/* optional: tiny buffer above its attach button for visual balance */
.security-form .file-upload {
  margin-top: 10px !important;
}
/* === Officer form: tighten space below the Apply button === */
.officer-form .form-actions {
  margin-bottom: 0 !important;      /* remove extra outside margin */
  padding-bottom: 0 !important;     /* remove any internal padding */
}

.officer-form .form-actions .btn {
  margin-bottom: 20px !important;      /* ensure button itself has no bottom margin */
}

/* Optional: for pixel-perfect leveling with Security form */
.officer-form {
  padding-bottom: 1px !important;     /* remove any leftover spacing inside the form */
}

/* === Officer form: remove extra space above Apply button === */
.officer-form .form-actions {
  margin-top: px !important;      /* remove default top gap */
  padding-top: 0 !important;     /* remove internal padding if any */
}

/* if there's still a hairline gap, tighten the upload group below */
.officer-form .file-upload {
  margin-bottom: 0.5rem !important;   /* slight buffer but not too tight */
}
.apply-grid { align-items: end !important; }

/* Nudge the OFFICER form only (id selector wins) */
#officer-form {
  margin-top: 12px !important;   /* tweak 8–16px to taste */
}

/* keep spacing tidy around the bottom area */
#officer-form .form-actions {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#officer-form .file-upload {
  margin-top: 0.5rem !important;  /* small buffer above Attach button */
}


/* === Lower the Officer form (align with Security form) === */
#officer-form {
  margin-top: 12px !important;  /* adjust 10–14px if needed */
}

/* Optional: keep the bottom spacing tidy */
#officer-form .form-actions {
  margin-bottom: -01px !important;
  padding-bottom: 0 !important;
}
/* Footer contact form: center the attach + send actions */
footer .contact-block .file-upload {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.4rem;
}

footer .contact-block .form-actions {
  display: grid;                 /* stack button + note */
  justify-items: center;         /* center them */
  text-align: center;
  gap: 0.5rem;                   /* breathing room between button and note */
  margin-top: .75rem;           /* small buffer above the button row */
}

/* Make the Send button same “presence” as Attach */
footer .contact-block .form-actions .btn {
  height: 60px;
  width: 100%;
  max-width: 2600px;              /* matches the attach button look */
  margin: 0 auto;
}

/* Keep the small note centered and tidy */
footer .contact-block .form-actions .form-note {
  display: block;
  line-height: 1.5;
}

/* ===== About Page (scoped) ===== */
.about-page .about-hero { padding: 3.25rem 0; background: #fff; }
.about-page .hero-grid { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr; align-items: center; }
.about-page .hero-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.about-page .actions { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }

.about-page .badges.list-inline { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .75rem; }
.about-page .badges li { background: ededed; border-radius: 999px; padding: .5rem .9rem; }

.about-page .stats-strip { background: #ededed; padding: 1.75rem 0; }
.about-page .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.about-page .stat { text-align: center; padding: 1rem; border-radius: 12px; }
.about-page .stat .num { font-size: 1.75rem; font-weight: 800; color: var(--brand, #0057ff); }
.about-page .stat .label { color: #000; opacity: .8; }

.about-page .leader-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.about-page .leader { padding: 1rem; border-radius: 16px; }
.about-page .leader img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: .75rem; }
.about-page .leader .role { margin-top: -.25rem; margin-bottom: .25rem; }

.about-page .timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.about-page .timeline li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; padding: .5rem 0; }
.about-page .timeline .dot { width: 12px; height: 12px; margin-top: .35rem; border-radius: 50%; background: var(--brand, #0057ff); box-shadow: 0 0 0 4px rgba(0,87,255,.15); }
.about-page .timeline .body h4 { margin: 0 0 .2rem; }
.about-page .timeline .body p { margin: 0; }

.about-page .logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.about-page .logo-row img { height: 40px; width: auto; opacity: .9; filter: grayscale(20%); }

.about-page .cta-band { background: linear-gradient(0deg, #ededed, #fff); padding: 2rem 0; }
.about-page .cta-grid { display: grid; gap: 1rem; grid-template-columns: 1.5fr auto; align-items: center; }
.about-page .cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .about-page .hero-grid, .about-page .cta-grid { grid-template-columns: 1fr; }
  .about-page .hero-media { order: -1; }
}

/* 1) Notary Modes (Apostille page): push card content to the right */
#services-page .grid.g-3.cards.tight-cards > li.card.p {
  padding-left: 1.75rem !important;   /* was 1rem — adds ~12px of breathing room */
}

/* 2) Their bullet lists are "inside" which hugs the left edge — push them too */
#services-page .grid.g-3.cards.tight-cards > li.card.p .dash {
  list-style-position: outside !important;
  padding-left: 1.1rem !important;    /* indent bullets + text cleanly */
}
/* ===== Floating Band Sections (large rounded rectangles) ===== */
.section.band {
  position: relative;
  display: flex;
  justify-content: center;          /* centers the inner block */
  background: transparent;          /* remove full-width bg color */
  padding: 3rem 0;                  /* space above/below the band */
}

/* The inner “floating” rectangle */
.section.band .container {
  width: 200%;                       /* covers ~75% of screen */
  background: ededed;              /* same tone as cards */
  border-radius: 30px;              /* big soft corners */
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border: 1px solid #e0e4eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Large centered rectangle band */
.section.band .container {
  position: relative;
  left: 50%;                       /* anchor midpoint */
  transform: translateX(-50%);     /* center perfectly regardless of width */
  width: 120%;                     /* can safely exceed 100% now */
  max-width: 2000px;               /* optional safety cap */
  background: #ededed;
  border-radius: 40px;
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border: 1px solid #e0e4eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Remove hover from the outer band; only animate when hovering the container itself */
.section.band .container {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}




/* Optional: keep headings centered and tidy */
.section.band .section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Responsive tweak: full width on small screens */
@media (max-width: 900px) {
  .section.band .container {
    width: 90%;
    border-radius: 20px;
    padding: 2rem 1.5rem;
  }
}
/* ===== Apostille hero: center title + subtitle + buttons ===== */
#services-page .hero-split-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;  /* single column */
  justify-items: center !important;       /* center the column */
  align-items: center !important;
  text-align: center !important;
}

#services-page .hero-copy {
  text-align: center !important;
  max-width: 900px;                        /* keeps lines readable */
  margin: 0 auto !important;
}

#services-page .hero-actions {
  display: flex !important;
  justify-content: center !important;
  gap: .75rem !important;
  flex-wrap: wrap !important;
  margin-top: .6rem;
}
/* ===== Notary Form Toggle Buttons ===== */
.notarized-toggle {
  margin-top: 1.25rem;
  text-align: center;
}

.notarized-toggle .field-label {
  display: block;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.5rem;
  font-family: "Montserrat", sans-serif;
}

.toggle-group {
  display: inline-flex;
  gap: 0.75rem;
}

.toggle-group input[type="radio"] {
  display: none;
}

.toggle-btn {
  cursor: pointer;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  background: ededed;
  border: 2px solid transparent;
  color: #000;
  transition: all 0.25s ease;
  font-family: "Montserrat", sans-serif;
}

/* Hover + checked states in AIMS blue */
.toggle-btn:hover {
  background: #eaf0ff;
  border-color: #0057ff;
  color: #0057ff;
}

.toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #0057ff;
  color: #fff;
  border-color: #0057ff;
  box-shadow: 0 3px 10px rgba(0, 87, 255, 0.25);
  transform: translateY(-1px);
}
/* Center the Notarized? toggle group cleanly */
.notarized-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centers both label + buttons horizontally */
  justify-content: center;
  text-align: center;
  margin-top: 1.25rem;
}

.notarized-toggle .toggle-group {
  justify-content: center;   /* centers Yes/No buttons */
  width: 100%;
}
/* --- Refined white style for Notarized toggle buttons --- */
.toggle-btn {
  background: #ffffff !important;      /* clean white base */
  border: 2px solid #d0d6e0 !important;
  color: #000 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* Hover: soft blue tint with blue border */
.toggle-btn:hover {
  background: #f5f8ff !important;      /* faint blue tint */
  border-color: #0057ff !important;
  color: #0057ff !important;
  box-shadow: 0 4px 10px rgba(0,87,255,0.15);
}

/* Checked: solid AIMS blue with white text */
.toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #0057ff !important;
  border-color: #0057ff !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,87,255,0.25);
  transform: translateY(-1px);
}
/* ===== AIMS Theme for Flatpickr ===== */
.flatpickr-calendar {
  font-family: "Montserrat", sans-serif;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid #e0e4eb;
  background: #fff;
}

.flatpickr-day {
  border-radius: 8px;
  transition: all 0.2s ease;
  color: #000;
}

.flatpickr-day:hover {
  background: #f0f3ff;
  color: #0057ff;
}

.flatpickr-day.today {
  background: #0057ff;
  color: #fff;
  font-weight: 600;
}

.flatpickr-day.selected {
  background: #0057ff;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0,87,255,0.2);
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays {
  background: ededed;
  color: #000;
}

.flatpickr-current-month input.cur-year {
  font-weight: 600;
}

.flatpickr-weekday {
  color: #0057ff;
  font-weight: 600;
}
/* ===== AIMS-styled Flatpickr enhancements ===== */

/* Make popup calendar larger */
.flatpickr-calendar {
  transform: scale(1.15);                /* increases overall size */
  transform-origin: top center;
  font-size: 1rem;
}

/* Adjust spacing to keep layout smooth after scaling */
.flatpickr-calendar.open {
  margin-top: 8px;
}

/* Ensure input placeholder matches your design */
input#order-date::placeholder {
  color: #777;
  font-style: italic;
  opacity: 0.8;
  font-family: "Montserrat", sans-serif;
}

/* Keep altInput (the visible pretty field) consistent */
input.flatpickr-input[readonly] {
  background: #fff;
  border: 2px solid #d0d6e0;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #000;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

input.flatpickr-input[readonly]:hover {
  border-color: #0057ff;
  box-shadow: 0 4px 12px rgba(0,87,255,0.15);
}

input.flatpickr-input[readonly]:focus {
  border-color: #0057ff;
  background: #f5f8ff;
  box-shadow: 0 0 0 3px rgba(0,87,255,0.2);
  outline: none;
}
/* Move Flatpickr popup horizontally */
.flatpickr-calendar {
  margin-left: 20px !important;  /* 👈 adjust this number for how far right you want */
}
/* === Terms row (form) === */
.terms-field { margin-top: 1rem; }
.terms-check {
  display: flex; align-items: center; gap: .5rem; font-weight: 600;
}
.terms-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--brand);
}
.link-btn {
  background: none; border: 0; padding: 0; margin: 0 .1rem;
  color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline;
}
.link-btn:hover { opacity: .85; }

/* === Modal === */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: grid; place-items: center; z-index: 2000;
}
.modal-card {
  width: min(760px, 92vw);
  background: #fff; border: 1px solid #e0e4eb; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
  overflow: hidden; animation: modalIn .18s ease;
  font-family: "Montserrat", sans-serif;
}
@keyframes modalIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid #e9edf6; background: ededed;
}
.modal-head h3 { margin: 0; }
.modal-close {
  background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer;
  color: #000; opacity: .6;
}
.modal-close:hover { opacity: .9; }
.modal-body {
  max-height: min(60vh, 620px); overflow: auto; padding: 1rem 1.25rem; line-height: 1.6;
}
.modal-actions {
  display: flex; justify-content: flex-end; gap: .6rem;
  padding: 1rem 1.25rem; border-top: 1px solid #e9edf6; background: #ededed;
}

/* Optional: center the terms row like your other controls */
.notarized-toggle + .terms-field { text-align: center; }

/* Ensure hidden really hides the modal backdrop */
.modal-backdrop[hidden] { display: none !important; }

/* Backdrop sits on top of everything */
.modal-backdrop {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45);
  z-index: 2000;
}
/* Lock centering for ONLY the Notary Modes band */
#notary-modes-band .container {
  position: static !important;          /* cancel left/translate centering */
  left: auto !important;
  transform: none !important;
  width: 250% !important;                /* adjust 70–80% if you like */
  max-width: 1200px !important;
  margin: 0 auto !important;            /* classic centering */
  box-sizing: border-box;
}

/* Ensure hover never re-introduces a transform on this band */
#notary-modes-band .container:hover {
  transform: none !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08); /* optional; or remove entirely */
}

/* Reusable: a normally centered band (no translate trick) */
.section.band.band--auto .container {
  position: static !important;
  left: auto !important;
  transform: none !important;
  width: 75% !important;         /* tweak 70–85% to taste */
  max-width: 1200px !important;
  margin: 0 auto !important;      /* true centering */
  box-sizing: border-box;
}

/* Optional: ensure no “lift” animation on this variant */
.section.band.band--auto .container:hover {
  transform: none !important;
}

:root{
  /* If your testimonial cards are a different tint, swap this hex to match */
  --surface: ededed;          /* testimonial-like light gray-blue */
  --surface-border: #d0d6e0;   /* soft border that matches your site */
}

/* === Service cards: lock button to bottom-left === */
.services-grid .card,
.grid.services-grid .card {
  display: flex;
  flex-direction: column;
}

/* Push button to bottom */
.services-grid .card .btn,
.grid.services-grid .card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* === Homepage Services: make Learn More buttons blue === */
#services .card .btn {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  font-weight: 700;
}

/* Hover state */
#services .card .btn:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 87, 255, 0.35);
  transform: translateY(-2px);
}
/* Homepage Services: force Learn more button text white (and keep it white on hover) */
#services .services-preview a.btn,
#services .services-preview a.btn:visited,
#services .services-preview a.btn:hover,
#services .services-preview a.btn:active {
  color: #fff !important;
}

/* Ensure custom dropdown menu is clickable above cards/sections */
.aims-sel { position: relative; }
.aims-sel[open] .aims-sel__menu { position: absolute; z-index: 3000; }
.aims-sel__menu, .aims-sel__menu * { pointer-events: auto; }

/* Security page: make the added services list feel like your other bands */
#security-guards .band-inner{
  background: var(--surface, ededed);
  border: 1px solid var(--surface-border, #d0d6e0);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}

/* Keep cards spacing consistent inside this block */
#security-guards .band-inner .services-preview{
  margin-top: 1.25rem;
}

/* Reduce list indentation so the bullets match your theme */
#security-guards .band-inner .dash{
  margin-top: .75rem;
  padding-left: 1.1rem;
}

/* ===========================
   SECURITY PAGE — WHITE CARDS + BLUE LEFT LINE
   =========================== */

/* 1) Force the service cards to be white inside the Security services band */
#services .cards .card {
  background: var(--card) !important;
  border: 1px solid #d0d6e0 !important;
  border-radius: var(--radius) !important;
  position: relative;
  overflow: hidden; /* keeps the blue line clean */
}

/* 2) Blue accent line on the left (always visible) */
#services .cards .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}

/* 3) Make sure the text is black on white cards */
#services .cards .card,
#services .cards .card h3,
#services .cards .card p,
#services .cards .card li {
  color: #000000 !important;
}

/* 4) OPTIONAL: hover polish (still clean) */
#services .cards .card:hover {
  background: #f5f8ff !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  transition: all 0.2s ease-in-out;
}

/* ======================================
   SECURITY PAGE — TEXT TURNS BLUE ON HOVER
   ====================================== */

#services .card:hover h3,
#services .card:hover p,
#services .card:hover li {
  color: var(--brand) !important;
}
/* ======================================
   GUARD LEVEL ROWS (NON-CARD LAYOUT)
   ====================================== */

.guard-rows {
  display: grid;
  gap: 1rem;
}

.guard-row {
  background: #ffffff;
  border: 1px solid #d0d6e0;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  position: relative;
}

/* Static blue rail */
.guard-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--brand);
}

/* Title */
.guard-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

/* Meta row */
.guard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #333;
}

/* Hover polish */
.guard-row:hover {
  background: #f5f8ff;
}

.guard-row:hover,
.guard-row:hover .guard-title,
.guard-row:hover .guard-meta span {
  color: var(--brand);
}

.guard-row * {
  transition: color 0.15s ease-in-out;
}
/* Make the mini cards inside the process section match the Security card styling */
#security-process .card {
  position: relative;
  background: #ffffff !important;
  border: 1px solid #d0d6e0 !important;
  border-radius: var(--radius);
  overflow: hidden;
}

#security-process .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--brand);
}

#security-process .card:hover h4,
#security-process .card:hover p,
#security-process .card:hover li {
  color: var(--brand) !important;
}
/* ======================================
   SECURITY PROCESS — HORIZONTAL MINIMAL
   ====================================== */

#security-process {
  background: #ffffff;
}

/* row layout */
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* each step */
.process-step {
  max-width: 320px;
  margin: 0 auto;
}

/* filled blue circle */
.process-circle {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* titles */
.process-step h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a0a0a;
}

/* text */
.process-step p {
  margin: 0;
  line-height: 1.6;
}

/* subtle hover polish */
.process-step:hover h4,
.process-step:hover p {
  color: var(--brand);
}

.process-step * {
  transition: color 0.15s ease-in-out;
}

/* mobile stacking */
@media (max-width: 900px) {
  .process-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ======================================
   CENTER SECTION HEADERS (GLOBAL)
   ====================================== */

.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.section-head .eyebrow {
  justify-content: center;
}

/* Center standalone section titles (like Request Coverage) */
.section > .container > h2,
.section > .container > h1 {
  text-align: center;
}
/* ======================================
   CENTER FORM SECTION HEADER
   ====================================== */

.apply-section h2,
.apply-section > .container h2 {
  text-align: center;
}

.apply-section p.muted {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
/* ======================================
   SECURITY LEVELS — 4 ACROSS LAYOUT
   ====================================== */

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* FORCE 4 IN A ROW */
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* keep each step tight and readable */
.process-step {
  max-width: 280px;
  margin: 0 auto;
}

/* tablet: still 4 if space allows */
@media (max-width: 1100px) {
  .process-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

/* mobile: stack */
@media (max-width: 650px) {
  .process-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* ======================================
   SECURITY PAGE ONLY — SERVICES OFFERED
   ====================================== */

.page-security #services .services-preview {
  gap: 1.25rem;
}

.page-security #services .services-preview .card.p {
  padding: 1.05rem 1.15rem !important;
  border-radius: 14px;
  background: var(--card) !important;
  border: 1px solid #d0d6e0 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Static blue line */
.page-security #services .services-preview .card.p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--brand);
}

/* Typography tightening */
.page-security #services .services-preview .card.p h3 {
  margin: 0 0 .35rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a0a0a !important;
}

.page-security #services .services-preview .card.p p.muted {
  margin: 0 0 .6rem 0;
  font-size: .92rem;
  line-height: 1.45;
  color: #222 !important;
}

.page-security #services .services-preview .card.p li {
  margin-bottom: .28rem;
  font-size: .92rem;
  line-height: 1.45;
  color: #222 !important;
}

/* Hover polish */
.page-security #services .services-preview .card.p:hover {
  background: #f5f8ff !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.page-security #services .services-preview .card.p:hover h3,
.page-security #services .services-preview .card.p:hover p,
.page-security #services .services-preview .card.p:hover li {
  color: var(--brand) !important;
}
.page-security #services .services-preview .card.p {
}
/* ===== GLOBAL CARD BACKGROUND (FINAL OVERRIDE) ===== */
html body .card,
html body .cards .card,
html body #services .card,
html body #services-page .card {
  background: var(--card) !important;
  border-color: var(--line) !important;
}
/* ======================================
   GLOBAL: Band background color
   (your band is the inner .container)
   ====================================== */

.section.band .container {
  background: var(--band) !important;
}
.band-steps {
  background: var(--band) !important;
}
/* ======================================
   GLOBAL FORCE — ALL BAND BACKGROUNDS
   ====================================== */

/* Any container inside band-like sections ONLY */
.section.band .container,
.band .container,
.band--auto .container,
.band-steps .container {
  background: var(--band) !important;
}
/* ======================================
   ABOUT PAGE — Mission badge bubbles
   ====================================== */

.about-page .badges li {
  background: #f6f6f6;
}
/* =====================================================
   LAW ENFORCEMENT PAGE (page-law-enforcement)
   Scoped styles only — no global side effects
   ===================================================== */

/* Page wrapper */
.page-law-enforcement {
  background: #ffffff;
}

/* ---------------------------------
   Services Offered cards (LE)
---------------------------------- */

.page-law-enforcement #services .services-preview {
  gap: 1.25rem;
}

.page-law-enforcement #services .services-preview .card.p {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

/* Static blue accent line */
.page-law-enforcement #services .services-preview .card.p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--brand);
}

/* Card typography */
.page-law-enforcement #services .services-preview .card.p h3 {
  margin: 0 0 .35rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a0a0a;
}

.page-law-enforcement #services .services-preview .card.p p.muted {
  margin: 0 0 .6rem 0;
  font-size: .92rem;
  line-height: 1.45;
  color: #2a2f36;
}

.page-law-enforcement #services .services-preview .card.p li {
  font-size: .92rem;
  line-height: 1.45;
  color: #2a2f36;
}

/* Hover polish (keeps site-wide behavior consistent) */
.page-law-enforcement #services .services-preview .card.p:hover {
  background: #eef2ff !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.page-law-enforcement #services .services-preview .card.p:hover h3,
.page-law-enforcement #services .services-preview .card.p:hover p,
.page-law-enforcement #services .services-preview .card.p:hover li {
  color: var(--brand);
}

/* ---------------------------------
   Law Enforcement Levels section
---------------------------------- */

.page-law-enforcement .process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.page-law-enforcement .process-step {
  max-width: 280px;
  margin: 0 auto;
}

/* Filled blue circles */
.page-law-enforcement .process-circle {
  width: 52px;
  height: 52px;
  margin: 0 auto .75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* Titles & text */
.page-law-enforcement .process-step h4 {
  margin: 0 0 .35rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a0a0a;
}

.page-law-enforcement .process-step p {
  margin: 0;
  line-height: 1.6;
  color: #2a2f36;
}

/* ---------------------------------
   Responsive behavior
---------------------------------- */

@media (max-width: 1100px) {
  .page-law-enforcement .process-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .page-law-enforcement .process-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* LAW ENFORCEMENT — FORCE MATCH SECURITY CARD SIZE */
.page-law-enforcement #services .services-preview .card.p {
  padding: 1rem 1.1rem !important;
}

.page-law-enforcement #services .services-preview .card.p h3 {
  font-size: 1.05rem !important;
  margin-bottom: 0.3rem !important;
}

.page-law-enforcement #services .services-preview .card.p p.muted {
  font-size: 0.92rem !important;
  margin-bottom: 0.5rem !important;
}

.page-law-enforcement #services .services-preview .card.p li {
  font-size: 0.92rem !important;
  margin-bottom: 0.25rem !important;
}
/* ======================================
   LAW ENFORCEMENT — SUBTLE CARD SHADOW
   ====================================== */

.page-law-enforcement #services .services-preview .card.p {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Slightly stronger on hover (still tasteful) */
.page-law-enforcement #services .services-preview .card.p:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =====================================================
   TRAFFIC CONTROL PAGE (page-traffic-control)
   Matches Security + Law Enforcement styling
   ===================================================== */

/* ---------------------------------
   Services cards (size + look)
---------------------------------- */

.page-traffic-control #services .services-preview {
  gap: 1.25rem;
}

.page-traffic-control #services .services-preview .card.p {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Static blue accent line */
.page-traffic-control #services .services-preview .card.p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--brand);
}

/* Card typography */
.page-traffic-control #services .services-preview .card.p h3 {
  margin: 0 0 .3rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a0a0a;
}

.page-traffic-control #services .services-preview .card.p p.muted {
  margin: 0 0 .5rem 0;
  font-size: .92rem;
  line-height: 1.45;
  color: #2a2f36;
}

.page-traffic-control #services .services-preview .card.p li {
  font-size: .92rem;
  line-height: 1.45;
  margin-bottom: .25rem;
  color: #2a2f36;
}

/* Hover polish */
.page-traffic-control #services .services-preview .card.p:hover {
  background: #eef2ff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.page-traffic-control #services .services-preview .card.p:hover h3,
.page-traffic-control #services .services-preview .card.p:hover p,
.page-traffic-control #services .services-preview .card.p:hover li {
  color: var(--brand);
}

/* ---------------------------------
   Coverage overview (process row)
---------------------------------- */

.page-traffic-control .process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.page-traffic-control .process-step {
  max-width: 280px;
  margin: 0 auto;
}

/* Filled blue circles */
.page-traffic-control .process-circle {
  width: 52px;
  height: 52px;
  margin: 0 auto .75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.page-traffic-control .process-step h4 {
  margin: 0 0 .35rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a0a0a;
}

.page-traffic-control .process-step p {
  margin: 0;
  line-height: 1.6;
  color: #2a2f36;
}

/* ---------------------------------
   Responsive behavior
---------------------------------- */

@media (max-width: 1100px) {
  .page-traffic-control .process-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .page-traffic-control .process-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* ======================================
   TRAFFIC CONTROL — FORCE SMALLER CARDS
   ====================================== */

main.page-traffic-control #services .card.p,
.page-traffic-control #services .card.p {
  padding: 1rem 1.1rem !important;
}

main.page-traffic-control #services .card.p h3,
.page-traffic-control #services .card.p h3 {
  font-size: 1.05rem !important;
  margin: 0 0 .3rem 0 !important;
}

main.page-traffic-control #services .card.p p.muted,
.page-traffic-control #services .card.p p.muted {
  font-size: .92rem !important;
  margin: 0 0 .5rem 0 !important;
}

main.page-traffic-control #services .card.p li,
.page-traffic-control #services .card.p li {
  font-size: .92rem !important;
  margin-bottom: .25rem !important;
}
/* ======================================
   TRAFFIC CONTROL — MATCH SMALL CARD SIZE
   ====================================== */

.page-traffic-control #services .services-preview .card.p,
main.page-traffic-control #services .services-preview .card.p {
  padding: 1rem 1.1rem !important;
}

/* Headings */
.page-traffic-control #services .services-preview .card.p h3,
main.page-traffic-control #services .services-preview .card.p h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.3rem 0 !important;
}

/* Body text */
.page-traffic-control #services .services-preview .card.p p.muted,
main.page-traffic-control #services .services-preview .card.p p.muted {
  font-size: 0.92rem !important;
  margin: 0 0 0.5rem 0 !important;
}

/* List items */
.page-traffic-control #services .services-preview .card.p li,
main.page-traffic-control #services .services-preview .card.p li {
  font-size: 0.92rem !important;
  margin-bottom: 0.25rem !important;
}
/* ======================================
   ESCORT & TRANSPORTATION — MATCH CARD SIZE
   ====================================== */

.page-escort-transportation #services .services-preview .card.p {
  padding: 1rem 1.1rem !important;
}

/* Headings */
.page-escort-transportation #services .services-preview .card.p h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.3rem 0 !important;
}

/* Body text */
.page-escort-transportation #services .services-preview .card.p p.muted {
  font-size: 0.92rem !important;
  margin: 0 0 0.5rem 0 !important;
}

/* List items */
.page-escort-transportation #services .services-preview .card.p li {
  font-size: 0.92rem !important;
  margin-bottom: 0.25rem !important;
}

/* ======================================
   PRIVATE INVESTIGATION — MATCH SMALL CARD SIZE
   ====================================== */

.page-private-investigation #services .services-preview .card.p,
main.page-private-investigation #services .services-preview .card.p {
  padding: 1rem 1.1rem !important;
}

/* Headings */
.page-private-investigation #services .services-preview .card.p h3,
main.page-private-investigation #services .services-preview .card.p h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.3rem 0 !important;
}

/* Body text */
.page-private-investigation #services .services-preview .card.p p.muted,
main.page-private-investigation #services .services-preview .card.p p.muted {
  font-size: 0.92rem !important;
  margin: 0 0 0.5rem 0 !important;
}

/* List items */
.page-private-investigation #services .services-preview .card.p li,
main.page-private-investigation #services .services-preview .card.p li {
  font-size: 0.92rem !important;
  margin-bottom: 0.25rem !important;
}
/* === FIX: submenu should NOT widen for long items === */
header nav .submenu {
  width: 290px !important;      /* pick your preferred width */
  min-width: 290px !important;
  max-width: 290px !important;
  box-sizing: border-box;
}

header nav .submenu a {
  white-space: normal !important;   /* allow wrapping (stops widening) */
  word-break: break-word;
}
/* === Submenu horizontal offset === */
header nav .submenu {
  left: -100px; /* adjust: try 4–12px if you want */
}
/* ======================================
   LEGAL & PROCESS SERVICES — MATCH SMALL CARD SIZE
   ====================================== */

.page-legal-process #services .services-preview .card.p,
main.page-legal-process #services .services-preview .card.p {
  padding: 1rem 1.1rem !important;
}

/* Headings */
.page-legal-process #services .services-preview .card.p h3,
main.page-legal-process #services .services-preview .card.p h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.3rem 0 !important;
}

/* Body text */
.page-legal-process #services .services-preview .card.p p.muted,
main.page-legal-process #services .services-preview .card.p p.muted {
  font-size: 0.92rem !important;
  margin: 0 0 0.5rem 0 !important;
}

/* List items */
.page-legal-process #services .services-preview .card.p li,
main.page-legal-process #services .services-preview .card.p li {
  font-size: 0.92rem !important;
  margin-bottom: 0.25rem !important;
}
/* ======================================
   NOTARY SERVICES — MATCH SMALL CARD SIZE
   ====================================== */

.page-notary-services #services .services-preview .card.p,
main.page-notary-services #services .services-preview .card.p {
  padding: 1rem 1.1rem !important;
}

/* Headings */
.page-notary-services #services .services-preview .card.p h3,
main.page-notary-services #services .services-preview .card.p h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.3rem 0 !important;
}

/* Body text */
.page-notary-services #services .services-preview .card.p p.muted,
main.page-notary-services #services .services-preview .card.p p.muted {
  font-size: 0.92rem !important;
  margin: 0 0 0.5rem 0 !important;
}

/* List items */
.page-notary-services #services .services-preview .card.p li,
main.page-notary-services #services .services-preview .card.p li {
  font-size: 0.92rem !important;
  margin-bottom: 0.25rem !important;
}

/* ======================================
   APOSTILLE SERVICES — MATCH SMALL CARD SIZE
   ====================================== */

.page-apostille-services #services .services-preview .card.p,
main.page-apostille-services #services .services-preview .card.p {
  padding: 1rem 1.1rem !important;
}

/* Headings */
.page-apostille-services #services .services-preview .card.p h3,
main.page-apostille-services #services .services-preview .card.p h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.3rem 0 !important;
}

/* Body text */
.page-apostille-services #services .services-preview .card.p p.muted,
main.page-apostille-services #services .services-preview .card.p p.muted {
  font-size: 0.92rem !important;
  margin: 0 0 0.5rem 0 !important;
}

/* List items */
.page-apostille-services #services .services-preview .card.p li,
main.page-apostille-services #services .services-preview .card.p li {
  font-size: 0.92rem !important;
  margin-bottom: 0.25rem !important;
}

button.sent {
  background-color: #28a745; /* green */
  border-color: #28a745;
}

button.error {
  background-color: #dc3545; /* red */
  border-color: #dc3545;
}

button[disabled] {
  opacity: 0.8;
  cursor: not-allowed;
}

/* SECURITY page — center the 3 level circles perfectly */
#security-process .process-row{
  display: flex !important;
  justify-content: center !important;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: nowrap;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

#security-process .process-step{
  flex: 1 1 0;
  max-width: 320px;           /* keeps them from stretching too wide */
  display: flex;
  flex-direction: column;
  align-items: center;
}

#security-process .process-circle{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: .75rem;
}

button.sending { opacity: 0.85; cursor: progress; }
button.sent { background-color: #28a745; border-color: #28a745; }
button.error { background-color: #dc3545; border-color: #dc3545; }
button[disabled] { cursor: not-allowed; }

/* ===== AIMS SIGNATURE VIGNETTE GRADIENT =====
   Center-lit, edge-darkened framing
   DO NOT REMOVE unless redesigning
================================== */


html body {
  background-image:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.23) 0%,
      rgba(0,0,0,0.08) 18%,
      rgba(0,0,0,0.00) 50%,
      rgba(0,0,0,0.08) 82%,
      rgba(0,0,0,0.23) 100%
    ),
    url("background1.png");
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* Header */
header {
  background-image: linear-gradient(
    90deg,
    #080808 0%,
    #1e1e1e 22%,
    #1e1e1e 50%,
    #1e1e1e 78%,
    #080808 100%
  ) !important;
}

/* Top banner */
.top-banner {
  background-image: linear-gradient(
    90deg,
    #002f86 0%,
    #0057ff 22%,
    #0057ff 50%,
    #0057ff 78%,
    #002f86 100%
  ) !important;
}

/* Footer */
footer {
  background-image: linear-gradient(
    90deg,
    #080808 0%,
    #222222 22%,
    #222222 50%,
    #222222 78%,
    #080808 100%
  ) !important;
}

/* ===========================
   STOP THE "FLAT COLOR" SECTIONS
   (Keep vignette visible on the sides)
   =========================== */

/* Make big wrapper sections NOT paint solid full-width backgrounds */
main,
section,
.section,
.page,
.page-section {
  background: transparent !important;
}

/* If you have any "band" sections that were full-width gray/white,
   move the background to the container instead. */
.section.band {
  background: transparent !important;
}

/* Give containers the soft panel look instead (so content still has contrast) */
.section .container,
.section.band .container,
.page-section .container {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
}

/* Keep spacing so panels don’t touch each other */
.section .container,
.section.band .container,
.page-section .container {
  padding: 28px;
}

/* On dark sections (like testimonials if you have them), use a slightly darker panel */
.section.dark .container,
.section.testimonials .container {
  background: rgba(255,255,255,0.88);
}

/* ===========================
   BULLETPROOF SITE BACKGROUND (works on /services pages too)
   =========================== */

html {
  background-image:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.23) 0%,
      rgba(0,0,0,0.08) 18%,
      rgba(0,0,0,0.00) 50%,
      rgba(0,0,0,0.08) 82%,
      rgba(0,0,0,0.23) 100%
    ),
    url("/background1.png"); /* absolute path = works everywhere */
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* Make sure nothing paints over the html background */
body {
  background: transparent !important;
}






/* ===========================
   TOP BANNER — RESPONSIVE + CENTERED (FINAL OVERRIDE)
   =========================== */

.top-banner-grid{
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important; /* left | center | right */
  align-items: center !important;
  gap: 12px !important;
}

.tb-left{ justify-self: start !important; }
.tb-center{ justify-self: center !important; text-align: center !important; }
.tb-right{ justify-self: end !important; }

/* Keep the banner readable without looking cramped */
.top-banner{
  font-size: clamp(0.95rem, 1.2vw, 1.1rem) !important;
}

/* Tablet: hide the long middle slogan, keep left/right */
@media (max-width: 900px){
  .tb-center{ display: none !important; }
  .top-banner-grid{
    grid-template-columns: 1fr 1fr !important;
  }
  .tb-left{ justify-self: start !important; }
  .tb-right{ justify-self: end !important; }
}

/* Phone: stack and center everything */
@media (max-width: 600px){
  .top-banner-grid{
    grid-template-columns: 1fr !important;
    row-gap: 6px !important;
  }
  .tb-left, .tb-right{
    justify-self: center !important;
    text-align: center !important;
    white-space: normal !important;
  }
}




/* ===========================
   TOP BANNER — SIDES "PULL IN" RESPONSIVELY
   =========================== */

.top-banner-grid{
  display: grid !important;

  /* Left + Right are flexible and shrink as needed
     Center stays centered */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;

  align-items: center !important;
  gap: 12px !important;

  /* Important: let the grid actually shrink */
  width: 100% !important;
}

/* Keep the center truly centered */
.tb-center{
  justify-self: center !important;
  text-align: center !important;
  padding: 0 10px !important;
}

/* Make side items hug inward instead of staying wide */
.tb-left{
  justify-self: start !important;     /* pulls left block toward center */
  text-align: left !important;
  padding-right: 8px !important;
}

.tb-right{
  justify-self: end !important;   /* pulls right block toward center */
  text-align: right !important;
  padding-left: 8px !important;
}

/* Critical: allow content to shrink instead of forcing overflow */
.tb-left,
.tb-right{
  min-width: 0 !important;
  white-space: nowrap;             /* keeps phone/email on one line */
}

/* Optional: keep the center from forcing the sides too far out */
.tb-center{
  max-width: 60ch;                  /* prevents mega-wide center text */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* When it gets tight: hide center instead of breaking layout */
@media (max-width: 900px){
  .tb-center{ display:none !important; }
  .top-banner-grid{
    grid-template-columns: 1fr 1fr !important;
  }
  .tb-left{ justify-self: start !important; text-align: left !important; }
  .tb-right{ justify-self: end !important; text-align: right !important; }
}

/* Small phones: stack */
@media (max-width: 600px){
  .top-banner-grid{
    grid-template-columns: 1fr !important;
    row-gap: 6px !important;
  }
  .tb-left, .tb-right{
    justify-self: center !important;
    text-align: center !important;
    white-space: normal;
  }
}


.hero .hero-inner p {
  color: rgba(255,255,255,0.92) !important;
}



.hero.hero-services .hero-inner p,
.hero .hero-inner p {
  color: rgba(255,255,255,0.92) !important;
  opacity: 1 !important;
}


.top-banner .container { padding-left: 520px; padding-right: 520px; }




.apply-card .form .btn.brand { width: 100%; } /* full-width CTA on each card */





@media (max-width:900px){ .foot{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .foot{grid-template-columns:1fr;} }
