/* =========================================================
   VANCOUVER BUSINESS DIRECTORY
   Responsive design system
   ========================================================= */

/* 01. RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #102a43;
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

a,
button {
  touch-action: manipulation;
}

::selection {
  color: #fff;
  background: #e06c3b;
}

/* 02. DESIGN TOKENS */
:root {
  --navy-950: #071c2c;
  --navy-900: #0b2438;
  --navy-800: #102a43;
  --navy-700: #163b59;
  --navy-600: #24577d;

  --blue: #2c6f9f;
  --blue-light: #eaf3f8;

  --orange: #e06c3b;
  --orange-dark: #c75428;
  --orange-light: #fff1eb;

  --cream: #f7f5f0;
  --cream-dark: #eeece6;
  --white: #fff;

  --text: #243b53;
  --muted: #627d98;
  --muted-light: #829ab1;

  --border: #d9e2ec;
  --border-light: #edf1f5;

  --shadow-sm: 0 4px 14px rgb(16 42 67 / 6%);
  --shadow-md: 0 14px 40px rgb(16 42 67 / 10%);
  --shadow-lg: 0 24px 70px rgb(16 42 67 / 16%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1180px;
  --gutter: 40px;
  --section-space: 105px;

  --transition: 200ms ease;
}

/* 03. GLOBAL LAYOUT */
.container {
  width: min(calc(100% - var(--gutter)), var(--container));
  margin-inline: auto;
}

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

section[id],
main[id] {
  scroll-margin-top: 24px;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* 04. ACCESSIBILITY */
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #fff;
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 05. TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy-800);
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.65rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.large-copy {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.8;
}

.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: 17px;
}

.section-label::before {
  width: 22px;
  height: 2px;
  flex: 0 0 22px;
  content: "";
  background: currentColor;
}

.light-label {
  color: #f5a27f;
}

/* 06. HEADER */
.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #fff;
}

.header-top {
  border-bottom: 1px solid var(--border-light);
}

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

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  color: #fff;
  background: var(--navy-800);
  border-radius: 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--navy-800);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-text span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-tagline {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 18px;
}

.header-link {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-link:hover {
  color: var(--orange);
}

/* NAVIGATION: all horizontal overflow stays inside this region */
.main-nav {
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.nav-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-inner {
  width: min(calc(100% - var(--gutter)), var(--container));
  min-width: max-content;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-inline: auto;
  padding-inline: 2px;
}

.nav-inner > a {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #486581;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-inner > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-inner > a:hover,
.nav-inner > a:focus-visible {
  color: var(--orange);
}

.nav-inner > a:hover::after,
.nav-inner > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-inner .nav-cta {
  color: var(--orange);
}

/* 07. BUTTONS */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

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

.button-small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.77rem;
}

.button-dark {
  color: #fff;
  background: var(--navy-800);
}

.button-dark:hover {
  background: var(--navy-950);
  box-shadow: var(--shadow-sm);
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 25px rgb(224 108 59 / 22%);
}

.button-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 14px 32px rgb(224 108 59 / 30%);
}

.button-outline {
  color: var(--navy-800);
  background: #fff;
  border-color: var(--border);
}

.button-outline:hover {
  border-color: var(--navy-600);
  box-shadow: var(--shadow-sm);
}

.button-light {
  color: var(--navy-800);
  background: #fff;
}

/* 08. HERO */
.hero-directory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--navy-950),
    var(--navy-800) 60%,
    var(--navy-700)
  );
}

.hero-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgb(255 255 255 / 40%) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
}

.hero-content {
  max-width: 900px;
  margin-inline: auto;
  padding-block: 92px 76px;
  text-align: center;
}

.hero-eyebrow {
  justify-content: center;
  color: #f5a27f;
}

.hero h1 {
  margin: 20px auto 24px;
  color: #fff;
}

.hero h1 em,
.final-cta h2 em {
  display: block;
  color: #f6a17f;
  font-style: normal;
}

.hero-description {
  max-width: 680px;
  margin-inline: auto;
  color: rgb(255 255 255 / 78%);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-secondary-link {
  color: rgb(255 255 255 / 85%);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color var(--transition);
}

.hero-secondary-link:hover {
  color: #fff;
}

.hero-bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
  background: rgb(0 0 0 / 10%);
}

.hero-trust {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-item strong {
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.82rem;
}

.trust-item span {
  color: rgb(255 255 255 / 58%);
  font-size: 0.75rem;
}

.trust-divider {
  width: 1px;
  height: 34px;
  background: rgb(255 255 255 / 15%);
}

/* 09. SECTION HEADINGS */
.section-heading {
  margin-bottom: 45px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  max-width: 720px;
}

.section-heading.centered {
  max-width: 720px;
  display: block;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading.centered .section-label {
  justify-content: center;
}

.section-heading.centered .section-label::before {
  display: none;
}

.section-heading.centered p {
  max-width: 610px;
  margin: 18px auto 0;
  color: var(--muted);
}

.view-all,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
}

.view-all {
  flex: 0 0 auto;
}

.view-all:hover,
.text-link:hover {
  color: var(--orange-dark);
}

/* 10. CATEGORY GRID */
.quick-discovery {
  background: var(--cream);
}

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

.category-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgb(224 108 59 / 40%);
  box-shadow: var(--shadow-md);
}

.category-number {
  color: var(--orange);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.category-card-content {
  margin-top: auto;
  padding-right: 24px;
}

.category-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.category-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.card-arrow {
  position: absolute;
  right: 19px;
  bottom: 18px;
  color: var(--orange);
  transition: transform var(--transition);
}

.category-card:hover .card-arrow {
  transform: translate(3px, -3px);
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

/* 11. NEIGHBOURHOODS */
.neighbourhood-section {
  color: #fff;
  background: var(--navy-800);
}

.split-heading h2 {
  color: #fff;
}

.split-heading h2 span {
  display: block;
  color: #f5a27f;
}

.split-heading > div:last-child {
  max-width: 460px;
}

.split-heading p {
  margin-bottom: 18px;
  color: rgb(255 255 255 / 67%);
}

.light-link {
  color: #f5a27f;
}

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

.neighbourhood-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  transition:
    transform 250ms ease,
    background 250ms ease,
    border-color 250ms ease;
}

.neighbourhood-card:hover {
  transform: translateY(-4px);
  background: rgb(255 255 255 / 9%);
  border-color: rgb(245 162 127 / 50%);
}

.neighbourhood-card > span {
  color: #f5a27f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.neighbourhood-card strong {
  margin-top: auto;
  padding-right: 24px;
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.3;
}

.neighbourhood-card small {
  margin-top: 7px;
  padding-right: 15px;
  color: rgb(255 255 255 / 58%);
  font-size: 0.74rem;
}

.neighbourhood-card b {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: #f5a27f;
}

/* 12. BUSINESS CARDS */
.businesses-section {
  background: #fff;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.business-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.business-image {
  position: relative;
  aspect-ratio: 1.55 / 1;
  display: block;
  overflow: hidden;
  background: var(--cream);
}

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

.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  background: linear-gradient(135deg, #eeece6, #f7f5f0);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  color: #fff;
  background: var(--orange);
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.business-content {
  padding: 23px;
}

.business-category {
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.business-content h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.business-content h3 a:hover {
  color: var(--orange);
}

.business-location {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.business-content > p:not(.business-category, .business-location) {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.directory-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.76rem;
}

/* 13. VALUE SECTION */
.value-section {
  background: var(--cream);
}

.value-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 80px;
}

.value-intro h2 span {
  display: block;
  color: var(--orange);
}

.value-intro .large-copy {
  margin-top: 25px;
  color: var(--muted);
}

.value-list {
  border-top: 1px solid var(--border);
}

.value-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

.value-number {
  color: var(--orange);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
}

.value-item h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.value-item p {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

/* 14. GUIDES */
.guides-section {
  background: #fff;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.guide-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  gap: 17px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.guide-number {
  color: var(--orange);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.guide-type {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.guide-card h3 {
  margin-block: 13px 12px;
  font-size: 1.12rem;
}

.guide-card p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.75;
}

.guide-card a {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-card a:hover {
  color: var(--orange-dark);
}

/* 15. BUSINESS OWNER CTA */
.owner-cta {
  padding-block: 82px;
  color: #fff;
  background: linear-gradient(110deg, var(--navy-950), var(--navy-800));
}

.owner-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
}

.owner-cta h2 {
  max-width: 700px;
  color: #fff;
}

.owner-cta h2 span {
  display: block;
  color: #f5a27f;
}

.owner-cta p {
  max-width: 630px;
  margin-top: 19px;
  color: rgb(255 255 255 / 67%);
}

.owner-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}

/* 16. FAQ */
.faq-section {
  background: var(--cream);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 75px;
}

.faq-intro h2 {
  margin-bottom: 20px;
}

.faq-intro > p {
  margin-bottom: 20px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 19px;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

.faq-list summary span {
  min-width: 0;
}

.faq-list summary b {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 400;
  transition: transform var(--transition);
}

.faq-list details[open] summary b {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 700px;
  padding: 0 35px 22px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

/* 17. FINAL CTA */
.final-cta {
  padding-block: 110px;
  background: #fff;
  text-align: center;
}

.final-cta-inner {
  max-width: 820px;
  margin-inline: auto;
}

.final-cta .section-label {
  justify-content: center;
}

.final-cta .section-label::before {
  display: none;
}

.final-cta h2 {
  margin-bottom: 20px;
}

.final-cta h2 em {
  color: var(--orange);
}

.final-cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 0.98rem;
}

.final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

/* 18. FOOTER */
.site-footer {
  padding: 68px 0 24px;
  color: rgb(255 255 255 / 65%);
  background: var(--navy-950);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 42px;
  padding-bottom: 54px;
}

.footer-logo .brand-mark {
  color: var(--navy-950);
  background: #fff;
}

.footer-logo .brand-text strong {
  color: #fff;
}

.footer-logo .brand-text span {
  color: rgb(255 255 255 / 55%);
}

.footer-brand > p {
  max-width: 340px;
  margin-block: 20px 14px;
  color: rgb(255 255 255 / 52%);
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer-contact {
  color: #f5a27f;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.footer-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.footer-column a {
  color: rgb(255 255 255 / 58%);
  font-size: 0.77rem;
  transition: color var(--transition);
}

.footer-column a:hover,
.footer-contact:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 45%);
  font-size: 0.7rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a:hover {
  color: #fff;
}

/* =========================================================
   19. TABLET: 851–1050px
   ========================================================= */
@media (max-width: 1050px) {
  :root {
    --gutter: 36px;
    --section-space: 82px;
  }

  .header-inner {
    gap: 18px;
  }

  .header-tagline {
    display: none;
  }

  /* Navigation can scroll within its own viewport. */
  .nav-inner {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    gap: 25px;
    padding-inline: 18px;
  }

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

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

  .business-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .value-grid {
    gap: 50px;
  }

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

  .guide-card:last-child {
    grid-column: 1 / -1;
  }

  .faq-grid {
    gap: 45px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   20. TABLET & LARGE MOBILE: up to 850px
   ========================================================= */
@media (max-width: 850px) {
  :root {
    --gutter: 32px;
    --section-space: 76px;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .nav-inner {
    min-height: 54px;
    gap: 23px;
  }

  .nav-inner > a {
    min-height: 54px;
    font-size: 0.81rem;
  }

  .hero-content {
    padding-block: 76px 60px;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 23px;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    text-align: center;
  }

  .section-heading {
    display: block;
  }

  .section-heading .view-all {
    margin-top: 17px;
  }

  .split-heading > div:last-child {
    max-width: 600px;
    margin-top: 24px;
  }

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

  .value-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .owner-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .owner-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card:last-child {
    grid-column: auto;
  }
}

/* =========================================================
   21. MOBILE: up to 620px
   ========================================================= */
@media (max-width: 620px) {
  :root {
    --gutter: 28px;
    --section-space: 66px;
  }

  .header-inner {
    width: calc(100% - 28px);
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
  }

  .brand {
    flex: 1 1 auto;
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 9px;
    font-size: 1.05rem;
  }

  .brand-text strong {
    max-width: 100%;
    font-size: clamp(0.76rem, 3.35vw, 0.9rem);
    letter-spacing: -0.025em;
    white-space: normal;
    line-height: 1.08;
  }

  .brand-text span {
    margin-top: 3px;
    font-size: 0.55rem;
    letter-spacing: 0.035em;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 0;
  }

  .header-actions .header-link {
    display: none;
  }

  .header-actions .button {
    min-height: 37px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 0.67rem;
    line-height: 1.2;
  }

  /*
    Padding belongs to the scrolling viewport.
    Navigation items retain their natural width.
  */
  .nav-scroll {
    width: 100%;
    padding-inline: 14px;
  }

  .nav-inner {
    width: max-content;
    min-width: 0;
    min-height: 52px;
    justify-content: flex-start;
    gap: 23px;
    margin: 0;
    padding-inline: 3px 8px;
  }

  .nav-inner > a {
    min-height: 52px;
    font-size: 0.78rem;
  }

  .nav-inner .nav-cta {
    margin-left: 0;
  }

  h1 {
    font-size: clamp(2.4rem, 9vw, 3.1rem);
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: clamp(1.95rem, 7vw, 2.45rem);
  }

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

  .section-label,
  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  .hero-content {
    padding-block: 60px 48px;
  }

  .hero h1 {
    margin-block: 16px 19px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
    gap: 19px;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-secondary-link {
    text-align: center;
  }

  .hero-trust {
    padding-block: 22px;
    gap: 16px;
  }

  .category-grid,
  .neighbourhood-grid,
  .business-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-card {
    min-height: 158px;
    padding: 23px;
  }

  .neighbourhood-card {
    min-height: 155px;
    padding: 21px;
  }

  .business-card:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .business-content {
    padding: 21px;
  }

  .value-grid {
    gap: 35px;
  }

  .value-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding-block: 22px;
  }

  .guide-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;
    padding: 22px;
  }

  .owner-cta {
    padding-block: 62px;
  }

  .owner-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-grid {
    gap: 34px;
  }

  .faq-list summary {
    min-height: 66px;
    gap: 14px;
    font-size: 0.88rem;
  }

  .faq-list details p {
    padding-right: 8px;
    font-size: 0.82rem;
  }

  .final-cta {
    padding-block: 76px;
  }

  .final-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .final-actions .button {
    width: 100%;
  }

  .final-actions .text-link {
    justify-content: center;
    padding-block: 8px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    line-height: 1.7;
  }

  .footer-legal {
    gap: 12px 17px;
  }
}

/* =========================================================
   22. SMALL PHONES: up to 380px
   ========================================================= */
@media (max-width: 380px) {
  :root {
    --gutter: 24px;
    --section-space: 58px;
  }

  .header-inner {
    width: calc(100% - 22px);
    gap: 7px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 0.95rem;
  }

  .brand-text strong {
    font-size: 0.75rem;
  }

  .brand-text span {
    font-size: 0.49rem;
  }

  .header-actions .button {
    min-height: 34px;
    padding-inline: 7px;
    font-size: 0.62rem;
  }

  .nav-scroll {
    padding-inline: 11px;
  }

  .nav-inner {
    gap: 19px;
  }

  .nav-inner > a {
    font-size: 0.74rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .footer-top {
    column-gap: 15px;
  }
}
