/* RB Exteriors LLC — first-draft site styles */
:root {
  --black: #000000;
  --charcoal: #0c0c0c;
  --elevated: #161616;
  --line-dark: #2c2c2c;
  --muted-dark: #b3b3b3;
  --white: #ffffff;
  --offwhite: #f4f6f8;
  --paper: #e8edf2;
  --ink: #121417;
  --ink-soft: #3a4149;
  --muted: #5c6570;
  --line: #d5dbe3;
  --blue: #4a90d9;
  --blue-deep: #1e6bb5;
  --blue-deeper: #185a99;
  --blue-soft: #e7f1fb;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(18, 20, 23, 0.06);
  --header-h: 4.5rem;
  --wrap: 70rem;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

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

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--blue-deep);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--blue-deeper); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--blue-deep);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.logo-mark {
  height: 3rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  margin-left: auto;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  white-space: nowrap;
}
.nav a:hover { color: var(--blue); }

.header-call {
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0.7rem;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1.05rem; }
.btn-blue {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}
.btn-blue:hover {
  background: var(--blue-deeper);
  border-color: var(--blue-deeper);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--white);
  background: rgba(74, 144, 217, 0.12);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(74, 144, 217, 0.14), transparent 60%),
    var(--black);
  color: var(--white);
  padding: 3rem 0 4.25rem;
}

.hero-inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.hero-brand {
  display: flex;
  justify-content: center;
}

.logo-lockup {
  width: min(100%, 28rem);
  filter: drop-shadow(0 12px 40px rgba(74, 144, 217, 0.12));
}

.hero-copy { color: var(--white); }
.hero-copy h1 { color: var(--white); margin-bottom: 1rem; }
.hero-copy .lead {
  color: #d8d8d8;
  font-size: 1.12rem;
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.15rem;
}
.hero-area {
  color: var(--muted-dark);
  font-size: 0.95rem;
  max-width: 32rem;
}

.eyebrow {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.tagline {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.85rem;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--offwhite); }
.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .section-intro,
.section-dark p { color: #cfcfcf; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--white); }

.card p { color: var(--ink-soft); }

.icon-badge {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.icon-badge svg { width: 1.4rem; height: 1.4rem; }

/* Job photo gallery */
.ba-row {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.15rem;
  align-items: start;
  margin-bottom: 1.15rem;
}

.ba-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.ba-pair-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #dce3ea;
}

.ba-featured {
  margin-bottom: 1.15rem;
}

.ba-pair-images > div {
  position: relative;
  min-width: 0;
}

.ba-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.gallery-wide,
.ba-card,
.gallery-grid figure,
.gallery-pair figure,
.roof-steps-grid figure,
.why-photo {
  margin: 0;
}

.gallery-wide img,
.ba-card img,
.gallery-grid img,
.gallery-pair img,
.roof-steps-grid img,
.why-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: #dce3ea;
}

.gallery-wide,
.ba-card,
.gallery-grid figure,
.gallery-pair figure,
.roof-steps-grid figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-wide img,
.ba-card img,
.gallery-grid img,
.gallery-pair img,
.roof-steps-grid img {
  border-radius: 0;
}

.gallery-wide { margin-bottom: 1.15rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: start;
  margin-top: 1.15rem;
}

.gallery-pair-ba {
  grid-template-columns: 0.85fr 1.4fr;
}

.roof-steps {
  margin: 0 0 2rem;
}

.roof-steps-heading {
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
}

.roof-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.gallery-wide figcaption,
.ba-card figcaption,
.gallery-grid figcaption,
.gallery-pair figcaption,
.roof-steps-grid figcaption,
.why-photo figcaption {
  padding: 0.75rem 1rem 0.95rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.photo-tag {
  display: block;
  color: var(--blue-deep);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.why-intro-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.why-photo {
  background: var(--black);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-photo img { border-radius: 0; }

.why-photo figcaption {
  color: #d0d0d0;
  padding: 0.7rem 1rem 0.9rem;
}

.why-intro-copy .section-intro { margin-bottom: 0; }

/* Google CTA */
.google-cta {
  margin-top: 2.4rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.google-cta p {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  max-width: 34rem;
}

/* How it works */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--black);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* Service area */
.towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.towns h3 { color: var(--blue-deep); }
.towns p { color: var(--ink-soft); }

/* Estimate */
.estimate-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 500;
}
.contact-list a { text-decoration: none; font-weight: 600; }

.estimate-sign {
  margin: 1.75rem 0 0;
  max-width: 22rem;
}
.estimate-sign img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #dce3ea;
}

.estimate-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label { font-weight: 550; font-size: 0.95rem; }
.req {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c5ced7;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.25);
  outline: none;
}
textarea { resize: vertical; min-height: 8rem; }
.estimate-form .btn { justify-self: start; }

/* Footer */
.site-footer {
  background: var(--black);
  color: #d0d0d0;
  padding: 3.5rem 0 1.5rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer h2 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.logo-lockup-footer {
  width: min(100%, 16rem);
  margin-bottom: 1rem;
}

.footer-contact p { margin: 0 0 0.4rem; }
.footer-google { margin-top: 1.15rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  color: #8a8a8a;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .estimate-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .card-grid,
  .gallery-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .roof-steps-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72%, 1fr);
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }
  .roof-steps-grid figure {
    scroll-snap-align: start;
  }
  .ba-row,
  .why-intro-row,
  .gallery-pair-ba {
    grid-template-columns: 1fr;
  }
  .ba-card-tall img { max-height: 36rem; width: auto; max-width: 100%; margin-inline: auto; }

  .logo-lockup { width: min(100%, 22rem); }
  .hero { padding-top: 2.25rem; }
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; margin-left: 0.35rem; }
  .header-call {
    display: inline-flex;
    margin-left: auto;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0;
    margin: 0;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.05rem;
  }
  .site-header { position: sticky; }
}

@media (max-width: 640px) {
  .card-grid,
  .gallery-grid,
  .gallery-pair,
  .steps,
  .towns,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn,
  .estimate-form .btn { width: 100%; }
  .section { padding: 3.25rem 0; }
  .google-cta { flex-direction: column; align-items: flex-start; }
  .logo-mark { height: 2.55rem; }
}

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