/* ==========================================================================
   Sparked Renovations — shared stylesheet
   Charcoal + warm copper, residential-remodeling brand direction
   ========================================================================== */

:root {
  --charcoal: #20262B;
  --charcoal-soft: #333c43;
  --copper: #A6542A;
  --copper-light: #c17347;
  --copper-tint: #f1e3da;
  --cream: #F7F5F2;
  --cream-dim: #efece6;
  --white: #ffffff;
  --line: rgba(32, 38, 43, 0.12);
  --text: #262b2f;
  --text-muted: #5b6268;

  --font-head: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 400;
}

h1 { font-size: 44px; letter-spacing: -0.01em; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; color: var(--text-muted); }

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--charcoal); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--charcoal); color: var(--white); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }
.btn-block { display: block; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.wordmark {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  line-height: 1.1;
}
.wordmark .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-top: 2px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-color: var(--copper); color: var(--copper); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: all 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    height: calc(100vh - 84px);
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 16px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background-image: linear-gradient(rgba(32,38,43,0.62), rgba(32,38,43,0.5)), var(--ph-gradient, linear-gradient(135deg, #3a3229, #20262B));
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  padding: 120px 0 100px;
}
.hero.hero-sm { padding: 90px 0 70px; }
.hero .eyebrow { color: var(--copper-light); }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lede { color: rgba(255,255,255,0.86); max-width: 640px; font-size: 18px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- trust strip ---------- */
.trust-strip {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  padding: 18px 24px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--charcoal); color: rgba(255,255,255,0.85); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(32,38,43,0.08); }
.card .card-body { padding: 22px 24px 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin-bottom: 14px; font-size: 15px; }
.card-link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.icon-block { text-align: left; }
.icon-block .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--copper-tint);
  color: var(--copper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 18px;
}

/* ---------- photo placeholders ---------- */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #47372c, #20262B 60%);
  color: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border: 1px solid rgba(32,38,43,0.15);
}
.ph::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(255,255,255,0.28);
  pointer-events: none;
}
.ph .ph-icon { font-size: 26px; margin-bottom: 10px; opacity: 0.85; }
.ph .ph-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  max-width: 220px;
  color: rgba(255,255,255,0.9);
}
.ph .ph-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 4px 8px;
  border-radius: 2px;
}
.ph.ph-wide { aspect-ratio: 16 / 9; }
.ph.ph-tall { aspect-ratio: 3 / 4; }
.ph.ph-square { aspect-ratio: 1 / 1; }
.ph.tone-a { background: linear-gradient(135deg, #4a3626, #2c2420 65%); }
.ph.tone-b { background: linear-gradient(135deg, #3a4046, #20262B 65%); }
.ph.tone-c { background: linear-gradient(135deg, #5c3d2b, #33261c 65%); }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 560px) { .before-after { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.testimonial .stars { color: var(--copper); letter-spacing: 2px; margin-bottom: 12px; font-size: 14px; }
.testimonial p.quote { font-family: var(--font-head); font-size: 18px; color: var(--charcoal); font-style: italic; }
.testimonial .who { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- list w/ marks ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px;
  background: var(--copper);
  border-radius: 50%;
}

/* ---------- breadcrumb-ish page intro ---------- */
.page-intro { padding: 64px 0 8px; }

/* ---------- form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--copper);
}
textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.contact-card {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.contact-card h3 { color: var(--white); }
.contact-card p { color: rgba(255,255,255,0.75); }
.contact-card .line { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.contact-card .line .k { color: var(--copper-light); font-weight: 700; min-width: 84px; }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: var(--copper-light); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-wordmark { font-family: var(--font-head); font-size: 22px; color: var(--white); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-grid a:hover { color: var(--copper-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.tag-list { color: var(--text-muted); font-size: 15px; }
.tag-list b { color: var(--charcoal); }
.divider { height: 1px; background: var(--line); margin: 56px 0; border: none; }
.needs-info { color: var(--copper); font-weight: 700; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { padding: 90px 0 70px; }
  .section { padding: 60px 0; }
}

/* ==========================================================================
   Real-photo components, trust funnel, and premium polish
   ========================================================================== */

/* ---------- real photo frames (replaces .ph placeholders) ---------- */
.photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal-soft);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover .photo img,
a:hover .photo img { transform: scale(1.045); }
.photo.photo-wide { aspect-ratio: 16 / 9; }
.photo.photo-tall { aspect-ratio: 3 / 4; }
.photo.photo-square { aspect-ratio: 1 / 1; }
.photo .photo-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  background: rgba(20, 23, 26, 0.72);
  backdrop-filter: blur(2px);
  color: #fff;
  padding: 6px 11px;
  border-radius: 2px;
  z-index: 2;
}
.photo .photo-tag.tag-after { background: var(--copper); }

/* real before/after pair */
.before-after.real {
  gap: 3px;
}
.before-after.real .photo { aspect-ratio: 4 / 3; border-radius: 0; }
.before-after.real .photo:first-child { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.before-after.real .photo:last-child { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
@media (max-width: 560px) {
  .before-after.real .photo:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .before-after.real .photo:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ---------- trust badge row ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
}
.badge-pill::before { content: "\2713"; color: var(--copper); font-weight: 700; }
.hero .badge-row .badge-pill {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.hero .badge-row .badge-pill::before { color: var(--copper-light); }

/* ---------- stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
.stat-row .stat-num {
  font-family: var(--font-head);
  font-size: 42px;
  color: var(--copper-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-row .stat-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

/* ---------- process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  padding: 0 28px 0 0;
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px; right: 0;
  width: 20px;
  height: 1px;
  background: var(--line);
}
@media (max-width: 900px) { .process-step:not(:last-child)::after { display: none; } }
.process-step .step-num {
  counter-increment: step;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--copper);
  color: var(--copper);
  font-family: var(--font-head);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.process-step .step-num::before { content: counter(step); }
.process-step h3 { font-size: 18px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; }

/* ---------- gallery masonry-ish grid ---------- */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }
.gallery-grid .photo {
  break-inside: avoid;
  margin-bottom: 16px;
  aspect-ratio: auto;
}
.gallery-grid .photo img { height: auto; }

/* ---------- sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
}
@media (max-width: 640px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: var(--charcoal);
    padding: 12px 16px;
    gap: 10px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  }
  .mobile-cta .btn { flex: 1; margin: 0; }
  body { padding-bottom: 68px; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- section label refinement ---------- */
.section-head .eyebrow { display: block; }

/* ---------- pull quote ---------- */
.pull-quote {
  border-left: 3px solid var(--copper);
  padding-left: 24px;
  margin: 0;
  max-width: 680px;
}
.pull-quote p {
  font-family: var(--font-head);
  font-size: 21px;
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.5;
}
