/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: oklch(0.22 0.01 60);
  background: oklch(0.98 0.006 80);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: #c9822f; text-decoration: none; }
a:hover { color: #a9691f; }
::selection { background: #e0a15e55; }
h1, h2, h3 { font-family: 'Sora', sans-serif; margin: 0; }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #e0a15e;
  color: #2b2a27;
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Shared tokens ---------- */
:root {
  --accent: #e0a15e;
  --accent-dark: #c9822f;
  --ink: #2b2a27;
  --ink-deep: #201f1c;
  --max-width: 1240px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #d1913f; color: var(--ink); }
.btn-outline {
  border: 1.5px solid oklch(0.92 0.01 60 / 0.6);
  color: oklch(0.98 0.01 60);
}
.btn-outline:hover { border-color: oklch(0.98 0.01 60); color: oklch(1 0 0); }
.btn-block { width: 100%; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent); }

.section { padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 48px); }
.section-inner, .section > .section-intro { max-width: var(--max-width); margin: 0 auto; }
.section-tinted { background: oklch(0.95 0.012 60); }
.section-intro { max-width: 640px; margin: 0 auto 48px; }
.section-intro h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.5px; margin: 0 0 16px; color: oklch(0.2 0.01 60); }
.section-intro p { font-size: 17px; color: oklch(0.4 0.01 60); margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  background: oklch(0.98 0.006 80 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid oklch(0.9 0.01 60);
}
.logo {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: oklch(0.3 0.01 60);
}
.nav-cta {
  font-weight: 600;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 4px;
}
.nav-cta:hover { color: var(--ink); background: #d1913f; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30,29,26,0.88) 0%, rgba(30,29,26,0.68) 55%, rgba(30,29,26,0.4) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 100px clamp(20px, 5vw, 48px) 60px;
  color: oklch(0.98 0.01 60);
}
.hero-content h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero-content .accent { color: var(--accent); }
.hero-copy {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: oklch(0.92 0.01 60);
  margin: 0 0 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.level {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  width: 260px;
  max-width: 100%;
  height: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  position: relative;
}
.level-marks {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 42px;
  transform: translateX(-50%);
  border-left: 1px solid rgba(255,255,255,0.25);
  border-right: 1px solid rgba(255,255,255,0.25);
}
.level-bubble {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 22px; height: 10px; border-radius: 5px;
  background: oklch(0.8 0.16 130);
  box-shadow: 0 0 8px oklch(0.8 0.16 130 / 0.6);
}
.mono-tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: oklch(0.75 0.01 60);
  margin: 0 0 28px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: 32px 26px 34px;
  color: #fff;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 14px 30px -10px rgba(30,29,26,0.28), 0 2px 8px rgba(30,29,26,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -12px rgba(30,29,26,0.34), 0 4px 10px rgba(30,29,26,0.1);
}
.service-card-body { position: relative; z-index: 2; }
.service-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 10px; max-width: 85%; }
.service-card p { font-size: 15px; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.6; }

/* Duotone photo layer: desaturated photo + brand-color overlay blended together,
   then a bottom scrim so the card copy stays legible on any source photo. */
.service-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}
.service-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,19,17,0.15) 0%, rgba(20,19,17,0.75) 100%);
}

.service-kitchen .service-photo::after   { background: oklch(0.6 0.14 45); }
.service-bathroom .service-photo::after  { background: oklch(0.6 0.1 210); }
.service-basement .service-photo::after  { background: oklch(0.54 0.02 60); }
.service-painting .service-photo::after  { background: oklch(0.62 0.13 40); }
.service-flooring .service-photo::after  { background: oklch(0.6 0.1 65); }
.service-general .service-photo::after   { background: oklch(0.5 0.03 60); }

/* Fallback flat gradient if a category ever has no photo yet */
.service-card:not(:has(.service-photo)) { background-image: linear-gradient(135deg, oklch(0.54 0.02 60) 0%, oklch(0.38 0.015 60) 100%); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item-name {
  font-size: 15px;
  font-weight: 600;
  color: oklch(0.25 0.01 60);
  margin-top: 12px;
}
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: oklch(0.93 0.01 60);
  cursor: pointer;
}
.carousel-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-size: 13px; color: rgba(255,255,255,0.75);
  background: linear-gradient(135deg, oklch(0.55 0.02 60) 0%, oklch(0.4 0.015 60) 100%);
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(20,19,17,0.45); color: #fff; border: none;
  cursor: pointer; font-size: 15px; line-height: 1; z-index: 2;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.carousel-dots button {
  width: 6px; height: 6px; border-radius: 50%; border: none;
  cursor: pointer; padding: 0; background: oklch(0.85 0.01 60);
}
.carousel-dots button.active { background: var(--accent-dark); }
.expand-badge {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(20,19,17,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.expand-badge span {
  width: 9px; height: 9px; border: 1.5px solid #fff; border-radius: 50%; position: relative;
}
.expand-badge span::after {
  content: ''; position: absolute; width: 1.5px; height: 6px; background: #fff;
  bottom: -5px; right: -2px; transform: rotate(45deg);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,14,12,0.92); z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(16px, 5vw, 40px);
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 20px; cursor: pointer;
}
.lightbox-title { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.lightbox-stage {
  position: relative; width: 100%; max-width: 900px; aspect-ratio: 4/3;
  border-radius: 8px; overflow: hidden; background: #111;
}
.lightbox-stage img { width: 100%; height: 100%; object-fit: cover; }
.watermark {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; z-index: 3;
}
.watermark-rows { transform: rotate(-28deg); display: flex; flex-direction: column; gap: 54px; }
.watermark-row {
  font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700;
  color: rgba(255,255,255,0.28); letter-spacing: 3px; white-space: nowrap;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20,19,17,0.55); color: #fff; border: none;
  cursor: pointer; font-size: 20px; line-height: 1; z-index: 4;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-dots { display: flex; gap: 8px; margin-top: 20px; }
.lightbox-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  cursor: pointer; padding: 0; background: oklch(0.85 0.01 60);
}
.lightbox-dots button.active { background: var(--accent); }

/* ---------- About ---------- */
.about-section {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-copy p { font-size: 17px; color: oklch(0.4 0.01 60); margin: 0 0 20px; line-height: 1.7; }
.about-copy h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.5px; margin: 0 0 22px; color: oklch(0.2 0.01 60); }
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-value { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; color: var(--accent-dark); }
.stat-label { font-size: 14px; color: oklch(0.45 0.01 60); }
.about-photo { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-section { background: var(--ink); color: oklch(0.96 0.01 60); }
.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.contact-info h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.5px; margin: 0 0 20px; }
.contact-info p { font-size: 16px; color: oklch(0.82 0.01 60); margin: 0 0 36px; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 18px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  color: oklch(0.96 0.01 60); font-size: 17px; font-weight: 500;
}
.contact-link-static { color: oklch(0.82 0.01 60); }
.contact-icon {
  width: 38px; height: 38px; border-radius: 50%; background: #3a3833;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative;
}
.contact-icon::before {
  content: ''; width: 14px; height: 10px; border: 1.5px solid var(--accent); border-radius: 2px;
}
.contact-icon-solid::before { width: 12px; height: 12px; background: var(--accent); border: none; border-radius: 2px; }

.contact-form {
  background: oklch(0.96 0.01 60);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  color: oklch(0.22 0.01 60);
}
.form-success { padding: 40px 0; text-align: center; }
.form-success-title { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: oklch(0.45 0.01 60); margin: 0; }
.form-fields { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: oklch(0.3 0.01 60); }
.field input, .field textarea {
  padding: 12px 14px; border: 1px solid oklch(0.85 0.01 60); border-radius: 4px;
  font-size: 15px; font-family: inherit; background: oklch(1 0 0); color: inherit;
  width: 100%;
}
.field textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px clamp(20px, 5vw, 48px);
  background: var(--ink-deep);
  color: oklch(0.7 0.01 60);
  text-align: center;
  font-size: 13px;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Tablet */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 480px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile nav + stacked layout */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: oklch(0.98 0.006 80);
    border-bottom: 1px solid oklch(0.9 0.01 60);
    box-shadow: 0 12px 24px -8px rgba(30,29,26,0.15);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 8px 0 16px;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px clamp(20px, 5vw, 48px);
    border-bottom: 1px solid oklch(0.93 0.008 60);
  }
  .nav-cta { margin: 12px clamp(20px, 5vw, 48px) 0; text-align: center; }

  .hero { min-height: 560px; }
  .hero-content { padding-top: 72px; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .stats { gap: 24px; }
}
