/*
Theme Name: Crabtree Chevrolet Blog
Theme URI: https://www.crabtreechevrolet.com/
Author: Crabtree Chevrolet
Author URI: https://www.crabtreechevrolet.com/
Description: Custom WordPress blog theme designed to seamlessly match the Bobby Crabtree Chevrolet of New Haven website. Built to provide a consistent brand experience for customers navigating between the blog and the main dealership site.
Version: 1.13.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crabtree-chevrolet
Tags: automotive, dealership, blog, custom-menu, featured-images, sidebar
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — CRABTREE CHEVROLET DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --color-gold:          #D1AD57;   /* Chevrolet Vegas Gold — primary accent */
  --color-gold-dark:     #B8962E;   /* Hover state for gold */
  --color-gold-light:    #E8C96A;   /* Light gold for subtle accents */
  --color-black:         #0A0A0A;   /* Near-black — header, footer */
  --color-dark:          #1A1A1A;   /* Card backgrounds, dark sections */
  --color-charcoal:      #2D2D2D;   /* Secondary dark tone */
  --color-white:         #FFFFFF;
  --color-off-white:     #F8F8F8;   /* Page background */
  --color-light-gray:    #F0F0F0;   /* Section backgrounds */
  --color-border:        #E2E2E2;   /* Subtle borders */
  --color-text-primary:  #1A1A1A;   /* Main body text */
  --color-text-secondary:#555555;   /* Secondary / meta text */
  --color-text-muted:    #888888;   /* Muted labels, captions */
  --color-red:           #C0392B;   /* Alerts / error states */

  /* Typography */
  --font-heading:        'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body:           'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:           'Courier New', Courier, monospace;

  /* Font Sizes */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */

  /* 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;

  /* Borders & Radius */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --border-width: 1px;
  --border-accent: 3px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.16);
  --shadow-xl:  0 16px 40px rgba(0,0,0,0.20);

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

  /* Layout */
  --container-max:     1280px;
  --container-narrow:  960px;
  --header-height:     70px;
  --sidebar-width:     320px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll — html is the true scroll root */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  color: var(--color-text-primary);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Clear size steps so each level is unmistakably different:
   h1 48px → h2 36px → h3 22px → h4 18px → h5 16px → h6 14px
   h3 also uses letter-spacing 0.07em for visual distinction from h2 */
h1 { font-size: var(--text-5xl); }                          /* 48px */
h2 { font-size: var(--text-4xl); }                          /* 36px */
h3 { font-size: 1.375rem; letter-spacing: 0.07em; }         /* 22px — clearly smaller than h2 */
h4 { font-size: var(--text-lg); font-weight: 600; }         /* 18px */
h5 { font-size: var(--text-base); font-weight: 600; }       /* 16px */
h6 { font-size: var(--text-sm); font-weight: 600; }         /* 14px */

p {
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  border-left: var(--border-accent) solid var(--color-gold);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-light-gray);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-secondary);
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

code {
  font-family: var(--font-mono);
  background: var(--color-light-gray);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-charcoal);
}

pre {
  background: var(--color-dark);
  color: var(--color-off-white);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

hr {
  border: none;
  border-top: var(--border-width) solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ============================================================
   LAYOUT — CONTAINER & GRID
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* belt-and-suspenders: catch any child that slips past body/html */
}

.site-main {
  flex: 1;
  padding: 0 0 var(--space-12) 0; /* no top padding — hero/content provides its own top spacing */
}

/* Content + Sidebar Layout */
.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-10);
  align-items: start;
}

/* Single post — full-width, no sidebar, centered with comfortable reading width */
.single-post-layout {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECTION LABELS — "DEALERSHIP STYLE" HEADING TREATMENT
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  margin-right: var(--space-2);
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  position: relative;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
}

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

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-black);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--secondary:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn--dark:hover {
  background: var(--color-charcoal);
  color: var(--color-gold);
  border-color: var(--color-charcoal);
}

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

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

.btn--sm {
  font-size: var(--text-xs);
  padding: 8px 18px;
  letter-spacing: 0.1em;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 16px 36px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-black);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Top utility bar */
.header-topbar {
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-2) 0;
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.topbar-contact a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.topbar-contact a:hover {
  color: var(--color-gold);
}

.topbar-contact .dashicons {
  font-size: 14px;
  color: var(--color-gold);
}

.topbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-cta a {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.topbar-cta a:hover,
.topbar-cta a.is-gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

/* Main header row */
.header-main {
  padding: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-text .dealership-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1;
}

.site-logo-text .dealership-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1;
  margin-top: 3px;
}

/* Primary navigation */
.primary-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.primary-nav ul li {
  height: 100%;
  position: relative;
}

.primary-nav ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.primary-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current-page-ancestor > a {
  color: var(--color-gold);
}

.primary-nav ul li a:hover::after,
.primary-nav ul li.current-menu-item > a::after,
.primary-nav ul li.current-page-ancestor > a::after {
  transform: scaleX(1);
}

/* Dropdown sub-menus */
.primary-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-dark);
  border-top: 3px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  flex-direction: column;
  height: auto;
}

.primary-nav ul li:hover > ul {
  display: flex;
}

.primary-nav ul li ul li {
  height: auto;
  width: 100%;
}

.primary-nav ul li ul li a {
  height: auto;
  padding: var(--space-3) var(--space-5);
  color: rgba(255,255,255,0.75);
  font-size: var(--text-xs);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.primary-nav ul li ul li a::after {
  display: none;
}

.primary-nav ul li ul li a:hover {
  background: rgba(209,173,87,0.1);
  color: var(--color-gold);
  padding-left: var(--space-6);
}

/* Header search toggle */
.header-search-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-fast);
  margin-left: var(--space-4);
  display: flex;
  align-items: center;
}

.header-search-toggle:hover {
  color: var(--color-gold);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
}

.nav-toggle:hover span {
  background: var(--color-gold);
}

/* Gold "BLOG" badge in nav */
.nav-blog-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-gold);
  color: var(--color-black) !important;
  font-size: 10px !important;
  padding: 3px 8px !important;
  border-radius: var(--radius-sm);
  margin-left: var(--space-2);
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
  background: var(--color-black);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Background image is injected dynamically via wp_head when a Header Image
     is set in Appearance → Customize → Header Image. No image = clean dark hero. */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.page-hero__label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.page-hero__description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.breadcrumb a,
.breadcrumb span {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
  color: var(--color-gold);
}

/* ============================================================
   BLOG POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); /* min() prevents the 320px floor from exceeding viewport on narrow phones */
  gap: var(--space-8);
}

/* Related articles grid — 3-up on desktop, 1-col on mobile */
.posts-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .posts-grid--related {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .posts-grid--related {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.post-card__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-light-gray);
}

.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__category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.post-card__no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__no-image svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
  fill: var(--color-gold);
}

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

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

.post-card__date,
.post-card__author {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.post-card__date .dashicons,
.post-card__author .dashicons {
  font-size: 12px;
  color: var(--color-gold);
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

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

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

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

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.post-card__read-more {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-fast);
}

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

.post-card__read-more .arrow {
  transition: transform var(--transition-base);
}

.post-card__read-more:hover .arrow {
  transform: translateX(4px);
}

.post-card__comments {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Featured post — full width */
.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-card--featured .post-card__thumbnail {
  aspect-ratio: unset;
  min-height: 360px;
}

.post-card--featured .post-card__body {
  padding: var(--space-10);
}

.post-card--featured .post-card__title {
  font-size: var(--text-3xl);
}

@media (max-width: 768px) {
  .post-card--featured {
    grid-template-columns: 1fr;
  }
  .post-card--featured .post-card__thumbnail {
    min-height: 240px;
  }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.pagination a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

.pagination .current {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-gold);
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   SINGLE POST
   NOTE: Class is .entry-post-card (NOT .single-post) to avoid
   collision with WordPress's own auto-generated body class
   'single-post' which WP adds on all single post pages.
   ============================================================ */
.entry-post-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.entry-post-card__featured-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.entry-post-card__body {
  padding: var(--space-10) var(--space-12);
}

@media (max-width: 768px) {
  .entry-post-card__body {
    padding: var(--space-6);
  }
}

.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: var(--space-4) 0 var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.post-meta-item .dashicons {
  font-size: 14px;
  color: var(--color-gold);
}

.post-meta-item a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.post-meta-item a:hover {
  color: var(--color-gold);
}

/* Post content styles */
.entry-content {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-primary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

/* Post body h2 — major section heading: 30px with gold underline accent */
.entry-content h2 {
  font-size: var(--text-3xl);       /* 30px */
  letter-spacing: 0.03em;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.entry-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--color-gold);
}

/* Post body h3 — sub-section: 20px, clearly smaller than h2 */
.entry-content h3 {
  font-size: var(--text-xl);        /* 20px */
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* Post body h4 — minor heading: 16px */
.entry-content h4 {
  font-size: var(--text-base);      /* 16px */
  font-weight: 600;
  letter-spacing: 0.08em;
}

.entry-content p { margin-bottom: var(--space-5); }

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

.entry-content ul { list-style: none; }
.entry-content ul li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
}
.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

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

.entry-content a {
  color: var(--color-gold);
  border-bottom: 1px solid rgba(209,173,87,0.4);
  transition: all var(--transition-fast);
}

.entry-content a:hover {
  color: var(--color-gold-dark);
  border-bottom-color: var(--color-gold-dark);
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  overflow-x: auto;
  display: block;
}

.entry-content table th {
  background: var(--color-black);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.entry-content table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

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

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

.post-tags__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.post-tags a {
  display: inline-block;
  background: var(--color-light-gray);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.post-tags a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

/* Author box */
.author-box {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-light-gray);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  margin-top: var(--space-8);
}

.author-box__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.author-box__bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post-nav-link {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

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

.post-nav-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
}

.post-nav-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1.3;
}

/* Comments */
.comments-section {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-black);
  padding: var(--space-3) var(--space-5);
  margin: 0;
  border-bottom: 3px solid var(--color-gold);
  position: relative;
}

.widget-body {
  padding: var(--space-5);
}

/* Search widget */
.widget-search .search-form {
  display: flex;
  gap: 0;
}

.widget-search input[type="search"] {
  flex: 1;
  border: 2px solid var(--color-border);
  border-right: none;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.widget-search input[type="search"]:focus {
  border-color: var(--color-gold);
}

.widget-search button[type="submit"] {
  background: var(--color-gold);
  border: 2px solid var(--color-gold);
  color: var(--color-black);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background var(--transition-fast);
}

.widget-search button[type="submit"]:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

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

.widget-recent-posts ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-recent-posts .post-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.widget-recent-posts .post-info a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color var(--transition-fast);
}

.widget-recent-posts .post-info a:hover {
  color: var(--color-gold);
}

.widget-recent-posts .post-date {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Categories widget */
.widget-categories ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.widget-categories ul li:last-child a {
  border-bottom: none;
}

.widget-categories ul li a:hover {
  color: var(--color-gold);
  padding-left: var(--space-3);
}

.widget-categories .count {
  background: var(--color-light-gray);
  color: var(--color-text-muted);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
}

/* CTA Widget — matches main site's "Schedule Service" promo blocks */
.widget-cta {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
  border: none;
  padding: var(--space-6);
  text-align: center;
}

.widget-cta .widget-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.widget-cta .widget-cta__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-5);
}

/* Tags cloud */
.widget-tag-cloud .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.widget-tag-cloud a {
  display: inline-block;
  background: var(--color-light-gray);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.widget-tag-cloud a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

/* ============================================================
   PROMO BANNER WIDGET  (.widget-banner)
   Added via Appearance → Widgets → "Crabtree: Promo Banner"
   ============================================================ */
.widget-banner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Dark gradient overlay — fades from transparent at top to near-black at bottom */
.widget-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.85) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* The full-banner anchor — must cover the whole card */
.widget-banner__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-decoration: none;
}

.widget-banner__content {
  position: relative;
  z-index: 2;
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Badge chip — e.g. "SALE", "LIMITED TIME", "NEW ARRIVAL" */
.widget-banner__badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  align-self: flex-start;
}

/* Headline */
.widget-banner__headline {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.15;
  margin: 0;
}

/* Sub-text / body copy */
.widget-banner__subtext {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin: 0;
}

/* CTA button — appears inside the banner content */
.widget-banner__btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: var(--space-2);
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  pointer-events: none; /* click handled by __link anchor */
}

/* Hover state — raised by the parent link's :hover */
.widget-banner__link:hover ~ .widget-banner__content .widget-banner__btn,
.widget-banner:hover .widget-banner__btn {
  background: var(--color-gold-dark);
}

/* No image fallback — solid gradient */
.widget-banner:not([style*="background-image"]) {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
  min-height: 180px;
}

/* When the widget wrapper adds the default padding, strip it for banners */
.widget.widget_crabtree_banner .widget-body {
  padding: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

/* Footer gold top bar */
.footer-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
}

.footer-main {
  padding: var(--space-16) 0 var(--space-10);
}

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

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer brand column */
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.footer-brand .footer-logo-text .dealership-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
  display: block;
}

.footer-brand .footer-logo-text .dealership-sub {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-top: 3px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

.footer-contact-item .dashicons {
  color: var(--color-gold);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-gold);
}

/* Footer columns */
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-gold);
  margin-bottom: var(--space-5);
  display: inline-block;
}

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

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-col ul li a::before {
  content: '›';
  color: var(--color-gold);
  font-size: 16px;
  line-height: 1;
}

.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-left: var(--space-2);
}

/* Social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  font-size: 14px;
}

.footer-social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-5) 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-gold);
}

/* Blog attribution bar — connects blog to main site */
.blog-attribution-bar {
  background: var(--color-gold);
  padding: var(--space-3) 0;
  text-align: center;
}

.blog-attribution-bar p {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0;
}

.blog-attribution-bar a {
  color: var(--color-black);
  text-decoration: underline;
  font-weight: 700;
}

/* ============================================================
   SEARCH FORM (global)
   ============================================================ */
.search-form-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.search-form-overlay.is-open {
  display: flex;
}

.search-form-overlay .inner {
  width: min(640px, 90vw);
}

.search-form-overlay .search-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-3);
}

.search-form-overlay input[type="search"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-3) 0;
  outline: none;
}

.search-form-overlay .close-search {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 2rem;
  transition: color var(--transition-fast);
}

.search-form-overlay .close-search:hover {
  color: var(--color-gold);
}

/* ============================================================
   BACK TO MAIN SITE BANNER — KEY SEAMLESS ELEMENT
   ============================================================ */
.main-site-banner {
  background: var(--color-dark);
  border-bottom: 3px solid var(--color-gold);
  padding: var(--space-3) 0;
}

.main-site-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.main-site-banner p {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.main-site-banner p a {
  color: var(--color-gold);
  font-weight: 700;
}

.main-site-banner p a:hover {
  color: var(--color-gold-light);
}

/* ============================================================
   GUTENBERG / BLOCK EDITOR SUPPORT
   ============================================================ */
.wp-block-image {
  margin: var(--space-6) 0;
}

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

.wp-block-pullquote {
  border-top: 4px solid var(--color-gold);
  border-bottom: 4px solid var(--color-gold);
  padding: var(--space-8) var(--space-6);
  margin: var(--space-8) 0;
}

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

.wp-block-separator.is-style-wide {
  border-color: var(--color-gold);
  opacity: 1;
  border-width: 2px;
}

.wp-block-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wp-block-button__link {
  font-family: var(--font-heading) !important;
  font-size: var(--text-sm) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: var(--color-gold) !important;
  color: var(--color-black) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 24px !important;
  transition: background var(--transition-fast) !important;
}

.wp-block-button__link:hover {
  background: var(--color-gold-dark) !important;
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(209,173,87,0.15);
}

label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

/* Comment form */
#respond {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin-top: var(--space-8);
}

#respond h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
  .comment-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold { color: var(--color-gold) !important; }
.text-white { color: var(--color-white) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-center { text-align: center !important; }
.font-heading { font-family: var(--font-heading) !important; }

.bg-black { background: var(--color-black) !important; }
.bg-dark { background: var(--color-dark) !important; }
.bg-light { background: var(--color-light-gray) !important; }
.bg-gold { background: var(--color-gold) !important; }

.border-gold { border-color: var(--color-gold) !important; }
.border-top-gold { border-top: 3px solid var(--color-gold) !important; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.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;
}

/* Gold shimmer keyframe animation */
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.loading-shimmer {
  background: linear-gradient(90deg,
    var(--color-light-gray) 25%,
    rgba(209,173,87,0.15) 50%,
    var(--color-light-gray) 75%
  );
  background-size: 200% 100%;
  animation: goldShimmer 1.5s infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .header-topbar { display: none; }
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    /* height: auto overrides the base .primary-nav { height: 100% } rule.
       Without this the nav box is only as tall as the header (~70px) and
       the background only paints within that height — items below the first
       appear transparent. */
    height: auto !important;
    /* Use --color-black (near-black), NOT --color-dark.
       --color-dark is overridden to a very light value in blue schemes,
       which makes the dropdown look transparent on the white page.
       --color-black is intentionally kept dark in every scheme. */
    background: var(--color-black);
    border-top: 3px solid var(--color-gold);
    padding: var(--space-4) 0;
    z-index: 1001; /* above sticky header's z-index:1000 children */
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  }
  .primary-nav.is-open ul {
    flex-direction: column;
    height: auto;
  }
  .primary-nav.is-open ul li {
    height: auto;
    width: 100%;
  }
  .primary-nav.is-open ul li a {
    height: auto;
    padding: var(--space-3) var(--space-6);
    /* Always white text — nav background is always dark on mobile */
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    justify-content: space-between;
  }
  .primary-nav.is-open ul li a:hover {
    color: var(--color-gold);
  }
  .primary-nav.is-open ul li a::after {
    display: none;
  }
  .primary-nav.is-open ul li ul {
    display: none;
    position: static;
    border-top: none;
    background: rgba(0,0,0,0.3);
    box-shadow: none;
    padding-left: var(--space-6);
  }
  .primary-nav.is-open ul li.submenu-open > ul {
    display: flex;
  }
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }    /* 36px on mobile */
  h2 { font-size: var(--text-3xl); }    /* 30px on mobile */
  h3 { font-size: 1.125rem; }           /* 18px on mobile — keeps clear gap from h2 */

  .site-main { padding: 0 0 var(--space-8) 0; } /* keep no top padding on mobile either */
  .posts-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .page-hero { padding: var(--space-10) 0; }
  .page-hero__title { font-size: var(--text-2xl); }
  .entry-post-card__body { padding: var(--space-5); }

  /* Single post full-width on small screens */
  .single-post-layout {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Share bar wraps on very small screens */
  .entry-share {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  /* Post meta always wraps */
  .entry-meta {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  /* Sidebar stacks cleanly */
  .widget { margin-bottom: var(--space-5); }

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

  /* Footer bottom stacks */
  .footer-bottom .container { gap: var(--space-3); }
  .footer-legal-links { justify-content: center; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .sidebar, .site-footer, .post-navigation,
  .comments-section, .main-site-banner { display: none; }
  .content-area { grid-template-columns: 1fr; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
