/* =========================================================
   TORONTO BUSINESS DIRECTORY
   LOCAL GUIDES — ADDITIVE STYLESHEET

   This stylesheet complements:
   - toronto-business-directory.css
   - category-page.css

   Do not modify the original stylesheets to use this file.
========================================================= */

/* ---------------------------------------------------------
   01. PAGE TOKENS AND BASE
--------------------------------------------------------- */

.guides-page {
  --guides-ink: #102b40;
  --guides-ink-soft: #344b5e;
  --guides-muted: #647587;
  --guides-accent: #c48b48;
  --guides-accent-dark: #99682f;
  --guides-surface: #f5f7f8;
  --guides-border: #dce4e9;
  --guides-white: #ffffff;
  --guides-reading-width: 760px;
}

.guides-page img {
  max-width: 100%;
}

.guides-page a {
  text-underline-offset: 4px;
}

.guides-page a:focus-visible,
.guides-page summary:focus-visible {
  outline: 3px solid var(--guides-accent);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   02. BREADCRUMBS
--------------------------------------------------------- */

.guides-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: inherit;
  font-size: 0.875rem;
  opacity: 0.9;
}

.guides-breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 180ms ease;
}

.guides-breadcrumb a:hover {
  text-decoration-color: currentColor;
}

.guides-breadcrumb [aria-current="page"] {
  font-weight: 600;
}

/* ---------------------------------------------------------
   03. HERO
--------------------------------------------------------- */

.guides-hero .hero-content {
  max-width: 860px;
}

.guides-hero .hero-description {
  max-width: 720px;
}

.guides-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.guides-hero .hero-secondary-link {
  text-underline-offset: 5px;
}

.guides-hero .hero-eyebrow {
  letter-spacing: 0.09em;
}

/* ---------------------------------------------------------
   04. GUIDE TOPICS
--------------------------------------------------------- */

.guides-topics {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.guides-topic-grid {
  align-items: stretch;
}

.guides-topic-grid .category-card,
.guides-related-grid .category-card {
  height: 100%;
  min-height: 230px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.guides-topic-grid .category-card:hover,
.guides-related-grid .category-card:hover {
  transform: translateY(-3px);
}

.guides-topic-grid .category-card:focus-visible,
.guides-related-grid .category-card:focus-visible {
  outline: 3px solid var(--guides-accent);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   05. FEATURED GUIDE CARDS
--------------------------------------------------------- */

.guides-featured {
  background: var(--guides-surface);
}

.guides-article-grid {
  align-items: stretch;
}

.guides-article-grid .guide-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  background: var(--guides-white);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.guides-article-grid .guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgb(16 43 64 / 9%);
}

.guides-article-grid .guide-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e7edf1;
}

.guides-article-grid .guide-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.guides-article-grid .guide-card:hover .guide-card-image img {
  transform: scale(1.035);
}

.guides-article-grid .business-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.guides-article-grid .business-category {
  margin: 0;
  color: var(--guides-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.guides-article-grid .business-content h3 {
  margin: 0;
  color: var(--guides-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.4;
}

.guides-article-grid .business-content h3 a {
  color: inherit;
  text-decoration: none;
}

.guides-article-grid .business-content h3 a:hover {
  color: var(--guides-accent-dark);
}

.guides-article-grid .business-content > p:not(.business-category) {
  margin: 0;
  color: var(--guides-muted);
  line-height: 1.75;
}

.guides-article-grid .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  text-decoration: none;
}

.guides-article-grid .text-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   06. LONG-FORM GUIDE READING LAYOUT
--------------------------------------------------------- */

.guides-reading-section {
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.guides-reading-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.guides-toc {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  background: var(--guides-surface);
}

.guides-toc .section-label {
  display: block;
  margin-bottom: 10px;
}

.guides-toc h2 {
  margin: 0 0 18px;
  color: var(--guides-ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  line-height: 1.4;
}

.guides-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guides-toc nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--guides-border);
  color: var(--guides-ink-soft);
  font-size: 0.91rem;
  line-height: 1.55;
  text-decoration: none;
}

.guides-toc nav a:last-child {
  border-bottom: 0;
}

.guides-toc nav a:hover {
  color: var(--guides-accent-dark);
}

.guides-reading-content {
  min-width: 0;
  max-width: var(--guides-reading-width);
}

.guides-reading-content > .section-label {
  display: block;
  margin-bottom: 14px;
}

.guides-reading-content > h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--guides-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.guides-reading-content > p {
  margin: 0 0 26px;
  color: var(--guides-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Individual article sections can also be reused
   on future standalone guide pages. */

.guide-article {
  scroll-margin-top: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--guides-border);
}

.guide-article h2,
.guide-article h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--guides-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.4;
}

.guide-article p {
  margin: 0 0 18px;
  color: var(--guides-ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.guide-article p:last-child {
  margin-bottom: 0;
}

.guide-article .text-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 700;
  text-decoration: none;
}

.guide-article .text-link:hover {
  text-decoration: underline;
}

/* Checklist component */

.guide-checklist {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  padding: 0 0 0 32px;
  color: var(--guides-ink-soft);
  line-height: 1.75;
}

.guide-checklist li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--guides-ink);
  color: var(--guides-white);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------------------------------------------------------
   07. RELATED CATEGORIES
--------------------------------------------------------- */

.guides-related {
  background: var(--guides-surface);
}

.guides-related-grid .category-card {
  min-height: 205px;
}

/* ---------------------------------------------------------
   08. FAQ
--------------------------------------------------------- */

.guides-faq .faq-list details {
  scroll-margin-top: 24px;
}

.guides-faq .faq-list summary {
  cursor: pointer;
}

.guides-faq .faq-list summary span {
  line-height: 1.6;
}

.guides-faq .faq-list details p {
  color: var(--guides-ink-soft);
  line-height: 1.8;
}

.guides-faq .faq-list details .text-link {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   09. FINAL CTA
--------------------------------------------------------- */

.guides-final-cta .final-cta-inner {
  max-width: 900px;
}

.guides-final-cta .final-cta-inner > p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.85;
}

.guides-final-cta .final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
}

/* ---------------------------------------------------------
   10. FUTURE STANDALONE GUIDE PAGE COMPONENTS

   These classes can be used when individual articles are
   created under /guides/ in future.
--------------------------------------------------------- */

.guide-page {
  color: var(--guides-ink-soft);
}

.guide-page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 84px) 24px;
}

.guide-page-header h1 {
  margin: 14px 0 20px;
  color: var(--guides-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.guide-page-intro {
  max-width: 740px;
  color: var(--guides-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.9;
}

.guide-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  color: var(--guides-muted);
  font-size: 0.875rem;
}

.guide-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.guide-page-body {
  min-width: 0;
  max-width: 780px;
  color: var(--guides-ink-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

.guide-page-body h2,
.guide-page-body h3,
.guide-page-body h4 {
  margin-top: 1.8em;
  margin-bottom: 0.65em;
  color: var(--guides-ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.4;
}

.guide-page-body h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.guide-page-body h3 {
  font-size: 1.35rem;
}

.guide-page-body p,
.guide-page-body ul,
.guide-page-body ol {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.guide-page-body li {
  margin-bottom: 0.55em;
}

.guide-page-body a {
  color: var(--guides-accent-dark);
  font-weight: 600;
}

.guide-page-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--guides-accent);
  background: var(--guides-surface);
  color: var(--guides-ink);
}

.guide-page-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.guide-page-sidebar {
  position: sticky;
  top: 24px;
}

.guide-related-links {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.guide-related-links a {
  padding: 16px;
  border: 1px solid var(--guides-border);
  border-radius: 8px;
  color: var(--guides-ink);
  text-decoration: none;
}

.guide-related-links a:hover {
  border-color: var(--guides-accent);
}

/* ---------------------------------------------------------
   11. RESPONSIVE LAYOUT
--------------------------------------------------------- */

@media (max-width: 900px) {
  .guides-reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .guides-toc {
    position: static;
  }

  .guides-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .guides-reading-content {
    max-width: 100%;
  }

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

  .guide-page-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .guides-breadcrumb {
    margin-bottom: 16px;
    font-size: 0.8rem;
  }

  .guides-hero .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .guides-topic-grid .category-card,
  .guides-related-grid .category-card {
    min-height: 0;
  }

  .guides-article-grid .guide-card {
    border-radius: 9px;
  }

  .guides-article-grid .business-content {
    gap: 10px;
  }

  .guides-toc {
    padding: 20px;
  }

  .guides-toc nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-article {
    padding: 24px 0;
  }

  .guides-final-cta .final-actions {
    align-items: center;
    flex-direction: column;
    gap: 20px;
  }

  .guide-page-header {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* ---------------------------------------------------------
   12. REDUCED MOTION
--------------------------------------------------------- */

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