/* AA Consulting Group — site styles */

:root {
  --navy: #14263f;
  --navy-deep: #0e1b2e;
  --teal: #1e7873;
  --teal-dark: #175e5a;
  --teal-tint: #d5e7e4;
  --bone: #f3eee4;
  --bone-deep: #e9e2d3;
  --sand: #cfc4ad;
  --ink: #1b2536;
  --ink-soft: #4a5566;
  --white: #fffdf9;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --measure: 62ch;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 300; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--bone);
  border-bottom: 1px solid var(--sand);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display); font-size: 1.35rem; color: var(--navy);
  text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: .55rem;
}
.wordmark img { width: auto; height: 3.4rem; }
.site-header .wordmark img { height: 2.6rem; max-width: 72vw; }
.site-footer .wordmark img { height: 3.8rem; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--sand); }
.site-nav a[aria-current="page"] { border-color: var(--teal); }

/* Hero (home) */
.hero {
  background: var(--navy); color: var(--bone);
  position: relative; overflow: hidden;
}
.hero .wrap { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; z-index: 1; }
.hero h1 { color: var(--bone); max-width: 20ch; margin-bottom: 1.4rem; }
.hero p { color: #cfd6df; max-width: 54ch; font-size: 1.2rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; } }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.7); }
.team-photo { margin: 0 0 2.2rem; }
.split p + .team-photo { margin-top: 1.5rem; margin-bottom: 0; }
.team-photo img { width: 100%; height: auto; border-radius: 6px; }
.team-photo figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.35rem; border-radius: 4px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(243,238,228,.45); }
.btn-ghost:hover { border-color: var(--bone); color: var(--bone); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--bone); }

/* Page intro (inner pages) */
.page-intro { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--sand); }
.page-intro h1 { max-width: 18ch; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--sand); }
.section-navy { background: var(--navy); color: var(--bone); }
.section-navy h2, .section-navy h3 { color: var(--bone); }
.section-navy p { color: #cfd6df; }
.section-navy a { color: var(--teal-tint); }
.section-tint { background: var(--bone-deep); }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 4rem;
}
@media (min-width: 820px) {
  .split { grid-template-columns: 17rem minmax(0, 1fr); align-items: start; }
  .split > h2 { position: sticky; top: 1.5rem; }
}
.split h2 { margin-bottom: 0; }

/* Service groups */
.service-list { margin: 0; padding: 0; list-style: none; }
.service-list > li { padding: 1.6rem 0; border-top: 1px solid var(--sand); }
.service-list > li:first-child { border-top: 0; padding-top: 0; }
.service-list h3 { margin-bottom: .35rem; }
.service-list p { margin-bottom: .6rem; }
.service-items { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .3rem 1.5rem; color: var(--ink-soft); }
.service-items li { position: relative; padding-left: 1.05rem; }
.service-items li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 2px; background: var(--teal); }

/* Home service overview */
.areas { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.areas li { padding: 1.1rem 0; border-top: 1px solid var(--sand); display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem 2rem; }
.areas li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .areas li { grid-template-columns: 16rem minmax(0, 1fr); } }
.areas a { font-family: var(--display); font-size: 1.35rem; color: var(--navy); text-decoration: none; }
.areas a:hover { color: var(--teal-dark); text-decoration: underline; }
.areas p { margin: 0; color: var(--ink-soft); }

/* How we work */
.how { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.how h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.how p { margin: 0; }

/* Team */
.team { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.person { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.avatar {
  width: 5.5rem; height: 5.5rem; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-dark);
  display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .1rem; }
.role { color: var(--ink-soft); margin-bottom: .7rem; font-size: .95rem; }
.person p { max-width: 48ch; }

/* Contact */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.details dl { margin: 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .55rem 1rem; }
.details dt { color: var(--ink-soft); }
.details dd { margin: 0; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; }

form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--sand); border-radius: 4px; padding: .7rem .8rem; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
textarea { min-height: 9rem; resize: vertical; }
.two { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.hidden { display: none; }

/* Contact strip on home */
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.strip h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #aeb8c6; font-size: .92rem; }
.site-footer .rule { height: 6px; background: linear-gradient(to right, var(--teal) 0 55%, var(--sand) 55% 70%, var(--teal-tint) 70% 100%); }
.site-footer .wrap { display: grid; gap: 1.6rem; padding: 2.4rem 0 2.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer p { margin: 0 0 .35rem; color: #aeb8c6; }
.site-footer a { color: #dfe5ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wordmark { color: var(--bone); margin-bottom: .6rem; }
.site-footer .ack { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; max-width: none; }
.site-footer .ack { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.site-footer .ack p { max-width: 70ch; flex: 1 1 24rem; }
.site-footer .flags { display: flex; gap: .5rem; flex: none; }
.site-footer .flags img { height: 2.2rem; width: auto; border-radius: 2px; }
