/* ============================================================
   Bedrock Build Consultants — industrial, no-nonsense
   Palette: slate #334155 · near-black #0F172A · yellow #EAB308
            light band #F1F5F9
   Fonts: Zilla Slab (headings, uppercase) + Raleway (body)
   ============================================================ */

:root {
  --slate: #334155;
  --ink: #0F172A;
  --yellow: #EAB308;
  --band: #F1F5F9;
  --white: #FFFFFF;
  --body-text: #1E293B;
  --muted: #475569;
  --border: #CBD5E1;
  --font-head: "Zilla Slab", serif;
  --font-body: "Raleway", arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
}

img, svg { max-width: 100%; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; }

p { max-width: 65ch; }

a { color: var(--slate); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--slate);
  border-left: 4px solid var(--yellow);
  padding-left: 0.6rem;
  margin-bottom: 0.9rem;
}

.kicker-yellow { color: var(--yellow); }

.section-intro { color: var(--muted); margin-bottom: 2.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.btn-yellow:hover { background: #CA9A06; border-color: #CA9A06; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Sticky nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--yellow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.logo-accent { color: var(--yellow); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu > a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu > a:not(.btn):hover { border-bottom-color: var(--yellow); }

.nav-cta { padding: 0.6rem 1.2rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--white);
}

.nav-toggle-bar + .nav-toggle-bar { margin-top: 4px; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: min(78vh, 820px);
  background:
    linear-gradient(115deg,
      rgba(15, 23, 42, 0.94) 0%,
      rgba(30, 41, 59, 0.82) 45%,
      rgba(51, 65, 85, 0.55) 100%),
    url("https://images.unsplash.com/photo-1777138388622-8f0411f9b71f?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5rem), 0 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(7rem, 12vw, 10rem);
}

.hero-inner { width: min(1120px, 100% - 2.5rem); }

.hero-rule {
  width: 96px;
  height: 10px;
  background: var(--yellow);
  margin-bottom: 1.75rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 16ch;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.5);
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: 1.05rem;
  color: #E2E8F0;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Section rhythm ---------- */
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.band-light { background: var(--band); }

.band-dark { background: var(--ink); color: #E2E8F0; }

.band-dark h2, .band-dark h3 { color: var(--white); }

/* ---------- About ---------- */
.about { padding-top: clamp(2.5rem, 5vw, 4rem); }

.about-cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: center;
  margin-top: 1rem;
}

.about-text p + p { margin-top: 1rem; }

.about-photo { justify-self: center; width: 100%; }

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--yellow);
}

/* ---------- Photo bands ---------- */
.photo-band {
  clip-path: polygon(0 2.5rem, 100% 0, 100% calc(100% - 2.5rem), 0 100%);
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
}

.photo-band-thin img { height: clamp(200px, 24vw, 300px); }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--slate);
  margin-bottom: 1rem;
}

.card:hover .card-icon { color: var(--yellow); }

.card h3 { margin-bottom: 0.6rem; }

.card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Why owners hire us ---------- */
.why-heading { margin-bottom: 2rem; }

.why-photo {
  margin-bottom: 2.75rem;
  border-left: 6px solid var(--yellow);
}

.why-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.why-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid #33415580;
}

.why-item {
  padding: 2rem 1.75rem 0.5rem;
  border-left: 2px solid #33415580;
}

.why-item:first-child { border-left: none; padding-left: 0; }

.why-icon {
  width: 64px;
  height: 64px;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}

.why-item h3 { margin-bottom: 0.6rem; }

.why-item p { font-size: 0.95rem; color: #CBD5E1; }

/* ---------- Contact ---------- */
.contact-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.form-field { margin-bottom: 1.25rem; }

.form-field label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--body-text);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--slate); }

.form-field input.field-error,
.form-field textarea.field-error { border-color: #B91C1C; }

.form-field input[type="file"] { font-size: 0.9rem; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--yellow);
  flex-shrink: 0;
}

.form-consent label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
}

.form-message {
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-message.is-success { display: block; color: #166534; }

.form-message.is-error { display: block; color: #B91C1C; }

.band-dark .form-message.is-success { color: #4ADE80; }

.band-dark .form-message.is-error { color: #FCA5A5; }

.contact-info h3 {
  font-size: 0.85rem;
  margin: 1.5rem 0 0.4rem;
  border-left: 4px solid var(--yellow);
  padding-left: 0.6rem;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info address { font-style: normal; }

.contact-info a { color: var(--slate); font-weight: 600; }

.hours-table {
  width: 100%;
  max-width: 22rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.hours-table th { font-weight: 600; color: var(--ink); }

.contact-photo { margin-top: 2rem; }

.contact-photo img {
  display: block;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 6px solid var(--yellow);
}

/* ---------- Newsletter ---------- */
.newsletter {
  border-top: 6px solid var(--yellow);
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.newsletter-inner { max-width: 720px; }

.newsletter-heading { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

.newsletter-pitch { margin-top: 0.5rem; color: #CBD5E1; }

.newsletter-form {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--slate);
  border-radius: 0;
  background: var(--white);
  color: var(--body-text);
}

.newsletter-form input.field-error { border-color: #FCA5A5; }

.newsletter-micro {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: #94A3B8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #94A3B8;
  padding: 2.75rem 0 1.75rem;
  border-top: 1px solid #334155;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #334155;
}

.footer-logo {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-nav a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-nav a:hover { color: var(--yellow); }

.footer-legal { padding-top: 1.5rem; font-size: 0.85rem; }

/* ---------- Legal pages ---------- */
.legal-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.legal-main .container { max-width: 760px; }

.legal-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}

.legal-main h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
}

.legal-main p + p { margin-top: 0.9rem; }

.legal-main ul { margin: 0.75rem 0 0.75rem 1.25rem; }

.legal-main li + li { margin-top: 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }

  .why-strip { grid-template-columns: 1fr; border-top: none; }

  .why-item {
    border-left: none;
    border-top: 2px solid #33415580;
    padding: 1.75rem 0 0.25rem;
  }

  .why-item:first-child { border-top: none; padding-top: 0; }

  .about-cols { grid-template-columns: 1fr; }

  .about-photo { max-width: 440px; justify-self: start; }

  .about-photo img { aspect-ratio: 4 / 3; box-shadow: 10px 10px 0 var(--yellow); }

  .why-photo img { aspect-ratio: 16 / 9; }

  .contact-cols { grid-template-columns: 1fr; }
}

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

  .hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5rem), 0 100%);
    min-height: min(70vh, 640px);
  }

  .photo-band { clip-path: polygon(0 1.5rem, 100% 0, 100% calc(100% - 1.5rem), 0 100%); }

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 3px solid var(--yellow);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1.1rem;
  }

  .nav-menu.is-open { display: flex; }
}
