:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --bg-alt: #efe5d8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --border: rgba(20, 31, 46, 0.12);
  --text: #17212e;
  --muted: #5c6674;
  --accent: #9b5f2e;
  --accent-strong: #d48a43;
  --accent-dark: #1f3348;
  --shadow: 0 20px 60px rgba(35, 28, 18, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1160px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 138, 67, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(31, 51, 72, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #f3ebdf 48%, #f7f4ee 100%);
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 1rem clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 20;
  background: rgba(247, 241, 232, 0.96);
  border-bottom: 1px solid rgba(31, 51, 72, 0.1);
  box-shadow: 0 10px 30px rgba(35, 28, 18, 0.04);
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-image {
  height: 7rem;
  width: auto;
  max-width: min(380px, 60vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(35, 28, 18, 0.12));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.2rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.85rem 1.15rem !important;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff8f0 !important;
  box-shadow: var(--shadow);
}

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 5.5rem);
  width: min(1280px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: start;
  padding-top: 2.5rem;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.hero-copy h1,
.section-heading h2,
.about-panel h2,
.contact-card h2 {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero-copy h1 {
  font-size: clamp(3.35rem, 7.5vw, 6.6rem);
  max-width: 10ch;
}

.lead,
.section-heading p,
.card p,
.step p,
.project-card p,
.about-points p,
.contact-card p,
.contact-note,
.stats-band span {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 58ch;
  font-size: 1.05rem;
}

.eyebrow,
.panel-label,
.project-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 80%);
  color: #fff7f0;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.6);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  padding: 0.68rem 0.94rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  font-weight: 600;
}

.hero-panel,
.card,
.project-card,
.about-panel,
.contact-card,
.stats-band article {
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-panel {
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-self: end;
  margin-top: 2.6rem;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -6rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 138, 67, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.slider-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.slider-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  font: inherit;
  font-weight: 700;
}

.panel-stat {
  margin: 0;
  max-width: 20ch;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.03em;
}

.slideshow {
  position: relative;
  aspect-ratio: 4 / 3.1;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(31, 51, 72, 0.1);
  background: #e9e1d7;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(15, 25, 37, 0.72);
  color: #fffaf5;
  backdrop-filter: blur(12px);
}

.slide figcaption span {
  display: block;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.slide figcaption small {
  display: block;
  color: rgba(255, 250, 245, 0.86);
  line-height: 1.5;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 51, 72, 0.2);
}

.slider-dot.is-active {
  background: var(--accent-dark);
}

.card h3,
.step h3,
.project-card h3 {
  margin: 0.35rem 0 0.6rem;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 0;
}

.stats-band article {
  padding: 1.2rem;
}

.stats-band strong {
  display: block;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 0.45rem;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.75rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.55rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.35rem;
}

.card::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.25rem;
  margin-top: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.project-showcase {
  display: grid;
  gap: 1rem;
}

.project-card {
  min-height: 220px;
  padding: 1.4rem;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(2px);
}

.project-kitchen::before {
  background: radial-gradient(circle, rgba(212, 138, 67, 0.26), transparent 70%);
}

.project-bath::before {
  background: radial-gradient(circle, rgba(31, 51, 72, 0.18), transparent 70%);
}

.project-basement::before {
  background: radial-gradient(circle, rgba(151, 113, 80, 0.22), transparent 70%);
}

.project-card p:last-child {
  max-width: 42ch;
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.step span {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff7f0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-weight: 800;
}

.about-panel {
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.about-points {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.6rem;
  display: grid;
  gap: 0.5rem;
}

.contact-note {
  margin: 0;
  font-size: 0.96rem;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.bg-blob-left {
  top: 8rem;
  left: -7rem;
  width: 18rem;
  height: 18rem;
  background: rgba(212, 138, 67, 0.18);
}

.bg-blob-right {
  right: -8rem;
  bottom: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(31, 51, 72, 0.14);
}

.reveal {
  animation: fade-up 700ms ease-out both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .about-panel,
  .card-grid,
  .stats-band {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-panel {
    margin-top: 2.1rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    position: relative;
  }

  .logo-image {
    height: 5rem;
    max-width: min(320px, 72vw);
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.8rem 0 0.2rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }

  .hero,
  .split-section,
  .about-panel,
  .card-grid,
  .stats-band,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.85rem, 14vw, 4.5rem);
  }

  .hero-panel {
    margin-top: 0;
  }

  .hero-panel-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-actions {
    justify-content: flex-start;
  }
}
