/* Norhaven Construction — one-page split layout
   Palette + typography mirror the v5 flyer: black/white/red, Inter throughout. */

:root {
  --black:       #0D0D0D;
  --ink:         #161616;
  --white:       #FFFFFF;
  --offwhite:    #F7F5F2;
  --red:         #AC0000;
  --red-deep:    #7E0000;
  --gray-light:  #C8C8C8;
  --gray-muted:  #5C5C5C;
  --gray-dark:   #3A3A3A;
  --divider:     6px;
  --pad-x:       clamp(28px, 5vw, 72px);
  --pad-y:       clamp(24px, 2.5vw, 36px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--black);
  color: var(--ink);
}

/* split layout: two equal columns with a column-gap between them. The grid
   container's red background shows through the gap as the divider. Using
   `1fr 6px 1fr` would have created a third empty column (auto-placement
   fills only 2 of 3 tracks with 2 children) — hence the 2-column + gap
   approach.
   min-height: 100vh keeps the layout filling the viewport when content is
   short, but allows growth (and page scrolling) when content is tall, so a
   form with several fields doesn't get its submit button clipped. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--divider);
  min-height: 100vh;
  width: 100%;
  background: var(--red);
}

.side {
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  position: relative;
}

.side--dark  { background: var(--black); color: var(--white); }
.side--light {
  background: var(--white);
  color: var(--ink);
  /* center the white side's contents horizontally so the form sits in the
     middle of the column instead of clinging to the left edge */
  align-items: center;
}

/* --- brand row at the top of each side ---------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand--right { justify-content: flex-start; }

.symbol   { height: 56px; width: auto; max-width: 100%; }
.wordmark { height: auto; max-height: 80px; width: auto; max-width: 100%; }
/* the colored wordmark is designed for dark backgrounds (white-outline
   letters need a dark contrast); used on the dark side. */
.wordmark--dark { max-height: 90px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* --- rotating headlines (left side) ------------------------------------- */
.headline-stage {
  position: relative;
  flex: 1;
  margin: 56px 0 32px 0;
  /* min-height accommodates the tallest headline so layout doesn't jump
     between rotations of different lengths */
  min-height: 220px;
  width: 100%;
}

/* --- constant sub-line, sits just above the contact strip --------------- */
.subline {
  margin: 0 0 18px 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-light);
  max-width: 560px;
}

.headline {
  position: absolute;
  inset: 0;
  /* flex column + justify-content: center vertically centers the stacked
     text and span. flex-row was making <br> and <span> sit side-by-side. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  font-size: clamp(2rem, 3.2vw + 0.6rem, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.headline[data-active] {
  opacity: 1;
  pointer-events: auto;
}

.headline .accent { color: var(--red); }

/* --- contact rows at the bottom of each side ---------------------------- */
.contact {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
}

.phone {
  color: var(--red);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.phone:hover { color: #ff3b3b; }

.trusted, .serving {
  color: var(--gray-light);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.contact--light .serving { color: var(--gray-muted); }

.email {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 150ms, border-color 150ms;
}
.email:hover { color: var(--red); border-color: var(--red); }

/* --- contact form (right side) ------------------------------------------ */
.form-stage {
  display: flex;
  flex-direction: column;
  margin: 16px 0;
  max-width: 460px;
}

.form-title {
  font-size: clamp(1.5rem, 1.8vw + 0.6rem, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}

.form-lede {
  color: var(--gray-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 42ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* row that pairs name + phone side-by-side; stacks on narrow screens */
.field-row {
  display: flex;
  gap: 14px;
}
.field-row .field { flex: 1; min-width: 0; }

@media (max-width: 480px) {
  .field-row { flex-direction: column; gap: 18px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-muted);
}

.field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #a0a0a0;
  font-size: 11px;
  margin-left: 4px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 10px 14px;
  border: 1.5px solid #1f1f1f22;
  background: var(--offwhite);
  color: var(--ink);
  border-radius: 4px;
  transition: border-color 150ms, background 150ms;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder { color: #9a9a9a; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.submit-btn {
  margin-top: 4px;
  align-self: flex-start;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 150ms;
}
.submit-btn:hover { background: var(--red); }
.submit-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* honeypot — hidden from humans, visible to bots */
.hp { position: absolute; left: -9999px; opacity: 0; }

/* --- mobile: stack the two sides ---------------------------------------- */
@media (max-width: 760px) {
  html, body { height: auto; }
  .split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: var(--divider);
    column-gap: 0;
    height: auto;
    min-height: 100vh;
  }
  .side { height: auto; min-height: auto; }
  .headline-stage { min-height: 180px; margin: 40px 0 24px 0; }
  .form-stage { margin: 40px 0; }
  .wordmark--dark { max-height: 64px; }
}
