/* =========================================================
   Porto Designs and Remodels
   Palette: warm charcoal ink, copper/clay accent, sage secondary.
     copper #C8865A (on dark)   clay #A9562B (on light)
     sage   #9DB9A7             ink  #1B1917
   Clay is the darkened copper used wherever the accent has to
   carry contrast against white.
   ========================================================= */

:root {
  color-scheme: light;

  /* Brand */
  --copper: #c8865a;
  --clay-soft: #f6ebe2;
  --clay: #a9562b;
  --clay-deep: #833f1d;
  --sage: #9db9a7;
  --sage-soft: #e9f0eb;
  --sage-deep: #4b7159;

  /* Neutrals */
  --ink: #1b1917;
  --ink-2: #23201c;
  --ink-3: #322d27;
  --text: #26231f;
  --text-muted: #635d55;
  --text-invert-muted: #bfb8ae;
  --line: #e8e3dc;
  --line-dark: rgb(255 255 255 / 0.12);
  --surface: #ffffff;
  --surface-2: #f8f5f0;

  /* Type */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: var(--font-body);

  /* Fluid scale */
  --step-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.82rem);
  --step-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.94rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.09rem + 0.3vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.5rem);

  /* Space & shape */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 6vw, 5rem);
  --section-y-tight: clamp(2.75rem, 4.5vw, 3.75rem);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 18px 45px rgb(27 25 23 / 0.10);
  --shadow-lg: 0 30px 70px rgb(27 25 23 / 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------
   Reset / base
   --------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

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

:is(ul, ol) { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Layout primitives
   --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }

.section--dark {
  background:
    radial-gradient(120% 90% at 85% 0%, rgb(157 185 167 / 0.10), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgb(169 86 43 / 0.12), transparent 55%),
    var(--ink);
  color: var(--text-invert-muted);
}
.section--dark :is(h2, h3, h4) { color: #fff; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

/* Once the split stacks, lead with the words and let the image follow. */
@media (max-width: 60rem) {
  .split--copy-first > .frame { order: 2; }
}

/* ---------------------------------------------------------
   Type helpers
   --------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  color: var(--clay);
  font-family: var(--font-ui);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--light { color: var(--sage); }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 42ch;
}

.text-center { text-align: center; }

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
}
.section-head .eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: var(--step-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 24px rgb(169 86 43 / 0.28);
}
.btn--primary:hover { background: var(--clay-deep); box-shadow: 0 16px 32px rgb(169 86 43 / 0.34); }

.btn--ghost {
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.14); border-color: #fff; }

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------
   Top bar
   --------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: #d6d0c7;
  font-size: var(--step-xs);
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.6rem;
}
.topbar__info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.topbar__info li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.topbar__info svg { width: 0.95rem; height: 0.95rem; color: var(--copper); flex: none; }
.topbar__info a:hover { color: var(--copper); }

.topbar__end {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}
/* Sized to sit level with the social buttons and share their outline. */
.topbar__account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.9rem;
  padding-inline: 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.topbar__account svg { width: 0.9rem; height: 0.9rem; flex: none; }
.topbar__account:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

.social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
/* The footer stacks its list items with a top margin — this row must opt out. */
.social li + li { margin-top: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 6px;
  color: #fff;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { background: var(--clay); border-color: var(--clay); }
.social svg { width: 0.85rem; height: 0.85rem; }

@media (max-width: 900px) {
  .topbar .social { display: none; }
}
@media (max-width: 640px) {
  .topbar__info li:not(:first-child) { display: none; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header[data-stuck="true"] { box-shadow: 0 10px 30px rgb(27 25 23 / 0.08); }

.site-header .container {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.brand__logo { height: clamp(3.25rem, 7vw, 4.5rem); width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--font-ui);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.nav__list a {
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--clay); }
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a { white-space: nowrap; }

/* The in-menu call to action only exists for the mobile drawer — on desktop
   the standalone .header-cta button takes its place. */
.nav__list .nav__cta { display: none; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; margin-inline: auto; }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
  }
  .nav[data-open="true"] { grid-template-rows: 1fr; }
  .nav__inner { overflow: hidden; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--gutter);
    font-size: var(--step-0);
  }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__list a { display: block; padding-block: 0.9rem; }
  .nav__list a::after { display: none; }
  .nav__list .nav__cta { display: block; border-top: 0; padding-top: 1.25rem; }
  .nav__list .nav__cta a { padding-block: 0.9rem; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(78svh, 46rem);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgb(27 25 23 / 0.94) 0%, rgb(27 25 23 / 0.78) 45%, rgb(27 25 23 / 0.35) 100%),
    radial-gradient(70% 60% at 0% 90%, rgb(169 86 43 / 0.22), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__inner { max-width: 44rem; }

/* Logo plate — the wordmark is near-black, so it needs a light card to sit on. */
.hero__card {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  aspect-ratio: 1 / 0.86;
  background: linear-gradient(160deg, #fff, #faf3ec);
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.45);
}
.hero__card img { width: min(100%, 15rem); height: auto; }

.hero__card-phone {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.hero__card-phone a { transition: color 0.2s var(--ease); }
.hero__card-phone a:hover { color: var(--clay); }

@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card {
    aspect-ratio: auto;
    justify-self: start;
    max-width: 26rem;
    width: 100%;
    padding: clamp(1.5rem, 5vw, 2.25rem);
  }
}
.hero h1 {
  color: #fff;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--copper); display: block; }
.hero .lead { color: #e3ded6; margin-top: 1.25rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-family: var(--font-ui);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ebe6df;
}
.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero__proof svg { width: 1rem; height: 1rem; color: var(--sage); flex: none; }

/* ---------------------------------------------------------
   Marquee
   --------------------------------------------------------- */

.marquee {
  display: flex;
  gap: 2.5rem;
  padding-block: 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  gap: 2.5rem;
  min-width: 100%;
  padding-right: 2.5rem;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  flex: none;
  font-family: var(--font-ui);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.marquee li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}
@keyframes marquee {
  to { transform: translateX(calc(-100% - 2.5rem)); }
}

/* ---------------------------------------------------------
   Media frame
   --------------------------------------------------------- */

.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
@media (max-width: 60rem) {
  .frame { aspect-ratio: 16 / 10; }
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.frame:hover img { transform: scale(1.04); }

.frame__badge {
  position: absolute;
  left: 0;
  top: 1.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--clay);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--step-xs);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Stats
   --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.stat__label {
  font-size: var(--step-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.02);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              background-color 0.3s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgb(169 86 43 / 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service:hover,
.service:focus-within {
  transform: translateY(-4px);
  border-color: rgb(169 86 43 / 0.5);
}
.service:hover::before,
.service:focus-within::before { opacity: 1; }

.service__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.service__icon { width: 2rem; height: 2rem; color: var(--copper); flex: none; }
.service__rule { flex: 1; height: 1px; background: rgb(200 134 90 / 0.35); }
.service__dot {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.service__dot svg { width: 0.85rem; height: 0.85rem; }
.service:hover .service__dot { transform: translateX(3px); }

.service h3 {
  letter-spacing: -0.01em;
  font-size: var(--step-0);
}
.service p { font-size: var(--step-sm); color: #b3ada3; margin: 0; }

/* ---------------------------------------------------------
   Trust / value grid
   --------------------------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.value {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-ui);
  font-size: var(--step-sm);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.value:hover { border-color: var(--copper); box-shadow: var(--shadow); }
.value__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  flex: none;
}
.value__icon svg { width: 1.3rem; height: 1.3rem; }
.value--accent { background: var(--clay); border-color: var(--clay); color: #fff; }
.value--accent .value__icon { background: rgb(255 255 255 / 0.22); color: #fff; }

/* ---------------------------------------------------------
   Process steps
   --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  color: var(--copper);
}
.step::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 3.5rem;
  right: -1rem;
  height: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
@media (max-width: 60rem) {
  .step::after { display: none; }
}
.step h3 { font-size: var(--step-1); }
.step p { font-size: var(--step-sm); margin: 0; }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
  background:
    radial-gradient(80% 120% at 15% 0%, rgb(169 86 43 / 0.30), transparent 60%),
    radial-gradient(70% 110% at 90% 100%, rgb(157 185 167 / 0.22), transparent 60%),
    var(--ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.06);
  box-shadow: 0 0 0 6rem rgb(255 255 255 / 0.02);
}
.cta h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta p { color: #ddd8d0; max-width: 46ch; margin-inline: auto; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  background: var(--ink-2);
  color: var(--text-invert-muted);
  font-size: var(--step-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.site-footer__brand { grid-column: span 1; }
@media (min-width: 60rem) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}
.site-footer h2 {
  margin-bottom: 1.1rem;
  color: #fff;
  font-size: var(--step-0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer li + li { margin-top: 0.6rem; }
.site-footer a { transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--copper); }
.site-footer__logo {
  height: 4.5rem;
  width: auto;
  margin-bottom: 1rem;
}
/* Credential badge image sits on a light plate so a dark mark stays legible. */
.site-footer__cred {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border-radius: 6px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-footer__cred img { display: block; height: 2.5rem; width: auto; }
.site-footer__cred:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.site-footer__cred-text {
  margin-top: 0.75rem;
  font-size: var(--step-xs);
  line-height: 1.5;
  color: var(--text-invert-muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--step-xs);
}

/* ---------------------------------------------------------
   Forms — shared by the contact page and the admin.
   admin.css layers its own grid helpers on top of these.
   --------------------------------------------------------- */

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step-sm);
}
.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step-sm);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: var(--step-sm);
  color: var(--text);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
  border-color: var(--clay);
}
.field__hint { margin: 0.35rem 0 0; font-size: var(--step-xs); color: var(--text-muted); }
.field__error { margin: 0.35rem 0 0; font-size: var(--step-xs); color: #bf3c3c; font-weight: 600; }
.field--inline { margin-bottom: 0; }
.req { color: var(--clay); }

.check { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.check input { width: auto; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.alert {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: var(--step-sm);
}
.alert--success { background: var(--sage-soft); border-color: var(--sage-deep); color: #2d4a38; }
.alert--error   { background: #fbe9e2; border-color: var(--clay); color: #7a3416; }

/* Honeypot — hidden from people, left visible to the bots that fill it in. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */

.page-hero {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--ink);
  color: var(--text-invert-muted);
}
.page-hero h1 { color: #fff; font-size: var(--step-3); }
.page-hero p { max-width: 46rem; margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: var(--step-2); }

.contact-aside {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}
.contact-aside h2 { font-size: var(--step-1); }

.contact-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-list svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.3rem;
  color: var(--clay);
}
.contact-list strong { display: block; color: var(--ink); font-size: var(--step-sm); }
.contact-list a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.contact-list a:hover { color: var(--clay); }

.contact-sent {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-sent__mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
}
.contact-sent__mark svg { width: 2rem; height: 2rem; }

/* ---------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------
   Credentials — licensed & insured badge, section, card

   The badge sits on the dark hero on the home and about pages;
   the card is the light-background credential panel.
   --------------------------------------------------------- */

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.cred-badge__mark {
  height: 2.4rem;
  width: auto;
  padding: 0.3rem 0.45rem;
  box-sizing: content-box;
  background: #fff;
  border-radius: 999px;
  flex: none;
}
.cred-badge > span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.25;
}
.cred-badge strong {
  font-family: var(--font-ui);
  font-size: var(--step-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.cred-badge__full {
  font-size: var(--step-xs);
  color: var(--text-invert-muted);
}
@media (max-width: 26rem) {
  .cred-badge { border-radius: var(--radius-lg); }
  .cred-badge__full { display: none; }
}

/* A light-background variant, in case the badge is ever used off the hero. */
.cred-badge--light {
  background: var(--sage-soft);
  border-color: var(--line);
  backdrop-filter: none;
}
.cred-badge--light strong { color: var(--ink); }
.cred-badge--light .cred-badge__full { color: var(--text-muted); }

.page-hero__note {
  margin-top: 1.25rem;
  font-size: var(--step-sm);
  color: var(--text-invert-muted);
}

.credentials { background: var(--sage-soft); }
/* The section is a linkable anchor (/about#credentials, and #credentials on the home page).
   scroll-padding-top on <html> covers most of it, but belt-and-braces here so
   a late-loading image above can never drop the heading under the sticky
   header when the page is opened straight at the anchor. */
.credentials[id] { scroll-margin-top: 6rem; }

.cred-points {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.cred-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: var(--step-sm);
  color: var(--text-muted);
}
.cred-points strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
  font-size: var(--step-0);
  color: var(--ink);
}
.cred-points__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--sage-deep);
}
.cred-points__icon svg { width: 1.15rem; height: 1.15rem; }

.cred-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cred-card__mark {
  height: 4rem;
  width: auto;
  margin-bottom: 1.5rem;
}
.cred-card__meta { display: grid; gap: 1rem; }
.cred-card__meta dt {
  font-family: var(--font-ui);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}
.cred-card__meta dd {
  margin: 0.25rem 0 0;
  font-size: var(--step-sm);
  color: var(--text);
}
.cred-card__note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-xs);
  color: var(--text-muted);
}
.cred-card__note a { color: var(--clay); font-weight: 600; }

@media print {
  .topbar, .site-header, .marquee, .cta__actions, .hero__actions { display: none; }
  body { color: #000; }
}

/* ---------------------------------------------------------
   Featured work
   --------------------------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}
.project {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project:hover img { transform: scale(1.04); }
.project__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.4rem 1.25rem;
  background: linear-gradient(to top, rgb(27 25 23 / 0.92), rgb(27 25 23 / 0));
  color: #fff;
}
.project__caption h3 { margin: 0 0 0.2rem; color: #fff; font-size: var(--step-1); }
.project__caption p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--step-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.testimonial__quote svg { width: 1.75rem; height: 1.75rem; color: var(--copper); }
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.testimonial figcaption { font-size: var(--step-sm); color: var(--text-muted); }
.testimonial figcaption strong { display: block; margin-top: 0.4rem; color: var(--ink); }
.stars { display: inline-flex; gap: 0.15rem; color: var(--clay); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ---------------------------------------------------------
   Services page
   --------------------------------------------------------- */

.service-list-page { display: grid; gap: 1.25rem; }

.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 6rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-detail:hover { border-color: var(--copper); box-shadow: var(--shadow); }
.service-detail:target { border-color: var(--clay); box-shadow: var(--shadow); }
.service-detail__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--clay-soft);
  color: var(--clay-deep);
}
.service-detail__icon svg { width: 1.6rem; height: 1.6rem; }
.service-detail h2 { margin-bottom: 0.4rem; font-size: var(--step-2); }
.service-detail p { margin: 0 0 1rem; max-width: 60ch; }
.service-detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--clay);
  transition: gap 0.2s var(--ease);
}
.service-detail__cta:hover { gap: 0.7rem; color: var(--clay-deep); }
.service-detail__cta svg { width: 1em; height: 1em; }
@media (max-width: 40rem) {
  .service-detail { grid-template-columns: 1fr; }
}

/* The home-page service card's arrow doubles as the deep link. */
a.service__dot:hover,
a.service__dot:focus-visible { background: var(--clay-deep); }

/* ---------------------------------------------------------
   404
   --------------------------------------------------------- */

.not-found {
  max-width: 36rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.not-found h1 { font-size: var(--step-3); }
.not-found .cta__actions { margin-top: 2rem; }
.not-found .eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}

/* ---------------------------------------------------------
   Coming soon (index.php while the site is pre-launch)
   --------------------------------------------------------- */

.coming-soon {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  background:
    radial-gradient(70% 60% at 50% 0%, rgb(200 134 90 / 0.14), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgb(157 185 167 / 0.10), transparent 65%),
    var(--ink);
  color: var(--text-invert-muted);
  text-align: center;
}
.coming-soon__inner { max-width: 40rem; }
.coming-soon__logo {
  width: clamp(9rem, 28vw, 13rem);
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.5));
}
.coming-soon h1 { color: #fff; font-size: var(--step-3); margin-bottom: 0.4em; }
.coming-soon .lead { margin-inline: auto; color: #e3ded6; }
.coming-soon__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.coming-soon__status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgb(200 134 90 / 0.25);
}
.coming-soon__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--step-sm);
}
.coming-soon__contact li { display: inline-flex; align-items: center; gap: 0.5rem; }
.coming-soon__contact svg { width: 1rem; height: 1rem; color: var(--copper); }
.coming-soon__contact a { color: #fff; }
.coming-soon__contact a:hover { color: var(--copper); }
.coming-soon__social { justify-content: center; margin-top: 1.5rem; }
.coming-soon__foot {
  position: absolute;
  inset: auto 0 1.25rem;
  font-size: var(--step-xs);
  color: var(--text-invert-muted);
}
