/* Distinguish Renovations — site styles
   Palette: slate (trim/steel), concrete, limestone, oak accent.
   Type: Archivo — expanded widths for headings, normal width for body. */

/* Archivo variable font (SIL OFL, see /fonts/LICENSE.txt), self-hosted. Latin subset;
   axes: weight 100–900, width 62–125%. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --slate: #1E2F3A;
  --slate-soft: #4A5A63;
  --slate-raised: #2C4352;
  --concrete: #F2F3F1;
  --limestone: #E3DED3;
  --mist: #B9C4CA;
  --oak: #C9944F;        /* accent on dark backgrounds */
  --oak-deep: #8B5E2B;   /* accent on light backgrounds */
  --white: #FFFFFF;
  --error: #9B2C2C;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118;           /* font-stretch % for headings */

  --measure: 64ch;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(4rem, 9vw, 7rem);
  --radius: 3px;
}

*, *::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;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--concrete);
}

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

/* Keep `hidden` working even on elements styled with display (e.g. .btn). */
[hidden] { display: none !important; }

a { color: var(--oak-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--slate); }

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

h1, h2, h3 {
  font-stretch: calc(var(--wide) * 1%);
  font-variation-settings: "wdth" var(--wide);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--oak-deep); color: var(--white); }
.btn-primary:hover { background: var(--slate); color: var(--white); }

.on-dark .btn-primary { background: var(--oak); color: var(--slate); }
.on-dark .btn-primary:hover { background: var(--concrete); color: var(--slate); }

.btn-outline { border-color: currentColor; color: var(--slate); background: transparent; }
.on-dark .btn-outline { color: var(--concrete); }
.btn-outline:hover { background: var(--slate); color: var(--white); border-color: var(--slate); }
.on-dark .btn-outline:hover { background: var(--concrete); color: var(--slate); border-color: var(--concrete); }


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

.site-header {
  background: var(--slate);
  color: var(--concrete);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  color: var(--concrete);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}
.wordmark:hover { color: var(--oak); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--mist); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--concrete); }
.wordmark, .site-nav .btn { white-space: nowrap; }
.site-nav .btn { padding: 0.65rem 1rem; }
@media (max-width: 40rem) {
  .site-nav .nav-text { display: none; }
  .wordmark { font-size: 0.95rem; font-stretch: 100%; font-variation-settings: "wdth" 100; }
  .site-nav .btn { padding: 0.55rem 0.8rem; font-size: 0.9rem; }
}

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

.hero {
  position: relative;
  color: var(--concrete);
  background: var(--slate);
  isolation: isolate;
  min-height: min(88vh, 46rem);
  display: flex;
  align-items: flex-end;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(30, 47, 58, 0.96) 0%, rgba(30, 47, 58, 0.75) 45%, rgba(30, 47, 58, 0.25) 100%);
}
.hero .wrap { padding-top: 6rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
/* The logo is dark ink, so it sits on a light plate over the dark hero photo. */
.hero-logo {
  width: clamp(150px, 22vw, 230px);
  margin-bottom: 1.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--concrete);
  border-radius: var(--radius);
}
.hero h1 { max-width: 18ch; margin-bottom: 0.4em; }
.hero-lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--mist); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

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

.section { padding: var(--space-section) 0; }
.section-limestone { background: var(--limestone); }
.section-slate { background: var(--slate); color: var(--concrete); }

/* Intro: statement + two photos */
.intro-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.intro-statement {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 28ch;
  margin: 0;
}
.intro-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.intro-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-photos img:last-child { margin-top: 2.5rem; }
@media (min-width: 52rem) {
  .intro-grid { grid-template-columns: 1fr 1.1fr; }
}

/* Mission */
.mission-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mission-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mission figure, .mission blockquote { margin: 0; }
.mission blockquote p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  max-width: 40ch;
}
.mission figcaption { color: var(--mist); font-weight: 600; }
.mission figcaption::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--oak);
  margin-bottom: 1rem;
}
@media (min-width: 52rem) {
  .mission-grid { grid-template-columns: 1fr 1fr; }
}

/* Services */
.services-head { display: grid; gap: 1.5rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.scope { display: grid; gap: 1.5rem 3rem; }
.scope h3 { margin-bottom: 0.3em; }
.scope p { color: var(--slate-soft); margin: 0; }
@media (min-width: 52rem) {
  .services-head { grid-template-columns: 1fr 1.4fr; align-items: end; }
  .scope { grid-template-columns: 1fr 1fr; }
}

.trades {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 0.85rem;
}
@media (min-width: 52rem) {
  .trades { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.25rem; }
}
.trades img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.trades h3 {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 3px solid var(--slate);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

/* Contact (bottom of the home page) */
.contact { scroll-margin-top: 1rem; }
.contact-grid { display: grid; gap: 2.5rem 4rem; align-items: start; }
.contact-lede { font-size: 1.15rem; color: var(--slate-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.contact-facts { margin: 0; display: grid; gap: 1.25rem; }
.contact-facts > div { border-top: 3px solid var(--slate); padding-top: 0.75rem; }
.contact-facts dt { font-weight: 700; }
.contact-facts dd { margin: 0.2rem 0 0; color: var(--slate-soft); }
.contact-facts a { color: var(--slate); font-weight: 600; word-break: break-word; }
.contact-facts a:hover { color: var(--oak-deep); }
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; }
}

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

.site-footer {
  background: var(--slate);
  color: var(--mist);
  padding: 3rem 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--slate-raised);
}
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer a { color: var(--concrete); }
.site-footer a:hover { color: var(--oak); }
.footer-name { color: var(--concrete); font-weight: 700; margin: 0; }
.site-footer p { margin: 0; }
@media (min-width: 52rem) {
  .site-footer .wrap { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

/* ---------- 404 ---------- */
.not-found { padding: var(--space-section) 0; min-height: 50vh; }
