/*
Theme Name: OntaRate
Theme URI: https://ontarate.com
Author: OntaRate
Author URI: https://ontarate.com
Description: A bold, modern WordPress theme for Ontario rate comparisons, business directories, and content-rich websites. Features a clean editorial layout with strong typographic hierarchy, responsive design, and custom widget areas.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ontarate
Tags: blog, portfolio, one-column, two-columns, right-sidebar, left-sidebar, flexible-header, custom-background, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colours */
  --color-primary:        #0B3D91;   /* Deep Ontario Blue */
  --color-primary-dark:   #072A66;
  --color-primary-light:  #1A5CB5;
  --color-accent:         #D4420A;   /* Maple Red */
  --color-accent-dark:    #A83207;
  --color-accent-light:   #F05A20;

  /* Neutrals */
  --color-white:          #FFFFFF;
  --color-off-white:      #F7F8FA;
  --color-light:          #EEF0F4;
  --color-muted:          #C2C8D4;
  --color-mid:            #8A93A6;
  --color-dark:           #2B3244;
  --color-darker:         #161C2D;
  --color-black:          #060A12;

  /* Text */
  --text-primary:         #1A1F30;
  --text-secondary:       #4A5268;
  --text-muted:           #7B8499;
  --text-light:           #A8B0C4;

  /* Typography */
  --font-display:         'Playfair Display', Georgia, serif;
  --font-heading:         'DM Sans', 'Segoe UI', sans-serif;
  --font-body:            'Source Serif 4', Georgia, serif;
  --font-mono:            'JetBrains Mono', 'Courier New', monospace;
  --font-ui:              'DM Sans', 'Segoe UI', sans-serif;

  /* Scale */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1280px;
  --container-2xl:  1440px;
  --sidebar-width:  320px;
  --gap:            2rem;

  /* Borders */
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(6,10,18,0.06);
  --shadow-sm:  0 2px 6px rgba(6,10,18,0.08);
  --shadow-md:  0 4px 16px rgba(6,10,18,0.10);
  --shadow-lg:  0 8px 32px rgba(6,10,18,0.12);
  --shadow-xl:  0 16px 64px rgba(6,10,18,0.16);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index layers */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:   10;
  --z-overlay:  100;
  --z-modal:    1000;
  --z-toast:    2000;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-darker);
}

h1 {
  font-family: var(--font-display);
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-2xl);
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-12);
  align-items: start;
}

.grid-sidebar.sidebar-left {
  grid-template-columns: var(--sidebar-width) 1fr;
}

.site-main {
  min-height: 60vh;
}

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: var(--z-overlay);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-8);
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.site-branding:hover .site-title {
  color: var(--color-primary);
}

.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo {
  height: 40px;
  width: auto;
}

.site-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  transition: color var(--transition-fast);
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-description {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header Right */
.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-search-toggle:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

.header-search-toggle svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.main-navigation {
  flex: 1;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation > div > ul > li > a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.main-navigation > div > ul > li > a:hover,
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.current-menu-ancestor > a {
  color: var(--color-primary);
  background: rgba(11, 61, 145, 0.07);
}

/* Dropdown */
.main-navigation li {
  position: relative;
}

.main-navigation ul ul {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: var(--z-overlay);
  flex-direction: column;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
  display: flex;
}

.main-navigation ul ul li a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.main-navigation ul ul li a:hover {
  color: var(--color-primary);
  background: var(--color-off-white);
}

/* CTA Button in nav */
.menu-item--cta > a {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-full) !important;
  padding: var(--space-2) var(--space-6) !important;
}

.menu-item--cta > a:hover {
  background: var(--color-accent-dark) !important;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-muted);
  background: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.menu-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(212,66,10,0.18) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-4);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.hero-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-banner p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-light);
  background: var(--color-white);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumbs__item a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  text-decoration: underline;
}

.breadcrumbs__sep {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.breadcrumbs__current {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(212,66,10,0.30);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(212,66,10,0.40);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--color-muted);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================================
   PAGE HEADER (Archive / Single titles)
   ============================================================ */
.page-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light);
  padding: var(--space-12) 0;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-darker);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.page-header__description {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 600px;
}

.archive-description p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   CONTENT SECTION WRAPPERS
   ============================================================ */
.content-area {
  padding: var(--space-16) 0 0;
}

/* ============================================================
   CARD / POST CARD
   ============================================================ */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.post-card__thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__thumbnail img {
  transform: scale(1.04);
}

.post-card__thumbnail-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-muted) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__thumbnail-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--color-mid);
}

.post-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.post-card__category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(11,61,145,0.09);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.post-card__category:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.post-card__date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-light);
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-darker);
  margin-bottom: var(--space-3);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-5);
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.post-card__read-more {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.post-card__read-more:hover {
  color: var(--color-accent-dark);
  gap: var(--space-3);
}

.post-card__reading-time {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.posts-grid--featured {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

.posts-grid--featured .post-card:first-child {
  grid-column: span 2;
}

/* ============================================================
   FEATURED POST (large)
   ============================================================ */
.featured-post {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.featured-post__thumbnail {
  overflow: hidden;
}

.featured-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post__body {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.featured-badge {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(212,66,10,0.10);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.featured-post__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-darker);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.featured-post__title a {
  color: inherit;
  text-decoration: none;
}

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

.featured-post__excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post__header {
  padding: var(--space-16) 0 var(--space-8);
}

.single-post__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.single-post__categories {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cat-label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.cat-label:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.post-date,
.post-author-name,
.post-reading-time {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.meta-sep { color: var(--color-muted); }

.single-post__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4.5vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-darker);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
}

.single-post__excerpt {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-5);
  margin-bottom: var(--space-8);
}

.single-post__featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-lg);
}

.single-post__featured-image img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

/* ============================================================
   ENTRY CONTENT (Post body typography)
   ============================================================ */
.entry-content {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--text-primary);
}

.entry-content > * + * {
  margin-top: var(--space-6);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--color-darker);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.entry-content h2 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
.entry-content h3 { font-size: var(--text-xl); }
.entry-content h4 { font-size: var(--text-lg); }

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(11,61,145,0.4);
}

.entry-content a:hover {
  text-decoration-color: var(--color-primary);
}

.entry-content ul,
.entry-content ol {
  margin-left: var(--space-6);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
  margin-bottom: var(--space-2);
}

.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  background: rgba(212,66,10,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.entry-content blockquote p { margin: 0; }

.entry-content pre {
  background: var(--color-darker);
  color: #e2e8f0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--color-accent-dark);
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.entry-content th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-ui);
  font-weight: 600;
  text-align: left;
}

.entry-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-light);
}

.entry-content tr:nth-child(even) td {
  background: var(--color-off-white);
}

.entry-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.entry-content figure {
  margin: var(--space-8) 0;
}

.entry-content figcaption {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-3);
  font-style: italic;
}

.entry-content hr {
  border: none;
  border-top: 2px solid var(--color-light);
  margin: var(--space-10) 0;
}

.entry-content .wp-block-button__link {
    text-decoration: none;
}

/* ============================================================
   POST TAGS
   ============================================================ */
.post-tags {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-light);
  margin-top: var(--space-8);
}

.post-tags__label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.tag-pill {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--color-light);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.tag-pill:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  margin: var(--space-12) 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light);
}

.author-box__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--color-light);
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.author-box__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-darker);
  margin-bottom: var(--space-3);
}

.author-box__bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.author-box__link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.author-box__link:hover {
  text-decoration: underline;
}

/* ============================================================
   POST NAVIGATION (prev / next)
   ============================================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-light);
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-decoration: none;
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.nav-link.next {
  text-align: right;
}

.nav-link__direction {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-link__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-darker);
  line-height: 1.35;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-darker);
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--color-accent);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  padding: var(--space-12) 0;
}

.comments-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.comment {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-light);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.comment-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.comment-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-author-name {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-darker);
  font-size: var(--text-sm);
}

.comment-date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.comment-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.comment-reply-link {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: var(--space-3);
  display: inline-block;
}

/* Children comments */
.children {
  margin-left: var(--space-8);
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Comment Form */
.comment-respond {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-light);
  box-shadow: var(--shadow-sm);
}

.comment-reply-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-darker);
}

.comment-form {
  display: grid;
  gap: var(--space-4);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: grid;
  gap: var(--space-2);
}

.comment-form label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-muted);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--color-off-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11,61,145,0.12);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form-comment {
  display: grid;
  gap: var(--space-2);
}

.form-submit {
  display: flex;
  justify-content: flex-start;
}

.comment-form #submit {
  appearance: none;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form #submit:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}


/* ============================================================
   FORMS (general)
   ============================================================ */
.search-form {
  display: flex;
  gap: var(--space-2);
}

.search-field {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-muted);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--color-off-white);
  transition: border-color var(--transition-fast);
}

.search-field:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-submit {
  appearance: none;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-submit:hover {
  background: var(--color-primary-dark);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: calc(72px + var(--space-6));
}

.widget {
    margin-bottom: var(--space-6);
}

/* Sidebar widgets get the card styling */
.sidebar .widget {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light);
}

/* Footer widgets inherit the dark background */
.site-footer .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}
.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-darker);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.widget ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.widget ul li a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.widget ul li a:hover {
  background: var(--color-off-white);
  color: var(--color-primary);
}

.widget ul li .count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--color-light);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

/* Recent Posts Widget */
.widget-recent-post {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-light);
}

.widget-recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-recent-post__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.widget-recent-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-recent-post__title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-darker);
  line-height: 1.35;
  margin-bottom: var(--space-1);
}

.widget-recent-post__title a {
  color: inherit;
  text-decoration: none;
}

.widget-recent-post__title a:hover {
  color: var(--color-primary);
}

.widget-recent-post__date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,
.posts-navigation {
  display: flex;
  justify-content: center;
  padding: var(--space-10) 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1.5px solid var(--color-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.page-numbers:hover,
.nav-links a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-numbers.current,
.nav-links .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.page-numbers.dots {
  border-color: transparent;
  cursor: default;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-darker);
  color: rgba(255,255,255,0.7);
}

.site-footer__top {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col__title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.site-footer__bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.40);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,10,18,0.88);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(8px);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-overlay__inner {
  width: 100%;
  max-width: 640px;
  padding: 0 var(--space-6);
}

.search-overlay .search-form {
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: var(--space-2);
  box-shadow: var(--shadow-xl);
}

.search-overlay .search-field {
  border: none;
  background: none;
  font-size: var(--text-lg);
  padding: var(--space-3) var(--space-5);
}

.search-overlay .search-submit {
  padding: var(--space-3) var(--space-6);
}

.search-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: none;
  border-radius: var(--radius-full);
  color: var(--color-white);
  cursor: pointer;
  margin-left: auto;
  margin-bottom: var(--space-5);
  transition: background var(--transition-fast);
}

.search-overlay__close:hover {
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: var(--space-32) 0;
}

.error-404__number {
  font-family: var(--font-display);
  font-size: 180px;
  font-weight: 700;
  color: var(--color-light);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
  user-select: none;
}

.error-404__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-darker);
  margin-bottom: var(--space-4);
}

.error-404__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-8);
}

/* ============================================================
   RATE TABLE (specialty component)
   ============================================================ */
.rate-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-light);
  background: var(--color-white);
  margin: var(--space-8) 0;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}

.rate-table thead tr {
  background: var(--color-primary);
  color: var(--color-white);
}

.rate-table th {
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.03em;
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.rate-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-light);
  color: var(--text-secondary);
}

.rate-table tbody tr:last-child td {
  border-bottom: none;
}

.rate-table tbody tr:nth-child(even) td {
  background: var(--color-off-white);
}

.rate-table tbody tr:hover td {
  background: rgba(11,61,145,0.04);
}

.rate-badge {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.rate-badge--best {
  background: rgba(16,185,129,0.12);
  color: #059669;
}

.rate-badge--high {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
}

.rate-badge--mid {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}

/* ============================================================
   INFO BOXES / CALLOUTS
   ============================================================ */
.callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.callout__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.callout--info {
  background: rgba(11,61,145,0.07);
  border-left: 4px solid var(--color-primary);
}

.callout--info .callout__icon { color: var(--color-primary); }

.callout--warning {
  background: rgba(245,158,11,0.08);
  border-left: 4px solid #f59e0b;
}

.callout--warning .callout__icon { color: #f59e0b; }

.callout--success {
  background: rgba(16,185,129,0.08);
  border-left: 4px solid #10b981;
}

.callout--success .callout__icon { color: #10b981; }

.callout--danger {
  background: rgba(239,68,68,0.08);
  border-left: 4px solid #ef4444;
}

.callout--danger .callout__icon { color: #ef4444; }

.callout__body p { margin: 0; font-size: var(--text-sm); }
.callout__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.wp-block-columns {
    gap: var(--space-6) !important;
}
.wp-block-quote {
    padding: var(--space-6);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.wp-block-quote p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-3);
}

.wp-block-quote cite {
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: normal;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }

/* Bottom wave curve — matches hero-banner style.
   Add this class to any Cover block via "Additional CSS class". */
.has-bottom-curve {
  position: relative;
  overflow: visible !important;
}

.has-bottom-curve::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
  z-index: 10;
}

/* Left-column layout — constrains inner content to the left half.
   Add to the inner Group block inside a Cover block. */
.content-left {
  max-width: 52% !important;
  margin-right: auto;
  margin-left: 0 !important;
}

@media (max-width: 768px) {
  .content-left {
    max-width: 100% !important;
  }
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--color-light) 25%, var(--color-muted) 50%, var(--color-light) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius-md);
}

/* ============================================================
   RESPONSIVE: TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .posts-grid--featured {
    grid-template-columns: 1fr 1fr;
  }

  .posts-grid--featured .post-card:first-child {
    grid-column: span 2;
  }

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

  .grid-sidebar.sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .sidebar .widget {
    margin-bottom: 0;
  }
}

/* ============================================================
   RESPONSIVE: MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-16: 3rem;
    --space-20: 4rem;
    --space-24: 5rem;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Header */
  .site-header__inner {
    height: 60px;
  }

  .main-navigation {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--color-white);
    padding: var(--space-6);
    overflow-y: auto;
    z-index: var(--z-overlay);
    border-top: 1px solid var(--color-light);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: var(--space-1);
  }

  .main-navigation > div > ul > li > a {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }

  .main-navigation ul ul {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-4);
    background: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Posts grid */
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid--featured {
    grid-template-columns: 1fr;
  }

  .posts-grid--featured .post-card:first-child {
    grid-column: span 1;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post__thumbnail {
    aspect-ratio: 16/9;
    height: auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Post navigation */
  .post-navigation {
    grid-template-columns: 1fr;
  }

  /* Sidebar */
  .sidebar {
    grid-template-columns: 1fr;
  }

  /* Author box */
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Hero */
  .hero-banner {
    padding: var(--space-16) 0 var(--space-20);
  }

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

  /* Error 404 */
  .error-404__number {
    font-size: 100px;
  }
}

/* ============================================================
   WORDPRESS ALIGNMENT CLASSES
   ============================================================ */
.alignleft {
  float: left;
  margin-right: var(--space-6);
  margin-bottom: var(--space-4);
}

.alignright {
  float: right;
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignwide {
  margin-left: -var(--space-10);
  margin-right: -var(--space-10);
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* ============================================================
   WORDPRESS GALLERY
   ============================================================ */
.gallery {
  display: grid;
  gap: var(--space-3);
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .main-navigation,
  .comments-area,
  .related-posts {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* ============================================================
   BACK TO TOP BUTTON (JS injected)
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-overlay);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   READING PROGRESS BAR (JS injected)
   ============================================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: var(--z-toast);
  width: 0%;
  transition: width 100ms linear;
}

/* ============================================================
   FADE-IN-UP ANIMATION
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.posts-grid .post-card:nth-child(2) { transition-delay: 0.08s; }
.posts-grid .post-card:nth-child(3) { transition-delay: 0.16s; }
.posts-grid .post-card:nth-child(4) { transition-delay: 0.24s; }
.posts-grid .post-card:nth-child(5) { transition-delay: 0.32s; }
.posts-grid .post-card:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   SCROLLED HEADER
   ============================================================ */
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* ============================================================
   EMBED RESPONSIVE
   ============================================================ */
.embed-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.embed-responsive iframe,
.embed-responsive object,
.embed-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   PAGE LINKS (multi-page posts)
   ============================================================ */
.page-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.page-links a,
.page-links > span:not(:first-child) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-links a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
  padding: var(--space-16) 0;
  text-align: center;
}

.no-results h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.no-results .search-form {
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   WP CAPTION (legacy images)
   ============================================================ */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  margin-top: var(--space-2);
}

/* ============================================================
   BLOCK: Pullquote
   ============================================================ */
.wp-block-pullquote {
  border-top: 4px solid var(--color-primary);
  border-bottom: 4px solid var(--color-primary);
  padding: var(--space-8) 0;
  text-align: center;
}

.wp-block-pullquote blockquote {
  border: none;
  background: none;
  padding: 0;
  font-style: normal;
}

.wp-block-pullquote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-darker);
  font-style: italic;
}

.wp-block-pullquote cite {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: normal;
}

/* ============================================================
   BLOCK: Cover
   ============================================================ */
.wp-block-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ============================================================
   BLOCK: Buttons
   ============================================================ */
.wp-block-button__link {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full) !important;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.wp-block-button__link:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.is-style-outline .wp-block-button__link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   BLOCK: Separator
   ============================================================ */
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--color-light);
  margin: var(--space-10) 0;
}

.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  color: var(--color-muted);
  letter-spacing: 0.5em;
}

.wp-block-separator.is-style-dots::before {
  content: "· · ·";
  font-size: var(--text-xl);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   COMMENT MODERATION
   ============================================================ */
.comment-awaiting-moderation {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: #d97706;
  background: rgba(245,158,11,0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}


/* ============================================================
   SECTION SPACING UTILITIES
   ============================================================ */
.section-pad    { padding-top: 80px;  padding-bottom: 80px;  }
.section-pad-sm { padding-top: 40px;  padding-bottom: 40px;  }
.section-pad-lg { padding-top: 120px; padding-bottom: 120px; }

.pad-x          { padding-left: 24px; padding-right: 24px; }
.pad-x-lg       { padding-left: 48px; padding-right: 48px; }

.mt-section     { margin-top: 80px;  }
.mb-section     { margin-bottom: 80px; }
.mb-section-sm    { margin-bottom: 40px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


.bg-services-light {
    background: linear-gradient(135deg, #EEF0F4 0%, #dde2ed 100%);
}
.bg-services-bold {
    background: linear-gradient(135deg, #0B3D91 0%, #1A5CB5 50%, #D4420A 100%);
}


.how-it-works ol {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
    margin: 1em auto;
    list-style: none;
    counter-reset: how-steps;
    padding: 0;
}

.how-it-works ol li {
    position: relative;
    padding-left: 76px;
    counter-increment: how-steps;
    min-height: 52px;
    margin-top: 16px;
}
.how-it-works ol li strong {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-darker);
}

.how-it-works ol li::before {
    content: counter(how-steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


.narrow-section {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;

}


/* ============================================================
   GRAVITY FORMS
   ============================================================ */
.gform_wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.gform_wrapper .gfield_label {
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper select,
.gform_wrapper textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--color-muted);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--color-off-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11,61,145,0.12);
    background: var(--color-white);
}

.gform_wrapper .gfield_required {
    color: var(--color-accent);
    margin-left: 2px;
}

.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea {
    border-color: var(--color-accent);
}

.gform_wrapper .validation_message {
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    color: var(--color-accent);
    margin-top: 4px;
}

.gform_wrapper .gform_validation_errors {
    background: rgba(212,66,10,0.08);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    color: var(--color-accent-dark);
}

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"] {
    appearance: none;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    width: 100%;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 14px rgba(212,66,10,0.30);
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 6px 20px rgba(212,66,10,0.40);
}

.gform_confirmation_message {
    background: rgba(16,185,129,0.08);
    border: 1px
}