/* =========================================
   TORONTO BUSINESS DIRECTORY
   CLEAN MODERN EDITION
   ========================================= */

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* VARIABLES */
:root {
  --bg: #f5f7fb;
  --white: #ffffff;

  --text: #111827;
  --text-light: #6b7280;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --secondary: #eef2ff;

  --border: #e5e7eb;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --container: 1160px;
}

/* BASE */
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);

  font-size: 16px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
}

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

/* LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

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

.heading-space {
  margin-bottom: 3rem;
}

.section-alt {
  background: #ffffff;
}

/* HERO */
.site-header {
  padding: 3rem 0 2rem;

  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.08),
      transparent 35%
    ),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.logo-wrap img {
  margin: 0 auto 1.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

/* CTA */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* TRUST */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;

  background: var(--primary);
  color: white;
  border: 1px solid transparent;

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.14);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.btn-light {
  background: white;
  color: var(--text);
}

.btn-light:hover {
  background: #f3f4f6;
}

/* LABELS */
.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-label.light {
  color: rgba(255, 255, 255, 0.7);
}

/* GRIDS */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* VALUE BLOCK */
.value-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* CATEGORY CARD */
.category-card {
  position: relative; /* Crucial block reference for absolute layout child */
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #dbeafe;
}

.category-card a {
  display: block;
  padding: 1.6rem;
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

/* Creates a micro-overlay making the ENTIRE surface card clickable */
.category-card a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: var(--radius-md);
}

/* FEATURED CARD */
.featured-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  align-self: flex-start;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.9rem;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card ul {
  list-style: none;
  margin: 1rem 0 2rem;
}

.featured-card ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.featured-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.featured-card .btn {
  margin-top: auto; /* Pushes the button to the absolute bottom of the grid-card symmetrically */
}

/* STANDARD CARD (Reserved/Interior) */
.standard-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.standard-card a {
  color: var(--primary);
  font-weight: 600;
}

/* PREMIUM CTA */
.super-ad {
  background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #1d4ed8 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.super-ad::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 420px;
  background: radial-gradient(rgba(255, 255, 255, 0.08), transparent 70%);
  transform: translate(30%, -30%);
}

.super-ad h2 {
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.super-ad p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
}

.super-ad .btn-light {
  position: relative;
  z-index: 2;
  background: white;
  color: #111827;
  border: none;
}

.super-ad .btn-light:hover {
  background: #e0e7ff;
  color: #111827;
}

/* FOOTER */
.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  margin-top: 6rem;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-grid h4 {
  margin-bottom: 1rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* INTERNAL COMPONENTS (Reserved/Interior) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 1.5rem 0;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.review-box {
  background: #f9fafb;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.5rem;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  section {
    padding: 3rem 0; /* Balanced padding adjustment for small screens */
  }

  .grid-2-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .featured-card,
  .standard-card {
    padding: 2rem;
  }
}
