/* ==========================================================================
   AATP Digital - Modern Institutional
   Single design system. Racing green / paper / ink. Plus Jakarta Sans.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --paper:    #F4F3EF;
  --ink:      #1B1F1D;
  --green:    #1E5641;
  --muted:    #3C443F;
  --hairline: #C9C5B8;
  --photo:    #DDDAD0;
  --photo-caption: #7A766A;
  --footer-text: #B9BDB6;
  --footer-emph:  #F4F3EF;

  --pad: 64px;          /* page padding desktop */
  --border: 2px solid var(--ink);
  --rule: 1px solid var(--hairline);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.58;
  color: var(--muted);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

h1, h2, h3 { color: var(--ink); margin: 0; }
h1 {
  font-weight: 800;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h2 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Helpers ------------------------------------------------------------ */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin: 0 0 1.25rem;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.measure { max-width: 60ch; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 15px 30px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--green); border-color: var(--green); color: var(--paper); text-decoration: none; }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: var(--ink); border-color: var(--ink); }

/* ---- Nav ---------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 52px; width: auto; display: block; }
.wordmark {
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark .digital { color: var(--green); }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 32px;
}
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
}
.main-nav a:hover { color: var(--green); }
.main-nav a[aria-current="page"] { color: var(--green); }
.main-nav .nav-cta a { color: var(--paper); }
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
.mobile-nav { display: none; }

/* ---- Sections ----------------------------------------------------------- */
section { border-bottom: var(--border); }
.section-pad { padding-top: 72px; padding-bottom: 72px; }
.section-label { margin-bottom: 1.5rem; }
/* Intro that heads a full-bleed band below it: no border, tight bottom */
.section-intro { padding-bottom: 12px; border-bottom: 0; }
/* Suppress the section border where two sections form one chapter */
.flush { border-bottom: 0; }
/* Short linking line after a full-bleed band */
.after-band { padding: 28px var(--pad); text-align: center; font-size: 17px; }
/* Tighter top padding where a section follows a page hero */
.prose-section.tight-top { padding-top: 56px; }
/* Extra space after an intro body line that heads a band */
.section-intro .body { margin-bottom: 36px; }
/* Body line that leads into a form or list */
.body.spaced { margin-bottom: 2rem; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr; /* divider at 66.7% to align with trust strip */
}
.hero-left {
  padding: 80px var(--pad) 80px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-left h1 { margin-bottom: 1.5rem; }
.hero-left p { font-size: 18px; max-width: 46ch; margin-bottom: 2rem; }
.hero-right { display: flex; flex-direction: column; border-left: var(--border); }
.hero-photo {
  background: var(--photo);
  flex: 1 1 auto; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: var(--photo-caption);
  font-size: 14px; text-align: center; padding: 24px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-stat {
  border-top: var(--border);
  padding: 32px var(--pad);
}
.hero-stat .num {
  font-weight: 800; font-size: 56px; line-height: 1; color: var(--green);
  letter-spacing: -0.02em;
}
.hero-stat .label {
  display: block; margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 28ch;
}

/* ---- Trust strip -------------------------------------------------------- */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.trust .item {
  padding: 22px var(--pad);
  font-size: 14px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.trust .item + .item { border-left: var(--border); }
.trust .dot { width: 8px; height: 8px; background: var(--green); flex: 0 0 auto; }

/* ---- Three-up proof strip ----------------------------------------------- */
.threeup { display: grid; grid-template-columns: repeat(3, 1fr); }
.threeup .col { padding: 48px var(--pad); }
.threeup .col + .col { border-left: var(--border); }
.threeup h3 { margin-bottom: 0.6rem; }
.threeup p { font-size: 15px; }

/* ---- Generic prose section ---------------------------------------------- */
.prose-section { padding: 72px var(--pad); }
.prose-section .eyebrow { margin-bottom: 1rem; }
.prose-section h2 { margin-bottom: 1.25rem; max-width: 22ch; }
.prose-section .body { max-width: 62ch; font-size: 18px; }
.prose-section.center { text-align: center; }
.prose-section.center h2,
.prose-section.center .body,
.prose-section.center .statements,
.prose-section.center .close-line { margin-left: auto; margin-right: auto; }

/* ---- Statements list ---------------------------------------------------- */
.statements { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 70ch; }
.statements li {
  padding: 18px 0; border-top: var(--rule);
  font-size: 18px; color: var(--ink); font-weight: 500;
}
.statements li:first-child { border-top: var(--border); }
.close-line { margin-top: 1.75rem; max-width: 62ch; }

/* ---- Case study table --------------------------------------------------- */
.cases { padding: 72px var(--pad); }
.cases .eyebrow { margin-bottom: 1rem; text-align: center; }
.cases h2 { margin-bottom: 2rem; text-align: center; margin-left: auto; margin-right: auto; }
.case-table { border-top: var(--border); }
.case-row {
  display: grid;
  grid-template-columns: 64px 1fr 0.5fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: var(--rule);
}
.case-row .idx { font-weight: 800; font-size: 22px; color: var(--green); }
.case-row .desc { color: var(--muted); font-size: 17px; }
.case-row .desc strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 18px; }
.case-row .outcome {
  text-align: right; font-weight: 700; color: var(--green); font-size: 17px; line-height: 1.3;
}

/* ---- Steps (full-bleed three-cell band) --------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps .step { padding: 48px var(--pad); }
.steps .num {
  display: inline-block; font-weight: 800; font-size: 22px; color: var(--green); margin-bottom: 12px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 15px; }

/* ---- Services band (four-cell) ------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--border); }
.services .svc { padding: 40px 28px 44px; }
.services .svc + .svc { border-left: var(--border); }
.services .num {
  display: inline-block; font-weight: 800; font-size: 22px; color: var(--green); margin-bottom: 12px;
}
.services h3 { margin-bottom: 8px; }
.services p { font-size: 15px; }

/* ---- Team --------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--border); }
.team-member { padding: 0; }
.team-member + .team-member { border-left: var(--border); }
.team-photo {
  background: var(--photo); height: 460px;
  display: flex; align-items: center; justify-content: center;
  color: var(--photo-caption); font-size: 13px; text-align: center; padding: 16px;
  border-bottom: var(--border);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.team-body { padding: 22px 24px; }
.team-body .name { font-weight: 700; color: var(--ink); font-size: 18px; }
.team-body .role { color: var(--green); font-weight: 500; font-size: 14px; margin: 4px 0 10px; }
.team-body p { font-size: 15px; }

/* ---- Sectors band (four-cell) -------------------------------------------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--border); }
.sectors .sector { padding: 40px 28px 44px; }
.sectors .sector + .sector { border-left: var(--border); }
.sectors h3 { margin-bottom: 8px; }
.sectors p { font-size: 15px; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq-list { max-width: 760px; margin: 0 auto; border-top: var(--border); text-align: left; }
.faq-item { border-bottom: var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font-weight: 700; font-size: 18px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-weight: 800; font-size: 22px; line-height: 1;
  color: var(--green); flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .answer { padding: 0 0 22px; max-width: 64ch; }
.faq-item .answer p { font-size: 17px; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  padding: 72px var(--pad);
  text-align: center;
}
.cta-band p a { color: inherit; }
.cta-band h2 { color: var(--footer-emph); margin: 0 auto 1.75rem; max-width: 24ch; }
.cta-band p { color: var(--footer-text); max-width: 50ch; margin: 0 auto 1.75rem; }
.cta-band .btn { background: var(--green); border-color: var(--green); color: var(--paper); }
.cta-band .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: var(--footer-text);
  border-bottom: 0;
  padding: 56px var(--pad) 40px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid #2C322E;
}
.site-footer h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--footer-emph); margin: 0 0 14px; font-weight: 700;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--footer-emph); }
.site-footer .footer-brand img { height: 60px; width: auto; display: block; }
.footer-col .footer-brand + h4 { margin-top: 18px; }
.site-footer .footer-brand .wordmark { color: var(--footer-emph); font-size: 20px; }
.site-footer .footer-brand .digital { color: #6FA98E; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-contact div { margin-bottom: 12px; font-size: 15px; }
.footer-legal {
  padding-top: 24px; font-size: 13px; color: var(--footer-text); line-height: 1.6;
}
.footer-legal .emph { color: var(--footer-emph); }

/* ---- Reveal (content visible without JS) -------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Page hero (inner pages) -------------------------------------------- */
.page-hero { padding: 72px var(--pad); }
.page-hero h1 { max-width: 22ch; margin-bottom: 1.25rem; }
.page-hero .lede { font-size: 18px; max-width: 56ch; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero .contact-top { font-size: 17px; margin: 0 0 1.5rem; }
.page-hero .btn-row { margin-top: 1.5rem; }
.page-hero .contact-top span { margin: 0 10px; color: var(--hairline); }

/* ---- Prose (About, Privacy) ---------------------------------------------- */
.prose { max-width: 66ch; }
.prose p { font-size: 17px; margin-bottom: 1.25rem; }
.prose h2 { font-size: 24px; margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 18px; margin: 1.5rem 0 0.5rem; }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .updated { font-size: 14px; color: var(--photo-caption); margin-bottom: 2rem; }

/* ---- Reassurance list (Book a call) -------------------------------------- */
.reassure { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 64ch; }
.reassure li {
  padding: 16px 0; border-top: var(--rule);
  font-size: 17px; color: var(--ink); font-weight: 500;
}
.reassure li:first-child { border-top: var(--border); }

/* ---- Forms (contact + calculator) ---------------------------------------- */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 700; font-size: 14px; color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; max-width: 100%;
  font: inherit; color: var(--ink);
  background: #FFFFFF;
  border: var(--border); border-radius: 2px;
  padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-grid { max-width: 640px; }
.form-grid .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; }

/* ---- Calculator ----------------------------------------------------------- */
.calc-section { padding: 72px var(--pad); text-align: center; }
.calc-section h2 { margin-bottom: 1rem; }
.calc-section .body { max-width: 62ch; font-size: 18px; margin: 0 auto 2rem; }
.calc-section .form-grid, .calc-section .calc-result { margin-left: auto; margin-right: auto; text-align: left; }
.prose-section.center .form-grid { margin-left: auto; margin-right: auto; text-align: left; }
.calc-result {
  margin-top: 8px; padding: 28px 32px;
  border: var(--border); background: #FFFFFF; max-width: 640px;
}
.calc-result .big {
  font-weight: 800; font-size: 40px; line-height: 1.05; color: var(--green);
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.calc-result .plain { font-size: 17px; color: var(--muted); }

/* ---- Stat strip (About) --------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-strip .stat { padding: 44px var(--pad); }
.stat-strip .stat + .stat { border-left: var(--border); }
.stat-strip .num {
  display: block; font-weight: 800; font-size: 48px; line-height: 1;
  color: var(--green); letter-spacing: -0.02em;
}
.stat-strip .label { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 30ch; }

/* ---- Big quote band (About) ------------------------------------------------ */
.bigquote { background: var(--ink); padding: 88px var(--pad); text-align: center; }
.bigquote p {
  margin: 0 auto; max-width: 30ch;
  color: var(--paper); font-weight: 800; font-size: 36px;
  line-height: 1.18; letter-spacing: -0.02em;
}
.bigquote .accent { color: #6FA98E; }

/* ---- Floating call button (mobile only: desktop users don't tap-to-call) --- */
.floaty {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px;
  display: none; align-items: center; justify-content: center;
  background: var(--green); color: var(--paper);
  border: 2px solid var(--green); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(27, 31, 29, 0.25);
}
.floaty:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.floaty svg { width: 24px; height: 24px; }

/* ---- Cookie consent banner ----------------------------------------------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 70;
  max-width: 560px; margin: 0 auto;
  background: var(--paper); border: var(--border);
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(27, 31, 29, 0.18);
}
.cookie-banner p { font-size: 15px; margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cookie-link {
  font: inherit; font-size: 13px; color: var(--footer-text);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; background: none; border: 0; padding: 0; margin-left: 6px;
}
.cookie-link:hover { color: var(--footer-emph); }

/* ---- Focus -------------------------------------------------------------- */
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 880px) {
  :root { --pad: 24px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  body { font-size: 16px; }

  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .site-header .logo img { height: 44px; }
  .mobile-nav { display: none; background: var(--paper); border-top: var(--border); }
  .mobile-nav.open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 12px 24px 20px; }
  .mobile-nav li { padding: 10px 0; }
  .mobile-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
  .mobile-nav .btn { color: var(--paper); display: inline-block; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { border-bottom: var(--border); padding: 48px 24px; }
  .hero-right { border-left: 0; }
  .hero-photo { min-height: 240px; }

  .trust { grid-template-columns: 1fr; }
  .trust .item + .item { border-left: 0; border-top: var(--rule); }

  .threeup { grid-template-columns: 1fr; }
  .threeup .col + .col { border-left: 0; border-top: var(--border); }

  .case-row { grid-template-columns: 40px 1fr; gap: 14px; }
  .case-row .outcome { grid-column: 2; text-align: left; margin-top: 8px; }

  .steps { grid-template-columns: 1fr; }
  .steps .step { padding: 28px var(--pad); }
  .steps .step + .step { border-left: 0; border-top: var(--border); }

  .services { grid-template-columns: 1fr; }
  .services .svc { padding: 28px var(--pad); }
  .services .svc + .svc { border-left: 0; border-top: var(--border); }

  .sectors { grid-template-columns: 1fr; }
  .sectors .sector { padding: 28px var(--pad); }
  .sectors .sector + .sector { border-left: 0; border-top: var(--border); }

  .team-grid { grid-template-columns: 1fr; }
  .team-member + .team-member { border-left: 0; border-top: var(--border); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .page-hero { padding: 48px var(--pad); }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat + .stat { border-left: 0; border-top: var(--border); }
  .stat-strip .num { font-size: 40px; }
  .bigquote { padding: 56px var(--pad); }
  .bigquote p { font-size: 26px; }
  .form-grid .row { grid-template-columns: 1fr; gap: 0; }
  .calc-result .big { font-size: 32px; }
  .floaty { display: flex; width: 50px; height: 50px; right: 16px; bottom: 16px; }
}

@media (max-width: 380px) {
  h1 { font-size: 30px; }
  .hero-stat .num { font-size: 44px; }
}
