/* Palette taken from the original a2osoft.com stylesheet and logo */
:root {
  --slate: #3d6478;
  --slate-dark: #2d4a59;
  --slate-mid: #7994a2;
  --slate-line: #a4b7c2;
  --slate-tint: #e5ebee;
  --red: #8f0000;
  --red-hover: #6e0000;
  --ink: #1f2d35;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(31 45 53 / 8%), 0 8px 24px rgb(31 45 53 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-hover); }
h1, h2, h3 { line-height: 1.2; color: var(--slate-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-tint);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { height: 48px; width: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--white); padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: .5rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--slate-dark); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.nav .nav-phone { font-weight: 700; white-space: nowrap; }
.nav .nav-cta {
  background: var(--red); color: var(--white);
  padding: .55rem 1.1rem; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--red-hover); color: var(--white); }

.menu-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--slate-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--slate-dark), var(--slate));
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero h1 { color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero .lead { font-size: 1.2rem; }
.hero-art img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
  width: 100%;
}

/* Facts strip */
.facts { background: var(--white); border-bottom: 1px solid var(--slate-tint); padding: 1.5rem 0; }
.facts-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.facts p { margin: 0; color: var(--slate); font-size: .95rem; line-height: 1.45; }
.facts strong { display: block; color: var(--slate-dark); font-size: 1.15rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--slate-line); margin-bottom: .75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block; cursor: pointer; font: inherit; font-weight: 600;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); color: var(--white); }
.btn-ghost { border-color: var(--slate-line); color: var(--white); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); color: var(--white); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--slate-tint); }
.section-intro { max-width: 46rem; font-size: 1.1rem; color: var(--slate); margin-bottom: 2.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--slate-tint); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }
.chips li {
  background: var(--slate-tint); color: var(--slate-dark);
  padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
}

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.tile {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--red); box-shadow: var(--shadow);
}
.tile h3 { font-size: 1.05rem; margin-bottom: .4em; }
.tile p { margin: 0; font-size: .95rem; color: var(--slate-dark); }
.section-cta { margin-top: 2.5rem; text-align: center; }

.work { display: grid; gap: 1.25rem; }
.work-item {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem 2rem;
  border-left: 4px solid var(--slate); box-shadow: var(--shadow);
}
.work-item p:last-child { margin-bottom: 0; }
.work-type {
  margin-bottom: .75rem; color: var(--red); font-weight: 700;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
}

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.about .lead { font-size: 1.2rem; }
.mission {
  margin: 0; padding: 2rem; border-radius: var(--radius);
  background: var(--slate-tint); border-left: 4px solid var(--red);
  font-size: 1.15rem; color: var(--slate-dark);
}
.section-alt .mission { background: var(--white); box-shadow: var(--shadow); }
.mission .eyebrow { color: var(--red); }

/* Contact */
.section-dark { background: var(--slate-dark); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark a { color: #ffd5d5; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact .lead { font-size: 1.15rem; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--slate-dark); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: .7rem .85rem;
  border: 1px solid var(--slate-line); border-radius: 8px; background: var(--white); color: var(--ink);
}
.optional { font-weight: 400; color: var(--slate); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--slate-mid); border-color: var(--slate); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1b6b2f; }
.form-status.err { color: var(--red); }
.form-status a, .form-note a { color: var(--red); }
.form-note { margin: .5rem 0 0; font-size: .85rem; color: var(--slate); }
.turnstile:not(:empty) { margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: .4rem; }

/* Footer */
.footer { background: var(--ink); color: var(--slate-line); padding: 1.75rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0 0 .25rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.notfound .code { font-size: clamp(5rem, 20vw, 9rem); font-weight: 800; color: var(--red); line-height: 1; margin: 0; }

@media (max-width: 860px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 380px; }
  .facts-inner { grid-template-columns: 1fr; gap: .9rem; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-tint); padding: .5rem 1rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .25rem; }
  .nav .nav-cta { text-align: center; margin-top: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Privacy and other text pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.updated { color: var(--slate); font-size: .95rem; }
