:root {
  --ink: #16241f;
  --forest: #214b39;
  --sage: #9fbea8;
  --moss: #667d63;
  --cream: #f8f3ea;
  --sand: #ded0b8;
  --copper: #b65f35;
  --clay: #cf9b6d;
  --steel: #dce3dd;
  --shadow: rgba(22, 36, 31, 0.13);
  --shadow-strong: rgba(22, 36, 31, 0.22);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(33, 75, 57, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fbf7f0 0%, #f2eadc 100%);
  background-size: 42px 42px, auto;
}

main { padding: clamp(1.1rem, 3vw, 2rem); margin-bottom: 2rem; }
section { margin-bottom: 2rem; }
img { display: block; max-width: 100%; }
a { color: inherit; cursor: pointer; }

h1 { margin: 0; max-width: 12ch; font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: 0.94; }
h2 { margin-top: 0; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.05; }

.brand strong, .site-nav a, h1, h2, caption {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 700;
}

.lead { font-size: 1.1rem; line-height: 1.7; max-width: 56ch; color: rgba(22, 36, 31, 0.82); }

.button, .button-alternate {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.9rem 1.3rem; border: 0; border-radius: 0.65rem;
  text-decoration: none; font-weight: 700; cursor: pointer;
}
.button { color: white; background: linear-gradient(135deg, var(--forest), #315b47); box-shadow: 0 18px 30px rgba(36, 71, 54, 0.22); }
.button-alternate { border: 1px solid rgba(36, 71, 54, 0.18); background: rgba(255, 255, 255, 0.72); color: var(--ink); }
.text-link { font-weight: 700; color: var(--forest); }

/* Banner */
.example-banner {
  background: #1e293b; color: #f1f5f9; text-align: center;
  padding: 12px 20px; font-size: 0.9rem;
}
.example-banner a { color: #5ba3f5; font-weight: 600; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background-color: rgba(222, 208, 184, 0.92);
  border-bottom: 1px solid rgba(36, 71, 54, 0.12);
  backdrop-filter: blur(16px);
}
.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0.85rem 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand small { display: block; color: rgba(22, 49, 39, 0.72); }
.site-nav { display: flex; gap: 0.5rem; }
.site-nav a, .menu-toggle {
  border: 0; border-radius: 0.65rem; padding: 0.7rem 0.95rem; text-decoration: none;
  background: transparent; color: var(--ink); cursor: pointer; font-weight: 700;
}
.site-nav a:hover, .menu-toggle:hover { background: rgba(36, 71, 54, 0.08); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.6rem; }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: calc(100% + 0rem); left: 0; right: 0;
    padding: 0.7rem; border-radius: 0.8rem; background: rgba(246, 240, 229, 0.98);
    box-shadow: 0 18px 45px var(--shadow); flex-direction: column;
  }
  .site-nav.open { display: flex; }
  .nav-shell { position: relative; flex-wrap: wrap; }
}

/* Layout grids */
.hero-grid, .split-section, .banner { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr); align-items: center; }
.split-section { grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr); align-items: center; max-width: var(--max); margin: 0 auto; }
.hero { max-width: var(--max); margin: 0 auto 2rem; padding: clamp(3.25rem, 7vw, 6rem) 1rem 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.7rem; }

.card, .info-card { border-radius: var(--radius); background: white; box-shadow: 0 20px 44px var(--shadow); }
.hero-art, .accent-card { padding: 1.2rem; }
.hero-art {
  position: relative; overflow: hidden; border: 1px solid rgba(33, 75, 57, 0.08);
  box-shadow: 0 28px 70px var(--shadow-strong);
}

.feature-strip { display: grid; gap: 1.25rem; max-width: var(--max); grid-template-columns: repeat(3, 1fr); margin: -0.6rem auto 2rem; padding: 0 1rem; }
.info-card { position: relative; display: grid; gap: 0.6rem; min-height: 13rem; border: 1px solid rgba(33, 75, 57, 0.08); padding: 1.25rem; }
.info-card h2, .info-card p { margin: 0; }
.info-card p { line-height: 1.6; color: rgba(22, 36, 31, 0.74); }
.metric { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.55rem; color: white; background: var(--forest); font-weight: 800; }

.checklist ul { margin: 0; padding-left: 1.1rem; line-height: 1.9; }

.banner {
  grid-template-columns: 1fr auto; align-items: center; padding: 1.6rem; margin: 2rem auto 0;
  border-radius: var(--radius); background: linear-gradient(135deg, rgba(36, 71, 54, 0.94), rgba(53, 100, 80, 0.92));
  color: white; max-width: var(--max);
}
.banner h2, .banner .eyebrow { color: inherit; }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; }
.trust-row span {
  padding: 0.52rem 0.7rem; border: 1px solid rgba(33, 75, 57, 0.14); border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.66); color: rgba(22, 36, 31, 0.8); font-size: 0.88rem; font-weight: 800;
}

.photo-badge {
  position: absolute; left: 2rem; right: 2rem; bottom: 2rem; display: grid; gap: 0.15rem;
  padding: 0.9rem 1rem; border-radius: 0.8rem; color: white; background: rgba(22, 36, 31, 0.82);
  box-shadow: 0 16px 36px rgba(22, 36, 31, 0.26); backdrop-filter: blur(12px);
}
.photo-badge strong { font-size: 1rem; }
.photo-badge span { color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; }

.photo-frame img { width: 100%; border-radius: var(--radius-sm); object-fit: cover; aspect-ratio: 5 / 5.35; object-position: 50% 36%; }

.page-intro { margin-bottom: 2rem; padding: clamp(2rem, 5vw, 4rem) 1rem 0; max-width: var(--max); margin-left: auto; margin-right: auto; }

/* Services */
.service-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.service-card { overflow: hidden; padding: 0; border-radius: var(--radius); background: white; box-shadow: 0 20px 44px var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; transition: transform 0.2s ease; }
.service-card img.portrait-photo { object-position: center 20%; }
.service-card:hover img { transform: scale(1.03); }
.service-card-body { padding: 1.25rem; }
.service-card-body h2 { margin-bottom: 0.65rem; font-size: 1.3rem; }
.service-card-body p { line-height: 1.6; margin: 0; color: rgba(22, 36, 31, 0.78); }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.65rem; max-width: var(--max); margin: -0.6rem auto 1.5rem; padding: 0 1rem; }
.filter-button {
  min-height: 2.7rem; padding: 0.65rem 0.9rem; border: 1px solid rgba(33, 75, 57, 0.14); border-radius: 0.65rem;
  color: var(--ink); background: rgba(255, 255, 255, 0.68); box-shadow: 0 12px 28px rgba(22, 36, 31, 0.08);
  font: inherit; font-weight: 800; cursor: pointer;
}
.filter-button:hover, .filter-button.active { color: white; background: var(--forest); border-color: var(--forest); }
.comparison-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
.comparison-meta span {
  padding: 0.38rem 0.5rem; border-radius: 0.45rem; color: rgba(22, 36, 31, 0.74);
  background: rgba(220, 227, 221, 0.72); font-size: 0.76rem; font-weight: 800;
}
.gallery-item[hidden] { display: none; }
.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.before-after-card {
  display: grid; gap: 0; width: 100%; padding: 0; overflow: hidden; border: 0;
  border-radius: var(--radius-sm); box-shadow: 0 18px 45px var(--shadow); color: inherit;
  background: white; cursor: pointer; text-align: left;
}
.comparison-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-half { position: relative; display: block; min-width: 0; overflow: hidden; }
.comparison-half img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.2s ease; }
.comparison-half span {
  position: absolute; bottom: 0.75rem; padding: 0.35rem 0.55rem; border-radius: 999px;
  color: white; background: rgba(22, 49, 39, 0.82); font-size: 0.78rem; font-weight: 700;
}
.comparison-half:first-child span { left: 0.75rem; }
.comparison-half:last-child span { right: 0.75rem; }
.comparison-copy { display: grid; gap: 0.45rem; padding: 1rem; }
.comparison-kicker { color: var(--copper); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.comparison-title { display: block; font-size: 1.05rem; line-height: 1.25; font-weight: 800; }
.before-after-card:hover img { transform: scale(1.03); }
.before-after-card:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }

#lightbox {
  display: none; position: fixed; inset: 0; z-index: 20; align-items: center; justify-content: center;
  padding: 2.5rem 5.5rem;
  background: radial-gradient(circle at 18% 12%, rgba(167, 196, 171, 0.22), transparent 30%), rgba(12, 26, 20, 0.88);
  backdrop-filter: blur(10px);
}
#lightbox.show { display: flex; }
.lightbox-comparison {
  width: min(94vw, 1160px); max-height: 86vh; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 22px;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}
.lightbox-header {
  display: grid; gap: 0.25rem; padding: 1.15rem 1.35rem 1rem; border-bottom: 1px solid rgba(36, 71, 54, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 229, 0.82));
}
.lightbox-kicker { margin: 0; color: var(--copper); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
#lightbox-title { margin: 0; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.1; }
.lightbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; padding: 0.85rem; background: rgba(229, 215, 192, 0.36); }
.lightbox-grid figure {
  position: relative; display: grid; align-content: start; min-width: 0; margin: 0; overflow: hidden;
  border: 1px solid rgba(36, 71, 54, 0.12); border-radius: 16px; background: #101f19; box-shadow: 0 16px 38px rgba(22, 49, 39, 0.18);
}
.lightbox-grid figcaption {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1; padding: 0.35rem 0.55rem; border-radius: 999px;
  color: white; background: rgba(22, 49, 39, 0.82); font-size: 0.78rem; font-weight: 800;
}
.lightbox-grid img { display: block; width: 100%; height: min(64vh, 620px); object-fit: cover; }
.lightbox-control {
  display: inline-grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  color: white; background: rgba(255, 255, 255, 0.12); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px); cursor: pointer;
}
.lightbox-control:hover { background: rgba(255, 255, 255, 0.2); }
#close, .arrow { position: absolute; }
#close { top: 1.35rem; right: 1.35rem; width: 2.75rem; height: 2.75rem; padding: 0; font-size: 2rem; line-height: 1; border: 0; }
.arrow { top: 50%; width: 3.25rem; height: 3.25rem; padding: 0; font-size: 2rem; transform: translateY(-50%); }
.arrow.left { left: 1.5rem; }
.arrow.right { right: 1.5rem; }

@media (max-width: 760px) {
  #lightbox { align-items: flex-start; padding: 5rem 1rem 1rem; overflow: auto; }
  .lightbox-comparison { max-height: none; overflow: visible; }
  .lightbox-grid { grid-template-columns: 1fr; }
  .lightbox-grid img { height: min(44vh, 420px); }
}

/* Footer */
.site-footer { padding: clamp(1.5rem, 3vw, 2.5rem); background: #d8cab1; border-top: 1px solid rgba(36, 71, 54, 0.1); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: var(--max); margin: 0 auto; }

@media (max-width: 920px) {
  .hero-grid, .split-section, .feature-strip, .service-grid, .gallery-grid, .footer-grid, .banner {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal — elements fade/pop into view as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
