/* ==========================================================================
   AVIOUS AI & CYBERSECURITY - public design system
   Palette lives in :root; change the variables to re-theme the whole site.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --av-navy: #0B1220;
  --av-navy-2: #111B30;
  --av-blue: #2563EB;
  --av-blue-dark: #1D4ED8;
  --av-cyan: #22D3EE;
  --av-white: #FFFFFF;
  --av-light: #F5F8FC;
  --av-text: #172033;
  --av-muted: #5B6B82; /* slightly darker than #64748B so small text meets WCAG AA contrast */
  --av-border: #E2E8F0;
  --av-radius: 16px;
  --av-radius-sm: 10px;
  --av-shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px rgba(11, 18, 32, .06);
  --av-shadow-lg: 0 20px 50px rgba(11, 18, 32, .14);
  --av-gradient: linear-gradient(135deg, var(--av-blue) 0%, var(--av-cyan) 100%);
  --av-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --bs-primary: var(--av-blue);
  --bs-primary-rgb: 37, 99, 235;
  --bs-body-font-family: var(--av-font);
  --bs-body-color: var(--av-text);
  --bs-link-color: var(--av-blue);
  --bs-link-hover-color: var(--av-blue-dark);
}

html { scroll-behavior: smooth; }
body { font-family: var(--av-font); color: var(--av-text); background: var(--av-white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--av-navy); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--av-cyan); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--av-navy); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---- Buttons ---------------------------------------------------------- */
.btn-av, .btn-av-outline, .btn-av-light {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; padding: .8rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-av { background: var(--av-blue); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.btn-av:hover { background: var(--av-blue-dark); color: #fff; transform: translateY(-2px); }
.btn-av-outline { border-color: var(--av-border); color: var(--av-navy); background: transparent; }
.btn-av-outline:hover { border-color: var(--av-blue); color: var(--av-blue); transform: translateY(-2px); }
.btn-av-light { background: #fff; color: var(--av-navy); }
.btn-av-light:hover { background: var(--av-cyan); color: var(--av-navy); transform: translateY(-2px); }
.btn-sm-av { padding: .55rem 1.15rem; font-size: .92rem; }

/* ---- Announcement + navigation ---------------------------------------- */
.announcement { background: var(--av-gradient); color: var(--av-navy); font-size: .92rem; font-weight: 600; text-align: center; padding: .5rem 1rem; }
.announcement a { color: var(--av-navy); text-decoration: underline; }

.site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--av-border); position: sticky; top: 0; z-index: 1030; }
.site-nav .navbar { padding-block: .7rem; }
.brand-mark { display: inline-flex; align-items: center; gap: .65rem; color: var(--av-navy); font-weight: 800; letter-spacing: -.01em; }
.brand-mark:hover { color: var(--av-navy); }
.brand-mark img { height: 40px; width: auto; }
.brand-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--av-navy); display: grid; place-items: center; flex: none; }
.brand-icon svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.05; font-size: 1.05rem; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .14em; color: var(--av-blue); font-weight: 700; margin-top: 3px; }
.site-nav .nav-link { color: var(--av-text); font-weight: 500; padding: .5rem .9rem !important; border-radius: 8px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--av-blue); background: rgba(37, 99, 235, .07); }

/* ---- Layout helpers --------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--av-light); }
.section-dark { background: var(--av-navy); color: #CBD5E1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--av-blue); margin-bottom: 1rem; }
.section-dark .eyebrow { color: var(--av-cyan); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.section-lead { color: var(--av-muted); font-size: 1.1rem; max-width: 46rem; }
.text-gradient { background: var(--av-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(34, 211, 238, .16), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(37, 99, 235, .12), transparent 60%), var(--av-white); padding: 5rem 0 6rem; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: 1.25rem; }
.hero p.lead { color: var(--av-muted); font-size: 1.15rem; }
.hero-visual { filter: drop-shadow(0 30px 40px rgba(11, 18, 32, .18)); }
.hero-visual svg { width: 100%; height: auto; }
.float { animation: float 7s ease-in-out infinite; }
.float.delay { animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pulse-dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Hero floating objects (network / AI / cybersecurity) --------------- */
.hero-content { position: relative; z-index: 2; }
.hero-floaters { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-links path { fill: none; stroke: var(--av-blue); stroke-opacity: .16; stroke-width: 1.2; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; animation: link-flow 22s linear infinite; }
@keyframes link-flow { to { stroke-dashoffset: -180; } }

/* Outer element: position + mouse parallax. Inner chip: the drifting animation. */
.floater { position: absolute; left: var(--x); top: var(--y); transform: translate3d(calc(var(--mx, 0) * var(--depth) * 1px), calc(var(--my, 0) * var(--depth) * 1px), 0); transition: transform .35s ease-out; will-change: transform; }
.floater-chip { display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 12px; font-size: calc(var(--s) * .46); color: var(--c, var(--av-blue)); background: rgba(255, 255, 255, .72); border: 1px solid rgba(37, 99, 235, .16); box-shadow: 0 8px 22px rgba(37, 99, 235, .14), inset 0 1px 0 rgba(255, 255, 255, .9); backdrop-filter: blur(4px); animation: drift var(--d) ease-in-out var(--delay) infinite alternate; }
.floater-chip b { font-size: .8em; font-weight: 800; letter-spacing: .02em; }
.floater-net { --c: #2563EB; }
.floater-ai { --c: #7C3AED; }
.floater-ai .floater-chip { border-color: rgba(124, 58, 237, .2); box-shadow: 0 8px 22px rgba(124, 58, 237, .14), inset 0 1px 0 rgba(255, 255, 255, .9); }
.floater-sec { --c: #0891B2; }
.floater-sec .floater-chip { border-color: rgba(8, 145, 178, .22); box-shadow: 0 8px 22px rgba(8, 145, 178, .15), inset 0 1px 0 rgba(255, 255, 255, .9); }
.floater-dot .floater-chip { width: var(--s); height: var(--s); border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 35%, #fff, var(--av-cyan) 55%, var(--av-blue)); box-shadow: 0 0 0 4px rgba(34, 211, 238, .16), 0 0 14px rgba(34, 211, 238, .55); backdrop-filter: none; }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r)); } }

@media (max-width: 767.98px) {
  .floater.hide-sm { display: none; }
  .floater-chip { opacity: .7; }
  .floater { transition: none; }
}
@media (pointer: coarse) { .floater { transform: none; } }

/* ---- Touch targets & small-text fixes (WCAG 2.2 target size; comfortable on phones) ---- */
.brand-text small { font-size: .75rem; letter-spacing: .12em; }   /* was 9.9px: too small to read */
.site-footer .brand-text small { color: var(--av-cyan); }          /* blue on navy was only 3.6:1; cyan is 11:1 */
.brand-mark { min-height: 44px; }
.navbar-toggler { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0; }
/* Roomy footer links only where fingers are the pointer (phones/tablets); desktop keeps the compact list. */
.site-footer .social a { width: 44px; height: 44px; margin-bottom: .25rem; }
@media (max-width: 991.98px), (pointer: coarse) {
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .site-footer address { display: inline-block; padding-block: .5rem; }
  .site-footer li > i { margin-top: .6rem; }
  .footer-bottom a { display: inline-block; padding-block: .6rem; }
}
.page-banner .breadcrumb-item { display: flex; align-items: center; }
.page-banner .breadcrumb-item a, .page-banner .breadcrumb-item.active { display: inline-block; padding-block: .55rem; }
.page-banner .breadcrumb { margin-bottom: .4rem; }
.link-arrow { padding-block: .6rem; }
.badge-av { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding-inline: 1rem; font-size: .85rem; }
.input-group .btn { min-width: 48px; }
.form-check-input { width: 1.5em; height: 1.5em; margin-top: .05em; }
.form-check-label { padding-left: .25rem; }
.btn-av, .btn-av-outline, .btn-av-light { min-height: 46px; justify-content: center; }
.btn-sm-av { min-height: 42px; }
@media (hover: none) { .nav-link { min-height: 44px; display: flex; align-items: center; } }

/* ---- Page banner ------------------------------------------------------ */
.page-banner { background: radial-gradient(800px 300px at 90% 0, rgba(34, 211, 238, .22), transparent 60%), var(--av-navy); color: #CBD5E1; padding: 4.5rem 0 4rem; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-banner .tagline { color: var(--av-cyan); font-weight: 600; font-size: 1.1rem; margin-top: .75rem; }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: #64748B; margin-bottom: 1rem; font-size: .9rem; }
.page-banner .breadcrumb a { color: #94A3B8; }
.page-banner .breadcrumb-item.active { color: #CBD5E1; }

/* ---- Photography ------------------------------------------------------- */
/* Banner photo sits under a navy gradient so the white text always stays readable. */
.page-banner.has-image { background:
  linear-gradient(90deg, rgba(11, 18, 32, .95) 0%, rgba(11, 18, 32, .86) 45%, rgba(11, 18, 32, .55) 100%),
  var(--banner-image) center / cover no-repeat, var(--av-navy); }
@media (max-width: 767.98px) { .page-banner.has-image { background:
  linear-gradient(90deg, rgba(11, 18, 32, .95) 0%, rgba(11, 18, 32, .86) 45%, rgba(11, 18, 32, .6) 100%),
  var(--banner-image-sm, var(--banner-image)) center / cover no-repeat, var(--av-navy); } }
.page-banner.has-image .breadcrumb a { color: #B6C2D4; }

/* Home feature panel: photo behind the four pillars. */
.panel-visual.has-image { background: linear-gradient(160deg, rgba(11, 18, 32, .86), rgba(11, 18, 32, .72)), var(--panel-image) center / cover no-repeat, var(--av-navy); }
.panel-visual.has-image::before { display: none; }
.panel-visual.has-image .pillar { background: rgba(11, 18, 32, .55); backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, .14); }

/* Service cards with a photo on top. */
.av-card.has-photo { padding: 0; overflow: hidden; }
.av-card.has-photo .card-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--av-light); transition: transform .5s ease; }
.av-card.has-photo:hover .card-photo { transform: scale(1.04); }
.av-card.has-photo .card-inner { padding: 1.75rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }
.av-card.has-photo .icon-tile { margin-top: -2.9rem; position: relative; box-shadow: 0 8px 20px rgba(37, 99, 235, .3), 0 0 0 4px #fff; }

/* Inline photo with a soft offset frame (About: "Who we are"). */
.about-photo { position: relative; max-width: 34rem; }
.about-photo::before { content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; border-radius: var(--av-radius); background: var(--av-gradient); opacity: .18; z-index: 0; }
.about-photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; border-radius: var(--av-radius); box-shadow: var(--av-shadow-lg); display: block; }
@media (max-width: 991.98px) { .about-photo { max-width: 100%; } .about-photo::before { inset: .8rem -.5rem -.8rem .8rem; } }

/* Service detail hero photo. */
.service-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--av-radius); box-shadow: var(--av-shadow); display: block; background: var(--av-light); }

/* ---- Cards ------------------------------------------------------------ */
.av-card { background: #fff; border: 1px solid var(--av-border); border-radius: var(--av-radius); padding: 2rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.av-card:hover { transform: translateY(-4px); box-shadow: var(--av-shadow-lg); border-color: rgba(37, 99, 235, .35); }
.av-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.av-card p { color: var(--av-muted); margin-bottom: 1.25rem; }
.icon-tile { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.55rem; color: #fff; background: var(--av-gradient); margin-bottom: 1.25rem; flex: none; }
.icon-tile.soft { background: rgba(37, 99, 235, .09); color: var(--av-blue); }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }
.card-stretch { position: relative; }
.card-stretch .stretched-link::after { border-radius: var(--av-radius); }

/* ---- Value list / process --------------------------------------------- */
.value-item { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--av-radius-sm); background: #fff; border: 1px solid var(--av-border); height: 100%; }
.value-item h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.value-item p { margin: 0; color: var(--av-muted); font-size: .96rem; }
.steps { counter-reset: step; position: relative; }
.step { position: relative; padding: 1.75rem; border-radius: var(--av-radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); height: 100%; }
.step .num { width: 42px; height: 42px; border-radius: 50%; background: var(--av-gradient); color: var(--av-navy); font-weight: 800; display: grid; place-items: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; color: #fff; }
.step p { margin: 0; color: #94A3B8; font-size: .96rem; }
@media (min-width: 992px) {
  .steps .col-lg-3:not(:last-child) .step::after { content: ""; position: absolute; top: 2.9rem; right: -1.2rem; width: 1.2rem; height: 2px; background: var(--av-cyan); opacity: .5; }
}

/* ---- Split section visual --------------------------------------------- */
.panel-visual { background: var(--av-navy); border-radius: 24px; padding: 2rem; box-shadow: var(--av-shadow-lg); color: #CBD5E1; position: relative; overflow: hidden; }
.panel-visual::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 80%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(34, 211, 238, .25), transparent); }
.pillar { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); margin-bottom: .75rem; position: relative; }
.pillar i { color: var(--av-cyan); font-size: 1.3rem; }
.pillar span { color: #fff; font-weight: 600; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { background: radial-gradient(700px 300px at 100% 0, rgba(34, 211, 238, .3), transparent 60%), linear-gradient(135deg, var(--av-navy) 0%, #14264d 100%); border-radius: 28px; padding: 4rem 2rem; color: #CBD5E1; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-band .statement { color: var(--av-cyan); font-weight: 700; font-size: 1.2rem; }

/* ---- Blog ------------------------------------------------------------- */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--av-gradient); object-fit: cover; width: 100%; }
.post-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card .body p { flex: 1; }
.badge-av { background: rgba(37, 99, 235, .09); color: var(--av-blue); font-weight: 600; border-radius: 999px; padding: .4em .85em; font-size: .78rem; }
.meta { color: var(--av-muted); font-size: .88rem; }
/* ---- Meet the team (About page; hidden until switched on in the dashboard) ---- */
.team-card { text-align: center; height: 100%; }
.team-photo { aspect-ratio: 4 / 5; border-radius: var(--av-radius); overflow: hidden; background: var(--av-gradient); box-shadow: var(--av-shadow); margin-bottom: 1rem; display: grid; place-items: center; transition: transform .3s ease, box-shadow .3s ease; }
.team-card:hover .team-photo { transform: translateY(-4px); box-shadow: var(--av-shadow-lg); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.team-initials { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 12px rgba(11, 18, 32, .25); }
.team-card h3 { font-size: 1.1rem; margin: 0 0 .15rem; }
.team-card p { color: var(--av-muted); font-size: .95rem; margin: 0; }
@media (max-width: 575.98px) { .team-card h3 { font-size: 1rem; } .team-card p { font-size: .88rem; } }

.article-body { font-size: 1.08rem; max-width: 46rem; margin-inline: auto; }
.article-body h2 { font-size: 1.7rem; margin: 2.2rem 0 1rem; }
.article-body h3 { font-size: 1.3rem; margin: 1.8rem 0 .8rem; }
.article-body img { border-radius: var(--av-radius-sm); margin: 1rem 0; }
.article-body blockquote { border-left: 4px solid var(--av-cyan); padding: .25rem 0 .25rem 1.25rem; color: var(--av-muted); font-style: italic; }
.article-body pre { background: var(--av-navy); color: #E2E8F0; padding: 1rem; border-radius: var(--av-radius-sm); overflow-x: auto; }
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }

/* ---- Legal / long-form pages -------------------------------------------- */
.legal-updated { color: var(--av-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.legal-prose { max-width: 46rem; font-size: 1.05rem; }
.legal-prose h2 { font-size: 1.45rem; margin: 2.75rem 0 .9rem; padding-top: 1.75rem; border-top: 1px solid var(--av-border); }
.legal-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-prose h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.legal-prose p, .legal-prose li { color: #2B3750; }
.legal-prose ul, .legal-prose ol { padding-left: 1.25rem; }
.legal-prose li { margin-bottom: .45rem; }
.legal-prose a { text-decoration: underline; text-underline-offset: 2px; }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: .95rem; display: block; overflow-x: auto; }
.legal-prose th, .legal-prose td { border: 1px solid var(--av-border); padding: .65rem .8rem; text-align: left; vertical-align: top; }
.legal-prose th { background: var(--av-light); color: var(--av-navy); white-space: nowrap; }
.legal-prose td:first-child { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88rem; word-break: break-all; }
.legal-contact { background: var(--av-light); border: 1px solid var(--av-border); border-radius: var(--av-radius); padding: 1.5rem 1.75rem; max-width: 46rem; }

.legal-toc { position: sticky; top: 96px; }
.legal-toc-box { background: #fff; border: 1px solid var(--av-border); border-radius: var(--av-radius); padding: 1rem 1.1rem; }
.legal-toc-title { font-weight: 700; color: var(--av-navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.legal-toc-title::-webkit-details-marker { display: none; }
.legal-toc-title::after { content: "\F229"; font-family: "bootstrap-icons"; font-size: .9rem; transition: transform .2s ease; }
.legal-toc-box[open] .legal-toc-title::after { transform: rotate(180deg); }
.legal-toc ol { list-style: none; margin: .75rem 0 0; padding: 0; counter-reset: toc; max-height: 60vh; overflow-y: auto; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: .55rem; padding: .4rem .5rem; border-radius: 8px; color: var(--av-text); font-size: .93rem; line-height: 1.35; }
.legal-toc a::before { content: counter(toc) "."; color: var(--av-muted); min-width: 1.4rem; }
.legal-toc a:hover, .legal-toc a.active { background: rgba(37, 99, 235, .08); color: var(--av-blue); }
.legal-toc a.active { font-weight: 600; }
@media (max-width: 991.98px) { .legal-toc { position: static; } .legal-toc ol { max-height: none; } }
@media print { .legal-toc, .legal-contact { display: none; } .legal-prose { max-width: none; } }

/* ---- Service detail --------------------------------------------------- */
.capability { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; background: var(--av-light); border-radius: var(--av-radius-sm); font-weight: 500; }
.capability i { color: var(--av-blue); margin-top: .2rem; }
.service-hero-icon { width: 96px; height: 96px; border-radius: 26px; font-size: 3rem; }

/* ---- Forms ------------------------------------------------------------ */
.form-label { font-weight: 600; color: var(--av-navy); }
.form-control, .form-select { border-radius: var(--av-radius-sm); border: 1.5px solid #CBD5E1; padding: .75rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--av-blue); box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .18); }
.form-panel { background: #fff; border: 1px solid var(--av-border); border-radius: 24px; padding: 2.25rem; box-shadow: var(--av-shadow); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item h3 { font-size: 1rem; margin-bottom: .15rem; }
.contact-item p { margin: 0; color: var(--av-muted); }
.contact-item a { color: var(--av-text); font-weight: 600; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--av-navy); color: #94A3B8; padding: 4.5rem 0 2rem; }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: var(--av-cyan); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .brand-mark, .site-footer .brand-text { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.5rem; font-size: .9rem; }
.social a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); margin-right: .5rem; font-size: 1.05rem; }
.social a:hover { background: var(--av-blue); color: #fff; }

/* ---- UX refinements ---------------------------------------------------- */
/* Large gutters (g-5) overflowed the viewport by 12px on phones; keep side gutters within the container padding. */
@media (max-width: 991.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }
body { overflow-x: hidden; }
html { scroll-padding-top: 96px; }
.site-nav { transition: box-shadow .25s ease; }
.site-nav.scrolled { box-shadow: 0 6px 24px rgba(11, 18, 32, .08); }
.site-nav .navbar-collapse.show, .site-nav .navbar-collapse.collapsing { border-top: 1px solid var(--av-border); margin-top: .6rem; }
@media (max-width: 991.98px) {
  .site-nav .nav-link { padding: .8rem .9rem !important; font-size: 1.05rem; }
  .site-nav .navbar-nav .btn-av { width: 100%; justify-content: center; padding: .9rem 1.5rem; margin-top: .5rem; }
}

.av-card h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.av-card.card-stretch:focus-within { border-color: var(--av-blue); box-shadow: var(--av-shadow-lg); }

/* Contact details as tappable cards */
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--av-border); border-radius: var(--av-radius); background: #fff; margin-bottom: 1rem; color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.contact-card:hover { border-color: var(--av-blue); box-shadow: var(--av-shadow); transform: translateY(-2px); color: inherit; }
.contact-card .icon-tile { margin: 0; width: 48px; height: 48px; font-size: 1.3rem; }
.contact-card h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--av-muted); margin: 0 0 .15rem; font-weight: 700; }
.contact-card .value { font-weight: 600; color: var(--av-navy); font-size: 1.05rem; line-height: 1.4; }
.contact-card .note { color: var(--av-muted); font-size: .92rem; }
.contact-card .go { margin-left: auto; color: var(--av-blue); font-size: 1.2rem; }

/* Form feedback */
.form-text-count { font-size: .85rem; color: var(--av-muted); text-align: right; margin-top: .25rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #DC2626; }
.invalid-feedback { font-size: .9rem; font-weight: 500; }
.btn-av[disabled], .btn-av.loading { opacity: .8; pointer-events: none; }
.btn-av .spinner { width: 1rem; height: 1rem; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn-av.loading .spinner { display: inline-block; }
.btn-av.loading .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert-success { border-left: 4px solid #16A34A; }
.alert-danger { border-left: 4px solid #DC2626; }

/* Service detail sidebar */
.cta-aside { border-top: 4px solid var(--av-blue); }
.cta-aside .icon-tile { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 1rem; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--av-border); box-shadow: 0 -8px 24px rgba(11, 18, 32, .08); }
@media (min-width: 992px) { .mobile-cta { display: none; } }
@media (max-width: 991.98px) { body.has-mobile-cta { padding-bottom: 5rem; } }

/* Back to top */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--av-navy); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--av-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 1010; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--av-blue); }
body.has-mobile-cta .to-top { bottom: 5.5rem; }
@media (min-width: 992px) { body.has-mobile-cta .to-top { bottom: 1.25rem; } }

/* Error pages */
.quick-links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.quick-links a { padding: .6rem 1.1rem; border: 1px solid var(--av-border); border-radius: 999px; color: var(--av-navy); font-weight: 600; }
.quick-links a:hover { border-color: var(--av-blue); color: var(--av-blue); }

/* Service listing: category tags + consistent card footers */
.av-card .link-arrow { margin-top: auto; }
.av-card { display: flex; flex-direction: column; }

@media print {
  .site-nav, .site-footer, .to-top, .mobile-cta, .announcement, .cta-band { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .page-banner { background: none; color: #000; padding: 1rem 0; }
  .page-banner h1 { color: #000; }
}

/* ---- Scroll reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .section { padding: 4rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .site-nav .navbar-collapse { padding: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
