/* Kraftwood LLC design system.
   Palette drawn from the logo (steel blue, silver, charcoal) with warm wood
   accents pulled from the photography. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #12181f;
  --charcoal-soft: #1a222c;
  --ink: #1d2733;
  --muted: #55606d;
  --steel: #97a1ad;
  --paper: #f7f5f0;
  --card: #ffffff;
  --line: #e5e0d6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --blue: #1f5fa8;
  --blue-dark: #174a85;
  --sky: #e3ecf6;
  --wood: #a06a3f;
  --wood-light: #e8c9a8;
  --wood-tint: #f1e6d8;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(18, 24, 31, 0.1);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 560;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: inherit;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 0.7em 1.2em;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 620;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 9px;
  border: 1.5px solid var(--blue);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-small {
  padding: 0.55em 1.1em;
  font-size: 0.92rem;
}

/* Header */
.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.brand img {
  width: 48px;
  height: 48px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  color: #cfd6df;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 520;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--wood-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-dark);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45em 0.9em;
  border-radius: 8px;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  position: relative;
  content: "";
}
.nav-toggle-bars::before {
  position: absolute;
  top: -5px;
}
.nav-toggle-bars::after {
  position: absolute;
  top: 5px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.75rem 1.5rem 1.5rem;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav li {
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav li:last-child {
    border-bottom: none;
  }
  .site-nav a:not(.btn) {
    display: block;
    padding: 0.85em 0;
    border-bottom: none;
  }
  .nav-cta {
    padding-top: 1rem;
  }
}

/* Hero */
.hero {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 19, 0.88) 20%, rgba(10, 14, 19, 0.55) 55%, rgba(10, 14, 19, 0.25));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 14vw, 9.5rem);
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin-bottom: 0.4em;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #dbe2ea;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--wood-light);
}
.section .eyebrow {
  color: var(--wood);
}
.section .eyebrow::before {
  background: var(--wood);
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.section-alt {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  max-width: 26ch;
}
.section-intro {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.08rem;
}
.section-head {
  margin-bottom: 2.25rem;
}

/* Trust row */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.trust-item {
  border-left: 3px solid var(--wood);
  padding-left: 1.1rem;
}
.trust-item h3 {
  font-size: 1.12rem;
  margin-bottom: 0.25em;
}
.trust-item p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.35em;
}
.card p {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}
.card-link {
  font-weight: 620;
  text-decoration: none;
  margin-top: 0.5rem;
}
.card-link::after {
  content: " \203A";
}
.card-link:hover {
  text-decoration: underline;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 560;
  color: var(--wood);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-size: 1.18rem;
  margin-bottom: 0.3em;
}
.step p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* Feature split */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Gallery */
.gallery {
  columns: 3 300px;
  column-gap: 1.5rem;
}
.gallery figure {
  margin: 0 0 1.5rem;
  break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.gallery figcaption {
  padding: 0.85rem 1.1rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.lightbox {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: var(--charcoal);
  max-width: min(1100px, 92vw);
}
.lightbox::backdrop {
  background: rgba(10, 14, 19, 0.85);
}
.lightbox img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}
.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(18, 24, 31, 0.75);
  color: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Service area chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42em 1.05em;
  font-size: 0.95rem;
  color: var(--ink);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.faq summary {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 560;
  cursor: pointer;
}
.faq details[open] summary {
  margin-bottom: 0.5rem;
}
.faq p {
  color: var(--muted);
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  margin-inline: auto;
}
.cta-band p {
  color: var(--steel);
  max-width: 56ch;
  margin-inline: auto;
}
.cta-band .btn {
  margin-top: 1.25rem;
}

/* Interior page hero */
.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-bottom: 0.3em;
}
.page-hero .lead {
  color: #dbe2ea;
  max-width: 62ch;
  font-size: 1.1rem;
  margin: 0;
}
.crumbs {
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
  color: var(--steel);
}
.crumbs a {
  color: var(--steel);
}
.crumbs a:hover {
  color: #fff;
}

/* Prose */
.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.2rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.4em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-card h2 {
  font-size: 1.3rem;
}
.contact-card p {
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #cfd6df;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2.5rem;
  padding-block: 3.5rem;
}
.footer-brand p {
  font-size: 0.95rem;
  color: var(--steel);
  margin-top: 1rem;
}
.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.55em;
  font-size: 0.97rem;
}
.site-footer a {
  color: #cfd6df;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--steel);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
