:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --text: #142028;
  --muted: #53646d;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(35, 55, 66, 0.18);
  --accent: #19736c;
  --accent-strong: #0f5550;
  --warm: #b45f3d;
  --focus: #1769d1;
  --shadow: 0 22px 70px rgba(19, 34, 42, 0.18);
  --hero-overlay: linear-gradient(90deg, rgba(245, 247, 244, 0.94), rgba(245, 247, 244, 0.72) 48%, rgba(245, 247, 244, 0.2));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1518;
  --text: #eff5f2;
  --muted: #b6c3c7;
  --panel: rgba(13, 22, 26, 0.76);
  --panel-strong: rgba(15, 24, 28, 0.9);
  --border: rgba(219, 232, 229, 0.18);
  --accent: #76cabc;
  --accent-strong: #9ee0d2;
  --warm: #e59669;
  --focus: #8ab4ff;
  --shadow: 0 24px 78px rgba(0, 0, 0, 0.34);
  --hero-overlay: linear-gradient(90deg, rgba(10, 16, 20, 0.94), rgba(10, 16, 20, 0.76) 50%, rgba(10, 16, 20, 0.18));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0e1518;
    --text: #eff5f2;
    --muted: #b6c3c7;
    --panel: rgba(13, 22, 26, 0.76);
    --panel-strong: rgba(15, 24, 28, 0.9);
    --border: rgba(219, 232, 229, 0.18);
    --accent: #76cabc;
    --accent-strong: #9ee0d2;
    --warm: #e59669;
    --focus: #8ab4ff;
    --shadow: 0 24px 78px rgba(0, 0, 0, 0.34);
    --hero-overlay: linear-gradient(90deg, rgba(10, 16, 20, 0.94), rgba(10, 16, 20, 0.76) 50%, rgba(10, 16, 20, 0.18));
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("/assets/lake-ontario-hero.jpg") center / cover no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--hero-overlay);
}

a {
  color: inherit;
}

a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.topbar,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  font-weight: 850;
  box-shadow: var(--shadow);
}

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.theme-control {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 0 10px;
}

main {
  padding: 24px 0 38px;
}

.hero {
  display: grid;
  align-items: center;
  min-height: min(640px, calc(100vh - 190px));
  padding: 48px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 10vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.92;
}

.lead {
  max-width: 650px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.03rem, 3vw, 1.24rem);
  line-height: 1.55;
}

.status-strip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin-top: 28px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.status-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warm) 20%, transparent);
}

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

.service-preview article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.preview-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

h2 {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.service-preview p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

footer {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

@supports not (backdrop-filter: blur(16px)) {
  .status-strip,
  .service-preview article {
    background: var(--panel-strong);
  }
}

@media (max-width: 760px) {
  body::before {
    background-position: 58% center;
  }

  body::after {
    background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 86%, transparent) 58%, color-mix(in srgb, var(--bg) 72%, transparent));
  }

  .topbar {
    align-items: flex-start;
  }

  .theme-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  main {
    padding-top: 20px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 78px;
  }

  .status-strip {
    width: 100%;
  }

  .service-preview {
    grid-template-columns: 1fr;
    margin-top: -34px;
  }

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

  .preview-icon {
    margin-bottom: 24px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }
}
