:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #1f2623;
  --muted: #68706b;
  --line: #dce1d8;
  --accent: #8b5e3c;
  --accent-dark: #5f3b24;
  --sage: #7c8a79;
  --charcoal: #121715;
  --shadow: 0 24px 70px rgba(31, 38, 35, 0.14);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(246, 247, 244, 0.94);
  box-shadow: 0 12px 30px rgba(31, 38, 35, 0.08);
  backdrop-filter: blur(16px);
}

.navbar {
  width: var(--container);
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.nav-menu,
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a,
.footer-links a {
  color: rgba(31, 38, 35, 0.84);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-menu a[aria-current="page"] {
  color: var(--accent);
}

.hero .brand,
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav-menu a {
  color: #fff;
}

.nav-menu a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  display: block;
  margin: 4px 0;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.page-hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

.page-hero-bg,
.page-hero::after {
  position: absolute;
  inset: 0;
}

.page-hero-bg {
  background-position: center;
  background-size: cover;
  transform: translateY(var(--parallax, 0));
  scale: 1.04;
  opacity: 0.72;
}

.page-hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(18, 23, 21, 0.82), rgba(18, 23, 21, 0.36));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 140px 0 74px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.about-hero .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=1800&q=85");
}

.gallery-hero .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1800&q=85");
}

.services-hero .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1800&q=85");
}

.reviews-hero .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1600210491892-03d54c0aaf87?auto=format&fit=crop&w=1800&q=85");
}

.contact-hero .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=85");
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  transform: translateY(var(--parallax, 0));
  scale: 1.06;
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(18, 23, 21, 0.78), rgba(18, 23, 21, 0.34) 58%, rgba(18, 23, 21, 0.52));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d8b894;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 8vw, 7rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.1rem;
}

.hero-lead {
  max-width: 610px;
  margin: 22px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions,
.footer-inner,
.socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 110px 0;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 44px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.services-grid,
.reviews-grid,
.process-grid,
.stats-grid,
.gallery-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.service-card,
.review-card,
.process-card,
.stat-card,
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(222, 216, 207, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(31, 38, 35, 0.06);
}

.feature-card,
.service-card,
.review-card,
.process-card,
.stat-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.service-card:hover,
.review-card:hover,
.process-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--accent);
  background: #edf1e8;
  border-radius: 50%;
}

.icon-wrap svg {
  width: 25px;
  height: 25px;
}

.feature-card p,
.service-card p,
.review-card p,
.process-card p,
.stat-card p {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.split-media {
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media img {
  height: 100%;
  object-fit: cover;
}

.text-stack {
  display: grid;
  gap: 18px;
}

.text-stack p {
  margin: 0;
  color: var(--muted);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card strong {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 650;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: process;
}

.process-card {
  position: relative;
}

.process-card::before {
  counter-increment: process;
  content: "0" counter(process);
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-weight: 850;
}

.cta-band {
  color: #fff;
  background: var(--charcoal);
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  max-width: 720px;
}

.cta-band p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 44px;
}

.gallery-intro .section-heading {
  margin-bottom: 0;
}

.review-card.featured {
  grid-column: span 2;
}

.gallery-section,
.reviews {
  background: #eef1ea;
}

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

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: 0 18px 50px rgba(31, 38, 35, 0.1);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 23, 21, 0);
  transition: background 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-item:hover::after {
  background: rgba(18, 23, 21, 0.18);
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  min-height: 100%;
}

.service-card strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 1rem;
}

.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card p {
  margin-top: 0;
  font-size: 1.02rem;
}

.review-card h3 {
  margin-top: 22px;
  color: var(--accent-dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 42px;
  align-items: start;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  font-style: normal;
  color: var(--ink);
}

.contact-details a:hover {
  color: var(--accent);
}

iframe {
  width: 100%;
  min-height: 290px;
  border: 0;
  border-radius: var(--radius);
  filter: saturate(0.85);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.form-field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf8;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.12);
}

.error-message,
.form-status {
  min-height: 20px;
  color: #a2352c;
  font-size: 0.9rem;
}

.form-status.success {
  color: #356b42;
}

.footer {
  color: #fff;
  background: var(--charcoal);
  padding: 34px 0;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  justify-content: space-between;
}

.footer a {
  color: #fff;
}

.footer p {
  width: 100%;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.socials a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.socials svg {
  width: 19px;
  height: 19px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 26px;
  background: rgba(18, 23, 21, 0.88);
}

.lightbox.open {
  display: grid;
}

.lightbox figure {
  width: min(980px, 100%);
  margin: 0;
}

.lightbox img {
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .feature-grid,
  .services-grid,
  .reviews-grid,
  .stats-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .review-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .navbar {
    height: 68px;
  }

  .nav-toggle {
    display: grid;
    color: #fff;
  }

  .site-header.scrolled .nav-toggle,
  .site-header.menu-open .nav-toggle {
    color: var(--ink);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: rgba(246, 247, 244, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header:not(.scrolled) .nav-menu a,
  .nav-menu a {
    display: block;
    padding: 12px;
    color: var(--ink);
  }

  .site-header.menu-open {
    background: rgba(246, 247, 244, 0.96);
  }

  .site-header.menu-open .brand {
    color: var(--ink);
  }

  .hero {
    min-height: 86vh;
  }

  .page-hero {
    min-height: 48vh;
  }

  .page-hero-content {
    padding: 116px 0 56px;
  }

  .hero-overlay {
    background: rgba(18, 23, 21, 0.66);
  }

  .section {
    padding: 78px 0;
  }

  .feature-grid,
  .services-grid,
  .reviews-grid,
  .stats-grid,
  .process-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .split-media {
    min-height: 300px;
  }

  .gallery-intro,
  .cta-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-item {
    min-height: 230px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
