:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-rgb: 5, 5, 5;
  --panel: rgba(18, 18, 20, 0.86);
  --panel-solid: #111214;
  --ink: #f7f7f4;
  --muted: #c8c8c2;
  --line: rgba(255, 255, 255, 0.14);
  --field-bg: rgba(255, 255, 255, 0.08);
  --ghost-bg: rgba(255, 255, 255, 0.07);
  --stat-bg: rgba(0, 0, 0, 0.42);
  --section-alt: #0a0a0b;
  --hero-wash-one: rgba(5, 5, 5, 0.94);
  --hero-wash-two: rgba(5, 5, 5, 0.7);
  --hero-wash-three: rgba(5, 5, 5, 0.56);
  --hero-wash-bottom: #050505;
  --yellow: #ffc107;
  --yellow-strong: #f0a900;
  --red: #e03a2f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Anton", Impact, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5ee;
  --bg-rgb: 247, 245, 238;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --ink: #171717;
  --muted: #56524a;
  --line: rgba(19, 18, 16, 0.15);
  --field-bg: rgba(255, 255, 255, 0.82);
  --ghost-bg: rgba(255, 255, 255, 0.64);
  --stat-bg: rgba(255, 255, 255, 0.72);
  --section-alt: #111214;
  --hero-wash-one: rgba(247, 245, 238, 0.93);
  --hero-wash-two: rgba(247, 245, 238, 0.78);
  --hero-wash-three: rgba(247, 245, 238, 0.42);
  --hero-wash-bottom: #f7f5ee;
  --shadow: 0 24px 70px rgba(33, 31, 26, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 100;
  background: var(--yellow);
  color: #050505;
  padding: 0.7rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  left: 1rem;
}

.wrap {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(var(--bg-rgb), 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: min(260px, 48vw);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.15rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.theme-toggle {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-color: var(--line);
  color: var(--ink);
  background: var(--ghost-bg);
  box-shadow: none;
}

.theme-toggle:hover {
  text-decoration: none;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: inline-block;
}

.header-cta,
.btn-primary {
  background: var(--yellow);
  color: #050505;
  box-shadow: 0 12px 28px rgba(255, 193, 7, 0.18);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--ghost-bg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 8vw, 6rem) 0 4rem;
}

.hero-media,
.hero-wash,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 18s infinite;
}

.hero-slide--one {
  background-image: url("/media/gallery/dtz-yard-stacks.webp");
}

.hero-slide--two {
  background-image: url("/media/gallery/dtz-yard-rows.webp");
  animation-delay: 6s;
}

.hero-slide--three {
  background-image: url("/media/gallery/dtz-blue-tread.webp");
  animation-delay: 12s;
}

@keyframes hero-fade {
  0%, 29% { opacity: 1; transform: scale(1); }
  34%, 95% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-wash {
  z-index: -2;
  background:
    linear-gradient(90deg, var(--hero-wash-one) 0%, var(--hero-wash-two) 40%, var(--hero-wash-three) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.2) 0%, var(--hero-wash-bottom) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -8vw;
  height: 34vh;
  z-index: -1;
  background:
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 193, 7, 0.22) 18px 42px),
    var(--bg);
  transform: skewY(-4deg);
}

.hero-grid,
.split,
.visit-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.6rem, 10vw, 7.6rem);
  max-width: 9ch;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.lead {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions,
.visit-actions,
.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-stats span {
  min-height: 90px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--stat-bg);
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
}

.search-panel {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-panel h2 {
  font-size: 2.1rem;
}

label,
label span {
  display: block;
}

label span {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
  padding: 0.78rem 0.85rem;
}

textarea:focus,
input:focus {
  outline: 2px solid rgba(255, 193, 7, 0.35);
  border-color: var(--yellow);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem;
  gap: 0.75rem;
  margin: 0.8rem 0 1rem;
}

.search-status {
  min-height: 1.35rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-status[data-kind="error"] {
  color: #ff8a80;
}

.search-status[data-kind="ok"] {
  color: #86efac;
}

.search-results {
  margin-top: 1rem;
}

.search-answer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.search-answer p,
.search-result-card p {
  color: var(--muted);
}

.search-question {
  color: var(--yellow) !important;
}

.search-result-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.search-result-card {
  padding: 0.85rem;
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.08);
}

.search-result-card strong,
.search-result-card span {
  display: block;
}

.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head p,
.split p,
.visit-grid p {
  color: var(--muted);
}

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

.gallery-grid figure,
.visit-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.8rem;
  color: var(--muted);
  font-weight: 800;
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.12), transparent 38%),
    var(--section-alt);
  border-block: 1px solid var(--line);
}

.section-dark,
.section-dark .eyebrow,
.section-dark h2,
.section-dark h3 {
  color: #f7f7f4;
}

.section-dark p {
  color: #d7d7cf;
}

.split {
  grid-template-columns: 0.9fr 1.1fr;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.step-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.step-grid [data-lucide] {
  color: var(--yellow);
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

.visit-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
}

.visit-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--ink);
}

[data-lucide] {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.2;
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .split,
  .visit-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .step-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 11ch;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.2rem, 1160px);
  }

  .brand img {
    width: min(220px, 70vw);
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.7rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide {
    animation: none;
  }

  .hero-slide--one {
    opacity: 1;
  }
}
