/* ACT Agentic Advisory — site styles. Palette and type from the approved brand kit. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.woff2") format("woff2"),
       url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic-Variable.woff2") format("woff2"),
       url("../fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2"),
       url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2a37;
  --sage: #6b8f71;
  --sage-dark: #4e6b54;
  --mist: #dde6e1;
  --sand: #f6f1e8;
  --clay: #c8794a;
  --white: #ffffff;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 70rem;
  --header-h: 6.25rem;
  --radius: 1rem;
  --shadow: 0 1px 2px rgb(31 42 55 / 0.04), 0 8px 24px rgb(31 42 55 / 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--sage-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(42rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(246 241 232 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.logo {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 5rem;
  width: auto;
  max-width: min(19rem, 58vw);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-btn:hover {
  background: var(--mist);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle:checked + .nav-toggle-btn .nav-toggle-icon {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-btn .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-btn .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--sage-dark);
}

.nav .btn {
  text-decoration: none;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-dark);
  padding-inline: 0.15rem;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
}

/* ----- Hero ----- */

.hero {
  padding: 3.5rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.7fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero h1::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.28rem;
  margin-bottom: 0.85rem;
  background: var(--clay);
  border-radius: 2px;
}

.tagline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
  color: var(--sage);
}

.hero .lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  display: block;
  width: min(100%, 20.5rem);
  height: auto;
}

/* ----- Sections ----- */

.section {
  padding: 4.5rem 0;
}

.section-mist {
  background: var(--mist);
}

.section-ink {
  background: var(--ink);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.section-ink .eyebrow {
  color: var(--mist);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  max-width: 40rem;
}

.section-ink .lead,
.section-ink p {
  color: var(--mist);
}

.section-ink a {
  color: #fff;
}

.section-ink a:hover {
  color: var(--mist);
}

.section-ink .btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.prose p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Problem + changes */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding-left: 1.85rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--sage);
}

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
}

.plain-list li + li {
  margin-top: 0.55rem;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

@media (min-width: 861px) {
  .service-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-card {
    grid-column: span 2;
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 3;
  }
}

.service-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.service-card p {
  margin: 0;
  font-size: 1rem;
}

.service-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--sage-dark);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.note {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  color: var(--ink);
  max-width: 40rem;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.45rem;
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sage);
  letter-spacing: 0.04em;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  font-size: 0.98rem;
}

.closing-line {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.faq-list > div {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mist);
}

.faq-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.faq-list p {
  margin: 0;
}

/* About */

.about-signoff {
  margin: 1.5rem 0 0;
  font-weight: 500;
}

/* Contact form */

.form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.hint {
  font-weight: 400;
  color: #5c6570;
  font-size: 0.85rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c5d0ca;
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.form-row textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
  border-color: var(--sage);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 0.25rem;
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--mist);
  border-radius: 0.6rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 1.35rem 0;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* 404 */

.page-404 {
  padding: 5rem 0 6rem;
  text-align: center;
}

.page-404 h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.page-404 p {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
}

/* ----- Breakpoints ----- */

@media (max-width: 860px) {
  :root {
    --header-h: 5.25rem;
  }

  .logo img {
    height: 3.6rem;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--sand);
    border-bottom: 1px solid var(--mist);
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav ul a,
  .nav .btn {
    display: flex;
    width: 100%;
    padding: 0.8rem 0.2rem;
  }

  .nav .btn {
    margin-top: 0.4rem;
    justify-content: center;
  }

  .hero {
    padding: 2rem 0 2.75rem;
  }

  .hero-grid,
  .split,
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    order: -1;
  }

  .hero-mark img {
    width: min(100%, 16.5rem);
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (max-width: 480px) {
  .wrap,
  .wrap-narrow {
    width: min(var(--wrap), calc(100% - 1.75rem));
  }

  .logo img {
    height: 3.1rem;
    max-width: min(16rem, 68vw);
  }

  .hero h1 {
    font-size: 2rem;
  }
}

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

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .btn {
    transition: none;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-actions,
  .form,
  .nav-toggle-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
