/* DeltaSouth — site styles */
:root {
  --paper: #F3F1EC;
  --surface: #FFFFFF;
  --ink: #15201D;
  --text: #3F4A45;
  --muted: #4A5550;
  --rule: #D9D5CC;
  --field: #A8A399;
  --photo: #E4E0D6;
  --accent: #0E6B58;
  --accent-dark: #0A4F41;
  --on-dark: #F3F1EC;
  --muted-dark: #A9B3AE;
  --rule-dark: #33403B;
  --accent-light: #7FD1B9;
  --display: Archivo, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(20px, 6.6vw, 96px);
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--on-dark); border-radius: 4px;
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-white { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.dark .eyebrow { color: var(--accent-light); }
h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; }
.display { font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.035em; }
.page-title { font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em; max-width: 18ch; }
.h2 { font-weight: 800; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-weight: 700; font-size: 28px; letter-spacing: -0.015em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--text); max-width: 640px; margin: 0; }
.muted { color: var(--muted); }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2; border: 1.5px solid transparent; font-family: var(--body); cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn-outline-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .phone { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--ink); color: var(--on-dark); border-radius: 4px; font-family: var(--mono); font-size: 14px; }
.nav .phone:hover { background: var(--accent); color: #FFFFFF; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 4px; padding: 10px 14px; font: 600 15px var(--body); color: var(--ink); cursor: pointer; }

/* Home hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.hero-main { grid-column: span 8; display: flex; flex-direction: column; gap: 32px; }
.stats { grid-column: 10 / span 3; align-self: end; border-top: 2px solid var(--ink); }
.stat { display: flex; flex-direction: column; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.stat:last-child { border-bottom: 0; }
.stat strong { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.stat strong.small { font-size: 22px; line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.section-head > p { max-width: 420px; color: var(--muted); }
.dark .section-head > p { color: var(--muted-dark); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { display: flex; flex-direction: column; gap: 20px; padding: 40px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-top span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.service p { color: var(--text); }
.service .h3 a { color: var(--ink); text-decoration: none; }
.service .h3 a:hover { color: var(--accent); }
.rows { border-top: 1px solid var(--rule); font-size: 15px; margin: 0; padding: 0; list-style: none; }
.rows li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 0; }
.more { margin-top: auto; font-weight: 600; font-size: 15px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--ink); }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-weight: 700; font-size: 26px; }
.step p { font-size: 16px; color: var(--text); }

/* Dark band + markets */
.dark { background: var(--ink); color: var(--on-dark); }
.markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); margin: 0; padding: 0; list-style: none; }
.market { display: flex; flex-direction: column; gap: 10px; padding: 32px; background: var(--ink); }
.market h3 { font-weight: 700; font-size: 22px; }
.market p { font-size: 15px; color: var(--muted-dark); }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; position: relative; }
.project img { width: 100%; height: 220px; object-fit: cover; background: var(--photo); }
.project-body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex-grow: 1; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-weight: 700; font-size: 24px; line-height: 1.15; }
.project h3 a { color: var(--ink); text-decoration: none; }
.project h3 a::after { content: ""; position: absolute; inset: 0; }
.project:hover h3 a { color: var(--accent); }
.project p { font-size: 15px; color: var(--text); }
.fact { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; }

/* About + contact */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.split-main { grid-column: span 6; display: flex; flex-direction: column; gap: 28px; }
.split-side { grid-column: 8 / span 5; }
.split-main p:not(.eyebrow) { color: var(--text); }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 2px solid var(--ink); }
.details > div { display: flex; flex-direction: column; gap: 6px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.details a { text-decoration: none; }
.details address { font-style: normal; }

.form { display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.section-white .form { background: var(--paper); }
.form h2, .form h3 { font-weight: 700; font-size: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea { min-height: 48px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 4px; background: #FFFFFF; font: inherit; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-note { font-size: 14px; color: var(--muted); }

/* Inner pages */
.page-hero { display: flex; flex-direction: column; gap: 28px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 6px; background: var(--photo); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 2px solid var(--ink); padding-top: 24px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.body-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.body-grid .prose { grid-column: 1 / span 7; }
.body-grid aside { grid-column: 9 / span 4; }
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 70ch; }
.prose h2 { font-weight: 700; font-size: 30px; letter-spacing: -0.015em; line-height: 1.15; margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p:not(.eyebrow), .prose li { color: var(--text); }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.sidebox { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.sidebox h2 { font-weight: 700; font-size: 22px; }
.sidebox p { color: var(--text); font-size: 16px; }

.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 22ch; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.site-footer .left { display: flex; align-items: center; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .hero-main { grid-column: 1 / -1; }
  .stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .stat { border-bottom: 0; }
  .steps, .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-main, .split-side { grid-column: 1 / -1; }
  .body-grid .prose, .body-grid aside { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 17px; }
  .nav .phone { justify-content: center; margin-top: 12px; padding: 14px 20px; border-top: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats, .steps, .markets, .work, .details, .facts { grid-template-columns: 1fr; }
  .stats { gap: 0; }
  .stat { border-bottom: 1px solid var(--rule); }
  .service, .form { padding: 28px 22px; }
  .market { padding: 24px 22px; }
  .btn-row .btn { width: 100%; }
  .cover { aspect-ratio: 4 / 3; }
}
