/* Ironwright Construction — stylesheet
   Tokens and layout per BRIEF.md / design-reference/index.html.
   Fonts load from Google Fonts (see index.html <link>) rather than self-hosted WOFF2. */

:root {
  --ink: #1D2125;
  --paper: #F3F1EC;
  --sand: #E9E5DD;
  --rust: #C4582A;
  --rust-dark: #A8461C;
  --slate: #4A4F55;
  --stone: #C9C5BD;
  --stone-2: #D6D2CA;
  --footer: #15181B;
  --border-light: #DEDAD2;
  --field-bg: #262B30;
  --field-border: #6B7178;

  /* Themeable tokens: light values match the original design. Dark values
     are in the prefers-color-scheme block below. --paper, --stone and
     --stone-2 stay fixed as text colors for the always-dark sections. */
  --surface: #F3F1EC;
  --surface-alt: #E9E5DD;
  --card: #FFFFFF;
  --text: #1D2125;
  --text-muted: #4A4F55;
  --line: #DEDAD2;
  --accent: #A8461C;
  --band: #1D2125;
  --footer-bg: #15181B;

  --font-body: "Barlow", system-ui, sans-serif;
  --font-head: "Barlow Condensed", system-ui, sans-serif;

  --max-width: 1160px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #16191C;
    --surface-alt: #1D2125;
    --card: #242A30;
    --text: #E6E8EA;
    --text-muted: #A9AFB5;
    --line: #343A40;
    --accent: #E07A4A;
    --band: #272D33;
    --footer-bg: #0F1113;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--text);
}
a:hover {
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip-link:focus-visible {
  left: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-link img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 16px;
  font-weight: 600;
}

.main-nav a {
  text-decoration: none;
  padding: 10px 2px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: var(--rust-dark);
  color: #FFFFFF;
  padding: 12px 20px;
}
.btn-primary:hover {
  background: #8E3A17;
  color: #FFFFFF;
}

.btn-outline {
  color: var(--paper);
  border: 1px solid var(--field-border);
  padding: 12px 24px;
  background: transparent;
}
.btn-outline:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* Hero */

.hero {
  background: var(--band);
  color: var(--paper);
}

.hero .wrap {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--stone);
}

h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0.5px;
}

.hero-copy p {
  margin: 0;
  max-width: 540px;
  font-size: 20px;
  color: var(--stone-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-actions .btn-primary {
  padding: 14px 26px;
  font-size: 16px;
}
.hero-actions .btn-outline {
  padding: 13px 25px;
  font-size: 16px;
}

.hero-art {
  flex: 1 1 300px;
  max-width: 420px;
  min-width: 0;
}
.hero-art svg {
  width: 100%;
  display: block;
}

/* Sections */

section h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
}

.section-services {
  background: var(--surface);
}
.section-services .wrap {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}
.section-intro p {
  margin: 0;
  color: var(--text-muted);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--card);
  border-top: 4px solid var(--rust);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* How we work */

.section-approach {
  background: var(--surface-alt);
}
.section-approach .wrap {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.step {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.step h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.step p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Contact */

.section-contact {
  background: var(--band);
  color: var(--paper);
}
.section-contact .wrap {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.contact-info {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info p {
  margin: 0;
  color: var(--stone-2);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  font-size: 17px;
}
.contact-details a {
  color: var(--paper);
  text-decoration: none;
}
.contact-details a:hover {
  color: var(--rust);
}
.contact-details .service-area {
  color: var(--stone);
}

.contact-form {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 15px;
  font-weight: 600;
}
.field .hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--stone);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: var(--field-bg);
  color: var(--paper);
}
.field textarea {
  resize: vertical;
}

/* Honeypot: hidden from sighted users and keyboard tab order, but still in the
   DOM so simple bots that fill every field get caught. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  align-self: flex-start;
  font-size: 17px;
  padding: 14px 28px;
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 4px;
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: #1F3A2A;
  color: #CFE8D6;
}
.form-status.is-error {
  background: #3A1F1F;
  color: #E8CFCF;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--stone);
}
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer img {
  height: 32px;
  width: auto;
  display: block;
}
.site-footer small {
  font-size: 14px;
}

/* Responsive */

@media (max-width: 720px) {
  h1 {
    font-size: 48px;
  }
  section h2 {
    font-size: 36px;
  }
  .step .num {
    font-size: 44px;
  }
  .hero .wrap,
  .section-services .wrap,
  .section-approach .wrap,
  .section-contact .wrap {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .main-nav {
    gap: 6px 18px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 38px;
  }
  body {
    font-size: 16px;
  }
}
