/* ============================================================
   KPA Audit Group — site stylesheet
   Plain and professional, in the firm's own colours: brand charcoal
   and gold on warm paper. Anton carries the logotype; Newsreader for
   headings over Public Sans for everything else.
   ============================================================ */

:root {
  --ink: #23201d;
  --ink-soft: #5b5650;
  --paper: #f7f6f2;
  --paper-deep: #efede6;
  --card: #ffffff;
  --charcoal: #4c4947;      /* brand grey, from the logo */
  --dark: #191714;          /* deep warm dark: hero, footer */
  --gold: #edbf26;          /* brand gold, from the logo */
  --gold-deep: #8f7412;     /* gold legible as text on paper */
  --gold-soft: #e6cf7a;     /* gold legible as text on dark */
  --red: #b5382f;           /* the anomaly only */
  --rule: #ddd9cf;

  --font-logo: 'Anton', 'Arial Narrow', sans-serif;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius: 0;
  --wrap: 1440px;
  --gutter: clamp(20px, 4.5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--charcoal); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- eyebrows: small section labels ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 12px;
}
.eyebrow-light { color: var(--gold-soft); }
/* section intros style their paragraphs; keep the label distinct */
.section-head .eyebrow, .intl-copy > .eyebrow { color: var(--gold-deep); margin: 0 0 12px; }
.cta-band .eyebrow { color: var(--gold-soft); margin: 0 0 12px; }

.section { padding: 92px 0; }
.section-tight { padding: 60px 0; }
.section-paper { background: var(--paper-deep); }
.section-ruled { border-top: 1px solid var(--rule); }
.section-dark { background: var(--dark); color: #f7f6f2; }
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: rgba(247, 246, 242, .72); }
.section-dark .section-head .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .95rem;
  padding: 13px 26px;
  border-radius: 0;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-solid { background: var(--charcoal); color: #fff; }
.btn-solid:hover { background: var(--dark); color: #fff; }

.btn-light { background: var(--gold); color: var(--dark); }
.btn-light:hover { background: #f6d54f; color: var(--dark); }

.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: #fff; }

.btn-ghost-light { border-color: rgba(247, 246, 242, .45); color: #f7f6f2; background: transparent; }
.btn-ghost-light:hover { border-color: #f7f6f2; color: #fff; }

.btn-nav { padding: 9px 18px; font-size: .88rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}

/* the kpa lockup, rebuilt as live vector: Anton logotype,
   three square points (the middle one gold), letterspaced sub-line */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-text { display: inline-flex; flex-direction: column; }
.brand-kpa {
  font-family: var(--font-logo);
  font-weight: 400; font-size: 1.8rem;
  letter-spacing: .01em; line-height: .9;
  color: var(--charcoal);
  display: inline-flex; align-items: flex-end; gap: 7px;
}
.brand-dots { display: inline-flex; gap: 4px; margin-bottom: .38em; }
.brand-dots i { width: 7px; height: 7px; background: var(--charcoal); }
.brand-dots i:nth-child(2) { background: var(--gold); }
.brand-sub {
  font-family: var(--font-body);
  font-size: .58rem; font-weight: 600;
  letter-spacing: .48em; text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 4px;
}

.nav-menu {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a:not(.btn) {
  font-weight: 500; font-size: .95rem;
  color: var(--ink); text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-menu a:not(.btn):hover { color: var(--charcoal); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; margin: 5px 0;
  background: var(--ink); transition: transform .2s ease, opacity .2s ease;
}

/* ---------- hero ----------
   A band in the brand charcoal. Headline and contact on the left; a
   portrait photograph on the right that starts below the top of the band
   and sits flush on its bottom edge. Registrations in a strip underneath. */

.hero { background: var(--charcoal); color: #f7f6f2; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 30%);
  gap: clamp(40px, 6vw, 96px);
}
.hero-copy { align-self: center; padding: 80px 0 88px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 22px;
}
.hero-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(247, 246, 242, .82);
  max-width: 38em;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { margin: 20px 0 0; color: rgba(247, 246, 242, .75); }
.hero-phone a { color: #fff; font-weight: 600; text-decoration: none; }
.hero-phone a:hover { color: var(--gold-soft); text-decoration: underline; }
.hero-photo {
  align-self: end;
  margin: 56px 0 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--dark);
}
.hero-photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}

/* ---------- credentials strip ---------- */

.cred-strip { border-top: 1px solid var(--rule); background: var(--paper); }
.cred-inner {
  display: flex; flex-wrap: wrap;
  gap: 10px 0;
  padding-top: 18px; padding-bottom: 18px;
}
.cred-item {
  font-size: .9rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0 22px;
  border-left: 1px solid var(--rule);
}
.cred-item:first-child { padding-left: 0; border-left: 0; }

/* ---------- services: two-column list ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 96px);
  border-top: 1px solid var(--ink);
}
.svc { padding: 28px 0 30px; border-bottom: 1px solid var(--rule); }
.svc h3 { font-size: 1.4rem; margin: 0 0 8px; }
.svc p { margin: 0; color: var(--ink-soft); max-width: 36em; }

/* ---------- industries: photo cards on the dark band ---------- */

.ind-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 28px;
}
.ind-card { display: flex; flex-direction: column; }
.ind-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--gold);
}
.ind-card h3 {
  font-size: 1.45rem;
  color: var(--gold-soft);
  margin: 0 0 8px;
}
.ind-card p {
  margin: 0;
  font-size: .98rem;
  color: rgba(247, 246, 242, .72);
}
.ind-card-cta {
  justify-content: center;
  align-items: flex-start;
  padding: 32px 30px;
  border: 1px solid rgba(247, 246, 242, .22);
}
.ind-card-cta h3 { color: #fff; }
.ind-card-cta p { margin-bottom: 24px; }

/* ---------- why us (with the firm's figures) ---------- */

.why-head {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end;
  gap: 32px 64px;
  margin-bottom: 56px;
}
.why-head .section-head { margin-bottom: 0; }
.why-stats { display: flex; gap: 56px; margin: 0; }
.stat { margin: 0; display: flex; flex-direction: column-reverse; }
.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.why-item { border-top: 1px solid var(--ink); padding-top: 22px; }
.why-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.why-item p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- international ---------- */

.intl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intl-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.intl-copy > p { color: var(--ink-soft); max-width: 34em; }
.network-badge { display: block; width: 140px; height: auto; margin: 32px 0; }
.intl-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.intl-points li { padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.intl-points h3 { font-size: 1.35rem; margin: 0 0 8px; }
.intl-points p { margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */

/* ---------- contact person ---------- */

.person-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.person-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  display: grid;
  place-items: center;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-name { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 6px; }
.person-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.person-bio { color: var(--ink-soft); max-width: 60ch; margin: 0 0 26px; }
.person-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.contact-band { background: var(--charcoal); }
.cta-band {
  color: #f7f6f2;
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.cta-intro p + p { margin-top: 18px; }
.cta-alt a { color: var(--gold-soft); }
.cta-address {
  font-style: normal;
  margin-top: 22px;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(247, 246, 242, .75);
}
.cta-address a { color: var(--gold-soft); }
.footer-address { font-style: normal; font-size: .92rem; line-height: 1.7; margin-top: 10px; }
.cta-alt a:hover { color: #fff; }

/* ---------- contact form ---------- */

.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(247, 246, 242, .85);
}
.field .optional { font-weight: 400; color: rgba(247, 246, 242, .55); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(25, 23, 20, .35);
  border: 1px solid rgba(247, 246, 242, .22);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option { color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(25, 23, 20, .5);
}
.field.has-error input, .field.has-error textarea { border-color: #f08a7e; }
.field-error { color: #f6b1a8; font-size: .85rem; margin: 0 !important; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-note { font-size: .85rem; color: rgba(247, 246, 242, .6) !important; }
.form-status:empty { display: none; }
.form-status { font-size: .95rem; }
.form-status.is-error { color: #f6b1a8 !important; }
.contact-form.is-sending button { opacity: .6; pointer-events: none; }
.form-done {
  border: 1px solid rgba(237, 191, 38, .5);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(25, 23, 20, .3);
}
.form-done h3 { color: #fff; font-size: 1.5rem; margin: 0 0 10px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff; }
.cta-band p { color: rgba(247, 246, 242, .8); margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(247, 246, 242, .75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .brand-kpa { color: #fff; }
.footer-brand .brand-dots i { background: #cfcbc3; }
.footer-brand .brand-dots i:nth-child(2) { background: var(--gold); }
.footer-brand .brand-sub { color: rgba(247, 246, 242, .75); }
.footer-brand p { font-size: .92rem; max-width: 30em; }
.footer-heading {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: rgba(247, 246, 242, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  font-size: .82rem;
  color: rgba(247, 246, 242, .5);
}
.footer-legal p { margin: 0; padding-top: 22px; border-top: 1px solid rgba(247, 246, 242, .12); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding: 52px 0 40px; }
  .hero-photo { margin: 0; aspect-ratio: 16 / 10; }
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intl-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 720px) {
  .person-card { grid-template-columns: 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .person-photo { width: 150px; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 10px 24px 20px;
    box-shadow: 0 16px 32px rgba(35, 32, 29, .12);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a:not(.btn) { display: block; padding: 12px 0; }
  .nav-menu .btn { margin-top: 12px; }

  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
  .cred-inner { flex-direction: column; gap: 6px; }
  .cred-item { padding: 0; border-left: 0; }
}

@media (max-width: 560px) {
  /* phones: compact rows, thumbnail beside the text */
  .ind-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ind-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    align-items: start;
  }
  .ind-card img { grid-row: span 2; aspect-ratio: 1; margin: 0; border-bottom-width: 2px; }
  .ind-card h3 { font-size: 1.2rem; margin: 2px 0 4px; }
  .ind-card p { font-size: .92rem; }
  .ind-card-cta { display: flex; padding: 24px 22px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

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