/*
Theme Name: R+R GASSCAR Child
Theme URI: https://gasscar.cz
Description: Child theme pro R+R GASSCAR s.r.o.
Author: R+R GASSCAR
Template: kadence
Version: 2.5.1
Text Domain: rrgasscar-child
*/

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand — warm palette 2026 (visible warmth, no cold blues) */
  --rr-primary: #2c5066;
  --rr-primary-hover: #3a6580;
  --rr-primary-gradient: linear-gradient(135deg, #2c5066 0%, #234356 100%);
  --rr-accent: #e8720c;
  --rr-accent-hover: #f5850f;
  --rr-accent-light: #fbbf24;
  --rr-dark: #1a1612;
  --rr-dark-surface: #211c17;
  --rr-dark-lighter: #2d261f;
  --rr-danger: #b5392b;
  --rr-danger-hover: #d44535;
  --rr-danger-bg: #fdf0ec;

  /* Neutrals — warm taupe/brown grays (NOT blue-gray) */
  --rr-text: #2a2420;
  --rr-text-muted: #8a7f74;
  --rr-text-light: #a69d93;
  --rr-text-on-dark: #fafaf9;         /* warm white — headings on dark (research-backed) */
  --rr-text-on-dark-muted: #a8a29e;   /* warm grey — body text on dark */

  /* Backgrounds — warm cream/linen (NOT blue-gray) */
  --rr-bg: #f0ebe3;
  --rr-bg-card: #faf6f0;
  --rr-bg-alt: #f5f0e8;
  --rr-border: #e0d8ce;

  /* Spacing scale */
  --rr-space-xs: 4px;
  --rr-space-sm: 8px;
  --rr-space-md: 16px;
  --rr-space-lg: 24px;
  --rr-space-xl: 32px;
  --rr-space-2xl: 48px;
  --rr-space-3xl: 64px;
  --rr-space-4xl: 96px;

  /* Typography */
  --rr-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --rr-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --rr-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --rr-shadow-lg: 0 12px 24px rgba(0,0,0,0.1);
  --rr-shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

  /* Radius */
  --rr-radius-sm: 6px;
  --rr-radius-md: 10px;
  --rr-radius-lg: 16px;

  /* Motion */
  --rr-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --rr-duration: 200ms;
  --rr-duration-slow: 350ms;
}


/* ═══════════════════════════════════════════════════════════════
   3. BASE & KADENCE RESET
   ═══════════════════════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--rr-bg) !important;
  font-family: var(--rr-font) !important;
  color: var(--rr-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Kadence layout resets — edge-to-edge sections (PAGES ONLY) */
body.page .entry-content-wrap { padding: 0 !important; margin: 0 auto !important; max-width: 100% !important; background: transparent !important; }
body.page .content-wrap { padding: 0 !important; margin: 0 !important; max-width: 100% !important; background: transparent !important; }
.site-main { padding: 0 !important; margin: 0 !important; }
.site { --global-content-edge-padding: 0; }
.content-area { margin-top: 0 !important; margin-bottom: 0 !important; }
body.page .entry.single-entry { box-shadow: none !important; }
body.page .content-container.site-container { max-width: 100% !important; padding: 0 !important; }
.entry-hero { margin: 0 !important; }

/* Section spacing — zero between sections on pages, padding is handled per-section */
body.page .entry-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
body.page .entry-content > .wp-block-group,
body.page .entry-content > .wp-block-columns { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Inner block spacing (pages) */
body.page .entry-content .wp-block-group > .wp-block-group__inner-container > * + * { margin-top: 12px !important; }
body.page .entry-content .wp-block-group > .wp-block-group__inner-container > h2,
body.page .entry-content .wp-block-group > .wp-block-group__inner-container > h3 { margin-top: 20px !important; }


/* ═══════════════════════════════════════════════════════════════
   4. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6, .wp-block-heading {
  font-family: var(--rr-font) !important;
  font-weight: 700 !important;
  color: var(--rr-dark-surface) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-weight: 800 !important; }

/* Headings in dark sections — warm off-white (not harsh #fff, not muddy inherit) */
[style*="background-color:#0"] .wp-block-heading,
[style*="background-color:#1"] .wp-block-heading,
[style*="background-color:#0"] h1,
[style*="background-color:#0"] h2,
[style*="background-color:#0"] h3,
[style*="background-color:#0"] h4,
[style*="background-color:#1"] h1,
[style*="background-color:#1"] h2,
[style*="background-color:#1"] h3,
[style*="background-color:#1"] h4 {
  color: var(--rr-text-on-dark) !important;
}


/* ═══════════════════════════════════════════════════════════════
   5. TOP BAR (injected via functions.php)
   ═══════════════════════════════════════════════════════════════ */

.rr-topbar {
  background: var(--rr-dark);
  color: var(--rr-text-light);
  font-size: 13px;
  line-height: 1;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rr-topbar::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--rr-accent) 0%, var(--rr-accent-light) 100%);
  margin: -10px -24px 10px;
}

.rr-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.rr-topbar-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rr-topbar-sep { color: rgba(255,255,255,0.15); }

.rr-topbar a {
  color: var(--rr-text-on-dark);
  text-decoration: none;
  transition: color var(--rr-duration) var(--rr-ease);
}

.rr-topbar a:hover { color: var(--rr-accent-light); }

.rr-topbar-phone-link {
  font-weight: 600;
  color: var(--rr-accent-light) !important;
}


/* ═══════════════════════════════════════════════════════════════
   6. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.site-header-wrap, #masthead {
  background: var(--rr-dark-surface) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.site-header-wrap::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--rr-accent), var(--rr-accent-light) 60%, transparent);
}

.header-navigation .menu > li > a,
.site-branding .site-title a,
.site-branding .site-title,
.site-header-wrap a,
#masthead a {
  color: #fff !important;
}

/* Nav link hover — warm accent */
.header-navigation .menu > li > a {
  position: relative;
  transition: color var(--rr-duration) var(--rr-ease);
}

.header-navigation .menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rr-accent-light);
  transition: width var(--rr-duration-slow) var(--rr-ease);
}

.header-navigation .menu > li > a:hover { color: var(--rr-accent-light) !important; }
.header-navigation .menu > li > a:hover::after { width: 100%; }

/* Branding — SVG logo (injected via functions.php) */
.site-branding .site-description { display: none !important; }

/* Mobile menu toggle */
.menu-toggle-icon, .menu-toggle-icon span { background: #fff !important; }
.mobile-toggle-open-container .menu-toggle-btn { color: #fff !important; }

/* Dropdown submenu */
.header-navigation .menu ul.sub-menu {
  background: var(--rr-dark-surface) !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rr-radius-sm);
  box-shadow: var(--rr-shadow-lg);
}

.header-navigation .menu ul.sub-menu a { color: #ccc !important; }
.header-navigation .menu ul.sub-menu a:hover {
  color: var(--rr-accent-light) !important;
  background: var(--rr-dark-lighter) !important;
}


/* ═══════════════════════════════════════════════════════════════
   7. PAGE HEADERS
   ═══════════════════════════════════════════════════════════════ */

/* Hide ALL Kadence hero sections — pages have their own intros,
   blog archive uses breadcrumbs instead */
.entry-hero {
  display: none !important;
}

.home .entry-header {
  display: none !important;
}

/* Pages: hide entry-header visually but keep H1 accessible for SEO + screen readers */
body.page:not(.home) .entry-header {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* Single blog posts: entry-header is handled in section 12b (inside article card) */

/* Injected H1 — visible on archives, search, 404 */
.rr-entry-h1-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.rr-entry-h1 {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--rr-dark-surface) !important;
  margin: 0 0 8px !important;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .rr-entry-h1-wrap { padding: 24px 16px 0; }
  .rr-entry-h1 { font-size: 26px !important; }
}

/* Page intro sections — centered (except homepage) */
body.page:not(.home) .entry-content > .wp-block-group:first-child {
  text-align: center;
}

body.page:not(.home) .entry-content > .wp-block-group:first-child .wp-block-group__inner-container {
  max-width: 680px;
  margin: 0 auto;
}

/* Hide redundant uppercase labels (page name repeated in intro) */
body.page .entry-content > .wp-block-group:first-child > .wp-block-group__inner-container > p[style*="uppercase"]:first-child {
  display: none !important;
}

/* ── Contact page — form & cards polish ─────────────────────── */

/* Contact info cards — left accent border */
.page-id-10 .entry-content .wp-block-group[style*="border-radius:10px"] {
  border-left: 3px solid var(--rr-accent) !important;
  transition: transform var(--rr-duration) var(--rr-ease), box-shadow var(--rr-duration) var(--rr-ease);
}

.page-id-10 .entry-content .wp-block-group[style*="border-radius:10px"]:hover {
  transform: translateX(4px);
  box-shadow: var(--rr-shadow-md);
}

/* WPForms — modern styled inputs */
.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
  border: 1px solid var(--rr-border) !important;
  border-radius: var(--rr-radius-sm) !important;
  padding: 12px 16px !important;
  font-family: var(--rr-font) !important;
  font-size: 15px !important;
  background: #fff !important;
  color: var(--rr-text) !important;
  transition: border-color var(--rr-duration) var(--rr-ease), box-shadow var(--rr-duration) var(--rr-ease) !important;
}

.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus,
.wpforms-container .wpforms-field select:focus {
  border-color: var(--rr-primary) !important;
  box-shadow: 0 0 0 3px rgba(44, 80, 102, 0.1) !important;
  outline: none !important;
}

.wpforms-container .wpforms-field textarea {
  min-height: 120px !important;
  resize: vertical;
}

.wpforms-container .wpforms-field-label {
  font-family: var(--rr-font) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--rr-text) !important;
  margin-bottom: 6px !important;
}

.wpforms-container .wpforms-required-label {
  color: var(--rr-danger) !important;
}

/* WPForms submit button */
.wpforms-container .wpforms-submit {
  background: var(--rr-primary-gradient) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--rr-radius-sm) !important;
  padding: 14px 32px !important;
  font-family: var(--rr-font) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer;
  transition: all var(--rr-duration) var(--rr-ease) !important;
  width: 100%;
}

.wpforms-container .wpforms-submit:hover {
  background: linear-gradient(135deg, var(--rr-primary-hover) 0%, var(--rr-primary) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 80, 102, 0.3);
}

/* Breadcrumbs — compact strip below header (consolidated) */
.rr-breadcrumbs {
  background: var(--rr-bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--rr-text-muted);
}

/* Page intro sections — seamless with breadcrumbs, no extra top spacing */
body.page .entry-content > .wp-block-group:first-child {
  margin-top: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════
   8. HERO SECTION (homepage)
   ═══════════════════════════════════════════════════════════════ */

/* Hide hero checkmark badges (redundant with trust bar below) */
.home .entry-content > .wp-block-group:first-child p[style*="color:#fbbf24"][style*="font-size:13px"] {
  display: none !important;
}

/* Subtle radial glow behind hero image area */
.home .entry-content > .wp-block-group:first-child {
  position: relative;
  overflow: hidden;
}

.home .entry-content > .wp-block-group:first-child::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(44,80,102,0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home .entry-content > .wp-block-group:first-child > * {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════════════
   9. CARDS & COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* White cards (service cards, about cards) — warm palette selectors */
.wp-block-column[style*="background-color:#faf6f0"],
.wp-block-column[style*="background-color:#fdf0ec"] {
  box-shadow: var(--rr-shadow-sm);
  transition: transform var(--rr-duration) var(--rr-ease), box-shadow var(--rr-duration) var(--rr-ease);
}

.wp-block-column[style*="background-color:#faf6f0"]:hover,
.wp-block-column[style*="background-color:#fdf0ec"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--rr-shadow-lg);
}

/* Hide removed-service columns (CSS :has() fallback if content filter misses) */
.wp-block-column:has(a[href*="zamecnictvi"]),
.wp-block-column:has(a[href*="havarijni-servis"]) {
  display: none !important;
}

/* Hide empty wp-block-columns rows after column removal */
.wp-block-columns:not(:has(.wp-block-column:not([style*="display:none"]))) {
  display: none !important;
}

/* Cards with top accent border — subtle accent line instead of chunky border */
.wp-block-column[style*="border-top-color"] {
  border-top-width: 2px !important;
  border-top-color: var(--rr-accent) !important;
  transition: transform var(--rr-duration) var(--rr-ease), box-shadow var(--rr-duration) var(--rr-ease);
}

.wp-block-column[style*="border-top-color"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--rr-shadow-lg);
}

/* Testimonial blocks */
.wp-block-group[style*="border-left-color"] {
  transition: transform var(--rr-duration) var(--rr-ease), box-shadow var(--rr-duration) var(--rr-ease);
}

.wp-block-group[style*="border-left-color"]:hover {
  transform: translateX(4px);
  box-shadow: var(--rr-shadow-md);
}

/* Service card icons */
.rr-service-icon {
  line-height: 1;
}

.rr-service-icon svg {
  opacity: 0.85;
}

/* Trust bar — compact stats strip */
.rr-trust-bar {
  border-bottom: 1px solid var(--rr-border) !important;
}


/* ═══════════════════════════════════════════════════════════════
   10. BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.wp-block-button__link {
  transition: all var(--rr-duration) var(--rr-ease) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  font-family: var(--rr-font) !important;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Primary button — brand gradient */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--rr-primary-gradient) !important;
  border: none !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: linear-gradient(135deg, var(--rr-primary-hover) 0%, var(--rr-primary) 100%) !important;
}

/* Outline button */
.is-style-outline .wp-block-button__link {
  border-width: 2px !important;
  background: transparent !important;
}

.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.08) !important;
}


/* ═══════════════════════════════════════════════════════════════
   11. LINKS
   ═══════════════════════════════════════════════════════════════ */

.entry-content a:not(.wp-block-button__link) {
  color: var(--rr-primary);
  text-decoration: none;
  transition: color var(--rr-duration) var(--rr-ease);
}

.entry-content a:not(.wp-block-button__link):hover {
  color: var(--rr-accent);
}


/* ═══════════════════════════════════════════════════════════════
   12. IMAGES
   ═══════════════════════════════════════════════════════════════ */

.wp-block-image img {
  box-shadow: var(--rr-shadow-md);
}


/* ═══════════════════════════════════════════════════════════════
   12b. SINGLE BLOG POST
   ═══════════════════════════════════════════════════════════════ */

/* Content area — controlled spacing */
.single-post .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Featured image — full-width hero, not "behind" overlay */
.single-post .post-thumbnail.kadence-thumbnail-position-behind {
  position: relative !important;
  margin-bottom: 0 !important;
}

.single-post .post-thumbnail.kadence-thumbnail-position-behind .post-thumbnail-inner {
  position: relative !important;
  max-height: 400px;
  overflow: hidden;
}

.single-post .post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
  display: block;
}

/* Article card — white background, proper width */
.single-post .entry.single-entry {
  background: var(--rr-bg-card) !important;
  box-shadow: var(--rr-shadow-md) !important;
  border-radius: 0 0 var(--rr-radius-md) var(--rr-radius-md);
  max-width: 820px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

/* Article content wrap */
.single-post .entry-content-wrap {
  padding: 40px 48px !important;
}

/* Article title */
.single-post .entry-header {
  display: block !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  text-align: left;
}

.single-post .entry-title {
  color: var(--rr-dark-surface) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.3;
  margin-bottom: 12px !important;
}

/* Post meta (date, categories) — hide author "By" on company blog */
.single-post .entry-meta {
  font-size: 13px;
  color: var(--rr-text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rr-border);
}
/* Hide author everywhere — company blog, no individual authors */
.entry-author,
.post-author-meta,
.posted-by,
.entry-meta .posted-by,
.entry-meta-divider-dot .posted-by { display: none !important; }
/* Fix dot separator left behind after hiding author */
.entry-meta-divider-dot .posted-on::before { display: none !important; }

.single-post .entry-meta a {
  color: var(--rr-primary);
}

.single-post .entry-meta a:hover {
  color: var(--rr-accent);
}

/* Category tags above title */
.single-post .entry-taxonomies {
  margin-bottom: 8px;
}

.single-post .entry-taxonomies a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rr-primary) !important;
}

/* Article headings */
.single-post .entry-content h2 {
  font-size: 22px !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rr-border);
}

.single-post .entry-content h3 {
  font-size: 19px !important;
  margin-top: 24px !important;
  margin-bottom: 10px !important;
}

/* Article paragraphs */
.single-post .entry-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--rr-text);
  margin-bottom: 16px !important;
}

/* Article lists */
.single-post .entry-content ul,
.single-post .entry-content ol {
  padding-left: 24px;
  margin-bottom: 16px !important;
}

.single-post .entry-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--rr-text);
}

/* Images inside articles */
.single-post .entry-content .wp-block-image img {
  border-radius: var(--rr-radius-md);
  box-shadow: var(--rr-shadow-sm);
}

/* Gutenberg groups inside articles (CTA boxes, warnings) */
.single-post .entry-content > .wp-block-group {
  border-radius: var(--rr-radius-md);
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

/* Post footer */
.single-post .entry-footer {
  padding-top: 20px;
  border-top: 1px solid var(--rr-border);
  margin-top: 32px;
}

/* Related posts section */
.single-post .entry-related {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

/* Post navigation */
.single-post .post-navigation {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 24px;
  background: var(--rr-bg-alt);
  border-radius: var(--rr-radius-md);
}

/* Blog archive cards */
.loop-entry .entry-content-wrap {
  padding: 20px !important;
}

.loop-entry .post-thumbnail img {
  border-radius: var(--rr-radius-md) var(--rr-radius-md) 0 0;
  object-fit: cover;
  height: 200px;
  width: 100%;
}

.loop-entry.type-post {
  background: var(--rr-bg-card);
  border-radius: var(--rr-radius-md);
  box-shadow: var(--rr-shadow-sm);
  overflow: hidden;
  transition: transform var(--rr-duration) var(--rr-ease), box-shadow var(--rr-duration) var(--rr-ease);
}

.loop-entry.type-post:hover {
  transform: translateY(-2px);
  box-shadow: var(--rr-shadow-lg);
}

/* Blog archive grid */
.loop-entry .entry-title {
  font-size: 18px !important;
}

/* Blog archive — bottom spacing so cards don't touch the footer */
.archive .content-area,
.blog .content-area,
body.page-template-default .content-area:has(.loop-entry) {
  padding-bottom: 48px !important;
}

/* Also ensure the archive content wrap has proper bottom margin */
.archive .content-wrap,
.blog .content-wrap {
  padding-bottom: 48px !important;
}

@media (max-width: 768px) {
  .single-post .entry-content-wrap {
    padding: 24px 16px !important;
  }

  .single-post .entry-content h2 {
    font-size: 20px !important;
  }

  .single-post .post-thumbnail img,
  .single-post .entry-thumbnail img {
    border-radius: var(--rr-radius-md);
    max-height: 280px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   13. FAQ / DETAILS BLOCK
   ═══════════════════════════════════════════════════════════════ */

.wp-block-details {
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-sm);
  margin-bottom: 8px !important;
  background: var(--rr-bg-card);
  overflow: hidden;
  transition: box-shadow var(--rr-duration) var(--rr-ease);
}

.wp-block-details:hover {
  box-shadow: var(--rr-shadow-sm);
}

.wp-block-details summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--rr-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--rr-duration) var(--rr-ease);
}

.wp-block-details summary::-webkit-details-marker { display: none; }

.wp-block-details summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--rr-text-muted);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--rr-duration) var(--rr-ease);
}

.wp-block-details[open] summary::after {
  content: '\2212';
}

.wp-block-details summary:hover {
  background: var(--rr-bg);
}

.wp-block-details > *:not(summary) {
  padding: 0 20px 18px;
  color: var(--rr-text-muted);
  font-size: 14px;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════
   14. FOOTER
   ═══════════════════════════════════════════════════════════════ */

/* Hide Kadence's default footer — replaced by custom 3-column footer via wp_footer */
.site-footer .site-footer-wrap {
  display: none !important;
}

.site-footer {
  background: var(--rr-dark) !important;
  color: var(--rr-text-light) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Breadcrumbs (link styles) ────────────────────────────────── */
.rr-breadcrumbs .rank-math-breadcrumb { margin: 0; }

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

.rr-breadcrumbs a:hover { color: var(--rr-accent); }

.rr-breadcrumbs .separator { margin: 0 6px; color: var(--rr-text-light); }

/* ── Custom footer — 3 columns ───────────────────────────────── */
.rr-footer-custom {
  background: var(--rr-dark);
  color: var(--rr-text-light);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.rr-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
}

.rr-footer-title {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.rr-footer-col p { margin: 0 0 8px; }

.rr-footer-legal {
  font-size: 12px;
  color: var(--rr-text-on-dark-muted);
  margin-top: 12px !important;
}

.rr-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rr-footer-links li { margin-bottom: 6px; }

.rr-footer-links a {
  color: var(--rr-text-on-dark) !important;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--rr-duration) var(--rr-ease);
}

.rr-footer-links a:hover { color: var(--rr-accent-light) !important; }

.rr-footer-phone {
  margin-bottom: 10px !important;
}

.rr-footer-phone a {
  color: var(--rr-accent-light) !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.rr-footer-hours {
  font-size: 13px;
  color: var(--rr-text-on-dark-muted);
  margin-top: 8px !important;
}

.rr-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--rr-text-on-dark-muted);
}

.rr-footer-bottom a {
  color: var(--rr-text-on-dark-muted) !important;
  text-decoration: none;
  transition: color var(--rr-duration) var(--rr-ease);
}

.rr-footer-bottom a:hover { color: var(--rr-accent-light) !important; }

/* Kadence footer widget styles no longer needed — using custom footer */


/* ═══════════════════════════════════════════════════════════════
   15. FLOATING PHONE CTA (mobile)
   ═══════════════════════════════════════════════════════════════ */

.rr-floating-phone {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--rr-danger), var(--rr-danger-hover));
  color: #fff !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  text-align: center;
  line-height: 56px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(181,57,43,0.35);
  animation: rr-pulse 2.5s ease-in-out infinite;
}

.rr-floating-phone svg {
  vertical-align: middle;
  margin-top: -2px;
}

@keyframes rr-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(181,57,43,0.35); }
  50% { box-shadow: 0 4px 30px rgba(181,57,43,0.5), 0 0 0 10px rgba(181,57,43,0.08); }
}


/* ═══════════════════════════════════════════════════════════════
   16. ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

/* Skip navigation link — visible on focus */
.rr-skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.rr-skip-link:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
  background: var(--rr-dark);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: var(--rr-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--rr-font);
  text-decoration: none;
  box-shadow: var(--rr-shadow-lg);
}

/* Focus states */
.wp-block-button__link:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rr-accent-light);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto !important; }
}


/* ═══════════════════════════════════════════════════════════════
   17. MOBILE (< 768px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Show floating phone */
  .rr-floating-phone { display: flex; align-items: center; justify-content: center; }

  /* Hide top bar on mobile — floating phone is sufficient */
  .rr-topbar { display: none; }

  /* Typography scale down */
  h1 { font-size: 28px !important; line-height: 1.2 !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }

  /* Section padding reduction — groups AND columns */
  .entry-content .wp-block-group[style*="padding"],
  .entry-content .wp-block-columns[style*="padding"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Stack columns */
  .wp-block-columns { flex-direction: column !important; gap: 12px !important; }
  .wp-block-column { flex-basis: 100% !important; margin-left: 0 !important; }

  /* Full-width buttons */
  .wp-block-buttons { flex-direction: column !important; gap: 10px !important; width: 100%; }
  .wp-block-button { width: 100%; }
  .wp-block-button__link {
    width: 100%;
    text-align: center;
    padding: 14px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  /* Map height */
  iframe[src*="google.com/maps"] { height: 250px !important; }

  /* Reduce large vertical paddings — groups AND columns */
  .wp-block-group[style*="padding-top:80px"],
  .wp-block-group[style*="padding-top:70px"],
  .wp-block-group[style*="padding-top:60px"],
  .wp-block-columns[style*="padding-top:64px"],
  .wp-block-columns[style*="padding-top:60px"] {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  /* Trust bar + trust badges: 2x2 grid on mobile */
  .entry-content .wp-block-columns.is-not-stacked-on-mobile {
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 8px !important;
  }

  .entry-content .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
    flex-basis: 48% !important;
    min-width: 0;
  }

  /* Breadcrumbs — prevent overflow */
  .rr-breadcrumbs {
    padding: 10px 16px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Logo — smaller on mobile */
  .site-branding .brand::before { width: 62px !important; height: 48px !important; }

  /* Nav animated underline — remove on mobile (touch) */
  .header-navigation .menu > li > a::after { display: none; }

  /* Footer responsive — stack columns */
  .rr-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px 20px 24px !important;
  }

  .rr-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 20px !important;
  }

  /* Single post title on mobile */
  .single-post .entry-title {
    font-size: 22px !important;
  }

  /* Archive hero title — smaller on mobile */
  .post-archive-hero-section .archive-title,
  .post-archive-hero-section .page-title {
    font-size: 24px !important;
  }

  .post-archive-hero-section {
    padding: 24px 0 20px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   18. TABLET (769px – 1024px)
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  h1 { font-size: 34px !important; }
  h2 { font-size: 26px !important; }

  .wp-block-columns { flex-wrap: wrap !important; gap: 16px !important; }
  .wp-block-column { flex-basis: 48% !important; min-width: 260px; }
}


/* ═══════════════════════════════════════════════════════════════
   19. PRINT
   ═══════════════════════════════════════════════════════════════ */

@media print {
  .site-header, .site-footer, .wp-block-button, iframe,
  .rr-floating-phone, .rr-topbar { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}


/* ═══════════════════════════════════════════════════════════════
   20. COOKIEYES BANNER & PREFERENCE CENTER
   ═══════════════════════════════════════════════════════════════ */

/* ── Banner ────────────────────────────────────────────────── */
.cky-consent-container .cky-consent-bar {
  background: rgba(26, 22, 18, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset !important;
  font-family: var(--rr-font) !important;
  color: var(--rr-text-on-dark) !important;
  padding: 28px 28px 24px !important;
  max-width: 380px !important;
  box-sizing: border-box !important;
}

.cky-consent-bar .cky-title {
  color: #fff !important;
  font-family: var(--rr-font) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em !important;
}

.cky-consent-bar .cky-notice-des,
.cky-consent-bar .cky-notice-des * {
  color: rgba(255,255,255,0.55) !important;
  font-family: var(--rr-font) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* Banner buttons — stacked, modern pill shape */
.cky-consent-bar .cky-btn-wrapper,
.cky-consent-bar .cky-notice-btn-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-top: 20px !important;
}

.cky-consent-bar .cky-btn {
  font-family: var(--rr-font) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em !important;
  border-radius: 50px !important;
  padding: 11px 20px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  cursor: pointer !important;
}

/* Primary: Accept — solid accent */
.cky-consent-bar .cky-btn-accept,
.cky-modal .cky-btn-accept {
  background: var(--rr-accent) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(232, 114, 12, 0.3) !important;
}

.cky-consent-bar .cky-btn-accept:hover,
.cky-modal .cky-btn-accept:hover {
  background: var(--rr-accent-hover) !important;
  box-shadow: 0 4px 20px rgba(232, 114, 12, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Secondary: Reject — subtle glass */
.cky-consent-bar .cky-btn-reject,
.cky-modal .cky-btn-reject {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.cky-consent-bar .cky-btn-reject:hover,
.cky-modal .cky-btn-reject:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

/* Tertiary: Customize — ghost link */
.cky-consent-bar .cky-btn-customize {
  background: transparent !important;
  color: rgba(255,255,255,0.4) !important;
  border: none !important;
  text-decoration: none !important;
  font-size: 12px !important;
  padding: 6px 20px !important;
}

.cky-consent-bar .cky-btn-customize:hover {
  color: rgba(255,255,255,0.7) !important;
}

/* Banner links */
.cky-consent-bar a {
  color: var(--rr-accent-light) !important;
}

/* ── Preference center (modal) ─────────────────────────────── */

/* Override the modal's inline background:#ffffff and color:#212121 */
.cky-modal {
  background: var(--rr-dark-surface) !important;
  color: var(--rr-text-on-dark) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--rr-radius-lg) !important;
}

.cky-preference-center {
  background: var(--rr-dark-surface) !important;
  font-family: var(--rr-font) !important;
  color: var(--rr-text-on-dark) !important;
}

/* Header */
.cky-preference-header {
  border-bottom-color: rgba(255,255,255,0.1) !important;
}

.cky-preference-title {
  color: #fff !important;
  font-family: var(--rr-font) !important;
  font-weight: 700 !important;
}

.cky-preference-header .cky-btn-close img {
  filter: invert(1) !important;
}

/* Description area */
.cky-preference-content-wrapper {
  color: var(--rr-text-on-dark-muted) !important;
  border-bottom-color: rgba(255,255,255,0.1) !important;
}

.cky-preference-content-wrapper * {
  color: var(--rr-text-on-dark-muted) !important;
}

.cky-show-desc-btn {
  color: var(--rr-accent-light) !important;
}

/* Accordion */
.cky-accordion {
  border-bottom-color: rgba(255,255,255,0.08) !important;
}

.cky-accordion-btn {
  color: #fff !important;
  font-family: var(--rr-font) !important;
  font-weight: 700 !important;
}

.cky-accordion-header-des {
  color: var(--rr-text-on-dark-muted) !important;
}

.cky-always-active {
  color: var(--rr-accent-light) !important;
  font-weight: 600 !important;
}

/* Chevron icon */
.cky-accordion-chevron i::before,
.cky-accordion-chevron i::after {
  border-color: var(--rr-text-on-dark-muted) !important;
}

/* Accordion body / audit table */
.cky-accordion-body {
  color: var(--rr-text-on-dark-muted) !important;
}

.cky-accordion-body * {
  color: var(--rr-text-on-dark-muted) !important;
}

.cky-audit-table {
  border-color: rgba(255,255,255,0.08) !important;
}

.cky-audit-table th {
  background: var(--rr-dark-lighter) !important;
  color: var(--rr-text-on-dark) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.cky-audit-table td {
  border-color: rgba(255,255,255,0.08) !important;
  color: var(--rr-text-on-dark-muted) !important;
}

.cky-empty-cookies-text {
  color: var(--rr-text-light) !important;
}

/* Toggle switch — blue when active */
.cky-switch input:checked + .cky-slider {
  background-color: var(--rr-primary) !important;
}

/* Footer buttons */
.cky-prefrence-btn-wrapper {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.cky-modal .cky-btn {
  font-family: var(--rr-font) !important;
  font-weight: 600 !important;
  border-radius: var(--rr-radius-sm) !important;
}

.cky-modal .cky-btn-preferences {
  background: var(--rr-primary) !important;
  color: #fff !important;
  border: 2px solid var(--rr-primary) !important;
}

.cky-modal .cky-btn-preferences:hover {
  background: var(--rr-primary-hover) !important;
  border-color: var(--rr-primary-hover) !important;
}

/* Links in preference center */
.cky-modal a,
.cky-preference-center a {
  color: var(--rr-accent-light) !important;
}

/* Overlay */
.cky-overlay {
  background: #000 !important;
  opacity: 0.5 !important;
}

/* Footer shadow */
.cky-footer-shadow {
  background: linear-gradient(to top, var(--rr-dark-surface), transparent) !important;
}

/* Cookie banner — responsive on very small screens */
@media (max-width: 400px) {
  .cky-consent-container .cky-consent-bar {
    max-width: calc(100vw - 24px) !important;
    margin: 0 12px !important;
    padding: 20px 18px 18px !important;
    border-radius: 16px !important;
  }
}
