/* Alessa Technical Services — site styles */
:root {
  --navy: #063a6a;
  --navy-deep: #04213d;
  --navy-ink: #0b1c2e;
  --blue: #1f6fd1;
  --blue-bright: #4f9bff;
  --tint: #eef3f8;
  --tint-2: #e2eaf3;
  --ink: #13202f;
  --muted: #4c5b6c;
  --line: #d6dee8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(6, 33, 61, .06), 0 8px 24px rgba(6, 33, 61, .06);
  --font-head: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-ink); line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.prose p, .prose li { max-width: 72ch; }

.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-shell { width: min(var(--wrap), 100% - 48px); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .dropdown-toggle { font: 500 .97rem/1 var(--font-body); color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.main-nav > a:hover, .dropdown-toggle:hover { background: var(--tint); color: var(--navy); }
.main-nav a[aria-current="page"], .dropdown-toggle.is-current { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.main-nav .nav-contact { background: var(--navy); color: #fff; border-radius: 999px; padding: 11px 18px; margin-left: 8px; }
.main-nav .nav-contact:hover { background: var(--blue); color: #fff; }
.main-nav .nav-contact[aria-current="page"] { box-shadow: none; border-radius: 999px; }
.nav-dropdown { position: relative; }
.dropdown-toggle .chev { transition: transform .2s; font-size: .8em; }
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; }
.dropdown-panel.open { display: block; }
.dropdown-panel a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: .97rem; }
.dropdown-panel a:hover, .dropdown-panel a[aria-current="page"] { background: var(--tint); color: var(--navy); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-ink); margin: 4px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 2px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a, .dropdown-toggle { padding: 14px 8px; width: 100%; justify-content: space-between; }
  .main-nav a[aria-current="page"], .dropdown-toggle.is-current { box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .dropdown-panel { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .main-nav .nav-contact { margin: 12px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background-color: var(--navy-deep); background-image: linear-gradient(100deg, rgba(4,33,61,.96) 0%, rgba(4,33,61,.86) 45%, rgba(6,58,106,.55) 100%), var(--hero-image, none); background-size: cover; background-position: center; padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .hero-lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: #d4e2f1; max-width: 62ch; margin-top: 20px; }
.hero .hero-kicker { display: inline-block; font-weight: 600; color: #9cc3f5; margin-bottom: 14px; }
.hero .hero-kicker a { color: #9cc3f5; text-decoration: none; }
.hero .hero-kicker a:hover { color: #fff; text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-hero { padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 140px); }
.home-hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.2rem); max-width: 16ch; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--font-body); padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--blue); color: #fff; }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--tint-2); color: var(--navy); }
.button-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.button-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.button-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.button-outline:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Sub navigation ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 90; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 16px 14px; font-weight: 600; font-size: .95rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy); }
.subnav a.active { color: var(--navy); border-bottom-color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 7vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section + .section:not(.section-tint) { border-top: 1px solid var(--line); }
.section-tint + .section-tint { border-top: 1px solid var(--tint-2); }
.section-heading { max-width: 780px; margin-bottom: 40px; }
.section-heading p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.two-columns > div > p { color: var(--muted); }
.two-columns.ink > div > p { color: var(--ink); }
@media (max-width: 820px) { .two-columns { grid-template-columns: 1fr; } }

.capability-block + .capability-block { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
.section-tint .capability-block + .capability-block { border-top-color: var(--tint-2); }
.capability-block > h2 { margin-bottom: 16px; }
.capability-block > .block-intro { color: var(--muted); max-width: 76ch; margin-bottom: 8px; }
.capability-block > .block-intro p { max-width: 76ch; }
.sub-group { margin-top: 36px; }
.sub-group > h3 { font-size: 1.2rem; margin-bottom: 10px; }
.sub-group > .group-intro { color: var(--muted); max-width: 76ch; }
.sub-group > .group-intro p { max-width: 76ch; }

/* Items grid */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.section-tint .item { border-color: transparent; box-shadow: var(--shadow); }
.item h4 { margin-bottom: 8px; color: var(--navy); }
.item p { color: var(--muted); font-size: .98rem; }
.item ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .98rem; }
.item li { margin: 3px 0; }
.items.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 420px) { .items, .items.wide { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tags li { font-size: .92rem; padding: 6px 14px; border-radius: 999px; background: var(--tint-2); color: var(--navy); font-weight: 500; }
.section-tint .tags li { background: #fff; }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 32px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* Numbered sequences (only for real sequences) */
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.steps > li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 74px; }
.section-tint .steps > li { border-color: transparent; box-shadow: var(--shadow); }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 20px; font: 600 1.3rem/1 var(--font-head); color: var(--blue); }
.steps h4 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .97rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid.three, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid.two, .card-grid.three, .card-grid.four { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: inherit; text-decoration: none; }
.section-tint .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; padding-top: 18px; font-weight: 600; color: var(--blue); }
a.card:hover, button.card:hover { border-color: var(--blue); }
a.card:hover .card-link, button.card:hover .card-link { text-decoration: underline; }
button.card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.card .card-meta { font-size: .9rem; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.statement { font: 500 1.2rem/1.45 var(--font-head); color: var(--navy-ink); }

/* Proof strip */
.proof { background: var(--navy-deep); color: #fff; padding: 40px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.proof-grid div { border-left: 2px solid var(--blue-bright); padding-left: 18px; }
.proof-grid strong { display: block; font: 600 1.6rem/1.1 var(--font-head); color: #fff; }
.proof-grid span { display: block; color: #b9cde3; font-size: .97rem; margin-top: 6px; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .proof-grid { grid-template-columns: 1fr; } }

.client-names { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; padding: 0; margin: 0; }
.client-names li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--navy); background: #fff; font-size: .95rem; }

/* ---------- Case studies ---------- */
.case-card .card-meta { color: var(--blue); }
.case-card h3 { font-size: 1.15rem; }
.case-modal { border: 0; padding: 0; border-radius: var(--radius); width: min(900px, calc(100% - 24px)); max-height: calc(100vh - 40px); color: var(--ink); box-shadow: 0 30px 80px rgba(4,33,61,.4); }
.case-modal::backdrop { background: rgba(4, 33, 61, .65); }
.modal-head { position: sticky; top: 0; background: var(--navy-deep); color: #fff; padding: 28px 72px 24px 32px; z-index: 1; }
.modal-head .card-meta { color: #9cc3f5; font-weight: 600; font-size: .92rem; }
.modal-head h2 { color: #fff; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin-top: 6px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,.2); }
.modal-body { padding: 28px 32px 32px; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px; margin: 0 0 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.fact-list dt { font-size: .85rem; color: var(--muted); }
.fact-list dd { margin: 2px 0 0; font-weight: 600; }
.modal-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.modal-body p, .modal-body li { color: var(--muted); }
.modal-body ul { margin: 8px 0 0; padding-left: 20px; }
.modal-body li { margin: 5px 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .modal-head { padding: 22px 64px 20px 20px; } .modal-body { padding: 22px 20px 26px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 8px; }
.table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .97rem; }
.table-wrap caption { text-align: left; padding: 16px 20px; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--tint); font-family: var(--font-head); font-size: .9rem; color: var(--navy-ink); font-weight: 600; }
.table-wrap tbody tr:last-child td, .table-wrap tbody tr:last-child th { border-bottom: 0; }
.table-wrap tbody th { font-weight: 600; color: var(--navy-ink); }
.table-wrap td.year { font: 600 1.05rem/1.2 var(--font-head); color: var(--blue); white-space: nowrap; }
.table-wrap .sub { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }

/* ---------- Certifications ---------- */
.cert h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 4px; }
.cert .cert-name { font-weight: 600; color: var(--ink); margin-bottom: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-panel { background: var(--tint); border-radius: var(--radius); padding: 32px; }
.contact-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; margin: 0; }
.contact-panel dt { font-weight: 600; color: var(--navy-ink); }
.contact-panel dd { margin: 0; color: var(--ink); }
.big-phone { display: inline-block; font: 600 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1.1 var(--font-head); color: var(--navy); text-decoration: none; margin: 8px 0 20px; }
.big-phone:hover { color: var(--blue); }

/* ---------- CTA ---------- */
.cta-block { background: var(--navy); color: #fff; padding: clamp(56px, 6vw, 84px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; max-width: 24ch; }
.cta-inner p { color: #c9dbee; margin-top: 10px; max-width: 60ch; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #c3d3e5; padding: 64px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1.4fr; gap: 36px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h2 { font-size: 1rem; color: #fff; margin-bottom: 14px; }
.footer a { display: block; color: #c3d3e5; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 160px; margin-bottom: 16px; }
.footer-brand p { color: #9fb6cf; }
.footer address { font-style: normal; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 20px 0 28px; color: #9fb6cf; font-size: .92rem; }
.footer-bottom a { display: inline; }

@media print {
  .site-header, .subnav, .cta-block, .footer, .menu-toggle { display: none; }
  .hero { background: none; color: #000; padding: 0 0 24px; }
  .hero h1, .hero .hero-lede { color: #000; }
}
.tags a { color: inherit; text-decoration: none; }
.tags a:hover { text-decoration: underline; }
.item h3, .steps h3 { font-size: 1.05rem; }
.item h3 { margin-bottom: 8px; color: var(--navy); }
.steps h3 { margin-bottom: 6px; }

/* ---------- Logos (supplied brand files) ---------- */
:root { --header-h: 84px; }
.brand img { height: 64px; width: auto; }
.footer-brand img { width: 170px; height: auto; border-radius: 6px; }
@media (min-width: 1181px) and (max-width: 1260px) {
  .main-nav > a, .dropdown-toggle { padding: 10px 9px; font-size: .94rem; }
}

/* ---------- Image banners between sections ---------- */
.image-banner {
  height: clamp(180px, 24vw, 340px);
  background-color: var(--navy-deep);
  background-image: linear-gradient(180deg, rgba(4,33,61,.10), rgba(4,33,61,.35)), var(--banner, none), linear-gradient(120deg, var(--navy-deep), var(--navy));
  background-size: cover, cover, cover;
  background-position: center;
}
.image-banner + .section, .section + .image-banner { border-top: 0 !important; }
