/* A and A AI Solutions — follows Brand guide v1 (Nov 2026).
   Navy leads, teal supports, amber is a spark (never a fill, never text).
   One family: Montserrat, fallback Arial. No accent bars or lines under titles. */

:root {
  --navy: #1E3A5F;
  --teal: #1D9E75;
  --amber: #EF9F27;
  --slate: #5F5E5A;
  --teal-light: #9FE1CB;
  --teal-mid: #5DCAA5;
  --offwhite: #FAFAFA;
  --white: #FFFFFF;
  --ink: #1B2430;
  --line: #DDE3EA;
  --alt: #F3F5F8;
  --font: "Montserrat", Arial, sans-serif;
  --gradient: linear-gradient(135deg, #1E3A5F 0%, #1E3A5F 45%, #1F6A6A 80%, #1D8A70 100%);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
strong { font-weight: 600; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* Type scale — sentence case titles, caps only for small labels */
h1, h2, h3 { color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.35; }
p { margin: 0; }

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* Teal on white is limited to 18pt+, so small labels on light grounds use slate */
  color: var(--slate);
  margin-bottom: 12px;
}
.label-on-navy { color: var(--teal-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #16304F; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--teal-light); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
/* Clear space around the logo + horizontal min width 120px */
.brand { display: block; padding: 8px 0; flex-shrink: 0; }
.brand img { width: 190px; min-width: 120px; }
nav { margin-left: auto; }
nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--navy); }
nav a:hover { color: var(--teal); }

/* Hero — gradient ground */
.hero { background: var(--gradient); color: var(--white); }
.hero-inner { padding-block: clamp(72px, 12vw, 140px); max-width: 1120px; }
.hero h1 { color: var(--white); max-width: 15ch; }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #D5E2EE; max-width: 46ch; }

/* Content sections — off-white ground */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-intro { margin-top: 16px; color: var(--slate); max-width: 62ch; font-size: 1.05rem; }

/* Service cards */
.cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: 48px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; min-width: 0;
}
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--slate); font-size: 0.96rem; }
.icon {
  width: 40px; height: 40px; fill: none; stroke: var(--teal);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.steps li { min-width: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.05rem;
  position: relative;
}
/* Amber as a spark: one small dot, echoing the dots in the Twin A mark */
.step-num::after {
  content: ""; position: absolute; right: -2px; top: -2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--white);
}
.steps h3 { margin-top: 18px; }
.steps p { margin-top: 8px; color: var(--slate); font-size: 0.96rem; }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.points li { min-width: 0; }
.points h3 { color: var(--navy); }
.points p { margin-top: 8px; color: var(--slate); font-size: 0.96rem; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 22px 0; color: var(--slate); }

/* Closing CTA — gradient ground */
.cta { background: var(--gradient); color: var(--white); }
.cta-inner { padding-block: clamp(72px, 10vw, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { color: var(--white); max-width: 22ch; }
.cta p { margin-top: 16px; color: #D5E2EE; max-width: 52ch; }
.cta .actions { justify-content: center; }
.cta .cta-note { margin-top: 16px; color: var(--teal-light); font-size: 0.95rem; }

/* Footer — navy ground, dark logo */
.site-footer { background: var(--navy); color: #D5E2EE; }
.footer-inner { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-inner img { width: 210px; }
.tagline { color: var(--teal-light); font-weight: 600; }
.copy { margin-left: auto; font-size: 0.85rem; color: #A9B4C0; }

/* Responsive */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  nav { display: none; }
  .nav .btn { margin-left: auto; }
  .brand img { width: 160px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .steps, .points { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .copy { margin-left: 0; }
}
