:root {
  --bg: #f5f3ed;
  --surface: #ffffff;
  --surface-muted: #ebe7dc;
  --ink: #141713;
  --muted: #5d6259;
  --line: #d8d1c2;
  --pine: #1f4d35;
  --pine-dark: #102719;
  --gold: #c8912c;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(16, 39, 25, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(16, 39, 25, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a,
.nav-call {
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
  color: var(--white);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
}

.nav-call:hover {
  background: var(--white);
  color: var(--pine-dark);
  border-color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: end;
  isolation: isolate;
  background: var(--pine-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 18, 12, 0.82), rgba(10, 18, 12, 0.28)),
    linear-gradient(0deg, rgba(10, 18, 12, 0.72), rgba(10, 18, 12, 0.04) 55%);
}

.hero__content {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(44px, 10vh, 92px) clamp(18px, 7vw, 84px);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 11vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

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

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.button--primary {
  background: var(--gold);
  color: #171204;
}

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

.button--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button--secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.button--wide {
  width: 100%;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.service-strip {
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 190px;
  padding: 24px;
  background: var(--surface);
}

.service-grid h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.service-grid p,
.copy-block p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.about-section,
.contact-section {
  background: var(--bg);
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.copy-block p {
  font-size: 1.12rem;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.gallery-section {
  background: var(--surface-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.social-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 56px 20px;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}

.social-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/public/images/social-banner.jpg") center / cover no-repeat;
}

.social-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 39, 25, 0.66);
}

.social-band h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  font-weight: 900;
}

.social-links a:hover {
  background: var(--white);
  color: var(--pine-dark);
  border-color: var(--white);
}

.contact-copy {
  position: sticky;
  top: 112px;
}

address {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-style: normal;
}

address strong {
  color: var(--ink);
}

address a {
  width: fit-content;
  color: var(--pine);
  font-weight: 900;
}

.contact-panel,
.lead-form {
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.contact-panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

.form-row {
  margin-bottom: 18px;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #363b34;
  font-size: 0.82rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(200, 145, 44, 0.26);
  border-color: var(--gold);
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status[data-state="success"] {
  color: var(--pine);
}

.form-status[data-state="error"] {
  color: #9f2f1f;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 9, 0.72);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.modal__panel h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1;
}

.modal__panel > p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal .lead-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  padding: 34px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--pine-dark);
  text-align: center;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 6px 0;
}

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

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 720px;
  }

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

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

  .contact-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    gap: 10px;
  }

  .brand span {
    max-width: 150px;
    white-space: normal;
    line-height: 1.05;
  }

  .nav-call {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .main-nav {
    gap: 18px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero__content {
    width: calc(100% - 32px);
    margin: 0 16px 40px;
  }

  .hero h1 {
    font-size: clamp(3rem, 19vw, 5rem);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .gallery-grid,
  .form-row--split {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: 150px;
  }
}
