/* Cubic Square — light theme, one accent (persimmon). Mobile first. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --surface: #fffdf9;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #ddd6c8;
  --accent: #c2410c;
  --accent-ink: #9a3412;
  --accent-deep: #7c2d12;
  --peach: #f8e7dc;
  --header: 4.5rem;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;
  --wrap: 72rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

h1, h2, h3, p, ul, ol, figure, blockquote, dl {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.15rem, 5.6vw, 4.35rem);
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.28rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

p, li, dd {
  overflow-wrap: break-word;
}

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

a:hover {
  color: var(--accent-deep);
}

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

::selection {
  background: #f0c2b0;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.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;
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede,
.section-intro {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

.section {
  padding: 4rem 0;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand svg {
  display: block;
  flex: none;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-legal {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bars i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-button[aria-expanded="true"] .bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .bars i:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

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

.site-nav a:hover {
  color: var(--accent-ink);
}

.site-nav a[aria-current="page"]:not(.button) {
  color: var(--accent-ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.wa-float {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: fixed;
  left: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 35;
  min-height: 48px;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  background: #075e54;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(28, 25, 21, 0.2);
}

.wa-float:hover {
  background: #064e46;
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-on-dark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */

.hero {
  padding: 2.75rem 0 3rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(194, 65, 12, 0.09), transparent 26rem);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem 0.4rem;
}

.panel-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-list li {
  border-top: 1px solid var(--line);
}

.panel-list a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.panel-list a span {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.panel-list a:hover {
  color: var(--accent-ink);
}

.panel-foot {
  margin: 0.2rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.signal-row {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
}

.signal-row li {
  font-weight: 600;
  font-size: 0.98rem;
}

/* Service index */

.service-index {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  gap: 0.35rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.service-index .service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row .num {
  color: var(--accent-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.service-row h3 {
  margin: 0;
  font-size: 1.45rem;
}

.service-row p {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

.service-row .go {
  font-weight: 600;
  color: var(--accent-ink);
}

.service-row:hover h3,
.service-row:hover .go {
  color: var(--accent-deep);
}

/* Why and process */

.why-list,
.process,
.ticks,
.faq-list,
.link-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-list {
  display: grid;
  gap: 1.5rem;
}

.why-list li,
.faq-item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.why-list p,
.faq-item p,
.process p {
  margin: 0;
}

.process li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 0.85rem;
  row-gap: 0.3rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.process li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent);
}

.process h3,
.process p {
  grid-column: 2;
  margin: 0;
}

.ticks li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.15rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

/* Testimonials */

.placeholder-banner {
  background: var(--peach);
  border: 1px solid var(--accent);
  padding: 1rem 1.1rem;
  margin-bottom: 1.15rem;
}

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

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

.quote-card {
  margin: 0;
  background: var(--surface);
  border: 1px dashed var(--accent);
  padding: 1rem;
}

.placeholder-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.4rem;
  background: var(--accent-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-card blockquote {
  margin: 0 0 0.9rem;
}

.quote-card blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
}

.quote-card figcaption {
  color: var(--muted);
  font-size: 0.95rem;
}

.link-list li {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0;
  font-weight: 600;
}

/* CTA and footer */

.cta-band {
  background: var(--ink);
  color: var(--paper);
}

.cta-band .lede,
.cta-band p {
  color: var(--paper);
}

.cta-band .eyebrow {
  color: #f8e7dc;
}

.cta-band :focus-visible {
  outline-color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-label {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: inherit;
  text-underline-offset: 0.15em;
}

.footer-links li {
  margin: 0.4rem 0;
}

.footer-blurb {
  max-width: 28rem;
  margin-bottom: 0;
}

address {
  font-style: normal;
}

address p {
  margin: 0 0 0.35rem;
}

.footer-mark {
  margin: 2.2rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  max-width: 100%;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-row a {
  color: inherit;
}

/* Inner pages */

.page-head {
  padding: 2.25rem 0 0.5rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  font-size: 0.92rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink);
}

.inpage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.inpage a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.service-block {
  display: grid;
  gap: 1rem 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.service-block .diagram {
  grid-column: 1 / -1;
}

.service-block h2,
.service-block h3 {
  scroll-margin-top: 5.5rem;
}

.service-block h3 {
  margin-top: 1.35rem;
}

.prose {
  max-width: 46rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.diagram {
  margin: 1.5rem 0 0;
}

.diagram figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

.note {
  background: var(--peach);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
}

/* Forms */

.contact-layout {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 4rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.15rem;
}

.form-card h2 {
  font-size: 1.6rem;
}

form {
  display: grid;
  gap: 0.95rem;
}

label {
  display: block;
  font-weight: 600;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #c9c2b4;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92rem;
}

.check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-weight: 400;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
}

.check label {
  font-weight: 400;
}

.button-submit {
  width: 100%;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.status-page {
  padding-bottom: 4rem;
}

.status-page .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.2rem;
  max-width: 40rem;
}

/* Wider screens */

@media (min-width: 700px) {
  .signal-row {
    grid-template-columns: 1fr 1fr;
  }

  .facts div {
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

@media (min-width: 800px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 4rem));
  }

  .section {
    padding: 6rem 0;
  }

  .hero {
    padding: 4.5rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 3.5rem;
  }

  .signal-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: 3rem 1.1fr 1.4fr auto;
    align-items: baseline;
    gap: 1.25rem;
  }

  .why-list,
  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-list.value-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  }

  .page-head {
    padding-top: 3.5rem;
  }

  .service-block {
    grid-template-columns: minmax(16rem, 0.85fr) 1.15fr;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 3rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .button-submit {
    width: auto;
  }
}

@media (min-width: 1040px) {
  .quote-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 799px) {
  html.js .menu-button {
    display: inline-flex;
  }

  html.js #site-nav {
    display: none;
  }

  html.js #site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    margin: 0;
    padding: 0.35rem 1.25rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(28, 25, 21, 0.08);
    gap: 0;
  }

  html.js #site-nav.is-open a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  html.js #site-nav.is-open .button {
    margin: 0.85rem 0 0.35rem;
    border-bottom: 0;
  }
}

@media (min-width: 800px) {
  .menu-button {
    display: none !important;
  }

  #site-nav {
    display: flex !important;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  .menu-button,
  .inpage a,
  .hero-panel,
  .quote-card {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .menu-button,
  .hero-actions,
  .cta-band,
  .skip-link,
  .wa-float {
    display: none !important;
  }

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

  a {
    color: #000;
    text-decoration: underline;
  }
}
