:root {
  --site-width: 1180px;
  --forest-950: #1f3a2e;
  --forest-900: #1f3a2e;
  --forest-800: #1f3a2e;
  --forest-700: #2d5240;
  --forest-600: #486b59;
  --sage: #8d9a84;
  --moss: #e5e5e0;
  --cream: #f4f4f1;
  --paper: #f4f4f1;
  --white: #ffffff;
  --ink: #111812;
  --muted: #5f675c;
  --line: #e5e5e0;
  --brass: #b85729;
  --brass-dark: #94431e;
  --graphite: #1f3a2e;
  --shadow: 0 18px 44px rgba(31, 58, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: none;
}

.container {
  width: min(var(--site-width), calc(100% - 40px));
  margin-inline: auto;
}

a {
  color: inherit;
}

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

.topbar {
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 1.35rem;
  padding-block: 0.38rem;
}

.topbar a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 241, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--forest-800);
  color: var(--cream);
  font-weight: 900;
  font-size: 0.95rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--forest-900);
  font-size: 1.06rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 1.4rem;
  color: #34443a;
  font-size: 0.94rem;
}

.main-nav a,
.footer-links a {
  text-decoration: none;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--forest-700);
}

.header-call {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 1.05rem;
  border-radius: 6px;
  background: var(--forest-800);
  color: var(--cream);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(20, 55, 40, 0.18);
}

.hero {
  padding: clamp(1.6rem, 3.8vw, 3.2rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: stretch;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-radius: 8px;
  background: var(--forest-800);
  color: white;
}

.hero-content {
  display: grid;
  align-content: center;
  max-width: 850px;
  padding: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 0.75rem;
  font-size: clamp(2.25rem, 3.65vw, 3.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 3.65vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brass);
  color: #17130e;
  box-shadow: none;
}

.button-primary:hover {
  background: #d0934a;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-media {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest-900);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(7, 21, 15, 0.02), rgba(7, 21, 15, 0.34));
  pointer-events: none;
}

.hero-media img,
.hero-media .photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(7, 19, 15, 0.02), rgba(7, 19, 15, 0.42));
  pointer-events: none;
}

.job-photo {
  object-fit: cover;
  z-index: 1;
}

.job-photo.is-missing {
  display: none;
}

.fallback-photo,
.photo-fallback {
  z-index: 0;
  background: var(--forest-800);
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero-media {
    min-height: 360px;
  }

  h1 {
    font-size: clamp(2.2rem, 3.8vw, 3.75rem);
  }
}

.section {
  padding-top: clamp(2.2rem, 4.5vw, 3.6rem);
  padding-bottom: clamp(2.8rem, 5.5vw, 4.5rem);
  color: var(--ink);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.35rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  min-height: 205px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7, 19, 15, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: rgba(29, 74, 54, 0.22);
  box-shadow: 0 20px 45px rgba(7, 19, 15, 0.08);
  transform: translateY(-2px);
}

.service-card::before {
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--brass);
  content: "";
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.work {
  background: var(--paper);
  color: var(--ink);
}

.work-heading {
  max-width: 720px;
}

.work .section-heading p {
  color: var(--muted);
}

.work .eyebrow,
.work h2 {
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 225px;
  gap: 0.85rem;
  margin: 0;
}

.gallery-item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest-800);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img,
.photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  z-index: 1;
  transition: transform 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: var(--paper);
  font-weight: 900;
}

.family {
  padding-top: clamp(2rem, 4vw, 3.2rem);
}

.family-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.family-copy {
  display: grid;
  align-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.family-copy p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.family-photo {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest-800);
}

.family-photo img,
.family-photo .photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.family-photo.is-missing {
  display: none;
}

.family-card.has-missing-photo {
  grid-template-columns: 1fr;
}

.quote-section {
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.quote-panel {
  display: grid;
  grid-template-columns: 0.84fr 1fr;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: 8px;
  border: 0;
  background: var(--forest-900);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.quote-info p {
  color: rgba(255, 252, 244, 0.76);
}

.contact-lines {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.contact-lines a,
.contact-lines span {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 252, 244, 0.18);
  border-radius: 6px;
  background: rgba(255, 252, 244, 0.08);
  text-decoration: none;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--forest-900);
  font-weight: 900;
  font-size: 0.9rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8cc;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 3px solid rgba(31, 90, 66, 0.18);
  border-color: var(--forest-700);
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .button-primary {
  color: white;
}

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

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #607066;
  font-size: 0.92rem;
}

.form-note a {
  color: var(--forest-700);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--site-width), calc(100% - 40px));
  margin-inline: auto;
  padding: 1.25rem 0 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

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

.mobile-cta {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  left: 0.85rem;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 252, 244, 0.22);
  border-radius: 999px;
  background: rgba(15, 43, 32, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.mobile-cta a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest-900);
  font-weight: 900;
  text-decoration: none;
}

.mobile-cta a:first-child {
  background: var(--brass);
  color: #17130e;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

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

@media (max-width: 1060px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 360px;
  }

  .quote-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(var(--site-width), calc(100% - 24px));
  }

  body {
    padding-bottom: 84px;
  }

  .topbar {
    display: none;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .header-call {
    display: none;
  }

  .hero {
    padding-top: 0.75rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-container {
    padding: 1rem;
  }

  .hero-media {
    min-height: 280px;
  }

  .hero-actions .button,
  .quote-form {
    width: 100%;
  }

  .service-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .family-card {
    grid-template-columns: 1fr;
  }

  .family-photo {
    min-height: 260px;
  }

  .site-footer {
    flex-direction: column;
  }

  .mobile-cta {
    display: grid;
  }
}
