@font-face {
  font-family: "Open Sans";
  src: url("./assets/open-sans-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/open-sans-bold.woff") format("woff");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0b1f44;
  --deep: #091a35;
  --slate: #455572;
  --orange: #ff7a00;
  --rust: #9c4300;
  --line: #d8dfea;
  --pale: #f1f4f8;
  --white: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.58;
  color: var(--navy);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
input, select, textarea, button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #995000;
  outline-offset: 4px;
}

.hero :focus-visible, .contact-info :focus-visible { outline-color: #ffaf68; }
.container { width: min(100% - 6rem, 1260px); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 2;
  inset: 1rem auto auto 1rem;
  padding: .65rem 1rem;
  background: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid #e9edf3; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 96px; }
.brand img { width: 152px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(1.2rem, 3.3vw, 3rem); }
nav a, .button { text-decoration: none; font-weight: 700; font-size: .91rem; }
nav a { padding-block: .5rem; }
nav a:hover { text-decoration: underline; text-underline-offset: .32em; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}
.button-header { border-color: var(--navy); }
.button-header:hover { background: var(--pale); }
.button-primary { color: #101c31; background: var(--orange); }
.button-primary:hover { background: #ff9639; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(540px, 48vw, 720px);
  background: var(--deep);
  color: var(--white);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 48%;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #091a35 0%, #091a35 28%, rgb(9 26 53 / .96) 39%, rgb(9 26 53 / .57) 57%, rgb(9 26 53 / .04) 90%);
}
.hero-inner { padding-block: clamp(3.4rem, 7vw, 6.5rem); }
.hero-copy { max-width: 600px; }
.section-label {
  color: var(--rust);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-label { color: #ffd3ae; display: flex; align-items: center; gap: .8rem; }
.hero-label::before { content: ""; width: 28px; height: 3px; background: var(--orange); }
h1 {
  margin-block: 1.2rem 1.35rem;
  font-size: clamp(3rem, 5.7vw, 5.5rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.065em;
}
.hero-description { color: #e2eaf5; font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 31rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem; align-items: center; margin-top: 1.9rem; }
.hero-link, .text-link { font-weight: 700; text-underline-offset: .27em; text-decoration-thickness: 1px; }
.hero-link:hover { color: #ffd3ae; }

.section { padding-block: clamp(4rem, 8vw, 7.2rem); scroll-margin-top: 1rem; }
.section-grid { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(2rem, 7vw, 7rem); }
h2 {
  margin-block: .65rem 1.1rem;
  font-size: clamp(2.25rem, 4.1vw, 4rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.055em;
}
.section-intro > p:last-child, .timber-copy > p:not(.section-label) { color: var(--slate); max-width: 39ch; }
.service { padding-block: 1.18rem; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service dt { font-weight: 800; font-size: 1.14rem; }
.service dd { margin-top: .3rem; max-width: 61ch; color: var(--slate); }
.timber { background: var(--pale); }
.timber-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.timber-photo { position: relative; }
.timber-photo::before { content: ""; position: absolute; top: -.45rem; left: 0; width: 3.6rem; height: .45rem; background: var(--orange); }
.timber-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timber-copy > p + p { margin-top: .85rem; }
.text-link { display: inline-block; margin-top: 1.1rem; }
.text-link:hover { color: var(--rust); }

.contact { background: var(--navy); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.contact-label { color: #ffb16d; }
.contact h2 { max-width: 15ch; }
address { margin-block: 1.6rem 1rem; font-style: normal; color: #dce6f5; }
address strong { color: var(--white); }
.contact-link { display: block; width: fit-content; padding-block: .2rem; text-underline-offset: .24em; }
.contact-link:hover { color: #ffd3ae; }
.quote-form { padding: clamp(1.35rem, 3.2vw, 2.5rem); background: var(--white); color: var(--navy); border-radius: 6px; }
.quote-form h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 1.2rem; }
.field, .field-row { display: grid; gap: .35rem; }
.field, .field-row { margin-bottom: .85rem; }
.field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field-row .field { margin-bottom: 0; }
.field label { font-size: .875rem; font-weight: 700; }
.field label span { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: .65rem .75rem;
  border: 1px solid #aab7ca;
  border-radius: 4px;
  color: var(--navy);
  background: var(--white);
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%),
    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: right 1.25rem center, right .94rem center;
  background-size: .32rem .32rem;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #52617a; }
.form-note { margin-top: .7rem; color: var(--slate); font-size: .875rem; }

footer { background: var(--deep); color: #dce6f5; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.4rem; font-size: .875rem; }

@media (max-width: 960px) {
  .container { width: min(100% - 4rem, 1260px); }
  .hero-image { width: 78%; }
  .hero::after { background: linear-gradient(90deg, #091a35 0%, #091a35 23%, rgb(9 26 53 / .94) 43%, rgb(9 26 53 / .47) 75%, rgb(9 26 53 / .13) 100%); }
  .section-grid, .contact-grid { gap: 2rem; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 2.5rem, 1260px); }
  .header-inner { flex-wrap: wrap; gap: .3rem 1rem; min-height: auto; padding-block: .55rem .35rem; }
  .brand img { width: 124px; }
  .button-header { margin-left: auto; min-height: 44px; }
  nav { order: 1; width: 100%; justify-content: space-between; gap: .65rem; border-top: 1px solid #e9edf3; }
  .hero { min-height: 0; display: flex; flex-direction: column-reverse; align-items: stretch; }
  .hero::after { display: none; }
  .hero-image { position: static; z-index: 0; width: 100%; height: clamp(210px, 57vw, 370px); object-position: center 54%; }
  .hero-inner { padding-block: 2.65rem; }
  .hero-description { max-width: 42ch; }
  .hero-actions { align-items: start; }
  .section-grid, .timber-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .timber-photo img { aspect-ratio: 3 / 2; }
  .contact h2 { max-width: 20ch; }
}

@media (max-width: 370px) {
  .field-row { grid-template-columns: 1fr; }
  h1 { font-size: 2.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
