:root {
  --ink: #1a1310;
  --ink-soft: #5b4d42;
  --paper: #fbf8f3;
  --paper-alt: #fdf1dc;
  --line: #ecdcbd;
  --orange: #e46c0c;
  --orange-dark: #b85708;
  --gold: #f0a830;
  --yellow: #fce000;
  --brown: #843c00;
  --white: #ffffff;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: #d9cabb;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-item { display: inline-flex; align-items: center; gap: 14px; }
.topbar-phone { color: var(--yellow); font-weight: 700; }
.topbar-email:hover, .topbar-phone:hover { color: var(--gold); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
}
.brand-logo { height: 56px; width: auto; }
.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a:hover { color: var(--orange); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,14,10,0.90) 0%, rgba(20,14,10,0.58) 45%, rgba(20,14,10,0.25) 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 120px;
  max-width: 680px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
}
.hero-sub {
  font-size: 1.05rem;
  color: #efe6da;
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 2;
  background: rgba(26,19,16,0.88);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 20px 24px;
  max-width: 260px;
}
.hero-card-kicker { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); }
.hero-card-title { margin: 6px 0 10px; font-size: 1.15rem; font-weight: 700; }
.hero-card-phone { display: inline-block; color: var(--white); font-weight: 700; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }

/* Trust badges strip */
.badges { background: var(--ink); color: var(--white); padding: 26px 0; }
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.badge svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--yellow); }

/* Section headings */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 680px;
}
.section-title-light { color: var(--white); }
.section-eyebrow-light { color: var(--yellow); }
.section-intro { color: var(--ink-soft); max-width: 640px; margin: -8px 0 40px; }

/* Services */
.services { padding: 90px 0; }

.home-repairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--paper-alt);
  border-radius: 16px;
  padding: 50px;
  margin-bottom: 60px;
}
.home-repairs-photo img { border-radius: 12px; }
.home-repairs .checklist { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.checklist-more { color: var(--ink-soft); font-style: italic; margin: 6px 0 24px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 20px;
}
.service-photo { height: 170px; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.service-card:hover .service-photo img { transform: scale(1.06); }
.service-card h3 { margin: 18px 20px 6px; font-size: 1.05rem; }
.service-card p { margin: 0 20px; font-size: 0.88rem; color: var(--ink-soft); }
.service-card-icon { padding-top: 20px; }
.service-icon {
  width: 46px; height: 46px;
  margin: 0 20px 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-alt);
  border-radius: 8px;
  color: var(--orange);
}
.service-icon svg { width: 24px; height: 24px; }

/* Checklist (shared) */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 22px;
}
.checklist li {
  padding-left: 26px;
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--orange);
}

/* About */
.about { padding: 90px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}
.about-photo img { border-radius: 12px; }
.about-text p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 14px; }
.about-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.about-badge {
  background: var(--paper-alt);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
}
.about-badge svg { width: 28px; height: 28px; color: var(--orange); margin: 0 auto 10px; display: block; }

/* Deals */
.deals { background: var(--ink); padding: 80px 0; color: var(--white); }
.deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.deal-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 34px;
}
.deal-card .deal-kicker { color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; margin: 0 0 10px; }
.deal-card h3 { font-size: 1.5rem; margin: 0 0 12px; }
.deal-card p { color: #e6dccd; margin: 0 0 20px; }

/* Reviews */
.reviews { padding: 90px 0; text-align: center; }
.reviews-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper-alt);
  border-radius: 16px;
  padding: 50px 40px;
}
.reviews-card p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 26px; }

/* Detail (legacy, still used on projects page intro) */
.detail { background: var(--paper-alt); padding: 90px 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.detail-note { color: var(--ink-soft); margin-bottom: 26px; }
.detail-photo img { border-radius: 12px; }

/* Photo gallery grid (projects page) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.work-item { position: relative; border-radius: 10px; overflow: hidden; height: 220px; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.work-item:hover img { transform: scale(1.06); }
.work-tag {
  position: absolute;
  left: 10px; bottom: 10px;
  background: rgba(26,19,16,0.8);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Before/After gallery */
.gallery { padding: 90px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 36px;
}
.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  position: relative;
}
.gallery-photo { position: relative; height: 200px; overflow: hidden; border-radius: 8px 0 0 8px; }
.gallery-photo:last-of-type { border-radius: 0 8px 8px 0; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--white);
}
.tag-before { background: rgba(26,19,16,0.75); }
.tag-after { background: var(--orange); }
.gallery-caption {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* CTA banner */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner p {
  font-size: 1.3rem;
  font-weight: 600;
  max-width: 620px;
  margin: 0 auto 26px;
  line-height: 1.4;
}
.cta-banner .btn-primary {
  background: var(--ink);
}
.cta-banner .btn-primary:hover { background: #000; }

/* Contact */
.contact { position: relative; color: var(--white); overflow: hidden; }
.contact-media, .contact-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,0.93), rgba(20,14,10,0.87));
}
.contact-content { position: relative; z-index: 2; padding: 90px 24px; }
.contact-sub { max-width: 560px; color: #efe6da; margin-bottom: 40px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.contact-direct {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-direct-block a,
.contact-direct-block span { display: block; }
.contact-direct-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); margin-bottom: 6px; }
.contact-direct-value { display: block; font-size: 1.3rem; font-weight: 700; }
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.94rem;
}
.contact-form button { align-self: flex-start; }
.form-note { margin: 0; font-size: 0.78rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #d9cabb; padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 48px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 280px; font-size: 0.88rem; }
.site-footer h4 { color: var(--white); margin: 0 0 14px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-bottom {
  padding: 22px 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
}

/* Page header (projects.html) */
.page-header {
  padding: 70px 0 40px;
  text-align: center;
  background: var(--paper-alt);
}

/* Responsive */
@media (max-width: 980px) {
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .home-repairs { grid-template-columns: 1fr; padding: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badges { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-photo { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .topbar-inner { justify-content: center; text-align: center; }
  .hero-card { position: static; margin: 30px 24px 0; max-width: none; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-content { padding-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .home-repairs .checklist { grid-template-columns: 1fr; }
  .about-badges { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 16px;
    z-index: 60;
  }
}
