/* Dufrane Construction — static site */
:root {
  --blue: #2b4f8f;
  --blue-deep: #1e3a6e;
  --ink: #1a1c1e;
  --charcoal: #2c3035;
  --steel: #6b7280;
  --sand: #c4b49a;
  --dust: #e8e0d4;
  --paper: #f3efe8;
  --white: #ffffff;
  --line: rgba(26, 28, 30, 0.12);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", sans-serif;

  --space: clamp(1rem, 2.5vw, 2rem);
  --section: clamp(4rem, 10vw, 7rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1rem 0;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: block;
  width: min(14rem, 58vw);
}

.logo img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35em;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--blue);
  color: var(--white) !important;
  text-decoration: none !important;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav__cta::after {
  display: none;
}

.nav__cta:hover {
  background: var(--blue-deep);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.28rem auto;
  background: currentColor;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 4.5rem;
    margin: 0 var(--space);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(26, 28, 30, 0.12);
    transform: translateY(-0.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a::after {
    display: none;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white) !important;
}

.btn--primary:hover {
  background: var(--blue-deep);
  color: var(--white) !important;
}

.btn--ghost {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
}

.btn--ink {
  background: var(--ink);
  color: var(--white) !important;
}

.btn--ink:hover {
  background: var(--charcoal);
  color: var(--white) !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) forwards;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.45) 0%, rgba(18, 22, 28, 0.2) 35%, rgba(18, 22, 28, 0.72) 100%),
    linear-gradient(90deg, rgba(18, 22, 28, 0.55) 0%, transparent 55%);
}

.hero__content {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 0.85rem;
  max-width: 12ch;
  animation: rise 0.9s var(--ease) both;
}

.hero__headline {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 0.65rem;
  max-width: 22ch;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero__lede {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero .cta-row {
  animation: rise 0.9s var(--ease) 0.32s both;
}

@keyframes hero-drift {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Sections ——— */
.section {
  padding: var(--section) 0;
}

.section--ink {
  background: var(--charcoal);
  color: var(--white);
}

.section--dust {
  background: var(--dust);
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.75rem;
}

.section--ink .section__eyebrow {
  color: var(--sand);
}

.section__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
}

.section__intro {
  max-width: 42ch;
  color: var(--steel);
  margin-top: -0.25rem;
  margin-bottom: 2.5rem;
}

.section--ink .section__intro {
  color: rgba(255, 255, 255, 0.72);
}

.section__head {
  margin-bottom: 2.5rem;
}

.section__head .btn {
  margin-top: 1.25rem;
}

/* ——— Future prospect ——— */
.prospect .section__eyebrow {
  margin-bottom: 0.65rem;
}

.prospect .section__title {
  max-width: 18ch;
  margin-bottom: 1rem;
}

.prospect__body {
  max-width: 54ch;
  color: var(--charcoal);
  margin: 0 0 1.15rem;
}

.prospect__body:last-of-type {
  margin-bottom: 2rem;
}

.prospect__note {
  max-width: 54ch;
  font-size: 0.95rem;
  color: var(--steel);
  margin: 0 0 1.75rem;
}

.credential-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.credential-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.credential-list h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--blue-deep);
}

.credential-list p {
  margin: 0;
  max-width: 60ch;
  color: var(--charcoal);
}

.prospect > .btn {
  margin-top: 0;
}

/* ——— Services list ——— */
.service-group {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
}

.service-group:last-child {
  margin-bottom: 0;
}

.service-group__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.service-group__note {
  max-width: 48ch;
  color: var(--steel);
  margin-bottom: 1.5rem;
}

.section--ink .service-group__note {
  color: rgba(255, 255, 255, 0.72);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.service-list h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--blue-deep);
}

.service-list p {
  margin: 0;
  color: var(--charcoal);
}

@media (max-width: 640px) {
  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ——— Work strip ——— */
.work-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.work-strip figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
}

.work-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-strip figure:hover img {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .work-strip {
    grid-template-columns: 1fr;
  }
}

/* ——— Contact band ——— */
.contact-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.contact-band__details {
  display: grid;
  gap: 1.25rem;
}

.contact-band dt {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 0.35rem;
}

.contact-band dd {
  margin: 0;
  font-size: 1.2rem;
}

.contact-band a {
  color: var(--white);
  text-decoration: none;
}

.contact-band a:hover {
  color: var(--sand);
}

@media (max-width: 760px) {
  .contact-band {
    grid-template-columns: 1fr;
  }
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: 8rem 0 3.5rem;
  background:
    linear-gradient(135deg, #1a2333 0%, #2c3035 55%, #243552 100%);
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 14ch;
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
}

/* ——— Forms ——— */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form__note {
  font-size: 0.9rem;
  color: var(--steel);
}

/* ——— Footer ——— */
.site-footer {
  padding: 2rem 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer strong {
  color: var(--white);
  font-weight: 600;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header on inner pages */
.site-header--solid {
  position: relative;
  background: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
