/* Mahouatax and Accounting static site. No JavaScript, no external requests. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours, taken from the old WordPress site. Every colour on the site
     comes from these variables. */
  --brand: #1a70e8;          /* buttons, links. The old site's #2a83f9, deepened to pass 4.5:1 on white */
  --brand-hover: #1765d3;
  --brand-soft: #e7f1fe;     /* active nav, step numbers */
  --accent: #c472e5;         /* small marks: card bullets, eyebrow rule */
  --eyebrow: #1a70e8;
  --hero-bg: linear-gradient(180deg, #fbf0fe, #fff 85%);
  --strip: linear-gradient(90deg, #f8a2fb, #c9b6f6 50%, #a1cef5);
  --cta-bg: linear-gradient(110deg, #9a3fd4, #1a70e8);
  --cta-text: #ffffff;
  --footer-bg: #6a24e0;
  --footer-text: #e2d5fb;
  --footer-link: #ffffff;
  --footer-base-bg: transparent;
  --focus: #c9a0f5;
  --ink: #141b2e;
  --text: #434b5e;
  --muted: #6a7286;
  --line: #e2e6ef;
  --tint: #f5f7fb;
  --surface: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 27, 46, .05), 0 10px 30px rgba(20, 27, 46, .08);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 750; }
h2 { font-size: clamp(27px, 3.3vw, 38px); font-weight: 720; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 4px; background: var(--strip); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 46px; }
.brand span { font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
nav a {
  display: block; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px;
  padding: 9px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
nav a:hover { background: var(--tint); color: var(--brand); }
nav a[aria-current="page"] { color: var(--brand-hover); background: var(--brand-soft); }
nav .nav-cta a { background: var(--brand); color: #fff; margin-left: 6px; }
nav .nav-cta a:hover { background: var(--brand-hover); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { border-color: #c9d1e6; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Hero */
.hero { padding: 64px 0 72px; background: var(--hero-bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 18px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; vertical-align: middle; margin-right: 10px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text); margin-top: 20px; max-width: 36em; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo.tall img { aspect-ratio: 2 / 3; }
figcaption { font-size: 14px; color: var(--muted); padding: 10px 2px 0; }

/* Page header for inner pages */
.page-head { padding: 56px 0 48px; background: var(--hero-bg); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 16px; }

/* Sections */
section { padding: 80px 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; font-size: 18px; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); list-style: none; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px;
  box-shadow: 0 1px 2px rgba(20, 27, 46, .04);
}
.card h3 { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.card h3::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 2px; background: var(--accent); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card p { margin: 0; font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.ticks { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg);
}
.ticks.cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 28px; }

.steps { counter-reset: step; list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Call to action band */
.cta-band { background: var(--cta-bg); color: var(--cta-text); padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band .cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band p { margin: 12px 0 0; font-size: 18px; max-width: 40em; }
.cta-band .btn-primary { background: #fff; color: var(--brand-hover); }
.cta-band .btn-primary:hover { background: var(--brand-soft); color: var(--brand-hover); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-item h2 { font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-item p { margin: 0; font-size: 18px; color: var(--ink); }
.contact-item a { font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-item .note { font-size: 15px; color: var(--muted); margin-top: 8px; }
address { font-style: normal; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer h2 { font-size: 14px; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 700; }
.footer-brand img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 22px; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  section { padding: 60px 0; }
}
@media (max-width: 760px) {
  .header-row { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 8px; }
  nav ul { overflow-x: auto; gap: 2px; margin: 8px -4px 0; padding-bottom: 2px; scrollbar-width: none; }
  nav a { padding: 8px 12px; white-space: nowrap; }
  nav .nav-cta { display: none; }
  .site-header { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 56px; }
  .gallery, .cards.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Helpers (the CSP blocks inline style attributes) */
.photo { margin: 0; }
.span-all { grid-column: 1 / -1; }
.gap-top { margin-top: 56px; }
.contact-item p.plain { font-size: 17px; color: var(--text); }
