/*
Theme Name: CanCitizens
Theme URI: https://cancitizens.ca/
Author: cancitizens.ca
Description: Editable block theme for cancitizens.ca with Site Editor templates, patterns, and design tokens.
Version: 1.0.11
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: cancitizens
*/

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

.wp-site-blocks {
  overflow-x: hidden;
}

.cc-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.cc-header-inner {
  width: min(1280px, calc(100% - 32px));
  max-width: none;
  min-height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 2rem;
}

.cc-brand-mark {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.cc-site-header .wp-block-site-title {
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.cc-site-header .wp-block-site-title a {
  color: #1e293b;
  text-decoration: none;
}

.cc-site-header .wp-block-site-tagline,
.cc-site-header p.has-muted-color.has-text-color:not(.cc-brand-mark) {
  display: none !important;
}

.cc-main-nav {
  margin-left: auto;
  color: #475569;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cc-eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--wp--preset--color--primary-soft);
  color: var(--wp--preset--color--primary);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem .9rem;
}

.cc-home-hero {
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 6rem) 1rem clamp(7rem, 10vw, 8rem);
  text-align: center;
}

.cc-home-hero .cc-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.cc-hero-title {
  max-width: 980px;
  margin: 1.8rem auto 1.8rem;
  color: #0f172a;
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.cc-hero-title mark {
  background: transparent;
  color: #2563eb;
  font-style: italic;
  padding: 0;
}

.cc-hero-copy {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #64748b;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.65;
}

.cc-feature-strip {
  width: min(1024px, calc(100% - 32px));
  margin: -3rem auto 0;
  position: relative;
  z-index: 2;
}

.cc-feature-card {
  border: 1px solid var(--wp--preset--color--border-soft);
  border-radius: 24px;
  background: var(--wp--preset--color--surface);
  box-shadow: 0 20px 42px rgba(148, 163, 184, .22);
  padding: 1.5rem;
  text-align: center;
}

.cc-feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f8fafc;
  color: #2563eb;
  font-weight: 900;
  margin: 0 auto 1rem;
}

.cc-feature-card h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.cc-feature-card p:not(.cc-feature-icon) {
  color: #64748b;
  font-size: .95rem;
  line-height: 1.6;
}

.cc-practice-section {
  width: min(1280px, calc(100% - 32px));
  margin-top: 6rem;
}

.wp-block-post-content > .cc-practice-page.alignwide,
.cc-practice-section.cc-practice-page {
  width: min(1280px, calc(100% - 32px));
  max-width: none;
  margin-top: 1rem;
}

.cc-practice-section > * {
  max-width: none !important;
}

.cc-practice-page > .cc-eyebrow,
.cc-practice-page > h1,
.cc-practice-page > p {
  max-width: 760px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.cc-practice-page > .ccq-catalog {
  width: 100%;
}

.cc-section-heading {
  width: 100%;
  margin-bottom: 2.25rem;
}

.cc-section-heading h2 {
  margin: 0 0 .5rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
}

.cc-section-heading p {
  color: #64748b;
  margin: 0;
}

.cc-insights-band {
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  margin-top: 8rem;
  padding: clamp(4rem, 8vw, 6rem) 1rem;
}

.cc-insights-grid {
  gap: clamp(2rem, 6vw, 4rem);
}

.cc-text-label {
  color: #2563eb;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cc-insights-band h2 {
  color: #0f172a;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.cc-step-list {
  display: grid;
  gap: 1.5rem;
  color: #475569;
}

.cc-step-list p {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cc-step-list strong {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #f8fafc;
  color: #2563eb;
  font-weight: 900;
}

.cc-insight-media {
  position: relative;
}

.cc-insight-media figure {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 68px rgba(15, 23, 42, .18);
  margin: 0;
}

.cc-insight-media img {
  aspect-ratio: 4 / 3;
  display: block;
  filter: grayscale(.9);
  opacity: .82;
  object-fit: cover;
  width: 100%;
}

.cc-media-note {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
  font-weight: 700;
}

.cc-card,
.cc-post-card,
.cc-page-panel {
  border: 1px solid var(--wp--preset--color--border-soft);
  border-radius: 18px;
  background: var(--wp--preset--color--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.cc-card {
  padding: 1.35rem;
}

.cc-page-panel {
  padding: clamp(2rem, 6vw, 4rem);
}

.cc-blog-hero {
  border-bottom: 1px solid #f1f5f9;
  width: 100vw !important;
  max-width: none !important;
  margin-top: -4rem !important;
  margin-left: 50% !important;
  margin-right: 0 !important;
  padding-top: clamp(2.75rem, 5vw, 4rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.25rem) !important;
  transform: translateX(-50%);
}

.cc-blog-hero > .wp-block-columns {
  width: min(1280px, calc(100vw - 32px)) !important;
  max-width: none !important;
  margin-left: 50% !important;
  margin-right: 0 !important;
  gap: clamp(2rem, 5vw, 5rem);
  transform: translateX(-50%);
}

.cc-blog-hero .cc-card {
  max-width: 360px;
  margin-left: auto;
  padding: 1.75rem;
}

.cc-blog-hero .cc-card h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem) !important;
  line-height: 1.05;
}

.cc-blog-hero .cc-card p,
.cc-blog-hero .cc-card li {
  font-size: .98rem;
  line-height: 1.55;
}

.cc-blog-hero .wp-block-buttons {
  gap: .75rem;
}

.cc-blog-hero .wp-block-button__link {
  min-height: 48px;
  border-radius: 10px;
  padding: .75rem 1.25rem;
}

.cc-blog-title {
  max-width: 720px;
  margin: 1.35rem 0 1rem;
  color: #0f172a;
  font-size: clamp(2.45rem, 4vw, 3.65rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
}

.cc-blog-copy {
  max-width: 720px;
  color: #64748b;
  font-size: clamp(1.05rem, 1.65vw, 1.22rem);
  font-weight: 500;
  line-height: 1.6;
}

.wp-block-post-content > .wp-block-shortcode {
  max-width: none !important;
}

.cc-single-hero {
  text-align: center;
}

.cc-single-hero .cc-text-label {
  justify-content: center;
}

.cc-single-title {
  max-width: 980px;
  margin: 1.25rem auto;
  color: #0f172a;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.cc-single-meta {
  color: #64748b;
  font-size: .9rem;
  font-weight: 800;
}

.cc-single-image {
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .1);
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.cc-single-image img {
  aspect-ratio: 16 / 8;
  display: block;
  object-fit: cover;
  width: 100%;
}

.cc-single-content {
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.8;
}

.cc-single-content a {
  font-weight: 800;
}

.cc-single-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.cc-single-nav .cc-post-nav {
  display: inline-flex;
}

.cc-single-nav .cc-post-nav:empty {
  display: none !important;
}

.cc-single-nav .cc-post-nav > a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .1);
  font-weight: 900;
  text-decoration: none;
  padding: 0 1.35rem;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.cc-single-nav .cc-post-nav > a:hover,
.cc-single-nav .cc-post-nav > a:focus {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

.wp-block-button__link {
  box-shadow: 0 18px 36px rgba(37, 99, 235, .22);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, .25);
}

.wp-block-post-content > .alignwide {
  width: min(var(--wp--style--global--wide-size, 1180px), calc(100% - 32px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-post-content > .alignfull {
  width: 100%;
  max-width: none;
}

.wp-block-post-content > .cc-section {
  margin-top: 3rem;
}

@media (max-width: 760px) {
  .cc-header-inner {
    min-height: 64px;
  }

  .cc-site-header .wp-block-site-title {
    font-size: 1.15rem;
  }

  .cc-hero-title {
    font-size: clamp(2.9rem, 14vw, 4.25rem);
  }

  .cc-blog-hero {
    padding-top: 2.5rem !important;
    padding-bottom: 3rem !important;
  }

  .cc-blog-title {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
    line-height: 1.05;
  }

  .cc-blog-copy {
    font-size: 1rem;
  }

  .cc-blog-hero .cc-card {
    max-width: none;
    margin-left: 0;
    padding: 1.35rem;
  }

  .cc-blog-hero .wp-block-button__link {
    min-height: 44px;
    font-size: 1rem;
  }

  .cc-feature-strip {
    margin-top: -2.25rem;
  }

  .cc-media-note {
    position: static;
    color: #0f172a;
    margin-top: 1rem;
  }
}
