:root {
  --cream: #f5ecd9;
  --cream-2: #fff9ec;
  --sand: #e6d4b7;
  --olive: #59683a;
  --olive-dark: #394626;
  --gold: #b6782f;
  --brown: #3b291b;
  --charcoal: #1c1915;
  --text: #342c24;
  --muted: #726757;
  --white: #ffffff;
  --line: rgba(59, 41, 27, .16);
  --shadow: 0 22px 55px rgba(49, 34, 22, .13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 249, 236, .96), rgba(245, 236, 217, .94)),
    var(--cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.66;
}

body.lightbox-open { overflow: hidden; }

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

a { color: inherit; }

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 236, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: contain;
}

.brand span { max-width: 180px; }

.nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--brown);
  font-size: .94rem;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover { color: var(--olive-dark); }

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--olive);
  border-radius: 999px;
  background: var(--olive);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  padding: 13px 22px;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover {
  background: var(--olive-dark);
  box-shadow: 0 12px 28px rgba(57, 70, 38, .22);
  transform: translateY(-1px);
}

.btn-small {
  display: none;
  min-height: 40px;
  padding: 11px 16px;
  font-size: .88rem;
}

.btn-outline {
  background: rgba(255, 249, 236, .68);
  color: var(--olive-dark);
}

.btn-outline:hover {
  background: var(--cream-2);
  color: var(--olive-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(92vh - 72px);
  overflow: hidden;
  padding: 48px 0;
  place-items: center;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 16, 13, .64) 0%, rgba(18, 16, 13, .38) 42%, rgba(18, 16, 13, .12) 72%, rgba(18, 16, 13, .28) 100%),
    linear-gradient(180deg, rgba(18, 16, 13, .12) 0%, rgba(18, 16, 13, .1) 58%, rgba(18, 16, 13, .48) 100%);
}

.hero-content {
  display: grid;
  align-items: end;
  width: min(1140px, calc(100% - 32px));
}

.hero-copy {
  max-width: min(720px, 100%);
  border: 1px solid rgba(255, 249, 236, .34);
  border-radius: 8px;
  background: rgba(18, 16, 13, .32);
  box-shadow: 0 24px 70px rgba(18, 16, 13, .32);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(10px);
}

.hero-copy .eyebrow {
  color: rgba(255, 249, 236, .9);
}

.hero-copy h1 {
  max-width: 680px;
  color: var(--white);
}

.hero-copy .hero-text {
  color: rgba(255, 255, 255, .9);
}

.hero .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .78);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--olive-dark);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6.2vw, 3.85rem);
  letter-spacing: 0;
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: clamp(1.72rem, 4.6vw, 2.8rem);
  letter-spacing: 0;
  line-height: 1.12;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.28;
}

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

.hero-text {
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.section { padding: 54px 0; }

.section-soft {
  background: rgba(255, 249, 236, .72);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.section-heading p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.split-heading {
  display: grid;
  gap: 18px;
}

.split-heading > p {
  max-width: 600px;
  align-self: end;
}

.gallery-section .split-heading > p,
#process .split-heading > p {
  font-size: 1.16rem;
  line-height: 1.75;
  max-width: 650px;
}

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 2px 0 10px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: var(--brown);
  cursor: pointer;
  font: inherit;
  font-size: .94rem;
  font-weight: 900;
  padding: 10px 16px;
  white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--brown);
  color: var(--cream-2);
}

.gallery-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.gallery-item,
.comparison-card,
.service-card,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 236, .74);
  box-shadow: 0 14px 36px rgba(59, 41, 27, .08);
}

.gallery-item {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 12px;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item > div:not(.comparison-photos) {
  display: grid;
  gap: 5px;
  padding: 0 6px 8px;
}

.gallery-item span,
.service-card span,
.contact-list span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-photo {
  width: 100%;
  height: 255px;
  border: 0;
  border-radius: 6px;
  background: var(--sand);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.gallery-feature {
  grid-template-rows: 1fr auto;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-photo:hover img { transform: scale(1.04); }

.before-after-section {
  background:
    linear-gradient(90deg, rgba(89, 104, 58, .11), rgba(182, 120, 47, .08)),
    var(--cream);
  border-block: 1px solid var(--line);
}

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

.before-after-section h2 {
  max-width: 620px;
}

.comparison-grid {
  display: grid;
  gap: 18px;
}

.comparison-card {
  display: grid;
  gap: 18px;
  padding: 14px;
}

.comparison-card h3,
.comparison-card p {
  padding-inline: 6px;
}

.comparison-card p {
  padding-bottom: 6px;
  font-size: 1.04rem;
  line-height: 1.68;
}

.comparison-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

figure {
  position: relative;
  margin: 0;
  min-height: 230px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--sand);
}

figure img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: rgba(28, 25, 21, .82);
  color: var(--white);
  font-size: .76rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.card-grid,
.steps {
  display: grid;
  gap: 18px;
}

.service-card,
.steps article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.service-card {
  background: var(--cream-2);
}

.steps article {
  background: rgba(255, 255, 255, .56);
}

.steps strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.about-section { background: rgba(255, 249, 236, .38); }

.about-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.about-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-grid p + p { margin-top: 14px; }

.about-grid h2 {
  margin-bottom: 22px;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--olive-dark);
  font-weight: 900;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.contact-section {
  background: var(--charcoal);
  color: var(--white);
}

.contact-section h2,
.contact-section h3 { color: var(--white); }

.contact-section p { color: rgba(255, 255, 255, .78); }

.contact-grid {
  display: grid;
  gap: 24px;
}

.contact-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.contact-list a,
.contact-list p {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  padding: 14px;
  text-decoration: none;
}

.quote-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 249, 236, .08);
  padding: 20px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.quote-form label {
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 900;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--charcoal);
  font: inherit;
  padding: 12px 13px;
}

.quote-form textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  padding: 30px 0 92px;
  background: #12100d;
  color: rgba(255, 255, 255, .82);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: auto;
  flex: 0 0 auto;
}

.footer strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.footer p {
  color: rgba(255, 255, 255, .7);
}

.footer a,
.footer span {
  display: block;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.mobile-call {
  position: fixed;
  right: 16px;
  bottom: max(6px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 40;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 14px 35px rgba(28, 25, 21, .28);
  font-weight: 900;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(18, 16, 13, .92);
  padding: 22px;
}

.lightbox.active { display: grid; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.lightbox p {
  margin-top: 12px;
  color: var(--white);
  font-weight: 900;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

@media (min-width: 680px) {
  .container { width: min(1140px, calc(100% - 48px)); }
  .hero {
    min-height: calc(92vh - 72px);
    padding: 58px 0;
  }
  .hero-content {
    width: min(1140px, calc(100% - 48px));
  }
  .gallery-grid,
  .comparison-grid,
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-feature { grid-column: span 2; }
  .gallery-feature .gallery-photo { height: 365px; }
  .quote-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-full,
  .quote-form .btn { grid-column: span 2; }
  .footer { padding-bottom: 32px; }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
  }
  .footer-brand img { width: 52px; }
  .mobile-call { display: none; }
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .btn-small { display: inline-flex; }
  .brand span { max-width: none; }
  .hero-content {
    min-height: min(600px, calc(92vh - 170px));
    align-content: end;
  }
  .hero-copy {
    max-width: 720px;
  }
  .section { padding: 64px 0; }
  .split-heading {
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    align-items: center;
    margin-bottom: 30px;
  }
  .gallery-section .split-heading > p,
  #process .split-heading > p,
  .before-after-section .split-heading > p {
    font-size: 1.16rem;
    line-height: 1.75;
  }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about-grid,
  .contact-grid {
    grid-template-columns: .9fr 1.1fr;
  }
}

@media (min-width: 1080px) {
  .hero {
    min-height: calc(94vh - 72px);
    padding: 64px 0;
  }
  .hero-content {
    min-height: min(660px, calc(94vh - 168px));
  }
  .hero-copy {
    max-width: 740px;
  }
  .hero-copy h1 {
    font-size: 3.85rem;
  }
  .gallery-grid {
    grid-template-areas:
      "feature feature ceiling-a ceiling-b"
      "feature feature closet-a closet-b";
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallery-grid.is-filtered {
    grid-template-areas: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid.is-filtered .gallery-item {
    grid-area: auto;
  }
  .gallery-item:nth-child(1) { grid-area: feature; }
  .gallery-item:nth-child(2) { grid-area: ceiling-a; }
  .gallery-item:nth-child(3) { grid-area: ceiling-b; }
  .gallery-item:nth-child(4) { grid-area: closet-a; }
  .gallery-item:nth-child(5) { grid-area: closet-b; }
  .gallery-feature { grid-column: auto; }
  .gallery-feature .gallery-photo {
    height: 100%;
    min-height: 520px;
  }
  .gallery-item:not(.gallery-feature) .gallery-photo {
    height: 220px;
  }
  .gallery-grid.is-filtered .gallery-photo,
  .gallery-grid.is-filtered .gallery-feature .gallery-photo {
    height: 285px;
    min-height: 0;
  }
  .before-after-section .split-heading {
    grid-template-columns: minmax(440px, .95fr) minmax(420px, 1.05fr);
  }
  .gallery-section .split-heading,
  #process .split-heading {
    grid-template-columns: minmax(430px, .95fr) minmax(500px, 1.05fr);
  }
  .gallery-section .split-heading > p,
  #process .split-heading > p,
  .before-after-section .split-heading > p {
    max-width: 650px;
    font-size: 1.2rem;
  }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1240px) {
  .hero-copy h1 { font-size: 4rem; }
}

@media (max-width: 679px) {
  body { font-size: 16px; }
  .nav-wrap { min-height: 68px; }
  .brand img {
    width: 62px;
    height: 62px;
  }
  .hero {
    min-height: 72vh;
    padding: 32px 0 40px;
    place-items: end center;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(18, 16, 13, .14) 0%, rgba(18, 16, 13, .2) 34%, rgba(18, 16, 13, .72) 100%),
      linear-gradient(90deg, rgba(18, 16, 13, .3), rgba(18, 16, 13, .08));
  }
  .hero-content {
    align-content: end;
    width: min(100% - 32px, 1140px);
  }
  .hero-copy {
    max-width: 100%;
    background: rgba(18, 16, 13, .4);
    padding: 21px;
  }
  .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.14;
  }
  h2 {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }
  .section { padding: 52px 0; }
  .section-heading { margin-bottom: 24px; }
  .section-heading p,
  .before-after-section .split-heading > p {
    font-size: 1.03rem;
    line-height: 1.72;
  }
  .gallery-photo { height: 240px; }
  figure,
  figure img { min-height: 210px; }
  .footer { padding-bottom: 88px; }
  .footer-brand img { width: 42px; }
}

@media (max-width: 390px) {
  .brand span { display: none; }
  .hero-actions .btn { width: 100%; }
  .comparison-photos { grid-template-columns: 1fr; }
  .mobile-call {
    right: 12px;
    bottom: max(5px, env(safe-area-inset-bottom));
    left: 12px;
    min-height: 50px;
  }
}
