/* T&M Accounting Services
   Tokens: one green accent, cool green-grey neutrals, light and dark from system setting.
   Radius rule: buttons are pills, cards and images 16px, inputs 10px.
   Z-index scale: 10 header, 20 skip link. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f3f5f2;
  --surface: #fbfcfa;
  --tint: #e4ebe5;
  --ink: #14201b;
  --muted: #4f5d56;
  --line: #d5ddd7;
  --accent: #1d5b43;
  --accent-hover: #17493a;
  --on-accent: #f3f5f2;
  --error: #a3271c;
  --shadow: 0 1px 2px rgb(20 50 38 / .06), 0 12px 32px rgb(20 50 38 / .08);

  --r-card: 16px;
  --r-input: 10px;
  --r-pill: 999px;
  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --surface: #161e1a;
    --tint: #1a2620;
    --ink: #e9eee9;
    --muted: #a3b0a8;
    --line: #2a362f;
    --accent: #7fd0a8;
    --accent-hover: #97dcb8;
    --on-accent: #0f1512;
    --error: #ff9d92;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }

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

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: inherit; font-size: 1rem; font-weight: 500; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost i { transition: transform .2s var(--ease); }
.btn-ghost:hover i { transform: translateX(3px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark {
  display: inline-grid; place-items: center;
  height: 36px; padding: 0 10px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: .9375rem;
}
.brand-name { font-weight: 500; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .2s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 1.25rem; cursor: pointer;
}

/* Hero */
.hero { padding-block: 40px 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  min-height: calc(100dvh - var(--header-h) - 112px);
}
.hero-sub { margin-top: 24px; max-width: 46ch; font-size: 1.1875rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-media img {
  width: 100%; height: min(72dvh, 640px); object-fit: cover;
  border-radius: var(--r-card); box-shadow: var(--shadow);
}

/* Sections */
.section { padding-block: 104px; }
.section-tint { background: var(--tint); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head p { margin-top: 16px; color: var(--muted); }
.lead { margin-top: 16px; color: var(--muted); max-width: 52ch; }

/* Services bento: 6 columns, cells 4+2 / 2+4 / 3+3 */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell {
  display: flex; flex-direction: column;
  padding: 32px; min-height: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden;
}
.cell p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.cell-icon { font-size: 1.75rem; color: var(--accent); margin-bottom: auto; padding-bottom: 28px; }
.cell-wide { grid-column: span 4; }
.cell-narrow { grid-column: span 2; }
.cell-half { grid-column: span 3; }
.cell-tint { background: var(--tint); border-color: transparent; }
.cell-accent { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.cell-accent p, .cell-accent .cell-icon { color: var(--on-accent); }
.cell-accent p { opacity: .86; }

.cell-media { flex-direction: row; padding: 0; }
.cell-media .cell-body { display: flex; flex-direction: column; flex: 1 1 50%; padding: 32px; }
.cell-media img { flex: 1 1 50%; width: 50%; min-height: 100%; object-fit: cover; }

/* Process */
.steps { border-top: 1px solid var(--line); }
.section-tint .steps, .section-tint .step { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.step {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 32px; align-items: baseline;
  padding-block: 36px; border-bottom: 1px solid var(--line);
}
.step h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; color: var(--accent); }
.step p { max-width: 58ch; font-size: 1.125rem; }

/* Clients split */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.split-media img { width: 100%; height: min(78dvh, 620px); object-fit: cover; border-radius: var(--r-card); }
.client-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin-top: 44px; }
.client-list li { display: flex; gap: 14px; align-items: flex-start; }
.client-list i { font-size: 1.5rem; color: var(--accent); margin-top: 2px; }
.client-list h3 { font-size: 1.0625rem; }
.client-list p { margin-top: 4px; color: var(--muted); font-size: 1rem; }

/* Statement */
.section-statement { padding-block: 72px 104px; }
.statement {
  max-width: 30ch;
  font-size: clamp(1.625rem, 3.3vw, 2.625rem); line-height: 1.22; letter-spacing: -0.03em; font-weight: 500;
  text-wrap: pretty;
}
.statement em { font-style: italic; color: var(--accent); }
.section-statement .container { border-top: 1px solid var(--line); padding-top: 72px; }

/* FAQ */
.section-statement + .section { padding-top: 0; }
.faq-wrap { max-width: 880px; margin-inline: auto; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em;
  border-radius: var(--r-card);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; font-size: 1.25rem; color: var(--accent); transition: transform .3s var(--ease); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 24px; color: var(--muted); max-width: 68ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin-top: 40px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list i { font-size: 1.375rem; color: var(--accent); }
.contact-list a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration-color: var(--accent); }

.contact-form {
  display: grid; gap: 20px; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: .9375rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: var(--r-input);
  font: inherit; font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-help { font-size: .875rem; color: var(--muted); }
.field-error { font-size: .875rem; color: var(--error); font-weight: 500; }
.contact-form .btn { justify-self: start; }
.form-status { padding: 14px 16px; border-radius: var(--r-input); background: var(--tint); font-size: .9375rem; }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer { padding-block: 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer-brand { font-size: 1.125rem; letter-spacing: -0.01em; }
.footer-note { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: var(--ink); }

/* Motion: a single load-in on the hero and a soft rise as blocks enter view.
   Only applied when scripting works and the visitor has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .hero-media { animation: rise .8s var(--ease) both; }
  .js .hero-sub { animation-delay: .08s; }
  .js .hero-actions { animation-delay: .16s; }
  .js .hero-media { animation-delay: .12s; }

  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Tablet */
@media (max-width: 1023px) {
  .hero-grid { gap: 40px; }
  .split, .contact-grid { gap: 48px; }
  .cell-wide, .cell-narrow, .cell-half { grid-column: span 6; }
  .cell-narrow { min-height: 0; }
  .cell-narrow .cell-icon { padding-bottom: 40px; }
}

/* Mobile: every multi-column layout collapses to one column */
@media (max-width: 767px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; font-size: 1.0625rem; color: var(--ink); }
  .site-nav .btn { margin-top: 8px; min-height: 48px; }

  .hero { padding-block: 32px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .hero-media img { height: 320px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .cell { padding: 24px; min-height: 0; }
  .cell-icon { padding-bottom: 32px; }
  .cell-media, .cell-media.cell-media-left { flex-direction: column; padding: 0; }
  .cell-media.cell-media-left { flex-direction: column-reverse; }
  .cell-media .cell-body { padding: 24px; }
  .cell-media img { width: 100%; height: 200px; min-height: 0; flex: none; }

  .step { grid-template-columns: 1fr; gap: 8px; padding-block: 28px; }
  .step p { font-size: 1.0625rem; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media img { height: 260px; }
  .client-list { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }

  .section-statement { padding-block: 0 64px; }
  .section-statement .container { border-top: 0; padding-top: 0; }
  .statement { max-width: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
