:root {
  --ink: #171717;
  --paper: #f8f7f2;
  --panel: #ffffff;
  --muted: #65615a;
  --line: #ddd8cd;
  --gold: #f4b23f;
  --green: #2f7d57;
  --red: #c44735;
  --shadow: 0 24px 70px rgba(23, 23, 23, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.2;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.84), rgba(18, 18, 18, 0.34));
  backdrop-filter: blur(12px);
}

.brand,
.header-cta,
.primary-action,
.secondary-action,
.proof-row span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand {
  justify-self: start;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold);
}

.brand-photo {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  object-fit: cover;
  background: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 700;
}

.header-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 88svh;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.72) 44%, rgba(15, 15, 15, 0.24) 100%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.18), rgba(15, 15, 15, 0.7)),
    url("https://images.pexels.com/photos/8488061/pexels-photo-8488061.jpeg?auto=compress&cs=tinysrgb&w=1800") center / cover;
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 440px);
  align-items: center;
  gap: clamp(30px, 6vw, 82px);
  width: min(1180px, calc(100% - 36px));
  min-height: 88svh;
  margin: 0 auto;
  padding: 104px 0 44px;
}

.hero-inner > * {
  min-width: 0;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffe0a5;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.primary-action,
.secondary-action,
.submit-button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary-action {
  color: var(--ink);
  background: var(--gold);
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-row span {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-card {
  width: 100%;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.lead-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(47, 125, 87, 0.13);
}

.lead-card h2 {
  margin-bottom: 2px;
  font-size: 1.35rem;
}

.lead-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

form {
  display: grid;
  gap: 10px;
}

label {
  color: #312f2b;
  font-size: 0.84rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.96rem;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 87, 0.14);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-field {
  grid-column: 1 / -1;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.challenge-label span {
  color: var(--green);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 6px;
  color: #fff;
  background: var(--green);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

.service-band,
.gallery-section,
.areas-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 88px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p,
.areas-copy p {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2,
.areas-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-grid svg {
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--green);
}

.service-grid h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.gallery-heading {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.carousel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.carousel-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.comparison-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(430px, 48%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 2px 16px;
  scrollbar-width: thin;
}

.comparison-card {
  scroll-snap-align: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.comparison-card figure {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ece8dd;
}

.comparison-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 23, 23, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
}

.comparison-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.comparison-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.areas-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) 1.35fr;
  gap: 30px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.areas-copy span {
  display: block;
  max-width: 390px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.site-footer a {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.admin-page {
  background: #f4f1e9;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-top h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.admin-button.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #403d37;
  background: #fbfaf6;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table td {
  color: var(--muted);
  line-height: 1.45;
}

.admin-table td strong,
.admin-table a {
  color: var(--ink);
}

.admin-empty {
  padding: 18px;
  color: var(--muted);
}

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

  .nav-links {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 96px;
  }

  .hero-copy {
    max-width: 760px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 5.4rem);
  }

  .lead-card {
    max-width: 620px;
  }

  .section-heading,
  .areas-section {
    grid-template-columns: 1fr;
  }

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

  .gallery-heading,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .carousel-actions {
    justify-self: start;
  }

  .comparison-track {
    grid-auto-columns: minmax(330px, 78%);
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand span:last-child {
    max-width: 118px;
    line-height: 1.05;
  }

  .header-cta {
    justify-content: center;
    width: 42px;
    padding: 0;
  }

  .header-cta span {
    display: none;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding-top: 84px;
    padding-bottom: 32px;
  }

  .eyebrow {
    font-size: 0.74rem;
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
    line-height: 1.02;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-copy,
  h1 {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero-text,
  .primary-action,
  .secondary-action,
  .proof-row span,
  .lead-card {
    max-width: calc(100vw - 28px);
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .proof-row span {
    width: 100%;
  }

  .lead-card {
    padding: 18px;
  }

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

  .comparison-track {
    grid-auto-columns: minmax(280px, 88%);
  }

  .service-grid article {
    min-height: auto;
  }

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

  .footer-links,
  .admin-actions {
    justify-content: flex-start;
  }
}
