:root {
  --container: min(1120px, calc(100vw - 40px));
  --radius: 8px;
  --space: clamp(56px, 8vw, 104px);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --band: #e9edf5;
  --ink: #202735;
  --headline: #0e1728;
  --muted: #596274;
  --accent: #315f9f;
  --accent-ink: #ffffff;
  --line: #dce3ef;
  --line-strong: #b8c4d8;
  --photo-a: #d4ddea;
  --photo-b: #6f8dba;
  --cta: #111d33;
  --cta-ink: #ffffff;
  --footer: #0e1728;
  --footer-ink: #edf3ff;
  --shadow: 0 24px 60px rgba(30, 52, 86, 0.2);
  --soft-shadow: 0 10px 28px rgba(30, 52, 86, 0.09);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
}

.skip-link:focus {
  left: 12px;
  z-index: 10;
  background: var(--panel);
  padding: 10px 14px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand img,
.custom-logo {
  width: auto;
  max-width: 228px;
  max-height: 56px;
  display: block;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

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

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

.primary-nav ul,
.primary-nav .menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.nav-cta,
.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--panel);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(34px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.hero h1,
.section-heading h2,
.split-grid h2,
.cta-grid h2,
.page-content h1 {
  margin: 0;
  color: var(--headline);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
}

.hero p {
  max-width: 680px;
  font-size: 1.08rem;
  color: var(--muted);
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
}

.photo-card,
.image-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 44%),
    linear-gradient(160deg, var(--photo-a), var(--photo-b));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.main-photo {
  position: absolute;
  inset: 0 0 42px 0;
}

.main-photo::before,
.image-panel::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, white);
  background:
    linear-gradient(90deg, transparent 0 18%, color-mix(in srgb, white 28%, transparent) 18% 19%, transparent 19%),
    radial-gradient(circle at 74% 24%, color-mix(in srgb, white 50%, transparent) 0 5%, transparent 6%),
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, black 13%, transparent));
  opacity: 0.64;
}

.main-photo.has-photo::before,
.image-panel.has-photo::before {
  opacity: 0.12;
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: min(300px, calc(100% - 48px));
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note span {
  color: var(--muted);
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--band);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--headline);
  font-size: 1.2rem;
}

.trust-grid span {
  color: var(--muted);
}

.section {
  padding: var(--space) 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.split-grid h2,
.cta-grid h2 {
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  max-width: 900px;
}

.card-grid {
  counter-reset: cards;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.post-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px;
  box-shadow: var(--soft-shadow);
}

.service-card {
  min-height: 300px;
  overflow: hidden;
}

.service-thumb {
  height: 150px;
  margin: -26px -26px 22px;
  background-color: var(--band);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.service-card h3 {
  margin: 26px 0 10px;
  color: var(--headline);
  font-size: 1.42rem;
  line-height: 1.16;
}

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

.service-card a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.card-number::before {
  counter-increment: cards;
  content: "0" counter(cards);
  color: var(--accent);
  font-weight: 900;
}

.split-section {
  background: var(--band);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.image-panel {
  position: relative;
  min-height: 470px;
}

.split-grid p,
.check-list {
  color: var(--muted);
  font-size: 1.02rem;
}

.check-list {
  padding-left: 20px;
}

.location-section {
  background: var(--bg);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.location-copy h2 {
  margin: 0;
  color: var(--headline);
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.05;
}

.location-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.location-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.location-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.location-photo {
  min-height: 470px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.14)),
    url("https://kevinbreiterrmt.ca/wp-content/uploads/2026/09/silver-sands-entry.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.cta-band {
  background: var(--cta);
  color: var(--cta-ink);
}

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

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.site-footer {
  padding: 46px 0;
  background: var(--footer);
  color: var(--footer-ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 10px;
}

.footer-grid p {
  margin-top: 0;
  color: color-mix(in srgb, var(--footer-ink) 78%, transparent);
}

.land-acknowledgement {
  max-width: 46rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--footer-ink) 30%, transparent);
  border-radius: var(--radius);
  color: var(--footer-ink);
  text-decoration: none;
  font-weight: 800;
}

.social-links a:hover,
.social-links a:focus {
  border-color: var(--footer-ink);
  background: color-mix(in srgb, var(--footer-ink) 10%, transparent);
}

.page-content {
  background: var(--bg);
}

.page-content h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.page-content h2 {
  margin: 34px 0 14px;
  color: var(--headline);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.12;
}

.about-profile {
  align-items: flex-start;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 30px;
}

.about-profile-media {
  position: sticky;
  top: 110px;
}

.about-profile .about-headshot {
  margin: 0 0 18px;
}

.about-profile .about-headshot img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-profile-copy h2 {
  margin-top: 0;
}

.about-profile-copy ul {
  display: grid;
  gap: 8px;
  padding-left: 1.15rem;
}

.page-content .wp-block-image {
  margin: 26px 0 30px;
}

.page-content .wp-block-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.page-content p,
.page-content li {
  color: var(--muted);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.page-content td,
.page-content th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.page-content tr:last-child td,
.page-content tr:last-child th {
  border-bottom: 0;
}

.page-content td:last-child,
.page-content th:last-child {
  color: var(--headline);
  font-weight: 800;
}

.page-content .wp-block-buttons,
.page-actions {
  margin-top: 28px;
}

.page-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 800;
}

.page-content form {
  margin: 28px 0;
}

.page-content input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.page-content textarea,
.page-content select,
.wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select,
.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.gform_wrapper textarea,
.gform_wrapper select,
.wpforms-container input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.wpforms-container textarea,
.wpforms-container select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(14, 23, 40, 0.05);
}

.page-content textarea,
.wpcf7 textarea,
.gform_wrapper textarea,
.wpforms-container textarea {
  min-height: 150px;
  resize: vertical;
}

.page-content label,
.wpcf7 label,
.gform_wrapper label,
.wpforms-container label {
  color: var(--headline);
  font-weight: 800;
}

.page-content input:focus,
.page-content textarea:focus,
.page-content select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus,
.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 2px;
}

.page-content input[type="submit"],
.page-content button[type="submit"],
.wpcf7-submit,
.gform_button,
.wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.service-featured-image {
  margin: 28px 0;
}

.service-featured-image img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card h2 {
  margin-top: 0;
}

.post-card a,
.page-content a {
  color: var(--accent);
  font-weight: 800;
}

.archive-description,
.not-found p,
.pagination {
  color: var(--muted);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.search-form label {
  flex: 1 1 240px;
}

.search-field {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.search-submit,
.pagination .page-numbers {
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.search-submit,
.pagination .current {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
}

.service-card {
  border-top: 5px solid var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--headline);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle-icon {
  width: 18px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.menu-toggle:focus-visible,
.primary-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-shell {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .brand { min-width: 0; }
  .brand img { max-width: min(228px, 52vw); }
  .has-menu-toggle .menu-toggle { display: inline-flex; margin-left: auto; }
  .primary-nav {
    order: 4;
    width: 100%;
    padding-block: 8px;
    border-top: 1px solid var(--line);
    max-height: 65vh;
    overflow-y: auto;
  }
  .has-menu-toggle .primary-nav {
    display: none;
  }
  .has-menu-toggle.menu-open .primary-nav { display: block; }
  .primary-nav ul, .primary-nav .menu { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; min-height: 44px; padding: 10px 8px; color: var(--headline); }

  .hero-grid,
  .split-grid,
  .location-grid,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 380px;
  }

  .location-photo {
    min-height: 360px;
  }

  .about-profile-media {
    position: static;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 28px, 1120px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: 2.35rem;
  }
}
