/* Ahïa Solutions — same look as the 2022 site (navy + orange, Montserrat, square buttons), rebuilt without Bootstrap. */
:root {
  --navy: #011627;
  --orange: #ff8c00;
  --ink: #212529;
  --muted: #5b6470;
  --line: #eeeeee;
  --white: #ffffff;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--orange); }
h1, h2, h3 { font-weight: 900; line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.loading { padding: 120px 0; text-align: center; color: var(--muted); }

/* buttons: square corners; outline fills orange from the left on hover */
.btn { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--navy); border-radius: 0; font: 500 17px var(--font); text-decoration: none; cursor: pointer; overflow: hidden; transition: color .3s, background .3s; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { color: var(--orange); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline::before { content: ""; position: absolute; inset: 0; width: 0; background: var(--orange); z-index: -1; transition: width .5s; }
.btn-outline:hover { color: var(--navy); }
.btn-outline:hover::before { width: 100%; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--navy); border-color: var(--navy); color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.actions.center { justify-content: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { margin-right: auto; font-weight: 700; color: var(--navy); text-decoration: none; font-size: 17px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; color: var(--navy); text-decoration: none; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: #777; }
.nav-cta { min-height: 42px; margin-left: 6px; font-size: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* headings with the orange line */
.sec-title { font-size: clamp(28px, 4vw, 34px); margin: 0 0 14px; text-align: center; }
.heading-line { width: 10%; min-width: 60px; height: 3px; margin: 0 auto 26px; background: var(--orange); }

/* hero: video beside the headline */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 80px 72px; position: relative; }
.hero h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 18px; }
.hero-copy p { margin: 0 0 18px; font-size: 17px; }
.hero-copy .actions { margin-top: 22px; }
.definition { color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* navy bands */
.mission, .services.dark, .contact { background: var(--navy); color: var(--white); }
.mission { padding-block: 88px; text-align: center; position: relative; }
.mission p { font-size: 18px; margin: 0 auto 28px; max-width: 46ch; }
.mission a:not(.btn), .contact a:not(.btn) { color: var(--orange); }

/* services */
.services { padding-block: 80px 56px; position: relative; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: center; }
.service { position: relative; padding: 8px 12px 24px; }
.service .icon { display: inline-grid; place-items: center; width: 56px; height: 56px; }
.service svg { width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.service h3 { font-size: 22px; font-weight: 700; margin: 14px 0 10px; }
.service p { margin: 0 auto; max-width: 32ch; color: var(--muted); }
.services.dark .service p { color: rgba(255, 255, 255, .78); }
.page-top { height: 8px; }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 24px 80px; position: relative; }
.split .big { font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; }
.split-copy p { margin: 0 0 16px; font-size: 17px; }
.split-media img { margin-inline: auto; max-height: 460px; width: auto; }

/* contact */
.logo-band { padding: 28px 16px; text-align: center; }
.logo-band img { margin-inline: auto; width: min(474px, 100%); }
.contact { padding-block: 72px 80px; position: relative; }
.contact .intro { font-size: 17px; margin: -6px auto 26px; max-width: 52ch; color: rgba(255, 255, 255, .85); }
.form-frame { background: var(--white); max-width: 760px; margin-inline: auto; }
.form-frame iframe { display: block; width: 100%; border: 0; }

/* footer */
.footer { padding-top: 64px; text-align: center; }
.footer p { margin: 0 0 14px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-bottom: 40px; }
.foot-links a { padding: 8px 12px; text-decoration: none; color: var(--navy); }
.foot-links a:hover { color: var(--orange); }
.copyright { border-top: 1px solid var(--line); padding: 18px 16px 24px; color: #6c757d; font-size: 15px; }

/* gentle entrance, like the old slide-ins but quieter */
.reveal { animation: rise .6s ease-out both; }
.hero-copy.reveal, .split-copy.reveal { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* admin edit affordances (only shown when this browser has the admin token) */
.banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 40; background: var(--orange); color: var(--navy); font: 700 12px var(--font); padding: 8px 14px; display: flex; gap: 12px; }
.banner a { color: inherit; }
.edit-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; min-height: 42px; font-size: 15px; }
.editing [data-edit] { outline: 1px dashed var(--orange); outline-offset: 4px; }
.edit-pen { display: none; }
.editing .edit-pen { display: inline-flex; position: absolute; top: 6px; right: 6px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--orange); color: var(--navy); text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 0; }
  .nav-cta { margin: 10px 0 0; }
  .nav-inner { position: relative; }
  .hero, .split { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 56px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .mission { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .btn, .btn-outline::before { transition: none; }
}
