:root {
  --bg: #f7f4ee;
  --text: #1f2933;
  --muted: #667085;
  --primary: #c77b2d;
  --primary-dark: #9f5d1b;
  --card: #ffffff;
  --dark: #111827;
  --border: #e7ded3;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--dark);
  color: white;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  padding: 13px 22px;
  box-shadow: 0 10px 22px rgba(199, 123, 45, 0.25);
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background: white;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.btn.small {
  padding: 9px 16px;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.82), rgba(17,24,39,0.35)),
    url("images/hero.jpg") center/cover;
  color: white;
}

.hero-content {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 90px 24px;
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 1;
  margin: 12px 0 22px;
}

.hero-content p {
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 900;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section.muted {
  max-width: none;
  background: #eee7dd;
}

.section.muted .section-heading,
.section.muted .gallery {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.cta h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 8px 0 10px;
}

.section-heading p:not(.eyebrow),
.cta p,
.contact-card p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.before-after-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.card h3,
.before-after-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #ddd;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.before-after-card h3 {
  margin-bottom: 18px;
}

.before-after {
  --position: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  background: #ddd;
  user-select: none;
}

.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-image,
.before-layer,
.before-image {
  position: absolute;
  inset: 0;
}

.before-layer {
  width: var(--position);
  overflow: hidden;
}

.before-image {
  width: 100%;
  min-width: 100%;
  max-width: none;
}

.before-after input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 4px;
  background: white;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 16px rgba(0,0,0,0.35);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: var(--position);
  z-index: 4;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--dark);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.label {
  position: absolute;
  top: 14px;
  z-index: 4;
  background: rgba(17,24,39,0.72);
  color: white;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 0.82rem;
}

.before-label {
  left: 14px;
}

.after-label {
  right: 14px;
}

.cta {
  margin: 40px auto;
  max-width: 1100px;
  border-radius: 32px;
  padding: 60px 28px;
  text-align: center;
  background: var(--dark);
  color: white;
}

.cta p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,0.78);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.contact-details {
  background: #f6efe6;
  border-radius: 20px;
  padding: 24px;
}

.contact-details p + p {
  margin-top: 12px;
}

.contact-details a {
  color: var(--primary-dark);
  font-weight: 800;
}

.footer {
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .cards,
  .gallery,
  .before-after-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .navbar,
  .section,
  .hero-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .gallery img {
    height: 210px;
  }
}
