:root {
  --bg: #0b0b0a;
  --bg-soft: #12110f;
  --surface: rgba(27, 25, 21, 0.84);
  --surface-solid: #1b1915;
  --surface-light: #f4efe6;
  --text: #fffaf0;
  --ink: #171411;
  --paper: #f7f1e8;
  --muted: #c9beb0;
  --muted-dark: #6c6257;
  --line: rgba(255, 250, 240, 0.14);
  --line-strong: rgba(255, 250, 240, 0.28);
  --wood: #c4874d;
  --wood-light: #e3b37a;
  --bronze: #8b5e34;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --header-height: 72px;
  --page-gutter: 1rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 4.65rem;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.85rem, 11vw, 5.8rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.05rem, 7vw, 4rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-light);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  min-width: 0;
  padding: 0.55rem max(var(--page-gutter), env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
  background: rgba(5, 5, 4, 0.94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0.12rem;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-main {
  color: var(--text);
  font-size: clamp(1rem, 5vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-sub {
  color: #f0a23a;
  font-size: clamp(0.58rem, 2.3vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

.nav-toggle {
  flex: 0 0 auto;
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
  color: var(--text);
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  display: none;
  gap: 0.5rem;
  max-height: calc(100svh - var(--header-height));
  overflow-y: auto;
  padding: 1rem max(var(--page-gutter), env(safe-area-inset-left)) calc(1.25rem + env(safe-area-inset-bottom));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 4, 0.98);
}

.site-nav a {
  display: block;
  min-height: 3.25rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 250, 240, 0.08);
}

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

.nav-cta {
  border: 1px solid rgba(227, 179, 122, 0.42);
  color: var(--wood-light) !important;
}

.hero,
.page-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: calc(92svh - var(--header-height));
  overflow: hidden;
  padding: 3.5rem var(--page-gutter) 4.25rem;
}

.home-hero {
  display: grid;
  align-items: end;
}

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

.hero-media {
  background:
    linear-gradient(90deg, rgba(11, 11, 10, 0.9), rgba(11, 11, 10, 0.25)),
    url("https://images.pexels.com/photos/7027844/pexels-photo-7027844.jpeg?auto=compress&cs=tinysrgb&w=1800") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(11, 11, 10, 0.12), rgba(11, 11, 10, 0.92)),
    radial-gradient(circle at 18% 34%, rgba(227, 179, 122, 0.2), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  opacity: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.56);
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--wood-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy,
.page-hero p,
.section-heading p,
.trust-copy + .trust-list p,
.service-card p,
.contact-note p {
  color: var(--muted);
}

.hero-copy {
  max-width: min(100%, 44rem);
  margin-bottom: 1.75rem;
  font-size: clamp(1.02rem, 4vw, 1.32rem);
}

.hero-actions,
.estimate-strip,
.intro-band {
  display: grid;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--wood-light), var(--wood));
  color: #17100a;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 250, 240, 0.06);
  color: var(--text);
}

.section {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1180px);
  margin: 0 auto;
  padding: 4.25rem 0;
}

.intro-band {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1180px);
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(196, 135, 77, 0.08), rgba(27, 25, 21, 0.96)),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.intro-copy h2 {
  font-size: clamp(2rem, 7vw, 3.7rem);
}

.intro-points {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.intro-points span {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  display: grid;
  gap: 1.1rem;
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading > p:last-child {
  max-width: 46rem;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.service-card img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3,
.service-card p,
.service-card span {
  margin-right: 1rem;
  margin-left: 1rem;
}

.service-card h3 {
  margin-top: 1rem;
}

.service-card p {
  margin-bottom: 1.1rem;
}

.service-card span {
  display: block;
  margin-top: 1rem;
  color: var(--wood-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-service {
  background: linear-gradient(145deg, rgba(227, 179, 122, 0.16), rgba(27, 25, 21, 0.92));
}

.preview-grid,
.gallery-grid,
.comparison-grid,
.trust-list,
.contact-layout {
  display: grid;
  gap: 1rem;
}

.project-tile,
.gallery-item,
.comparison-grid article {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.project-tile img,
.gallery-item img,
.comparison-grid img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-tile:hover img,
.gallery-item:hover img {
  transform: scale(1.04);
}

.project-tile::after,
.gallery-item::after,
.comparison-grid article::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 11, 10, 0.82));
  content: "";
}

.project-tile span,
.gallery-item span,
.comparison-grid span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  color: var(--text);
  font-weight: 800;
}

.trust-section {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-section {
  border-top: 1px solid var(--line);
}

.trust-list article {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.055);
}

.estimate-strip {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1180px);
  margin: 0 auto 5.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(227, 179, 122, 0.16), rgba(18, 17, 15, 0.96)),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.estimate-strip h2 {
  font-size: clamp(2rem, 9vw, 4rem);
}

.page-hero {
  display: grid;
  align-content: end;
  min-height: calc(58svh - var(--header-height));
  background:
    linear-gradient(180deg, rgba(11, 11, 10, 0.42), rgba(11, 11, 10, 0.98)),
    linear-gradient(90deg, rgba(11, 11, 10, 0.86), rgba(11, 11, 10, 0.26)),
    url("https://images.pexels.com/photos/7027844/pexels-photo-7027844.jpeg?auto=compress&cs=tinysrgb&w=1800") center / cover;
}

.gallery-hero {
  background:
    linear-gradient(180deg, rgba(11, 11, 10, 0.38), rgba(11, 11, 10, 0.98)),
    linear-gradient(90deg, rgba(11, 11, 10, 0.82), rgba(11, 11, 10, 0.2)),
    url("https://images.unsplash.com/photo-1586023492125-27b2c045efd7?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.contact-hero {
  min-height: auto;
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  background:
    linear-gradient(180deg, rgba(11, 11, 10, 0.35), rgba(11, 11, 10, 0.98)),
    linear-gradient(90deg, rgba(11, 11, 10, 0.88), rgba(11, 11, 10, 0.32)),
    url("https://images.pexels.com/photos/7027844/pexels-photo-7027844.jpeg?auto=compress&cs=tinysrgb&w=1800") center / cover;
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero p {
  max-width: min(100%, 38rem);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.filter-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  -webkit-overflow-scrolling: touch;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.05);
  color: var(--muted);
  font-weight: 800;
}

.filter-button.is-active {
  border-color: rgba(227, 179, 122, 0.58);
  color: var(--ink);
  background: var(--wood-light);
}

.gallery-item {
  min-height: 20rem;
}

.gallery-section {
  padding-top: 4rem;
}

.gallery-grid {
  align-items: stretch;
}

.gallery-item img,
.project-tile img {
  min-height: inherit;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item div {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
}

.gallery-item div span,
.gallery-item div h2 {
  position: static;
}

.gallery-item div h2 {
  font-size: clamp(2rem, 8vw, 4rem);
}

.before-after {
  padding-top: 1rem;
}

.before-after .section-heading {
  max-width: 720px;
}

.before-after .section-heading h2 {
  font-size: clamp(2.4rem, 8vw, 5rem);
}

.comparison-grid article {
  min-height: 24rem;
}

.contact-layout {
  align-items: start;
  min-width: 0;
  padding-top: 2rem;
}

.contact-panel,
.estimate-form {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(196, 135, 77, 0.08), rgba(27, 25, 21, 0.96)),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.contact-panel {
  order: 2;
  position: static;
  padding: 1.25rem;
}

.contact-panel h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 9vw, 4rem);
}

.contact-link {
  display: grid;
  gap: 0.2rem;
  min-height: 3.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-link span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contact-note {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
}

.estimate-form {
  order: 1;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.estimate-form label {
  display: grid;
  gap: 0.45rem;
}

.estimate-form label span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  color: var(--text);
}

.estimate-form input[aria-invalid="true"],
.estimate-form select[aria-invalid="true"],
.estimate-form textarea[aria-invalid="true"] {
  border-color: #f0a23a;
  box-shadow: 0 0 0 3px rgba(240, 162, 58, 0.16);
}

.estimate-form input,
.estimate-form select {
  min-height: 3.4rem;
  padding: 0 0.9rem;
}

.estimate-form textarea {
  min-height: 9.5rem;
  resize: vertical;
  padding: 0.9rem;
}

.estimate-form select option {
  background: var(--surface-solid);
  color: var(--text);
}

.file-field {
  position: relative;
  padding: 1.2rem;
  border: 1px dashed rgba(227, 179, 122, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.045);
  cursor: pointer;
}

.file-field input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-field strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  margin: 0.3rem 0 0.6rem;
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  color: var(--text);
}

.file-field small {
  display: block;
}

.file-field small,
.form-status {
  color: var(--muted);
}

.field-error {
  min-height: 1.2rem;
  color: #f3bd7c;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-status {
  min-height: 1.5rem;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.form-status:empty {
  display: none;
}

.form-status[data-type="loading"] {
  border-color: rgba(227, 179, 122, 0.26);
  background: rgba(255, 250, 240, 0.06);
  color: var(--muted);
}

.form-status[data-type="success"] {
  border-color: rgba(129, 209, 154, 0.42);
  background: rgba(129, 209, 154, 0.12);
  color: #d8f3df;
}

.form-status[data-type="error"] {
  border-color: rgba(240, 162, 58, 0.45);
  background: rgba(240, 162, 58, 0.12);
  color: #ffe2ba;
}

.estimate-form button[disabled] {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.mobile-call {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--wood-light), var(--wood));
  color: #17100a;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.contact-page .mobile-call {
  display: none;
}

.site-footer {
  display: grid;
  gap: 1rem;
  width: min(calc(100% - (var(--page-gutter) * 2)), 1180px);
  margin: 0 auto;
  padding: 2rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  max-width: 46rem;
  margin-bottom: 0;
}

.site-footer strong,
.site-footer a {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-footer a {
  font-weight: 800;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  :root {
    --page-gutter: 1.5rem;
  }

  .hero-actions,
  .estimate-strip {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
  }

  .intro-band,
  .trust-section,
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contact-panel {
    order: 0;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }

  .estimate-form {
    order: 0;
  }

  .intro-points,
  .trust-list,
  .estimate-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .full-span {
    grid-column: 1 / -1;
  }

  .service-grid,
  .preview-grid,
  .gallery-grid,
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-service,
  .project-tile.large,
  .gallery-item.feature,
  .gallery-item.wide {
    grid-column: span 2;
  }

  .gallery-item.tall {
    grid-row: span 2;
    min-height: 41rem;
  }

}

@media (min-width: 980px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    position: fixed;
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .brand {
    gap: 0.16rem;
  }

  .brand-main {
    font-size: 1.35rem;
  }

  .brand-sub {
    font-size: 0.74rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  .site-nav a {
    padding: 0.65rem 0.85rem;
  }

  .nav-cta {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .hero,
  .page-hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .page-hero {
    min-height: 66svh;
  }

  .contact-hero {
    min-height: 52svh;
    padding-bottom: 4rem;
  }

  .hero-content,
  .page-hero h1,
  .page-hero p,
  .page-hero .eyebrow {
    margin-left: calc((100% - min(100% - 4rem, 1180px)) / 2);
  }

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

  .featured-service {
    grid-column: span 2;
    grid-row: span 2;
  }

  .featured-service img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .preview-grid,
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-tile.large,
  .gallery-item.feature {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 38rem;
  }

  .mobile-call {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
