/* Affordable Curb — one-page site
   Colors match the existing logo: black + #FFCD00 yellow
*/

:root {
  --black: #0c0c0c;
  --black-2: #161616;
  --yellow: #ffcd00;
  --yellow-dark: #e6b800;
  --yellow-soft: #ffe56a;
  --white: #ffffff;
  --off: #f4f3ef;
  --cream: #faf8f2;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e2da;
  --card: #ffffff;
  --danger: #9b1c1c;
  --success: #1d6b2c;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  --radius: 14px;
  --header-h: 84px;
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
}

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

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

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
  color: var(--black);
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.85rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: 0.04em; }

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--yellow);
  color: var(--black);
  padding: 8px 14px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn-yellow:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); }

.btn-black {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}
.btn-black:hover { background: #2a2a2a; }

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

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--yellow); }

.btn-call svg { width: 18px; height: 18px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  width: min(1240px, calc(100% - 1.4rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img {
  height: 58px;
  width: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  width: 46px;
  height: 46px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { border-bottom-color: var(--yellow); color: var(--yellow); }

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 0 0 auto;
}
.header-actions .btn { min-height: 42px; padding: 0.45rem 0.95rem; font-size: 0.8rem; }

/* Hero */
.hero {
  position: relative;
  background: var(--black) center / cover no-repeat;
  background-image:
    linear-gradient(90deg, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.72) 42%, rgba(8,8,8,0.28) 100%),
    url("../images/hero.jpg");
  background-image:
    linear-gradient(90deg, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.72) 42%, rgba(8,8,8,0.28) 100%),
    image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
  color: var(--white);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
}

.hero-inner {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yellow);
  margin: 0 0 0.85rem;
  border-left: 4px solid var(--yellow);
  padding-left: 0.7rem;
}

.hero h1 { color: var(--white); margin-bottom: 0.7rem; max-width: 16ch; }
.hero .lede {
  font-size: 1.15rem;
  color: #f0f0f0;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Estimate card / form */
.estimate-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 6px solid var(--yellow);
}
.estimate-card h2,
.form-panel h2 {
  background: var(--black);
  color: var(--yellow);
  margin: 0;
  padding: 0.9rem 1.25rem 0.8rem;
  font-size: 1.25rem;
}
.estimate-card form,
.form-panel form { padding: 1.15rem 1.25rem 1.3rem; }

.form-intro {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.form-row { margin-bottom: 0.7rem; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

label.fld {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.28rem;
  color: var(--black);
}
label.fld .req { color: #b00000; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: 1rem var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.55);
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.7rem;
  margin: 0.2rem 0 0.8rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.3;
}
.check input { margin-top: 0.2rem; accent-color: var(--black); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }

.form-actions { margin-top: 0.3rem; }
.form-actions .btn { width: 100%; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; }

.form-alert {
  margin: 0 1.25rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
}
.form-alert.success { background: #e8f6ea; color: var(--success); margin-top: 1rem; }
.form-alert.error { background: #fdecec; color: var(--danger); margin-top: 1rem; }

/* Sections */
.section { padding: 4.2rem 0; background: var(--white); }
.section-off { background: var(--off); }
.section-black { background: var(--black); color: var(--white); }
.section-black h2, .section-black h3 { color: var(--white); }
.section-yellow { background: var(--yellow); color: var(--black); }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-black .section-head p { color: #d8d8d8; }
.kicker {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a7600;
  margin: 0 0 0.45rem;
}
.section-black .kicker { color: var(--yellow); }
.section-yellow .kicker { color: var(--black); }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1.15rem 1.2rem 1.3rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); }

.service-icon-card .icon-wrap {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--yellow);
}
.service-icon-card .icon-wrap svg { width: 44px; height: 44px; }

/* Style grid */
.style-block { margin-top: 2.6rem; }
.style-block h3 { margin-bottom: 0.35rem; }
.style-block .sub { color: var(--muted); margin-bottom: 1rem; }

.style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.style-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1;
}
.style-item img { width: 100%; height: 100%; object-fit: cover; }
.style-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.55rem 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Colors + process */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.8rem;
}
.split img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 420px;
}
.split.narrow-img img { max-height: 520px; object-fit: contain; background: #fff; padding: 0.5rem; }

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.step {
  background: var(--black-2);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  border-top: 4px solid var(--yellow);
}
.step .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.step h3 { color: var(--white); }
.step p { color: #d2d2d2; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--black-2);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.why-item .mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.why-item p { color: #d4d4d4; font-size: 0.98rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img,
.gallery-grid a:focus-visible img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--yellow);
  border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: 700;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.stars { color: #c9a000; letter-spacing: 0.08em; font-size: 1.05rem; margin-bottom: 0.6rem; }
.review blockquote {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  flex: 1;
}
.review cite {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
}

/* Bottom CTA band */
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}
.cta-copy .phone-xl {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  display: inline-block;
  margin: 0.4rem 0 1rem;
}
.cta-copy .phone-xl:hover { color: #333; }

/* Footer */
.site-footer {
  background: var(--black);
  color: #cfcfcf;
  padding: 2.4rem 0 1.4rem;
  border-top: 3px solid var(--yellow);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.site-footer .logo img { height: 64px; }
.footer-meta p { margin: 0.2rem 0; }
.footer-meta a { color: var(--yellow); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a2a;
  font-size: 0.85rem;
  color: #8a8a8a;
  text-align: center;
}

/* Mobile sticky call bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--black);
  border-top: 3px solid var(--yellow);
  padding: 0.5rem 0.7rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}
.mobile-bar .btn { flex: 1; }
body.has-mobile-bar { padding-bottom: 76px; }

/* Simple inner pages (FAQ leftovers etc.) */
.page-main { padding: 3rem 0 4rem; max-width: 48rem; }
.page-main a { color: #7a6200; }

/* Responsive */
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .logo img { height: 50px; }
  .hero-inner,
  .cta-band,
  .split,
  .footer-inner { grid-template-columns: 1fr; }
  .card-grid,
  .reviews,
  .process { grid-template-columns: 1fr; }
  .style-grid,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(8,8,8,0.86) 0%, rgba(8,8,8,0.72) 55%, rgba(8,8,8,0.45) 100%),
      url("../images/hero.jpg");
    background-image:
      linear-gradient(180deg, rgba(8,8,8,0.86) 0%, rgba(8,8,8,0.72) 55%, rgba(8,8,8,0.45) 100%),
      image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
    min-height: auto;
    padding: 2.2rem 0 2.6rem;
  }
  .hero h1 { max-width: none; }
  .header-actions .btn-call { display: none; } /* call is in mobile bar */
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0;
    border-bottom: 3px solid var(--yellow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid #2a2a2a; }
  .header-actions .btn-yellow { display: none; }
  .mobile-bar { display: flex; }
  .form-row.two,
  .checks { grid-template-columns: 1fr; }
  .footer-inner { justify-items: center; text-align: center; }
}

@media (min-width: 821px) {
  .mobile-bar { display: none !important; }
  body.has-mobile-bar { padding-bottom: 0; }
}
