/* ============================================================
   Axiom Residential Contracting — site.css
   Art direction: trade-authentic industrial. Dark charcoal base,
   safety-orange accent, condensed display type, blueprint texture.
   Fonts: Barlow Condensed (display) + Barlow (body).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600;700&display=swap');

/* ---------- tokens ---------- */
:root {
  --bg: #16181d;
  --surface: #1e2127;
  --surface-2: #262a32;
  --border: #31363f;
  --accent: #ea580c;
  --accent-bright: #ff6b1a;
  --ink: #e8e4dc;
  --muted: #9aa1ad;
  --on-accent: #16181d;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1120px;
  --radius: 6px;
  --speed: 180ms;

  --hazard: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 14px,
    transparent 14px 28px
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-bright); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

::selection { background: var(--accent); color: var(--on-accent); }

[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

section { scroll-margin-top: 84px; }

/* headings */
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  position: relative;
  padding-top: 18px;
}
/* orange kicker rule above every section title */
h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 5px;
  background: var(--accent);
}

.section-lead {
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 40px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--speed) ease, border-color var(--speed) ease,
              color var(--speed) ease, transform var(--speed) ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  padding: 16px 32px;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

.btn-call {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 24px;
  border: 2px solid var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-call:hover { border-color: var(--accent); }
.btn-call-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.btn-call-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 24, 29, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.site-header { transition: box-shadow var(--speed) ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 4px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--speed) ease;
}
.site-nav a:hover { color: var(--accent-bright); }
.site-nav .nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 20px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.site-nav .nav-cta:hover { background: var(--accent-bright); color: var(--on-accent); }

@media (max-width: 820px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* blueprint grid */
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 107, 26, 0.07), transparent 60%),
    linear-gradient(rgba(58, 63, 73, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 63, 73, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  border-bottom: 1px solid var(--border);
}
/* hazard strip along hero bottom */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--hazard);
  opacity: 0.85;
}

.hero-inner {
  padding-block: clamp(72px, 12vw, 140px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 700;
  max-width: 820px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 580px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}

/* ---------- trust bar ---------- */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  padding-block: 22px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent-bright);
}
@media (max-width: 820px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-item { font-size: 0.88rem; }
}

/* ---------- sections rhythm ---------- */
.services, .work, .process, .about, .contact {
  padding-block: clamp(72px, 10vw, 110px);
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: transform var(--speed) ease, border-color var(--speed) ease;
}
/* orange edge that answers hover */
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0.45;
  transition: opacity var(--speed) ease;
}
.service-card:hover { transform: translateY(-3px); border-color: #3d434e; }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 46px;
  height: 46px;
  color: var(--accent-bright);
  margin-bottom: 18px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
}
.service-card p {
  color: var(--muted);
  margin: 0 0 18px;
}
.service-link {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-link:hover { text-decoration: underline; }

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

/* ---------- work gallery ---------- */
.work { background: var(--surface); border-block: 1px solid var(--border); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-item {
  margin: 0;
}
.work-item img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.work-item figcaption {
  padding: 10px 2px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- process ---------- */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  border-top: 3px solid var(--border);
  padding-top: 22px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.35rem; }
.process-step p { color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- about ---------- */
.about { background: var(--surface); border-block: 1px solid var(--border); }
.about-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-copy p { color: var(--muted); }
.about-copy .btn { margin-top: 10px; }

@media (max-width: 820px) {
  .about-row { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 420px; }
}

/* ---------- contact ---------- */
.contact {
  position: relative;
}
/* hazard strip announcing the conversion zone */
.contact::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background: var(--hazard);
  opacity: 0.85;
}
.contact-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}
.contact-intro p { color: var(--muted); }
.contact-alt a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}
.field .optional {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  min-height: 48px;
  transition: border-color var(--speed) ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent-bright);
  outline: none;
}

/* honeypot: off-screen, still focus-skippable */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  border: 2px solid var(--accent);
  font-size: 1.05rem;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1em; }
.form-status-error { color: #ff9d70; }
.form-status a { color: var(--ink); }

@media (max-width: 820px) {
  .contact-row { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 24px 18px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 40px 28px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-brand span { color: var(--muted); font-size: 0.95rem; }
.footer-brand a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--accent-bright); }
.footer-legal { padding-top: 18px; }
.footer-legal p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- thanks page ---------- */
.thanks-hero { min-height: 60vh; display: flex; align-items: center; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
