/* =========================================================
   TORONTO BUSINESS DIRECTORY
   BUSINESS PROFILE DESIGN SYSTEM
   CSS PART 1 OF 6
   Foundation, design tokens and shared utilities
========================================================= */

/* 1. DESIGN TOKENS
   Centralized values for consistent branding.
========================================================= */

:root {
  color-scheme: light;

  --bp-navy: #102c3a;
  --bp-navy-deep: #0b2438;
  --bp-gold: #94703b;
  --bp-gold-dark: #805e2e;
  --bp-gold-light: #f6f0e5;

  --bp-page-bg: #f8f7f3;
  --bp-surface: #ffffff;
  --bp-border: #e7e5df;
  --bp-border-strong: #d4bd95;

  --bp-text: #263944;
  --bp-text-muted: #58656e;
  --bp-text-soft: #737d83;

  --bp-font-body: "DM Sans", sans-serif;
  --bp-font-heading: "Manrope", sans-serif;

  --bp-container-width: 1200px;
  --bp-container-gutter: 24px;

  --bp-radius-sm: 8px;
  --bp-radius-md: 12px;
  --bp-radius-lg: 16px;

  --bp-shadow-sm: 0 4px 16px rgba(11, 36, 56, 0.045);

  --bp-shadow-md: 0 8px 28px rgba(11, 36, 56, 0.07);

  --bp-transition: 180ms ease;

  --bp-section-space: 80px;
}

/* 2. RESET AND BOX SIZING
========================================================= */

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

.bp-page {
  min-width: 0;
  margin: 0;
  background: var(--bp-surface);
  color: var(--bp-text);
  font-family: var(--bp-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.bp-page button,
.bp-page input,
.bp-page select,
.bp-page textarea {
  font: inherit;
}

.bp-page a {
  color: inherit;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4,
.bp-page p,
.bp-page figure,
.bp-page dl,
.bp-page dd {
  margin-top: 0;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4 {
  font-family: var(--bp-font-heading);
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4 {
  color: var(--bp-navy-deep);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bp-page p {
  overflow-wrap: break-word;
}

.bp-page section,
.bp-page article,
.bp-page aside,
.bp-page main,
.bp-page header,
.bp-page footer,
.bp-page nav,
.bp-page div {
  min-width: 0;
}

/* Prevent embedded media and long content from
   forcing the page wider than the viewport. */

.bp-page {
  overflow-wrap: break-word;
}

.bp-page pre,
.bp-page table {
  max-width: 100%;
}

/* 3. ACCESSIBILITY
========================================================= */

.bp-page .bp-skip-link {
  position: absolute;
  z-index: 10000;
  top: 12px;
  left: 12px;

  padding: 12px 16px;
  border-radius: var(--bp-radius-sm);

  background: var(--bp-surface);
  color: var(--bp-navy-deep);

  font-weight: 700;
  text-decoration: none;

  transform: translateY(-160%);
}

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

.bp-page a:focus-visible,
.bp-page button:focus-visible,
.bp-page summary:focus-visible {
  outline: 3px solid #c69d5b;
  outline-offset: 4px;
}

.bp-page a {
  overflow-wrap: anywhere;
}

/* 4. SHARED CONTAINER
========================================================= */

.bp-page .bp-container {
  width: 100%;
  max-width: var(--bp-container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--bp-container-gutter);
  padding-left: var(--bp-container-gutter);
}

/* 5. SHARED SECTION SPACING
========================================================= */

.bp-page .bp-section {
  position: relative;
  padding-top: var(--bp-section-space);
  padding-bottom: var(--bp-section-space);
}

/* 6. EYEBROWS AND SECTION HEADINGS
========================================================= */

.bp-page .bp-eyebrow {
  margin: 0 0 16px;
  color: var(--bp-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.bp-page .bp-eyebrow-dark {
  color: var(--bp-gold-dark);
}

.bp-page .bp-section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.bp-page .bp-section-heading h2 {
  margin: 0 0 18px;
  color: var(--bp-navy-deep);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.bp-page .bp-section-heading > p:not(.bp-eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: var(--bp-text-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Split heading for sections with a side link. */

.bp-page .bp-section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
  text-align: left;
}

.bp-page .bp-section-heading-split > div {
  flex: 1;
  min-width: 0;
}

.bp-page .bp-section-heading-split > div > p:not(.bp-eyebrow) {
  margin-right: 0;
  margin-left: 0;
}

/* 7. SHARED TEXT LINKS
========================================================= */

.bp-page .bp-text-link {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;

  max-width: 100%;
  color: var(--bp-gold-dark);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.bp-page .bp-text-link:hover {
  color: var(--bp-navy-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bp-page .bp-text-link span {
  display: inline-block;
  transition: transform var(--bp-transition);
}

.bp-page .bp-text-link:hover span {
  transform: translate(2px, -2px);
}

/* 8. RESPONSIVE FOUNDATION
========================================================= */

@media (max-width: 900px) {
  :root {
    --bp-container-gutter: 24px;
    --bp-section-space: 64px;
  }
}

@media (max-width: 600px) {
  :root {
    --bp-container-gutter: 20px;
    --bp-section-space: 48px;
  }

  .bp-page {
    font-size: 15px;
  }

  .bp-page .bp-section-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .bp-page .bp-section-heading h2 {
    font-size: clamp(27px, 7vw, 32px);
    line-height: 1.22;
  }

  .bp-page .bp-section-heading > p:not(.bp-eyebrow) {
    margin-right: 0;
    margin-left: 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .bp-page .bp-section-heading-split {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

/* 9. REDUCED MOTION
   Component-specific motion is added in later parts.
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .bp-page *,
  .bp-page *::before,
  .bp-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* END CSS PART 1 OF 6
   NEXT: HEADER, NAVIGATION AND BUTTONS
========================================================= */

/* =========================================================
   TORONTO BUSINESS DIRECTORY
   CSS PART 2 OF 6
   Header, navigation, branding and buttons
========================================================= */

/* 1. SITE HEADER
========================================================= */

.bp-page .bp-header {
  position: relative;
  z-index: 100;

  width: 100%;
  background: var(--bp-surface);
  border-bottom: 1px solid var(--bp-border);
}

.bp-page .bp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  width: 100%;
  max-width: 1440px;
  min-height: 84px;

  margin: 0 auto;
  padding: 16px 32px;
}

/* 2. BRAND
========================================================= */

.bp-page .bp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  flex: 0 0 auto;
  min-width: 0;

  color: var(--bp-navy-deep);
  text-decoration: none;
}

.bp-page .bp-brand-mark {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  border-radius: 12px;
  background: var(--bp-navy);
  color: #fff;

  font-family: var(--bp-font-heading);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.bp-page .bp-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;

  min-width: 0;
  line-height: 1.3;
}

.bp-page .bp-brand-copy strong {
  color: var(--bp-navy-deep);
  font-family: var(--bp-font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.bp-page .bp-brand-copy > span {
  color: var(--bp-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.bp-page .bp-brand:focus-visible {
  border-radius: 5px;
}

/* 3. PRIMARY NAVIGATION
========================================================= */

.bp-page .bp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(16px, 2.2vw, 32px);

  min-width: 0;
}

.bp-page .bp-nav a {
  position: relative;

  padding: 10px 0;

  color: var(--bp-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;

  text-decoration: none;
  white-space: nowrap;

  transition: color var(--bp-transition);
}

.bp-page .bp-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;

  height: 2px;

  background: var(--bp-gold);
  border-radius: 2px;

  content: "";
  transform: scaleX(0);
  transform-origin: left;

  transition: transform var(--bp-transition);
}

.bp-page .bp-nav a:hover {
  color: var(--bp-navy-deep);
}

.bp-page .bp-nav a:hover::after {
  transform: scaleX(1);
}

/* 4. HEADER CALL TO ACTION
========================================================= */

.bp-page .bp-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  flex: 0 0 auto;
  max-width: 100%;

  padding: 12px 17px;

  border: 1px solid var(--bp-navy);
  border-radius: var(--bp-radius-sm);

  background: var(--bp-navy);
  color: #fff;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;

  transition:
    background var(--bp-transition),
    border-color var(--bp-transition),
    transform var(--bp-transition);
}

.bp-page .bp-header-cta:hover {
  background: var(--bp-navy-deep);
  border-color: var(--bp-navy-deep);
  color: #fff;
  transform: translateY(-1px);
}

.bp-page .bp-header-cta span {
  font-size: 15px;
  line-height: 1;
}

/* 5. REUSABLE BUTTON BASE
========================================================= */

.bp-page .bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;

  max-width: 100%;
  min-height: 46px;
  padding: 12px 20px;

  border: 1px solid transparent;
  border-radius: var(--bp-radius-sm);

  font-family: var(--bp-font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;

  cursor: pointer;

  transition:
    color var(--bp-transition),
    background var(--bp-transition),
    border-color var(--bp-transition),
    box-shadow var(--bp-transition),
    transform var(--bp-transition);
}

.bp-page .bp-button:hover {
  text-decoration: none;
}

.bp-page .bp-button:active {
  transform: translateY(1px);
}

.bp-page .bp-button span {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

/* 6. BUTTON VARIANTS
========================================================= */

.bp-page .bp-button-primary {
  background: var(--bp-gold);
  border-color: var(--bp-gold);
  color: #fff;
}

.bp-page .bp-button-primary:hover {
  background: var(--bp-gold-dark);
  border-color: var(--bp-gold-dark);
  color: #fff;
}

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

.bp-page .bp-button-dark:hover {
  background: var(--bp-navy-deep);
  border-color: var(--bp-navy-deep);
  color: #fff;
}

.bp-page .bp-button-light {
  background: #fff;
  border-color: #fff;
  color: var(--bp-navy-deep);
}

.bp-page .bp-button-light:hover {
  background: var(--bp-gold-light);
  border-color: var(--bp-gold-light);
  color: var(--bp-navy-deep);
}

.bp-page .bp-button-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.bp-page .bp-button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.bp-page .bp-button-glass {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(8px);
}

.bp-page .bp-button-glass:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: #fff;
  color: #fff;
}

/* 7. TABLET HEADER
========================================================= */

@media (max-width: 1000px) {
  .bp-page .bp-header-inner {
    gap: 20px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .bp-page .bp-nav {
    gap: 16px;
  }

  .bp-page .bp-nav a {
    font-size: 12px;
  }

  .bp-page .bp-header-cta {
    padding: 11px 13px;
    font-size: 11px;
  }
}

/* 8. MOBILE AND COMPACT HEADER
========================================================= */

@media (max-width: 760px) {
  .bp-page .bp-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;

    padding: 15px 20px;
  }

  .bp-page .bp-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .bp-page .bp-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
    font-size: 21px;
  }

  .bp-page .bp-brand-copy strong {
    font-size: 16px;
  }

  .bp-page .bp-brand-copy > span {
    font-size: 10px;
  }

  .bp-page .bp-header-cta {
    grid-column: 2;
    grid-row: 1;
    padding: 10px 12px;
    font-size: 11px;
  }

  .bp-page .bp-nav {
    grid-column: 1 / -1;
    grid-row: 2;

    justify-content: flex-start;
    gap: 22px;

    width: 100%;
    padding: 2px 0 0;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .bp-page .bp-nav a {
    flex: 0 0 auto;
    padding: 7px 0;
    font-size: 12px;
  }
}

/* 9. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .bp-page .bp-header-inner {
    padding-right: 14px;
    padding-left: 14px;
    gap: 12px 8px;
  }

  .bp-page .bp-brand {
    gap: 8px;
  }

  .bp-page .bp-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 19px;
  }

  .bp-page .bp-brand-copy strong {
    font-size: 14px;
  }

  .bp-page .bp-brand-copy > span {
    font-size: 9px;
  }

  .bp-page .bp-header-cta {
    gap: 5px;
    padding: 9px 8px;
    font-size: 10px;
  }

  .bp-page .bp-nav {
    gap: 18px;
  }
}

/* END CSS PART 2 OF 6
   NEXT: HERO, BREADCRUMBS AND BUSINESS INTRODUCTION
========================================================= */

/* =========================================================
   TORONTO BUSINESS DIRECTORY
   CSS PART 3 OF 6
   Hero, breadcrumbs and business introduction
========================================================= */

/* 1. HERO SECTION
========================================================= */

.bp-page .bp-hero {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: stretch;

  min-height: 560px;
  background: var(--bp-navy-deep);
  color: #fff;

  overflow: hidden;
}

/* 2. BACKGROUND IMAGE
========================================================= */

.bp-page .bp-hero-image,
.bp-page .bp-hero-overlay {
  position: absolute;
  inset: 0;
}

.bp-page .bp-hero-image {
  z-index: -2;
}

.bp-page .bp-hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 48%;
}

/* 3. DARK OVERLAY
   Maintains readable contrast across different photos.
========================================================= */

.bp-page .bp-hero-overlay {
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(7, 27, 41, 0.91) 0%,
      rgba(7, 27, 41, 0.78) 44%,
      rgba(7, 27, 41, 0.36) 100%
    ),
    linear-gradient(0deg, rgba(7, 27, 41, 0.48) 0%, rgba(7, 27, 41, 0.03) 65%);
}

/* 4. HERO INNER LAYOUT
========================================================= */

.bp-page .bp-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 100%;
  padding-top: 30px;
  padding-bottom: 64px;
}

/* 5. BREADCRUMBS
========================================================= */

.bp-page .bp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  max-width: 100%;
  margin-bottom: 54px;

  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.bp-page .bp-breadcrumbs a {
  color: #fff;
  text-decoration: none;
  text-underline-offset: 4px;
}

.bp-page .bp-breadcrumbs a:hover {
  text-decoration: underline;
}

.bp-page .bp-breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.8);
  overflow-wrap: anywhere;
}

/* 6. HERO CONTENT
========================================================= */

.bp-page .bp-hero-content {
  width: 100%;
  max-width: 790px;
  margin-top: auto;
}

.bp-page .bp-hero .bp-eyebrow {
  margin-bottom: 18px;
  color: #e8c994;
}

.bp-page .bp-hero h1 {
  max-width: 850px;
  margin: 0 0 22px;

  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;

  overflow-wrap: anywhere;
}

.bp-page .bp-hero-description {
  max-width: 670px;
  margin: 0 0 25px;

  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.85;
}

/* 7. LOCATION AND PROFILE METADATA
========================================================= */

.bp-page .bp-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;

  margin-bottom: 30px;

  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.bp-page .bp-meta-item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  min-width: 0;
}

.bp-page .bp-meta-item > span[aria-hidden="true"] {
  color: #e8c994;
  font-size: 17px;
  line-height: 1;
}

.bp-page .bp-meta-divider {
  width: 1px;
  height: 19px;
  flex: 0 0 1px;

  background: rgba(255, 255, 255, 0.4);
}

/* 8. HERO ACTIONS
========================================================= */

.bp-page .bp-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.bp-page .bp-hero-actions .bp-button {
  min-height: 50px;
  padding: 14px 21px;
}

/* 9. TABLET HERO
========================================================= */

@media (max-width: 900px) {
  .bp-page .bp-hero {
    min-height: 520px;
  }

  .bp-page .bp-hero-inner {
    padding-top: 26px;
    padding-bottom: 54px;
  }

  .bp-page .bp-breadcrumbs {
    margin-bottom: 46px;
  }

  .bp-page .bp-hero-content {
    max-width: 720px;
  }

  .bp-page .bp-hero h1 {
    font-size: clamp(40px, 7vw, 60px);
  }

  .bp-page .bp-hero-description {
    max-width: 620px;
    font-size: 16px;
  }

  .bp-page .bp-hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 27, 41, 0.89), rgba(7, 27, 41, 0.58)),
      linear-gradient(0deg, rgba(7, 27, 41, 0.45), transparent 70%);
  }
}

/* 10. MOBILE HERO
========================================================= */

@media (max-width: 600px) {
  .bp-page .bp-hero {
    min-height: 0;
  }

  .bp-page .bp-hero-image img {
    object-position: 58% center;
  }

  .bp-page .bp-hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 27, 41, 0.88), rgba(7, 27, 41, 0.68)),
      linear-gradient(0deg, rgba(7, 27, 41, 0.55), rgba(7, 27, 41, 0.12));
  }

  .bp-page .bp-hero-inner {
    padding-top: 22px;
    padding-bottom: 42px;
  }

  .bp-page .bp-breadcrumbs {
    gap: 7px;
    margin-bottom: 40px;
    font-size: 11px;
  }

  .bp-page .bp-hero-content {
    max-width: none;
  }

  .bp-page .bp-hero .bp-eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .bp-page .bp-hero h1 {
    margin-bottom: 17px;
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: -0.045em;
    line-height: 1.12;
  }

  .bp-page .bp-hero-description {
    margin-bottom: 21px;
    font-size: 14px;
    line-height: 1.8;
  }

  .bp-page .bp-hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 11px;
  }

  .bp-page .bp-meta-divider {
    display: none;
  }

  .bp-page .bp-meta-item {
    align-items: flex-start;
  }

  .bp-page .bp-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
    width: 100%;
  }

  .bp-page .bp-hero-actions .bp-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }
}

/* 11. EXTRA-SMALL MOBILE
========================================================= */

@media (max-width: 360px) {
  .bp-page .bp-hero-inner {
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .bp-page .bp-breadcrumbs {
    column-gap: 5px;
    font-size: 10px;
  }

  .bp-page .bp-hero h1 {
    font-size: 33px;
  }

  .bp-page .bp-hero-description {
    font-size: 13px;
  }
}

/* END CSS PART 3 OF 6
   NEXT: BUSINESS OVERVIEW, CONTENT CARDS AND SIDEBAR
========================================================= */

/* =========================================================
   TORONTO BUSINESS DIRECTORY
   UNIVERSAL BUSINESS PROFILE STYLESHEET
   CSS PART 1 OF 5

   Foundation:
   - Design tokens
   - Box sizing and typography
   - Responsive containers
   - Accessibility
   - Buttons
   - Directory header
========================================================= */

/* ---------------------------------------------------------
   1. DESIGN TOKENS
--------------------------------------------------------- */

.bp-page {
  --bp-navy: #102c3a;
  --bp-navy-deep: #0b2430;
  --bp-gold: #a47a3c;
  --bp-gold-light: #f3eadb;

  --bp-text: #243640;
  --bp-muted: #62717a;
  --bp-border: #e2e7e8;

  --bp-white: #ffffff;
  --bp-surface: #f6f7f5;
  --bp-surface-warm: #f8f6f1;

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

  --bp-shadow-sm: 0 4px 16px rgba(16, 44, 58, 0.05);
  --bp-shadow-md: 0 12px 32px rgba(16, 44, 58, 0.09);

  --bp-container-width: 1200px;
  --bp-container-gutter: 28px;

  --bp-transition: 180ms ease;

  color: var(--bp-text);
  background: var(--bp-white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------
   2. BOX SIZING AND BASE RESET
--------------------------------------------------------- */

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

.bp-page {
  margin: 0;
  min-width: 0;
}

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

.bp-page a {
  color: inherit;
}

.bp-page button,
.bp-page input,
.bp-page select,
.bp-page textarea {
  font: inherit;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4,
.bp-page p,
.bp-page figure,
.bp-page dl,
.bp-page dd {
  margin-top: 0;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4 {
  font-family: "Manrope", "DM Sans", Arial, sans-serif;
  color: var(--bp-navy);
  overflow-wrap: anywhere;
}

.bp-page p {
  overflow-wrap: anywhere;
}

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

/* ---------------------------------------------------------
   3. RESPONSIVE CONTAINER
--------------------------------------------------------- */

.bp-page .bp-container {
  width: 100%;
  max-width: calc(var(--bp-container-width) + (var(--bp-container-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--bp-container-gutter);
  min-width: 0;
}

.bp-page .bp-section {
  position: relative;
  padding-block: 76px;
  min-width: 0;
}

/* Prevent grid and flex children from forcing overflow. */

.bp-page .bp-content-layout,
.bp-page .bp-main-column,
.bp-page .bp-sidebar,
.bp-page .bp-gallery-grid,
.bp-page .bp-resources-grid,
.bp-page .bp-related-grid {
  min-width: 0;
}

/* ---------------------------------------------------------
   4. ACCESSIBILITY
--------------------------------------------------------- */

.bp-page .bp-skip-link {
  position: absolute;
  z-index: 10000;
  top: 12px;
  left: 12px;

  padding: 12px 18px;

  color: var(--bp-white);
  background: var(--bp-navy);
  border-radius: var(--bp-radius-sm);

  font-weight: 700;
  text-decoration: none;

  transform: translateY(-160%);
}

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

.bp-page a:focus-visible,
.bp-page button:focus-visible,
.bp-page summary:focus-visible {
  outline: 3px solid #c69d5b;
  outline-offset: 4px;
}

.bp-page a:focus:not(:focus-visible) {
  outline: none;
}

/* ---------------------------------------------------------
   5. SHARED EYEBROWS AND SECTION HEADINGS
--------------------------------------------------------- */

.bp-page .bp-eyebrow {
  margin: 0 0 14px;

  color: var(--bp-gold);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-transform: uppercase;
}

.bp-page .bp-eyebrow-dark {
  color: #89652f;
}

.bp-page .bp-section-heading {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.bp-page .bp-section-heading h2 {
  margin: 0 0 16px;

  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.bp-page .bp-section-heading > p:not(.bp-eyebrow) {
  margin-bottom: 0;

  color: var(--bp-muted);

  font-size: 15px;
  line-height: 1.9;
}

/* ---------------------------------------------------------
   6. SHARED BUTTONS
--------------------------------------------------------- */

.bp-page .bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  max-width: 100%;
  min-height: 48px;
  padding: 13px 20px;

  border: 1px solid transparent;
  border-radius: var(--bp-radius-sm);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;

  cursor: pointer;

  transition:
    background-color var(--bp-transition),
    color var(--bp-transition),
    border-color var(--bp-transition),
    transform var(--bp-transition);
}

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

.bp-page .bp-button-primary {
  color: var(--bp-white);
  background: var(--bp-gold);
}

.bp-page .bp-button-primary:hover {
  color: var(--bp-white);
  background: #89652f;
}

.bp-page .bp-button-dark {
  color: var(--bp-white);
  background: var(--bp-navy);
}

.bp-page .bp-button-dark:hover {
  color: var(--bp-white);
  background: var(--bp-navy-deep);
}

.bp-page .bp-button-light {
  color: var(--bp-navy);
  background: var(--bp-white);
}

.bp-page .bp-button-light:hover {
  color: var(--bp-navy);
  background: #f0eee8;
}

.bp-page .bp-button-outline-light {
  color: var(--bp-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.bp-page .bp-button-outline-light:hover {
  color: var(--bp-navy);
  background: var(--bp-white);
  border-color: var(--bp-white);
}

.bp-page .bp-button-glass {
  color: var(--bp-white);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.bp-page .bp-button-glass:hover {
  color: var(--bp-white);
  background: rgba(255, 255, 255, 0.17);
}

/* ---------------------------------------------------------
   7. DIRECTORY HEADER
--------------------------------------------------------- */

.bp-page .bp-header {
  position: relative;
  z-index: 20;

  background: var(--bp-white);
  border-bottom: 1px solid var(--bp-border);
}

.bp-page .bp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  width: 100%;
  max-width: calc(var(--bp-container-width) + (var(--bp-container-gutter) * 2));

  min-height: 84px;
  margin-inline: auto;
  padding: 14px var(--bp-container-gutter);
}

.bp-page .bp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  flex: 0 0 auto;
  min-width: 0;

  color: var(--bp-navy);
  text-decoration: none;
}

.bp-page .bp-brand-mark {
  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;
  flex: 0 0 43px;

  color: var(--bp-white);
  background: var(--bp-navy);
  border-radius: 11px;

  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.bp-page .bp-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.bp-page .bp-brand-copy strong {
  color: var(--bp-navy);
  font-size: 16px;
  font-weight: 800;
}

.bp-page .bp-brand-copy > span {
  color: var(--bp-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bp-page .bp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;

  min-width: 0;
}

.bp-page .bp-nav a {
  color: #44545d;

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  transition: color var(--bp-transition);
}

.bp-page .bp-nav a:hover {
  color: var(--bp-gold);
}

.bp-page .bp-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  flex: 0 0 auto;
  max-width: 100%;
  padding: 12px 16px;

  color: var(--bp-white);
  background: var(--bp-navy);
  border-radius: var(--bp-radius-sm);

  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;

  transition:
    background-color var(--bp-transition),
    transform var(--bp-transition);
}

.bp-page .bp-header-cta:hover {
  color: var(--bp-white);
  background: var(--bp-gold);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   END OF CSS PART 1 OF 5 (???)

   NEXT:
   CSS PART 2 OF 5
   Hero, breadcrumbs and business profile introduction
--------------------------------------------------------- */

/* =========================================================
   TORONTO BUSINESS DIRECTORY
   UNIVERSAL BUSINESS PROFILE STYLESHEET
   CSS PART 1 OF 5

   Foundation:
   - Design tokens
   - Box sizing and typography
   - Responsive containers
   - Accessibility
   - Buttons
   - Directory header
========================================================= */

/* ---------------------------------------------------------
   1. DESIGN TOKENS
--------------------------------------------------------- */

.bp-page {
  --bp-navy: #102c3a;
  --bp-navy-deep: #0b2430;
  --bp-gold: #a47a3c;
  --bp-gold-light: #f3eadb;

  --bp-text: #243640;
  --bp-muted: #62717a;
  --bp-border: #e2e7e8;

  --bp-white: #ffffff;
  --bp-surface: #f6f7f5;
  --bp-surface-warm: #f8f6f1;

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

  --bp-shadow-sm: 0 4px 16px rgba(16, 44, 58, 0.05);
  --bp-shadow-md: 0 12px 32px rgba(16, 44, 58, 0.09);

  --bp-container-width: 1200px;
  --bp-container-gutter: 28px;

  --bp-transition: 180ms ease;

  color: var(--bp-text);
  background: var(--bp-white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------
   2. BOX SIZING AND BASE RESET
--------------------------------------------------------- */

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

.bp-page {
  margin: 0;
  min-width: 0;
}

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

.bp-page a {
  color: inherit;
}

.bp-page button,
.bp-page input,
.bp-page select,
.bp-page textarea {
  font: inherit;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4,
.bp-page p,
.bp-page figure,
.bp-page dl,
.bp-page dd {
  margin-top: 0;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4 {
  font-family: "Manrope", "DM Sans", Arial, sans-serif;
  color: var(--bp-navy);
  overflow-wrap: anywhere;
}

.bp-page p {
  overflow-wrap: anywhere;
}

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

/* ---------------------------------------------------------
   3. RESPONSIVE CONTAINER
--------------------------------------------------------- */

.bp-page .bp-container {
  width: 100%;
  max-width: calc(var(--bp-container-width) + (var(--bp-container-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--bp-container-gutter);
  min-width: 0;
}

.bp-page .bp-section {
  position: relative;
  padding-block: 76px;
  min-width: 0;
}

/* Prevent grid and flex children from forcing overflow. */

.bp-page .bp-content-layout,
.bp-page .bp-main-column,
.bp-page .bp-sidebar,
.bp-page .bp-gallery-grid,
.bp-page .bp-resources-grid,
.bp-page .bp-related-grid {
  min-width: 0;
}

/* ---------------------------------------------------------
   4. ACCESSIBILITY
--------------------------------------------------------- */

.bp-page .bp-skip-link {
  position: absolute;
  z-index: 10000;
  top: 12px;
  left: 12px;

  padding: 12px 18px;

  color: var(--bp-white);
  background: var(--bp-navy);
  border-radius: var(--bp-radius-sm);

  font-weight: 700;
  text-decoration: none;

  transform: translateY(-160%);
}

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

.bp-page a:focus-visible,
.bp-page button:focus-visible,
.bp-page summary:focus-visible {
  outline: 3px solid #c69d5b;
  outline-offset: 4px;
}

.bp-page a:focus:not(:focus-visible) {
  outline: none;
}

/* ---------------------------------------------------------
   5. SHARED EYEBROWS AND SECTION HEADINGS
--------------------------------------------------------- */

.bp-page .bp-eyebrow {
  margin: 0 0 14px;

  color: var(--bp-gold);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-transform: uppercase;
}

.bp-page .bp-eyebrow-dark {
  color: #89652f;
}

.bp-page .bp-section-heading {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.bp-page .bp-section-heading h2 {
  margin: 0 0 16px;

  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.bp-page .bp-section-heading > p:not(.bp-eyebrow) {
  margin-bottom: 0;

  color: var(--bp-muted);

  font-size: 15px;
  line-height: 1.9;
}

/* ---------------------------------------------------------
   6. SHARED BUTTONS
--------------------------------------------------------- */

.bp-page .bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  max-width: 100%;
  min-height: 48px;
  padding: 13px 20px;

  border: 1px solid transparent;
  border-radius: var(--bp-radius-sm);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;

  cursor: pointer;

  transition:
    background-color var(--bp-transition),
    color var(--bp-transition),
    border-color var(--bp-transition),
    transform var(--bp-transition);
}

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

.bp-page .bp-button-primary {
  color: var(--bp-white);
  background: var(--bp-gold);
}

.bp-page .bp-button-primary:hover {
  color: var(--bp-white);
  background: #89652f;
}

.bp-page .bp-button-dark {
  color: var(--bp-white);
  background: var(--bp-navy);
}

.bp-page .bp-button-dark:hover {
  color: var(--bp-white);
  background: var(--bp-navy-deep);
}

.bp-page .bp-button-light {
  color: var(--bp-navy);
  background: var(--bp-white);
}

.bp-page .bp-button-light:hover {
  color: var(--bp-navy);
  background: #f0eee8;
}

.bp-page .bp-button-outline-light {
  color: var(--bp-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.bp-page .bp-button-outline-light:hover {
  color: var(--bp-navy);
  background: var(--bp-white);
  border-color: var(--bp-white);
}

.bp-page .bp-button-glass {
  color: var(--bp-white);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.bp-page .bp-button-glass:hover {
  color: var(--bp-white);
  background: rgba(255, 255, 255, 0.17);
}

/* ---------------------------------------------------------
   7. DIRECTORY HEADER
--------------------------------------------------------- */

.bp-page .bp-header {
  position: relative;
  z-index: 20;

  background: var(--bp-white);
  border-bottom: 1px solid var(--bp-border);
}

.bp-page .bp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  width: 100%;
  max-width: calc(var(--bp-container-width) + (var(--bp-container-gutter) * 2));

  min-height: 84px;
  margin-inline: auto;
  padding: 14px var(--bp-container-gutter);
}

.bp-page .bp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  flex: 0 0 auto;
  min-width: 0;

  color: var(--bp-navy);
  text-decoration: none;
}

.bp-page .bp-brand-mark {
  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;
  flex: 0 0 43px;

  color: var(--bp-white);
  background: var(--bp-navy);
  border-radius: 11px;

  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.bp-page .bp-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.bp-page .bp-brand-copy strong {
  color: var(--bp-navy);
  font-size: 16px;
  font-weight: 800;
}

.bp-page .bp-brand-copy > span {
  color: var(--bp-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bp-page .bp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;

  min-width: 0;
}

.bp-page .bp-nav a {
  color: #44545d;

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  transition: color var(--bp-transition);
}

.bp-page .bp-nav a:hover {
  color: var(--bp-gold);
}

.bp-page .bp-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  flex: 0 0 auto;
  max-width: 100%;
  padding: 12px 16px;

  color: var(--bp-white);
  background: var(--bp-navy);
  border-radius: var(--bp-radius-sm);

  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;

  transition:
    background-color var(--bp-transition),
    transform var(--bp-transition);
}

.bp-page .bp-header-cta:hover {
  color: var(--bp-white);
  background: var(--bp-gold);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   END OF CSS PART 1 OF 5

   NEXT:
   CSS PART 2 OF 5
   Hero, breadcrumbs and business profile introduction
--------------------------------------------------------- */

/* =========================================================
   TORONTO BUSINESS DIRECTORY
   UNIVERSAL BUSINESS PROFILE STYLESHEET
   CSS PART 2 OF 5

   Components:
   - Business profile hero
   - Background image and overlay
   - Breadcrumb navigation
   - Hero content and metadata
   - Responsive hero actions
========================================================= */

/* ---------------------------------------------------------
   1. HERO SECTION
--------------------------------------------------------- */

.bp-page .bp-hero {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;

  min-height: 540px;
  min-height: clamp(500px, 60vw, 690px);

  overflow: hidden;
  background: var(--bp-navy);
  color: var(--bp-white);
}

/* ---------------------------------------------------------
   2. HERO BACKGROUND IMAGE
--------------------------------------------------------- */

.bp-page .bp-hero-image,
.bp-page .bp-hero-overlay {
  position: absolute;
  inset: 0;
}

.bp-page .bp-hero-image {
  z-index: -2;
  overflow: hidden;
}

.bp-page .bp-hero-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 48%;
}

/* ---------------------------------------------------------
   3. HERO OVERLAY
--------------------------------------------------------- */

.bp-page .bp-hero-overlay {
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(8, 29, 40, 0.94) 0%,
      rgba(8, 29, 40, 0.82) 43%,
      rgba(8, 29, 40, 0.43) 75%,
      rgba(8, 29, 40, 0.24) 100%
    ),
    linear-gradient(0deg, rgba(8, 29, 40, 0.38), transparent 65%);
}

/* ---------------------------------------------------------
   4. HERO INNER LAYOUT
--------------------------------------------------------- */

.bp-page .bp-hero-inner {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 100%;
  padding-block: 38px 70px;
}

/* ---------------------------------------------------------
   5. BREADCRUMBS
--------------------------------------------------------- */

.bp-page .bp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  min-width: 0;
  margin-bottom: 58px;

  color: rgba(255, 255, 255, 0.75);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.bp-page .bp-breadcrumbs a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color var(--bp-transition);
}

.bp-page .bp-breadcrumbs a:hover {
  color: var(--bp-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bp-page .bp-breadcrumbs span {
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   6. HERO TEXT CONTENT
--------------------------------------------------------- */

.bp-page .bp-hero-content {
  width: 100%;
  max-width: 790px;
  min-width: 0;
}

.bp-page .bp-hero-content .bp-eyebrow {
  margin-bottom: 17px;
  color: #e4c99a;
}

.bp-page .bp-hero-content h1 {
  max-width: 780px;
  margin: 0 0 22px;

  color: var(--bp-white);

  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;

  overflow-wrap: anywhere;
}

.bp-page .bp-hero-description {
  max-width: 670px;
  margin: 0 0 27px;

  color: rgba(255, 255, 255, 0.88);

  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   7. LOCATION AND BUSINESS METADATA
--------------------------------------------------------- */

.bp-page .bp-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;

  margin-bottom: 31px;

  color: rgba(255, 255, 255, 0.84);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.bp-page .bp-meta-item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  min-width: 0;
  overflow-wrap: anywhere;
}

.bp-page .bp-meta-item > span[aria-hidden="true"] {
  color: #e4c99a;
  font-size: 17px;
}

.bp-page .bp-meta-divider {
  width: 1px;
  height: 17px;
  flex: 0 0 1px;

  background: rgba(255, 255, 255, 0.35);
}

/* ---------------------------------------------------------
   8. HERO ACTION BUTTONS
--------------------------------------------------------- */

.bp-page .bp-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;

  min-width: 0;
}

.bp-page .bp-hero-actions .bp-button {
  min-height: 50px;
  padding: 14px 20px;
}

/* ---------------------------------------------------------
   9. MEDIUM SCREENS
--------------------------------------------------------- */

@media (max-width: 900px) {
  .bp-page .bp-hero {
    min-height: 560px;
  }

  .bp-page .bp-hero-inner {
    padding-block: 32px 58px;
  }

  .bp-page .bp-breadcrumbs {
    margin-bottom: 46px;
  }

  .bp-page .bp-hero-content {
    max-width: 700px;
  }

  .bp-page .bp-hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 29, 40, 0.93), rgba(8, 29, 40, 0.68)),
      linear-gradient(0deg, rgba(8, 29, 40, 0.4), transparent);
  }
}

/* ---------------------------------------------------------
   10. MOBILE HERO
--------------------------------------------------------- */

@media (max-width: 600px) {
  .bp-page .bp-hero {
    min-height: auto;
  }

  .bp-page .bp-hero-image img {
    object-position: 58% center;
  }

  .bp-page .bp-hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 29, 40, 0.88), rgba(8, 29, 40, 0.72)),
      linear-gradient(0deg, rgba(8, 29, 40, 0.55), rgba(8, 29, 40, 0.12));
  }

  .bp-page .bp-hero-inner {
    padding-block: 23px 44px;
  }

  .bp-page .bp-breadcrumbs {
    gap: 7px;
    margin-bottom: 43px;

    font-size: 11px;
  }

  .bp-page .bp-hero-content .bp-eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .bp-page .bp-hero-content h1 {
    margin-bottom: 17px;

    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
  }

  .bp-page .bp-hero-description {
    margin-bottom: 23px;

    font-size: 14px;
    line-height: 1.85;
  }

  .bp-page .bp-hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;

    margin-bottom: 25px;

    font-size: 12px;
  }

  .bp-page .bp-meta-divider {
    display: none;
  }

  .bp-page .bp-meta-item {
    align-items: flex-start;
  }

  .bp-page .bp-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .bp-page .bp-hero-actions .bp-button {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
  }
}

/* ---------------------------------------------------------
   11. VERY NARROW DEVICES
--------------------------------------------------------- */

@media (max-width: 360px) {
  .bp-page .bp-hero-inner {
    padding-block: 20px 36px;
  }

  .bp-page .bp-breadcrumbs {
    margin-bottom: 34px;
    font-size: 10px;
  }

  .bp-page .bp-hero-content h1 {
    font-size: 32px;
  }

  .bp-page .bp-hero-description {
    font-size: 13px;
  }
}

/* ---------------------------------------------------------
   END OF CSS PART 2 OF 5

   NEXT:
   CSS PART 3 OF 5
   Business overview, content cards and responsive sidebar
--------------------------------------------------------- */

/* =========================================================
   TORONTO BUSINESS DIRECTORY
   UNIVERSAL BUSINESS PROFILE STYLESHEET
   CSS PART 3 OF 5

   Components:
   - Business overview section
   - Main content column
   - Content cards and feature grid
   - Business information sidebar
   - Quick facts and contact cards
   - Responsive desktop, tablet and mobile layouts
========================================================= */

/* ---------------------------------------------------------
   1. BUSINESS OVERVIEW SECTION
--------------------------------------------------------- */

.bp-page .bp-overview-section {
  padding-block: 80px;
  background: var(--bp-surface);
}

.bp-page .bp-overview-section > .bp-container > .bp-section-heading {
  margin-bottom: 44px;
}

/* ---------------------------------------------------------
   2. MAIN CONTENT AND SIDEBAR GRID
--------------------------------------------------------- */

.bp-page .bp-content-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 340px);

  align-items: start;
  gap: 30px;

  min-width: 0;
}

.bp-page .bp-main-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 24px;

  min-width: 0;
}

.bp-page .bp-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 20px;

  min-width: 0;
}

/* ---------------------------------------------------------
   3. MAIN CONTENT CARDS
--------------------------------------------------------- */

.bp-page .bp-content-card {
  min-width: 0;
  padding: 32px;

  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);

  box-shadow: var(--bp-shadow-sm);
}

.bp-page .bp-card-kicker {
  margin: 0 0 11px;

  color: var(--bp-gold);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.7;
  text-transform: uppercase;
}

.bp-page .bp-content-card h3 {
  margin: 0 0 18px;

  color: var(--bp-navy);

  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;

  overflow-wrap: anywhere;
}

.bp-page .bp-content-card p:not(.bp-card-kicker) {
  margin: 0 0 17px;

  color: var(--bp-muted);

  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.bp-page .bp-content-card p:last-of-type {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   4. TEXT LINKS
--------------------------------------------------------- */

.bp-page .bp-text-link {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;

  max-width: 100%;
  margin-top: 22px;

  color: #805e2e;

  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
  text-decoration: none;
  overflow-wrap: anywhere;

  transition: color var(--bp-transition);
}

.bp-page .bp-text-link:hover {
  color: var(--bp-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bp-page .bp-text-link span {
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   5. TORONTO EXPERIENCE FEATURE GRID
--------------------------------------------------------- */

.bp-page .bp-feature-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  align-items: stretch;
  gap: 15px;

  margin: 25px 0 4px;
}

.bp-page .bp-feature-item {
  min-width: 0;
  padding: 21px;

  background: var(--bp-surface-warm);
  border: 1px solid #ebe6dc;
  border-radius: var(--bp-radius-sm);
}

.bp-page .bp-feature-number {
  display: inline-block;
  margin-bottom: 7px;

  color: var(--bp-gold);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.bp-page .bp-feature-item h4 {
  margin: 0 0 9px;

  color: var(--bp-navy);

  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

.bp-page .bp-feature-item p {
  margin: 0 !important;

  color: var(--bp-muted);

  font-size: 12px !important;
  line-height: 1.85 !important;
}

/* ---------------------------------------------------------
   6. SIDEBAR CARDS
--------------------------------------------------------- */

.bp-page .bp-sidebar-card,
.bp-page .bp-sidebar-note {
  min-width: 0;
  padding: 25px;

  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);

  box-shadow: var(--bp-shadow-sm);
}

.bp-page .bp-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
  margin-bottom: 22px;
}

.bp-page .bp-sidebar-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  color: var(--bp-gold);
  background: var(--bp-gold-light);
  border-radius: 10px;

  font-size: 17px;
  font-weight: 800;
}

.bp-page .bp-sidebar-heading h2,
.bp-page .bp-sidebar-note h2 {
  min-width: 0;
  margin: 0;

  color: var(--bp-navy);

  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   7. BUSINESS FACTS
--------------------------------------------------------- */

.bp-page .bp-facts-list {
  margin: 0;
  padding: 0;
}

.bp-page .bp-fact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;

  min-width: 0;
  padding: 15px 0;

  border-bottom: 1px solid #ecefeb;
}

.bp-page .bp-fact-row:first-child {
  padding-top: 0;
}

.bp-page .bp-fact-row:last-child {
  border-bottom: 0;
}

.bp-page .bp-fact-row dt {
  color: var(--bp-muted);

  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}

.bp-page .bp-fact-row dd {
  min-width: 0;
  margin: 0;

  color: var(--bp-navy);

  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;

  overflow-wrap: anywhere;
  word-break: normal;
}

.bp-page .bp-fact-row a {
  color: #805e2e;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;

  overflow-wrap: anywhere;
  transition: text-decoration-color var(--bp-transition);
}

.bp-page .bp-fact-row a:hover {
  text-decoration-color: currentColor;
}

/* Sidebar call-to-action */

.bp-page .bp-sidebar-button {
  display: flex;
  width: 100%;
  margin-top: 21px;
}

/* ---------------------------------------------------------
   8. OFFICIAL CONTACT CARD
--------------------------------------------------------- */

.bp-page .bp-sidebar-description,
.bp-page .bp-contact-note,
.bp-page .bp-sidebar-note p {
  color: var(--bp-muted);

  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.bp-page .bp-sidebar-description {
  margin: 0 0 17px;
}

.bp-page .bp-contact-link {
  display: block;

  min-width: 0;
  margin-top: 12px;
  padding: 15px;

  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);

  text-decoration: none;

  transition:
    border-color var(--bp-transition),
    background-color var(--bp-transition);
}

.bp-page .bp-contact-link:hover {
  background: var(--bp-surface-warm);
  border-color: #d7c39f;
}

.bp-page .bp-contact-label {
  display: block;
  margin-bottom: 5px;

  color: var(--bp-muted);

  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
}

.bp-page .bp-contact-value {
  display: block;

  color: #805e2e;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.75;

  overflow-wrap: anywhere;
}

.bp-page .bp-contact-note {
  margin: 16px 0 0;
}

/* ---------------------------------------------------------
   9. DIRECTORY LISTING NOTE
--------------------------------------------------------- */

.bp-page .bp-sidebar-note h2 {
  margin-bottom: 12px;
}

.bp-page .bp-sidebar-note p {
  margin: 0;
}

/* ---------------------------------------------------------
   10. DESKTOP LAYOUT REFINEMENT
--------------------------------------------------------- */

@media (min-width: 1200px) {
  .bp-page .bp-content-layout {
    grid-template-columns:
      minmax(0, 1fr)
      320px;

    gap: 34px;
  }

  .bp-page .bp-content-card {
    padding: 34px;
  }

  .bp-page .bp-sidebar-card,
  .bp-page .bp-sidebar-note {
    padding: 25px;
  }
}

/* ---------------------------------------------------------
   11. TABLET LAYOUT
--------------------------------------------------------- */

@media (max-width: 900px) {
  .bp-page .bp-overview-section {
    padding-block: 64px;
  }

  .bp-page .bp-content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .bp-page .bp-main-column {
    gap: 20px;
  }

  .bp-page .bp-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }

  .bp-page .bp-sidebar-note {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------
   12. MOBILE LAYOUT
--------------------------------------------------------- */

@media (max-width: 600px) {
  .bp-page .bp-overview-section {
    padding-block: 48px;
  }

  .bp-page .bp-overview-section > .bp-container > .bp-section-heading {
    margin-bottom: 27px;
    text-align: left;
  }

  .bp-page .bp-section-heading h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .bp-page .bp-section-heading > p:not(.bp-eyebrow) {
    font-size: 14px;
    line-height: 1.85;
  }

  .bp-page .bp-content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .bp-page .bp-main-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .bp-page .bp-content-card {
    padding: 22px;
    border-radius: 12px;
  }

  .bp-page .bp-content-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.35;
  }

  .bp-page .bp-content-card p:not(.bp-card-kicker) {
    font-size: 13px;
    line-height: 1.9;
  }

  .bp-page .bp-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-top: 21px;
  }

  .bp-page .bp-feature-item {
    padding: 17px;
  }

  .bp-page .bp-feature-item h4 {
    font-size: 15px;
  }

  .bp-page .bp-feature-item p {
    font-size: 12px !important;
  }

  .bp-page .bp-text-link {
    margin-top: 19px;
    font-size: 12px;
  }

  .bp-page .bp-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .bp-page .bp-sidebar-note {
    grid-column: auto;
  }

  .bp-page .bp-sidebar-card,
  .bp-page .bp-sidebar-note {
    padding: 21px;
  }

  .bp-page .bp-sidebar-heading {
    margin-bottom: 19px;
  }

  .bp-page .bp-sidebar-heading h2,
  .bp-page .bp-sidebar-note h2 {
    font-size: 17px;
  }

  .bp-page .bp-fact-row {
    padding-block: 13px;
  }

  .bp-page .bp-fact-row dd {
    font-size: 13px;
  }

  .bp-page .bp-contact-link {
    padding: 14px;
  }
}

/* ---------------------------------------------------------
   13. EXTRA-NARROW MOBILE DEVICES
--------------------------------------------------------- */

@media (max-width: 360px) {
  .bp-page .bp-content-card {
    padding: 18px;
  }

  .bp-page .bp-content-card h3 {
    font-size: 20px;
  }

  .bp-page .bp-feature-item {
    padding: 15px;
  }

  .bp-page .bp-sidebar-card,
  .bp-page .bp-sidebar-note {
    padding: 18px;
  }

  .bp-page .bp-sidebar-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

/* ---------------------------------------------------------
   END OF CSS PART 3 OF 5

   NEXT:
   CSS PART 4 OF 5
   Image gallery, helpful resources and related categories
--------------------------------------------------------- */

/* =========================================================
   TORONTO BUSINESS DIRECTORY
   UNIVERSAL BUSINESS PROFILE STYLESHEET
   CSS PART 4 OF 5

   Components:
   - Destination image gallery
   - Official visitor resource cards
   - Related business categories
   - Responsive tablet and mobile layouts
========================================================= */

/* ---------------------------------------------------------
   1. IMAGE GALLERY SECTION
--------------------------------------------------------- */

.bp-page .bp-gallery-section {
  padding-block: 80px;
  background: var(--bp-white);
}

.bp-page .bp-gallery-section .bp-section-heading-split,
.bp-page .bp-related-section .bp-section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 36px;
}

.bp-page .bp-section-heading-split > div {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
}

.bp-page .bp-section-heading-split h2 {
  margin: 0 0 15px;

  color: var(--bp-navy);

  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.bp-page .bp-section-heading-split > div > p:not(.bp-eyebrow) {
  margin: 0;

  color: var(--bp-muted);

  font-size: 14px;
  line-height: 1.9;
}

.bp-page .bp-section-heading-split > .bp-text-link {
  flex: 0 1 auto;
  margin-top: 0;
  margin-bottom: 5px;
}

/* ---------------------------------------------------------
   2. GALLERY GRID
--------------------------------------------------------- */

.bp-page .bp-gallery-grid {
  display: grid;

  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(200px, 1fr));

  gap: 18px;

  min-width: 0;
}

.bp-page .bp-gallery-item {
  position: relative;
  isolation: isolate;

  min-width: 0;
  min-height: 0;
  margin: 0;

  aspect-ratio: 1.45 / 1;

  overflow: hidden;
  background: var(--bp-navy);
  border-radius: var(--bp-radius-md);
}

.bp-page .bp-gallery-item.bp-gallery-large {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.bp-page .bp-gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 350ms ease;
}

.bp-page .bp-gallery-item:hover img {
  transform: scale(1.035);
}

.bp-page .bp-gallery-item::after {
  position: absolute;
  z-index: 0;
  inset: 0;

  background: linear-gradient(
    0deg,
    rgba(7, 25, 35, 0.82) 0%,
    rgba(7, 25, 35, 0.18) 48%,
    transparent 75%
  );

  content: "";
  pointer-events: none;
}

.bp-page .bp-gallery-item figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  left: 20px;

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;

  color: var(--bp-white);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.bp-page .bp-gallery-item figcaption > span {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  color: #f0d7aa;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;

  font-size: 11px;
  font-weight: 800;
}

/* ---------------------------------------------------------
   3. OFFICIAL VISITOR RESOURCES
--------------------------------------------------------- */

.bp-page .bp-resources-section {
  padding-block: 80px;
  background: var(--bp-surface);
}

.bp-page .bp-resources-section .bp-section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.bp-page .bp-resources-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  align-items: stretch;
  gap: 20px;

  min-width: 0;
}

.bp-page .bp-resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;

  min-width: 0;
  padding: 28px 25px;

  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);

  box-shadow: var(--bp-shadow-sm);

  transition:
    transform var(--bp-transition),
    box-shadow var(--bp-transition),
    border-color var(--bp-transition);
}

.bp-page .bp-resource-card:hover {
  transform: translateY(-3px);
  border-color: #d8c39f;
  box-shadow: var(--bp-shadow-md);
}

.bp-page .bp-resource-number {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  color: var(--bp-gold);
  background: var(--bp-gold-light);
  border: 1px solid #e9ddc9;
  border-radius: 10px;

  font-size: 12px;
  font-weight: 800;
}

.bp-page .bp-resource-card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.bp-page .bp-resource-card h3 {
  margin: 0 0 11px;

  color: var(--bp-navy);

  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.bp-page .bp-resource-card p {
  margin: 0 0 21px;

  color: var(--bp-muted);

  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.bp-page .bp-resource-card .bp-text-link {
  margin-top: auto;
  font-size: 12px;
}

/* ---------------------------------------------------------
   4. RELATED BUSINESS CATEGORIES
--------------------------------------------------------- */

.bp-page .bp-related-section {
  padding-block: 80px;
  background: var(--bp-surface-warm);
}

.bp-page .bp-related-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  align-items: stretch;
  gap: 15px;

  min-width: 0;
}

.bp-page a.bp-related-card {
  display: flex;
  align-items: center;
  gap: 16px;

  min-width: 0;
  min-height: 105px;
  padding: 21px;

  color: var(--bp-navy);
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: 12px;

  text-decoration: none;

  transition:
    transform var(--bp-transition),
    border-color var(--bp-transition),
    box-shadow var(--bp-transition);
}

.bp-page a.bp-related-card:hover {
  color: var(--bp-navy);
  border-color: #d8c39f;
  box-shadow: var(--bp-shadow-sm);
  transform: translateY(-2px);
}

.bp-page .bp-related-index {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  color: var(--bp-gold);
  background: var(--bp-gold-light);
  border: 1px solid #e9ddc9;
  border-radius: 10px;

  font-size: 11px;
  font-weight: 800;
}

.bp-page .bp-related-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;

  min-width: 0;
}

.bp-page .bp-related-copy strong {
  color: var(--bp-navy);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bp-page .bp-related-copy small {
  color: var(--bp-muted);

  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.bp-page .bp-related-arrow {
  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;
  flex: 0 0 31px;

  color: var(--bp-gold);
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 50%;

  font-size: 14px;

  transition:
    color var(--bp-transition),
    background-color var(--bp-transition),
    border-color var(--bp-transition);
}

.bp-page a.bp-related-card:hover .bp-related-arrow {
  color: var(--bp-white);
  background: var(--bp-navy);
  border-color: var(--bp-navy);
}

/* ---------------------------------------------------------
   5. TABLET RESPONSIVENESS
--------------------------------------------------------- */

@media (max-width: 900px) {
  .bp-page .bp-gallery-section,
  .bp-page .bp-resources-section,
  .bp-page .bp-related-section {
    padding-block: 64px;
  }

  .bp-page .bp-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 14px;
  }

  .bp-page .bp-gallery-item,
  .bp-page .bp-gallery-item.bp-gallery-large {
    grid-row: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .bp-page .bp-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .bp-page .bp-resource-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .bp-page .bp-gallery-section .bp-section-heading-split,
  .bp-page .bp-related-section .bp-section-heading-split {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .bp-page .bp-section-heading-split > .bp-text-link {
    margin-bottom: 0;
  }
}

/* ---------------------------------------------------------
   6. MOBILE RESPONSIVENESS
--------------------------------------------------------- */

@media (max-width: 600px) {
  .bp-page .bp-gallery-section,
  .bp-page .bp-resources-section,
  .bp-page .bp-related-section {
    padding-block: 48px;
  }

  .bp-page .bp-gallery-section .bp-section-heading-split,
  .bp-page .bp-related-section .bp-section-heading-split {
    gap: 12px;
    margin-bottom: 25px;
  }

  .bp-page .bp-section-heading-split h2 {
    font-size: 27px;
    line-height: 1.25;
  }

  .bp-page .bp-section-heading-split > div > p:not(.bp-eyebrow) {
    font-size: 13px;
    line-height: 1.85;
  }

  .bp-page .bp-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 13px;
  }

  .bp-page .bp-gallery-item,
  .bp-page .bp-gallery-item.bp-gallery-large {
    grid-row: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
    border-radius: 12px;
  }

  .bp-page .bp-gallery-item:first-child {
    aspect-ratio: 5 / 4;
  }

  .bp-page .bp-gallery-item figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 10px;
    font-size: 12px;
  }

  .bp-page .bp-gallery-item figcaption > span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .bp-page .bp-resources-section .bp-section-heading {
    margin-bottom: 26px;
    text-align: left;
  }

  .bp-page .bp-resources-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .bp-page .bp-resource-card,
  .bp-page .bp-resource-card:last-child:nth-child(odd) {
    grid-column: auto;
    padding: 22px;
    gap: 16px;
  }

  .bp-page .bp-resource-card h3 {
    font-size: 18px;
  }

  .bp-page .bp-resource-card p {
    font-size: 13px;
  }

  .bp-page .bp-related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .bp-page a.bp-related-card {
    min-height: 92px;
    padding: 17px;
    gap: 12px;
  }

  .bp-page .bp-related-index {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .bp-page .bp-related-copy strong {
    font-size: 13px;
  }

  .bp-page .bp-related-copy small {
    font-size: 11px;
  }

  .bp-page .bp-related-arrow {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

/* ---------------------------------------------------------
   6. EXTRA-NARROW MOBILE DEVICES
--------------------------------------------------------- */

@media (max-width: 360px) {
  .bp-page .bp-gallery-item figcaption {
    right: 11px;
    bottom: 11px;
    left: 11px;
    font-size: 11px;
  }

  .bp-page .bp-resource-card,
  .bp-page .bp-resource-card:last-child:nth-child(odd) {
    padding: 18px;
  }

  .bp-page a.bp-related-card {
    padding: 14px;
    gap: 10px;
  }
}

/* ---------------------------------------------------------
   7. REDUCED-MOTION PREFERENCES
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .bp-page .bp-gallery-item img,
  .bp-page .bp-resource-card,
  .bp-page a.bp-related-card,
  .bp-page .bp-related-arrow {
    transition: none;
  }

  .bp-page .bp-gallery-item:hover img,
  .bp-page .bp-resource-card:hover,
  .bp-page a.bp-related-card:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------
   END OF CSS PART 4 OF 5

   NEXT:
   CSS PART 5 OF 5
   FAQ, final call to action, footer and final safeguards
--------------------------------------------------------- */

/* =========================================================
   BUSINESS PROFILE — CSS PART 5 OF 5
   RESPONSIVE SAFEGUARDS, ACCESSIBILITY & FINAL OVERRIDES
========================================================= */

/* ---------------------------------------------------------
   1. PREVENT HORIZONTAL OVERFLOW
--------------------------------------------------------- */

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

.bp-page {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
}

.bp-page img,
.bp-page video,
.bp-page iframe,
.bp-page svg {
  max-width: 100%;
}

.bp-page img {
  height: auto;
}

.bp-page a,
.bp-page button,
.bp-page input,
.bp-page textarea,
.bp-page select {
  max-width: 100%;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4,
.bp-page p,
.bp-page li,
.bp-page dd,
.bp-page dt {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   2. RESPONSIVE GRID SAFEGUARDS
--------------------------------------------------------- */

.bp-page .bp-content-layout,
.bp-page .bp-main-column,
.bp-page .bp-sidebar,
.bp-page .bp-feature-grid,
.bp-page .bp-gallery-grid,
.bp-page .bp-resources-grid,
.bp-page .bp-related-grid,
.bp-page .bp-faq-layout {
  min-width: 0;
  max-width: 100%;
}

.bp-page .bp-content-card,
.bp-page .bp-sidebar-card,
.bp-page .bp-sidebar-note,
.bp-page .bp-feature-item,
.bp-page .bp-resource-card,
.bp-page .bp-related-card {
  min-width: 0;
  max-width: 100%;
}

/* ---------------------------------------------------------
   3. TABLET LAYOUT
--------------------------------------------------------- */

@media (max-width: 900px) {
  .bp-page .bp-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-page .bp-main-column {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .bp-page .bp-sidebar-note {
    grid-column: 1 / -1;
  }

  .bp-page .bp-faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-page .bp-faq-intro {
    position: static;
  }
}

/* ---------------------------------------------------------
   4. MOBILE LAYOUT
--------------------------------------------------------- */

@media (max-width: 600px) {
  .bp-page .bp-container {
    width: calc(100% - 32px);
    max-width: none;
    margin-inline: auto;
  }

  .bp-page .bp-content-layout,
  .bp-page .bp-main-column,
  .bp-page .bp-sidebar,
  .bp-page .bp-feature-grid,
  .bp-page .bp-resources-grid,
  .bp-page .bp-related-grid,
  .bp-page .bp-faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-page .bp-sidebar-note {
    grid-column: auto;
  }

  .bp-page .bp-content-card {
    padding: 22px;
  }

  .bp-page .bp-sidebar-card,
  .bp-page .bp-sidebar-note {
    padding: 21px;
  }

  .bp-page .bp-feature-item {
    padding: 18px;
  }

  .bp-page .bp-resource-card {
    padding: 22px;
  }

  .bp-page .bp-related-card {
    padding: 18px;
  }

  .bp-page .bp-content-card h3 {
    font-size: clamp(21px, 6vw, 26px);
  }

  .bp-page .bp-content-card p {
    font-size: 14px;
    line-height: 1.8;
  }

  .bp-page .bp-text-link {
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
}

/* ---------------------------------------------------------
   5. SMALL MOBILE SCREENS
--------------------------------------------------------- */

@media (max-width: 380px) {
  .bp-page .bp-container {
    width: calc(100% - 24px);
  }

  .bp-page .bp-content-card {
    padding: 18px;
  }

  .bp-page .bp-sidebar-card,
  .bp-page .bp-sidebar-note {
    padding: 17px;
  }

  .bp-page .bp-content-card h3 {
    font-size: 21px;
  }

  .bp-page .bp-sidebar-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .bp-page .bp-sidebar-heading h2 {
    font-size: 17px;
  }

  .bp-page .bp-button {
    white-space: normal;
    text-align: center;
  }
}

/* ---------------------------------------------------------
   6. KEYBOARD ACCESSIBILITY
--------------------------------------------------------- */

.bp-page a:focus-visible,
.bp-page button:focus-visible,
.bp-page summary:focus-visible,
.bp-page input:focus-visible,
.bp-page textarea:focus-visible,
.bp-page select:focus-visible {
  outline: 3px solid #c69d5b;
  outline-offset: 4px;
}

.bp-page .bp-skip-link {
  position: absolute;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: #102c3a;
  border-radius: 6px;
  transform: translateY(-160%);
}

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

/* ---------------------------------------------------------
   7. REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .bp-page *,
  .bp-page *::before,
  .bp-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------
   8. FINAL STYLESHEET SECTION
--------------------------------------------------------- */

/*
  End of business-profile.css.

  Before publishing:
  - Check all five CSS parts are present in the correct order.
  - Remove duplicate or conflicting older CSS rules.
  - Test at desktop, tablet and mobile widths.
  - Verify that all images and internal links resolve correctly.
*/

/* =========================================
   FIX: FAQ, FINAL CTA AND FOOTER
========================================= */

/* FAQ SECTION */
.bp-page .bp-faq-section {
  padding-block: 80px;
  background: var(--bp-white);
}

.bp-page .bp-faq-section .bp-section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.bp-page .bp-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 30px;
  min-width: 0;
}

.bp-page .bp-faq-intro {
  padding: 30px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);
}

.bp-page .bp-faq-intro h3 {
  margin: 0 0 15px;
  color: var(--bp-navy);
  font-size: 24px;
  line-height: 1.35;
}

.bp-page .bp-faq-intro p {
  margin: 0 0 24px;
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.9;
}

.bp-page .bp-faq-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bp-page .bp-faq-item {
  min-width: 0;
  padding: 0 22px;
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: 12px;
}

.bp-page .bp-faq-item summary {
  padding: 20px 25px 20px 0;
  color: var(--bp-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

.bp-page .bp-faq-answer p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.85;
}

/* FINAL CALL TO ACTION */
.bp-page .bp-final-cta {
  padding-block: 70px;
  color: var(--bp-white);
  background: var(--bp-navy);
}

.bp-page .bp-final-cta-inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.bp-page .bp-final-cta .bp-eyebrow {
  color: #e9c98f;
}

.bp-page .bp-final-cta h2 {
  margin: 0 0 20px;
  color: var(--bp-white);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.bp-page .bp-final-cta-inner > p:not(.bp-eyebrow) {
  max-width: 620px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.9;
}

.bp-page .bp-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* FOOTER */
.bp-page .bp-footer {
  padding: 35px 0 20px;
  color: var(--bp-white);
  background: #091f2a;
}

.bp-page .bp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
  padding-bottom: 28px;
}

.bp-page .bp-footer .bp-brand {
  color: var(--bp-white);
  text-decoration: none;
}

.bp-page .bp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.bp-page .bp-footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  text-decoration: none;
}

.bp-page .bp-footer-nav a:hover {
  color: #e9c98f;
}

.bp-page .bp-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bp-page .bp-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.8;
}

/* TABLET AND MOBILE */
@media (max-width: 900px) {
  .bp-page .bp-faq-section,
  .bp-page .bp-final-cta {
    padding-block: 60px;
  }

  .bp-page .bp-faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-page .bp-faq-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  .bp-page .bp-faq-section,
  .bp-page .bp-final-cta {
    padding-block: 45px;
  }

  .bp-page .bp-faq-section .bp-section-heading {
    margin-bottom: 26px;
    text-align: left;
  }

  .bp-page .bp-faq-intro {
    padding: 22px;
  }

  .bp-page .bp-faq-item {
    padding-inline: 16px;
  }

  .bp-page .bp-faq-item summary {
    font-size: 14px;
  }

  .bp-page .bp-final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bp-page .bp-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp-page .bp-footer-nav {
    gap: 14px 18px;
  }
}

/* FIX: FOOTER BRAND VISIBILITY */

.bp-page .bp-footer .bp-brand,
.bp-page .bp-footer .bp-brand-copy strong,
.bp-page .bp-footer .bp-brand-copy span {
  color: #ffffff !important;
}

.bp-page .bp-footer .bp-brand-mark {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.bp-page .bp-footer .bp-brand {
  text-decoration: none;
}

/* FIX: RESPONSIVE HEADER */

.bp-page .bp-header,
.bp-page .bp-header-inner {
  min-width: 0;
}

@media (max-width: 900px) {
  .bp-page .bp-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 16px;
  }

  .bp-page .bp-nav {
    order: 3;
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-width: 0;
  }

  .bp-page .bp-header-cta {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .bp-page .bp-header-inner {
    gap: 14px;
  }

  .bp-page .bp-brand {
    flex: 1 1 100%;
    min-width: 0;
  }

  .bp-page .bp-brand-copy {
    min-width: 0;
  }

  .bp-page .bp-brand-copy strong,
  .bp-page .bp-brand-copy span {
    overflow-wrap: anywhere;
  }

  .bp-page .bp-nav {
    gap: 12px 16px;
  }

  .bp-page .bp-nav a {
    font-size: 13px;
  }

  .bp-page .bp-header-cta {
    margin-left: 0;
    max-width: 100%;
    white-space: normal;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .bp-page .bp-nav {
    gap: 10px 12px;
  }

  .bp-page .bp-nav a {
    font-size: 12px;
  }
}
