/* ATC Consulting.
   Colours come from the logo: navy, blue, pale blue, orange, on white.
   Structure follows the two reference sites: Regus (off-white ground, light serif
   headlines, action cards, navy blocks with tiles, square photos) and Robert Half
   (two actions in the hero, a Why list with a rule, text links with arrows). */

@font-face {
  font-family: "Merriweather";
  src: url("../assets/fonts/Merriweather-300.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #03195A;
  --navy-2: #0B2670;
  --ink: #0A1440;
  --blue: #4580C2;
  --link: #1E5AA6;
  --sky: #9CC3E8;
  --tint: #F4F7FB;
  --line: #D8E1EC;
  --orange: #E65C00;
  --white: #FFFFFF;
  --text: #1B2542;
  --muted: #4E5A76;

  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", Arial, sans-serif;

  --top-h: 92px;
  --gut: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(56px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; }
h1, h2 { font-family: var(--serif); font-weight: 300; color: var(--ink); letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.18; }
h3, h4 { font-family: var(--sans); color: var(--ink); }
[id] { scroll-margin-top: calc(var(--top-h) + 20px); }
svg use { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.defs { position: absolute; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  text-decoration: none; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--link); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ---------- header (white, so the logo sits on white) ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.top.scrolled { box-shadow: 0 6px 22px rgba(3, 25, 90, .08); }
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  position: relative; font-weight: 500; font-size: 15px;
  color: var(--ink); text-decoration: none; padding: 8px 0; white-space: nowrap;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav a:not(.nav-cta):hover::after, .nav a.here::after { transform: scaleX(1); }
.nav .nav-cta {
  margin-left: 6px; background: var(--navy); color: #fff; padding: 13px 24px; border-radius: 8px;
  transition: background-color .18s var(--ease);
}
.nav .nav-cta:hover { background: var(--link); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 6px; }
.burger i { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--navy); border-radius: 2px; transition: transform .22s var(--ease), opacity .15s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { margin-top: var(--top-h); background: var(--tint); padding-bottom: clamp(36px, 4.5vw, 64px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46vw); align-items: stretch;
  padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
}
.hero-copy { padding: clamp(48px, 6.5vw, 96px) clamp(24px, 4vw, 64px) clamp(48px, 6.5vw, 96px) 0; align-self: center; }
.area { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--navy); }
.area svg { flex: none; width: 20px; height: 20px; color: var(--orange); }
.hero h1 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.14; }
.hero-sub { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.55; color: var(--text); }
.hero-btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { min-height: 420px; background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-copy > * { opacity: 0; transform: translateY(12px); animation: rise .6s var(--ease) forwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .12s; }
.js .hero-copy > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* action cards under the hero */
.cards { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cards a {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 20px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; text-decoration: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cards a:hover { border-color: var(--navy); box-shadow: 0 8px 22px rgba(3, 25, 90, .08); }
.cards .ico { flex: none; width: 30px; height: 30px; color: var(--orange); margin-top: 2px; }
.cards span { display: block; }
.cards strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 16.5px; line-height: 1.35; color: var(--ink); }
.cards em { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- what we do (navy block with service groups) ---------- */
.services { background: var(--navy); color: #fff; padding-block: var(--pad); }
.svc-head { max-width: 860px; }
.svc-head h2 { color: #fff; }
.svc-head .lead { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #fff; }
.svc-head p + p { margin-top: 12px; color: #C9D6EC; }

.group { border: 1px solid rgba(255, 255, 255, .18); padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.group-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-2); }
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.group-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.group-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; color: #fff; text-decoration: none; padding: 4px 4px 0; }
.group-title h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.25; color: #fff; }
.group-title svg { flex: none; width: 26px; height: 26px; transition: transform .22s var(--ease), color .18s; }
.group-title:hover svg { transform: translate(3px, -3px); color: var(--sky); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin-top: auto; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles li {
  display: flex; align-items: flex-end; min-height: 92px; padding: 14px;
  background: rgba(255, 255, 255, .07); font-size: 15px; line-height: 1.35; color: #fff;
  transition: background-color .18s var(--ease);
}
.tiles li:hover { background: rgba(255, 255, 255, .14); }

.feature { margin-top: clamp(32px, 4vw, 56px); flex-direction: row; align-items: stretch; }
.feature .group-photo { flex: 0 0 46%; aspect-ratio: auto; min-height: 300px; }
.feature .group-body { justify-content: center; padding: 6px 4px 6px 8px; }
.feature .tiles { margin-top: 0; }
.feature .tiles li { min-height: 96px; }
.groups { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- shared split layout: heading left, content right ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); align-items: start; }

/* ---------- who we serve ---------- */
.serve { padding-block: var(--pad); }
.serve-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); }
.serve-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.3; color: var(--ink); }

/* ---------- bay area band: navy block left, photo flush right ---------- */
.bay { background: var(--navy); color: #fff; }
.bay-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46vw); align-items: stretch;
  padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
}
.bay-copy { align-self: center; padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 88px) 0; }
.bay h2 { color: #fff; max-width: 12em; }
.bay-copy p { margin: 18px 0 30px; max-width: 28em; font-size: 18px; line-height: 1.6; color: #D6E1F2; }
.bay-photo { min-height: 400px; background: var(--navy-2); }
.bay-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- why ---------- */
.why { background: var(--tint); padding-block: var(--pad); }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 3vw, 40px) clamp(24px, 4vw, 56px); }
.why-list li { padding-left: 22px; border-left: 2px solid var(--sky); transition: border-color .2s var(--ease); }
.why-list li:hover { border-left-color: var(--orange); }
.why-list h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.why-list p { margin-top: 8px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: #fff; padding-block: var(--pad); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { color: #fff; }
.contact-copy p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: #D6E1F2; max-width: 27em; }
.contact-copy .contact-area { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 17px; color: #fff; }
.contact-area svg { flex: none; width: 22px; height: 22px; color: var(--sky); }
.contact-copy .contact-note { margin-top: 10px; font-size: 16.5px; color: var(--sky); }
.form { background: #fff; color: var(--text); border-radius: 8px; padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .wide { grid-column: 1 / -1; }
.field label, .needs legend { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field label span { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 54px; padding: 13px 14px; font: inherit; font-size: 17px; color: var(--text);
  background: #fff; border: 1.5px solid #B7C5D9; border-radius: 6px; transition: border-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(69, 128, 194, .28); }
.field input.bad { border-color: #B3261E; }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.needs legend { grid-column: 1 / -1; float: left; width: 100%; }
.needs label { margin: 0; cursor: pointer; }
.needs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.needs label span {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px;
  font-weight: 500; font-size: 15.5px; color: var(--ink);
  border: 1.5px solid #B7C5D9; border-radius: 6px; transition: background-color .15s var(--ease), border-color .15s;
}
.needs label span::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid var(--blue); border-radius: 4px; background: #fff; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.needs label:hover span { border-color: var(--navy); }
.needs input:checked + span { background: var(--tint); border-color: var(--navy); }
.needs input:checked + span::before { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 3px #fff; }
.needs input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-status { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.form-status.err { color: #B3261E; }
.form.sent .form-status { color: #0F6B3C; }
.form button[disabled] { opacity: .6; cursor: default; }

/* ---------- footer (white, so the logo sits on white) ---------- */
.foot { background: #fff; padding: 52px 0 30px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 28px clamp(24px, 4vw, 64px); align-items: start; }
.foot-brand { display: block; text-decoration: none; }
.foot-brand img { height: 84px; width: auto; }
.foot-brand span { display: block; margin-top: 16px; max-width: 24em; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.foot-col h4 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-col a { display: block; padding: 6px 0; font-size: 16px; color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--top-h); display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(3, 25, 90, .12); padding: 4px var(--gut) 20px;
    max-height: calc(100vh - var(--top-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; padding: 16px; border-bottom: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .groups { grid-template-columns: 1fr; }
  .groups .group { flex-direction: row; }
  .groups .group-photo { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; }
  .groups .group-body { justify-content: center; }
  .groups .tiles { margin-top: 0; }
  .tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top-h: 72px; }
  .brand img { height: 54px; }
  .hero-grid { grid-template-columns: 1fr; padding-left: 0; }
  .hero-copy { padding: 40px var(--gut) 36px; }
  .area { font-size: 14px; letter-spacing: 0; gap: 6px; margin-bottom: 14px; }
  .area svg { width: 18px; height: 18px; }
  .hero-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .bay-grid { grid-template-columns: 1fr; padding-left: 0; }
  .bay-copy { padding: 44px var(--gut) 36px; }
  .bay-copy .btn { width: 100%; }
  .bay-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .hero-btns .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .feature, .groups .group { flex-direction: column; }
  .feature .group-photo, .groups .group-photo { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .feature .group-body { padding: 0; }
  .tiles li, .feature .tiles li { min-height: 72px; padding: 12px; font-size: 14.5px; }
  .serve-list, .why-list { grid-template-columns: 1fr; }
  .serve-list li { font-size: 18.5px; padding: 15px 0; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .contact-copy .contact-area { align-items: flex-start; }
  .contact-area svg { margin-top: 3px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-brand img { height: 68px; }
  .foot-col a { padding: 11px 0; }
  .foot-col h4 { font-size: 13.5px; margin-bottom: 4px; }
}
@media (max-width: 420px) {
  .needs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .hero-copy > * { opacity: 1 !important; transform: none !important; }
}
