/*
 * ═══════════════════════════════════════════════════════════════
 * RENOGUILD — Design System
 * Premium Home Renovation Directory Platform
 *
 * Aesthetic: Editorial magazine meets marketplace
 * Typography: Playfair Display (headlines) + Source Sans 3 (body)
 * Palette: Deep sage, warm terracotta, clean whites
 * ═══════════════════════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Surface ── */
    --rg-bg: #FAFAF8;
    --rg-bg-alt: #F3F1ED;
    --rg-bg-card: #FFFFFF;
    --rg-bg-card-hover: #FDFCFA;
    --rg-bg-dark: #1A2332;
    --rg-bg-dark-alt: #0F1720;
    --rg-bg-overlay: rgba(26, 35, 50, 0.65);

    /* ── Brand ── */
    --rg-primary: #2D6A4F;
    --rg-primary-hover: #1B4332;
    --rg-primary-light: #D8F3DC;
    --rg-primary-muted: rgba(45, 106, 79, 0.08);
    --rg-accent: #E07A5F;
    --rg-accent-hover: #C45D3E;
    --rg-accent-light: #FDE8E0;

    /* ── Semantic ── */
    --rg-gold: #F4A261;
    --rg-gold-light: #FFF3E0;
    --rg-blue: #457B9D;
    --rg-blue-light: #E3F0F7;
    --rg-green: #40916C;
    --rg-green-light: #E8F5EE;
    --rg-red: #E63946;
    --rg-red-light: #FDE8EA;

    /* ── Text ── */
    --rg-text-dark: #1A1A1A;
    --rg-text-body: #4A4A4A;
    --rg-text-muted: #8A8A8A;
    --rg-text-light: #B0B0B0;
    --rg-text-on-dark: #F0EDE8;
    --rg-text-on-dark-muted: rgba(240, 237, 232, 0.65);

    /* ── Border ── */
    --rg-border: rgba(0, 0, 0, 0.08);
    --rg-border-strong: rgba(0, 0, 0, 0.15);
    --rg-border-focus: var(--rg-primary);

    /* ── Typography ── */
    --rg-font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --rg-font-body: 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── Spacing — Fibonacci Sequence ── */
    --rg-space-2xs: 5px;    /* Fib: 5  */
    --rg-space-xs: 8px;     /* Fib: 8  */
    --rg-space-sm: 13px;    /* Fib: 13 */
    --rg-space-md: 21px;    /* Fib: 21 */
    --rg-space-lg: 34px;    /* Fib: 34 */
    --rg-space-xl: 55px;    /* Fib: 55 */
    --rg-space-2xl: 89px;   /* Fib: 89 */
    --rg-space-3xl: 144px;  /* Fib: 144 — use sparingly */
    --rg-space-4xl: 233px;  /* Fib: 233 — hero-level only */

    /* ── Radius ── */
    --rg-radius-sm: 4px;
    --rg-radius: 8px;
    --rg-radius-lg: 12px;
    --rg-radius-xl: 16px;
    --rg-radius-full: 9999px;

    /* ── Shadows ── */
    --rg-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --rg-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --rg-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --rg-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
    --rg-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --rg-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
    --rg-shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);

    /* ── Transitions ── */
    --rg-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --rg-duration: 0.2s;
    --rg-duration-slow: 0.35s;

    /* ── Layout — Golden Ratio (φ = 1.618) ── */
    --rg-max-width: 1280px;
    --rg-header-height: 64px;
    --rg-sidebar-width: 300px;  /* sidebar:content ≈ 1:1.618 at 1280px */
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--rg-font-body);
    color: var(--rg-text-dark);
    background: var(--rg-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--rg-primary);
    text-decoration: none;
    transition: color var(--rg-duration) var(--rg-ease);
}

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

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

button {
    font-family: var(--rg-font-body);
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: var(--rg-font-body);
}

::selection {
    background: var(--rg-primary-light);
    color: var(--rg-primary-hover);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.rg-container {
    max-width: var(--rg-max-width);
    margin: 0 auto;
    padding: 0 var(--rg-space-lg);
}

.rg-container--narrow {
    max-width: 880px;
}

.rg-section {
    padding: var(--rg-space-3xl) 0;
}

.rg-section--sm {
    padding: var(--rg-space-2xl) 0;
}

.rg-section--alt {
    background: var(--rg-bg-alt);
}

.rg-section--dark {
    background: var(--rg-bg-dark);
    color: var(--rg-text-on-dark);
}

.rg-section--primary {
    background: var(--rg-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

/* Typography Scale — Golden Ratio (φ = 1.618)
   Base: 16px → 16×φ = 25.9 → 25.9×φ = 41.9 → 41.9×φ = 67.8
   Intermediate steps use minor third (1.272) */

.rg-display-xl {
    font-family: var(--rg-font-display);
    font-size: clamp(2.625rem, 5vw, 4.236rem);  /* 67.8px — φ³ */
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--rg-text-dark);
}

.rg-display-lg {
    font-family: var(--rg-font-display);
    font-size: clamp(2rem, 4vw, 3.313rem);       /* 53px — φ² × 1.272 */
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.rg-display-md {
    font-family: var(--rg-font-display);
    font-size: clamp(1.5rem, 3vw, 2.618rem);     /* 41.9px — φ² */
    font-weight: 600;
    line-height: 1.2;
}

.rg-heading-lg {
    font-family: var(--rg-font-body);
    font-size: clamp(1.25rem, 2vw, 1.618rem);    /* 25.9px — φ */
    font-weight: 700;
    line-height: 1.3;
}

.rg-heading-md {
    font-family: var(--rg-font-body);
    font-size: 1.272rem;                           /* 20.4px — minor third */
    font-weight: 600;
    line-height: 1.4;
}

.rg-heading-sm {
    font-family: var(--rg-font-body);
    font-size: 1rem;                               /* 16px — base */
    font-weight: 600;
    line-height: 1.4;
}

.rg-body { font-size: 1rem; color: var(--rg-text-body); line-height: 1.7; }
.rg-body-sm { font-size: 0.875rem; color: var(--rg-text-body); line-height: 1.6; }
.rg-caption { font-size: 0.8125rem; color: var(--rg-text-muted); line-height: 1.5; }
.rg-overline {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rg-primary);
}

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

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

.rg-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rg-border);
    height: var(--rg-header-height);
    transition: box-shadow var(--rg-duration-slow) var(--rg-ease);
}

.rg-header--scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.rg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--rg-max-width);
    margin: 0 auto;
    padding: 0 var(--rg-space-lg);
    height: 100%;
}

.rg-header__left {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xl);
}

.rg-header__right {
    display: flex;
    align-items: center;
    gap: var(--rg-space-md);
}

/* ── Logo ── */

.rg-logo {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    text-decoration: none;
    flex-shrink: 0;
}

.rg-logo__mark {
    width: 32px;
    height: 32px;
    background: var(--rg-primary);
    border-radius: var(--rg-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--rg-font-display);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: -0.03em;
}

.rg-logo__text {
    font-family: var(--rg-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--rg-text-dark);
    letter-spacing: -0.02em;
}

.rg-logo__text span {
    color: var(--rg-primary);
}

.rg-logo:hover { text-decoration: none; }
.rg-logo:hover .rg-logo__text { color: var(--rg-text-dark); }

/* ── Nav ── */

.rg-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    height: 100%;
}

.rg-nav__item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.rg-nav__link {
    display: flex;
    align-items: center;
    gap: var(--rg-space-2xs);
    padding: 0 var(--rg-space-md);
    height: 100%;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rg-text-body);
    text-decoration: none;
    transition: color var(--rg-duration) var(--rg-ease);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.rg-nav__link:hover,
.rg-nav__link--active {
    color: var(--rg-text-dark);
    border-bottom-color: var(--rg-primary);
}

.rg-nav__arrow {
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--rg-duration) var(--rg-ease);
    font-size: 0.5rem;
    color: var(--rg-text-muted);
}

.rg-nav__item:hover .rg-nav__arrow {
    transform: rotate(180deg);
}

/* ── Header Search ── */

.rg-header__search {
    display: flex;
    align-items: center;
    background: var(--rg-bg-alt);
    border-radius: var(--rg-radius-full);
    padding: var(--rg-space-xs) var(--rg-space-md);
    gap: var(--rg-space-xs);
    transition: background var(--rg-duration) var(--rg-ease), box-shadow var(--rg-duration) var(--rg-ease);
    min-width: 240px;
}

.rg-header__search:focus-within {
    background: white;
    box-shadow: 0 0 0 2px var(--rg-primary-light);
}

.rg-header__search-icon {
    color: var(--rg-text-muted);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rg-header__search-input {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--rg-text-dark);
    outline: none;
    width: 100%;
    padding: var(--rg-space-2xs) 0;
}

.rg-header__search-input::placeholder {
    color: var(--rg-text-muted);
}

/* ── Mega Menu ── */

.rg-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 0 0 var(--rg-radius-lg) var(--rg-radius-lg);
    box-shadow: var(--rg-shadow-xl);
    padding: var(--rg-space-xl) var(--rg-space-2xl);
    min-width: 720px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity var(--rg-duration-slow) var(--rg-ease),
                transform var(--rg-duration-slow) var(--rg-ease),
                visibility var(--rg-duration-slow);
    pointer-events: none;
    border-top: 2px solid var(--rg-primary);
}

.rg-nav__item:hover .rg-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.rg-mega__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--rg-space-xl);
}

.rg-mega__title {
    font-family: var(--rg-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rg-text-muted);
    margin-bottom: var(--rg-space-sm);
    padding-bottom: var(--rg-space-xs);
    border-bottom: 1px solid var(--rg-border);
}

.rg-mega__links {
    list-style: none;
}

.rg-mega__links li {
    margin-bottom: var(--rg-space-2xs);
}

.rg-mega__links a {
    font-size: 0.875rem;
    color: var(--rg-text-body);
    padding: var(--rg-space-2xs) 0;
    display: block;
    transition: color var(--rg-duration) var(--rg-ease), padding-left var(--rg-duration) var(--rg-ease);
}

.rg-mega__links a:hover {
    color: var(--rg-primary);
    padding-left: var(--rg-space-xs);
}

/* ── Mobile Menu Button ── */

.rg-header__mobile-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--rg-text-dark);
    border-radius: var(--rg-radius);
    transition: background var(--rg-duration) var(--rg-ease);
}

.rg-header__mobile-btn:hover {
    background: var(--rg-bg-alt);
}

/* ── Join as Pro CTA ── */

.rg-header__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--rg-space-xs);
    padding: var(--rg-space-xs) var(--rg-space-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rg-primary);
    border: 1.5px solid var(--rg-primary);
    border-radius: var(--rg-radius-full);
    text-decoration: none;
    transition: all var(--rg-duration) var(--rg-ease);
    white-space: nowrap;
}

.rg-header__cta:hover {
    background: var(--rg-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.rg-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rg-space-4xl) var(--rg-space-lg);
    overflow: hidden;
    background: var(--rg-bg-dark);
}

.rg-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.rg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 35, 50, 0.25) 0%,
        rgba(26, 35, 50, 0.55) 100%
    );
    z-index: 1;
}

.rg-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
}

.rg-hero__title {
    font-family: var(--rg-font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: var(--rg-space-md);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rg-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--rg-space-xl);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ── Hero Search ── */

.rg-hero-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--rg-radius-lg);
    box-shadow: var(--rg-shadow-xl);
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.rg-hero-search__icon {
    padding-left: var(--rg-space-md);
    color: var(--rg-text-muted);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.rg-hero-search__input {
    flex: 1;
    padding: var(--rg-space-md) var(--rg-space-sm);
    border: none;
    font-size: 1rem;
    color: var(--rg-text-dark);
    background: transparent;
    outline: none;
    min-width: 0;
}

.rg-hero-search__input::placeholder {
    color: var(--rg-text-light);
}

.rg-hero-search__btn {
    padding: var(--rg-space-sm) var(--rg-space-xl);
    margin: var(--rg-space-xs);
    background: var(--rg-primary);
    color: white;
    border: none;
    border-radius: var(--rg-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--rg-duration) var(--rg-ease);
    white-space: nowrap;
}

.rg-hero-search__btn:hover {
    background: var(--rg-primary-hover);
}

/* ── Hero Steps (3-step indicator below search) ── */

.rg-hero__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rg-space-2xl);
    margin-top: var(--rg-space-xl);
}

.rg-hero__step {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
}

.rg-hero__step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.rg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rg-space-xs);
    padding: 10px 21px;  /* vertical fixed, horizontal = Fib 21 */
    font-family: var(--rg-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--rg-radius);
    cursor: pointer;
    transition: all var(--rg-duration) var(--rg-ease);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.rg-btn--primary {
    background: var(--rg-primary);
    color: white;
}
.rg-btn--primary:hover {
    background: var(--rg-primary-hover);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

.rg-btn--accent {
    background: var(--rg-accent);
    color: white;
}
.rg-btn--accent:hover {
    background: var(--rg-accent-hover);
    color: white;
}

.rg-btn--outline {
    background: transparent;
    color: var(--rg-primary);
    border: 1.5px solid var(--rg-primary);
}
.rg-btn--outline:hover {
    background: var(--rg-primary);
    color: white;
}

.rg-btn--outline-dark {
    background: transparent;
    color: var(--rg-text-on-dark);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.rg-btn--outline-dark:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.rg-btn--ghost {
    background: transparent;
    color: var(--rg-text-body);
    padding: 8px 12px;
}
.rg-btn--ghost:hover {
    background: var(--rg-bg-alt);
    color: var(--rg-text-dark);
}

.rg-btn--sm { padding: 7px 14px; font-size: 0.8125rem; }
.rg-btn--lg { padding: 14px 28px; font-size: 1rem; }
.rg-btn--xl { padding: 16px 36px; font-size: 1.0625rem; }
.rg-btn--block { width: 100%; }
.rg-btn--rounded { border-radius: var(--rg-radius-full); }

.rg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   FIND PROS — SEARCH RESULTS LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.rg-search-bar {
    background: var(--rg-primary);
    padding: var(--rg-space-sm) 0;
}

.rg-search-bar__inner {
    display: flex;
    align-items: center;
    gap: var(--rg-space-md);
    max-width: var(--rg-max-width);
    margin: 0 auto;
    padding: 0 var(--rg-space-lg);
    color: white;
    font-size: 0.9375rem;
}

.rg-search-bar__text {
    flex: 1;
    font-weight: 500;
}

.rg-search-bar__zip {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--rg-radius-full);
    padding: var(--rg-space-xs) var(--rg-space-md);
}

.rg-search-bar__zip input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9375rem;
    width: 80px;
    outline: none;
}

.rg-search-bar__zip input::placeholder { color: rgba(255,255,255,0.6); }

.rg-search-bar__go {
    padding: var(--rg-space-xs) var(--rg-space-lg);
    background: white;
    color: var(--rg-primary);
    border-radius: var(--rg-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background var(--rg-duration) var(--rg-ease);
}

.rg-search-bar__go:hover {
    background: var(--rg-bg-alt);
}

/* ── Active Filters Bar ── */

.rg-active-filters {
    display: flex;
    align-items: center;
    gap: var(--rg-space-sm);
    padding: var(--rg-space-md) 0;
    flex-wrap: wrap;
}

.rg-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--rg-space-xs);
    padding: var(--rg-space-2xs) var(--rg-space-sm);
    background: var(--rg-primary-muted);
    color: var(--rg-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--rg-radius-full);
    border: 1px solid rgba(45, 106, 79, 0.15);
}

.rg-filter-tag__close {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: var(--rg-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--rg-duration) var(--rg-ease);
}

.rg-filter-tag__close:hover {
    background: rgba(45, 106, 79, 0.15);
}

/* ── Results Layout: sidebar + main ── */

.rg-results-layout {
    display: grid;
    grid-template-columns: var(--rg-sidebar-width) 1fr;
    gap: var(--rg-space-xl);
    max-width: var(--rg-max-width);
    margin: 0 auto;
    padding: var(--rg-space-lg);
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════════
   FILTER SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

.rg-sidebar {
    position: sticky;
    top: calc(var(--rg-header-height) + var(--rg-space-lg));
    max-height: calc(100vh - var(--rg-header-height) - var(--rg-space-2xl));
    overflow-y: auto;
    padding-right: var(--rg-space-xs);
}

.rg-sidebar::-webkit-scrollbar { width: 4px; }
.rg-sidebar::-webkit-scrollbar-track { background: transparent; }
.rg-sidebar::-webkit-scrollbar-thumb { background: var(--rg-border-strong); border-radius: 2px; }

.rg-filter-section {
    margin-bottom: var(--rg-space-lg);
    padding-bottom: var(--rg-space-lg);
    border-bottom: 1px solid var(--rg-border);
}

.rg-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rg-filter-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: var(--rg-space-sm);
    user-select: none;
}

.rg-filter-section__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rg-text-dark);
}

.rg-filter-section__toggle {
    font-size: 0.75rem;
    color: var(--rg-text-muted);
    transition: transform var(--rg-duration) var(--rg-ease);
}

.rg-filter-section--collapsed .rg-filter-section__toggle {
    transform: rotate(-90deg);
}

.rg-filter-section--collapsed .rg-filter-section__body {
    display: none;
}

/* ── Filter Select ── */

.rg-filter-select {
    width: 100%;
    padding: var(--rg-space-xs) var(--rg-space-sm);
    border: 1px solid var(--rg-border-strong);
    border-radius: var(--rg-radius);
    font-size: 0.875rem;
    color: var(--rg-text-dark);
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color var(--rg-duration) var(--rg-ease);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8A8A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.rg-filter-select:focus {
    border-color: var(--rg-primary);
    box-shadow: 0 0 0 3px var(--rg-primary-muted);
}

/* ── Filter Checkbox ── */

.rg-filter-check {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    padding: var(--rg-space-2xs) 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--rg-text-body);
    transition: color var(--rg-duration) var(--rg-ease);
}

.rg-filter-check:hover { color: var(--rg-text-dark); }

.rg-filter-check input[type="checkbox"],
.rg-filter-check input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rg-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Filter Search ── */

.rg-filter-search {
    width: 100%;
    padding: var(--rg-space-xs) var(--rg-space-sm);
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    font-size: 0.8125rem;
    outline: none;
    margin-bottom: var(--rg-space-xs);
    transition: border-color var(--rg-duration) var(--rg-ease);
}

.rg-filter-search:focus {
    border-color: var(--rg-primary);
}

.rg-filter-search::placeholder {
    color: var(--rg-text-light);
}

/* ═══════════════════════════════════════════════════════════════
   CONTRACTOR CARD — The Key Element
   ═══════════════════════════════════════════════════════════════ */

.rg-pro-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--rg-bg-card);
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--rg-duration-slow) var(--rg-ease),
                border-color var(--rg-duration-slow) var(--rg-ease);
    margin-bottom: var(--rg-space-lg);
}

.rg-pro-card:hover {
    box-shadow: var(--rg-shadow-card-hover);
    border-color: var(--rg-border-strong);
}

/* ── Photo Carousel ── */

.rg-pro-card__photos {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    background: var(--rg-bg-alt);
}

.rg-pro-card__photo-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform var(--rg-duration-slow) var(--rg-ease);
}

.rg-pro-card__photo {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-pro-card__photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--rg-text-dark);
    cursor: pointer;
    box-shadow: var(--rg-shadow-sm);
    transition: all var(--rg-duration) var(--rg-ease);
    opacity: 0;
    border: none;
}

.rg-pro-card:hover .rg-pro-card__photo-nav {
    opacity: 1;
}

.rg-pro-card__photo-nav:hover {
    background: white;
    box-shadow: var(--rg-shadow-md);
    transform: translateY(-50%) scale(1.1);
}

.rg-pro-card__photo-prev { left: var(--rg-space-xs); }
.rg-pro-card__photo-next { right: var(--rg-space-xs); }

.rg-pro-card__photo-count {
    position: absolute;
    bottom: var(--rg-space-xs);
    right: var(--rg-space-xs);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: var(--rg-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
}

/* ── Promo Overlay on Photo ── */

.rg-pro-card__promo {
    position: absolute;
    top: var(--rg-space-xs);
    left: var(--rg-space-xs);
    display: flex;
    align-items: center;
    gap: var(--rg-space-2xs);
    background: var(--rg-primary);
    color: white;
    padding: 3px 10px;
    border-radius: var(--rg-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
}

/* ── Card Details ── */

.rg-pro-card__body {
    padding: var(--rg-space-lg);
    display: flex;
    flex-direction: column;
}

.rg-pro-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--rg-space-md);
    margin-bottom: var(--rg-space-xs);
}

.rg-pro-card__name {
    font-family: var(--rg-font-body);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rg-text-dark);
    line-height: 1.3;
}

.rg-pro-card__name a {
    color: inherit;
    text-decoration: none;
}

.rg-pro-card__name a:hover {
    color: var(--rg-primary);
}

/* ── Rating ── */

.rg-pro-card__rating {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    margin-bottom: var(--rg-space-xs);
}

.rg-pro-card__stars {
    display: flex;
    gap: 1px;
}

.rg-pro-card__star {
    color: var(--rg-gold);
    font-size: 0.875rem;
}

.rg-pro-card__star--empty { color: var(--rg-border-strong); }

.rg-pro-card__rating-score {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--rg-primary);
}

.rg-pro-card__rating-count {
    font-size: 0.8125rem;
    color: var(--rg-text-muted);
}

/* ── Badges ── */

.rg-pro-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rg-space-xs);
    margin-bottom: var(--rg-space-sm);
}

.rg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--rg-radius-full);
    white-space: nowrap;
    line-height: 1.4;
}

.rg-badge--verified {
    background: var(--rg-green-light);
    color: var(--rg-green);
    border: 1px solid rgba(64, 145, 108, 0.15);
}

.rg-badge--quick {
    background: var(--rg-blue-light);
    color: var(--rg-blue);
    border: 1px solid rgba(69, 123, 157, 0.15);
}

.rg-badge--best {
    background: var(--rg-gold-light);
    color: #B8860B;
    border: 1px solid rgba(244, 162, 97, 0.2);
}

.rg-badge--hires {
    background: var(--rg-bg-alt);
    color: var(--rg-text-body);
    border: 1px solid var(--rg-border);
}

.rg-badge--pay {
    background: var(--rg-blue-light);
    color: var(--rg-blue);
    border: 1px solid rgba(69, 123, 157, 0.15);
}

.rg-badge--pro {
    background: var(--rg-primary-muted);
    color: var(--rg-primary);
    border: 1px solid rgba(45, 106, 79, 0.12);
}

.rg-badge__icon {
    font-size: 0.6875rem;
}

/* ── Description ── */

.rg-pro-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rg-space-sm);
    margin-bottom: var(--rg-space-sm);
    padding: var(--rg-space-xs) 0;
    border-top: 1px solid var(--rg-border);
    border-bottom: 1px solid var(--rg-border);
}

.rg-pro-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--rg-text-muted);
}

.rg-pro-card__stat svg {
    stroke: var(--rg-primary);
    flex-shrink: 0;
}

.rg-pro-card__service-area {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--rg-text-muted);
    margin-bottom: var(--rg-space-xs);
}

.rg-pro-card__service-area svg {
    stroke: var(--rg-blue);
    flex-shrink: 0;
}

.rg-pro-card__desc {
    font-size: 0.875rem;
    color: var(--rg-text-body);
    line-height: 1.6;
    margin-bottom: var(--rg-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rg-pro-card__readmore {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rg-text-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--rg-space-2xs);
    margin-bottom: var(--rg-space-sm);
}

.rg-pro-card__readmore:hover {
    color: var(--rg-primary);
}

/* ── Review Quote ── */

.rg-pro-card__review {
    position: relative;
    padding-left: var(--rg-space-md);
    margin-bottom: var(--rg-space-sm);
    border-left: 2px solid var(--rg-border);
}

.rg-pro-card__review-text {
    font-size: 0.8125rem;
    color: var(--rg-text-body);
    font-style: italic;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rg-pro-card__review-author {
    font-size: 0.75rem;
    color: var(--rg-text-muted);
    margin-top: var(--rg-space-2xs);
}

/* ── Address ── */

.rg-pro-card__address {
    font-size: 0.8125rem;
    color: var(--rg-text-muted);
    display: flex;
    align-items: flex-start;
    gap: var(--rg-space-2xs);
    margin-top: auto;
    padding-top: var(--rg-space-sm);
}

.rg-pro-card__address-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Card CTA ── */

.rg-pro-card__cta {
    position: absolute;
    top: var(--rg-space-lg);
    right: var(--rg-space-lg);
}

.rg-pro-card__cta .rg-btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

/* ── Sponsored Label ── */

.rg-pro-card__sponsored {
    font-size: 0.6875rem;
    color: var(--rg-text-light);
    text-align: right;
    margin-top: var(--rg-space-xs);
}

/* ── Keyword Search in Results ── */

.rg-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--rg-space-lg);
    flex-wrap: wrap;
    gap: var(--rg-space-sm);
}

.rg-results-header__keyword {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    background: white;
    border: 1px solid var(--rg-border-strong);
    border-radius: var(--rg-radius-full);
    padding: var(--rg-space-xs) var(--rg-space-md);
    font-size: 0.875rem;
    min-width: 200px;
}

.rg-results-header__keyword input {
    border: none;
    outline: none;
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
}

.rg-results-header__keyword input::placeholder {
    color: var(--rg-text-light);
}

.rg-results-count {
    font-size: 0.8125rem;
    color: var(--rg-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS & CAROUSELS
   ═══════════════════════════════════════════════════════════════ */

.rg-carousel {
    position: relative;
    overflow: hidden;
}

.rg-carousel__track {
    display: flex;
    gap: var(--rg-space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--rg-space-xs);
}

.rg-carousel__track::-webkit-scrollbar { display: none; }

.rg-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--rg-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--rg-text-dark);
    cursor: pointer;
    z-index: 2;
    transition: all var(--rg-duration) var(--rg-ease);
    border: 1px solid var(--rg-border);
}

.rg-carousel__nav:hover {
    box-shadow: var(--rg-shadow-lg);
    background: var(--rg-bg-card);
}

.rg-carousel__prev { left: 0; }
.rg-carousel__next { right: 0; }

/* ── Category Tile ── */

.rg-cat-tile {
    flex: 0 0 180px;
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
    border-radius: var(--rg-radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    transition: transform var(--rg-duration) var(--rg-ease);
}

.rg-cat-tile:hover {
    transform: translateY(-3px);
}

.rg-cat-tile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rg-duration-slow) var(--rg-ease);
}

.rg-cat-tile:hover .rg-cat-tile__img {
    transform: scale(1.05);
}

.rg-cat-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--rg-space-md);
}

.rg-cat-tile__name {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
}

/* ── Service Grid (non-carousel) ── */

.rg-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--rg-space-md);
}

.rg-service-card {
    background: var(--rg-bg-card);
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius-lg);
    padding: var(--rg-space-xl) var(--rg-space-lg);
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rg-space-xs);
    transition: all var(--rg-duration) var(--rg-ease);
}

.rg-service-card:hover {
    border-color: var(--rg-primary);
    box-shadow: var(--rg-shadow-md);
    transform: translateY(-2px);
}

.rg-service-card__icon {
    font-size: 2rem;
    margin-bottom: var(--rg-space-2xs);
}

.rg-service-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--rg-text-dark);
}

.rg-service-card:hover .rg-service-card__name {
    color: var(--rg-primary);
}

.rg-service-card__count {
    font-size: 0.75rem;
    color: var(--rg-text-muted);
}

/* ── City Grid ── */

.rg-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--rg-space-sm);
}

.rg-city-card {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    padding: var(--rg-space-sm) var(--rg-space-md);
    background: var(--rg-bg-card);
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    text-decoration: none;
    transition: all var(--rg-duration) var(--rg-ease);
}

.rg-city-card:hover {
    border-color: var(--rg-primary);
    box-shadow: var(--rg-shadow-sm);
}

.rg-city-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rg-primary);
    flex-shrink: 0;
}

.rg-city-card__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rg-text-dark);
}

.rg-city-card:hover .rg-city-card__name { color: var(--rg-primary); }

.rg-city-card__county {
    font-size: 0.75rem;
    color: var(--rg-text-muted);
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */

.rg-section-header {
    margin-bottom: var(--rg-space-xl);
}

.rg-section-header--center {
    text-align: center;
}

.rg-section-header__overline {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rg-primary);
    margin-bottom: var(--rg-space-xs);
}

.rg-section-header__title {
    font-family: var(--rg-font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--rg-text-dark);
}

.rg-section--dark .rg-section-header__title {
    color: var(--rg-text-on-dark);
}

.rg-section-header__subtitle {
    font-size: 1rem;
    color: var(--rg-text-muted);
    margin-top: var(--rg-space-xs);
    max-width: 560px;
    line-height: 1.6;
}

.rg-section-header--center .rg-section-header__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */

.rg-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rg-space-xl);
    counter-reset: step-counter;
}

.rg-step {
    text-align: center;
    counter-increment: step-counter;
    position: relative;
    padding: var(--rg-space-lg);
}

.rg-step::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--rg-primary-muted);
    color: var(--rg-primary);
    font-family: var(--rg-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--rg-space-md);
}

.rg-step__title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: var(--rg-space-xs);
    color: var(--rg-text-dark);
}

.rg-step__desc {
    font-size: 0.875rem;
    color: var(--rg-text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════ */

.rg-stats {
    display: flex;
    justify-content: center;
    gap: var(--rg-space-3xl);
    flex-wrap: wrap;
    padding: var(--rg-space-xl) 0;
}

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

.rg-stat__num {
    font-family: var(--rg-font-display);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: var(--rg-primary);
    line-height: 1;
}

.rg-section--dark .rg-stat__num {
    color: var(--rg-accent);
}

.rg-stat__label {
    font-size: 0.8125rem;
    color: var(--rg-text-muted);
    margin-top: var(--rg-space-2xs);
    font-weight: 500;
}

.rg-section--dark .rg-stat__label {
    color: var(--rg-text-on-dark-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.rg-form {
    max-width: 560px;
    margin: 0 auto;
}

.rg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rg-space-md);
}

.rg-form__group {
    margin-bottom: var(--rg-space-md);
}

.rg-form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rg-text-dark);
    margin-bottom: var(--rg-space-2xs);
}

.rg-section--dark .rg-form__label {
    color: var(--rg-text-on-dark);
}

.rg-form__input,
.rg-form__select,
.rg-form__textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: var(--rg-text-dark);
    background: white;
    border: 1.5px solid var(--rg-border-strong);
    border-radius: var(--rg-radius);
    outline: none;
    transition: border-color var(--rg-duration) var(--rg-ease),
                box-shadow var(--rg-duration) var(--rg-ease);
}

.rg-form__input:focus,
.rg-form__select:focus,
.rg-form__textarea:focus {
    border-color: var(--rg-primary);
    box-shadow: 0 0 0 3px var(--rg-primary-muted);
}

.rg-form__input::placeholder,
.rg-form__textarea::placeholder {
    color: var(--rg-text-light);
}

.rg-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.rg-form__error {
    color: var(--rg-red);
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.rg-form__group.error .rg-form__error { display: block; }
.rg-form__group.error .rg-form__input,
.rg-form__group.error .rg-form__select {
    border-color: var(--rg-red);
}

@media (max-width: 480px) {
    .rg-form__row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL (Contact Pro)
   ═══════════════════════════════════════════════════════════════ */

.rg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rg-space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--rg-duration-slow) var(--rg-ease),
                visibility var(--rg-duration-slow);
}

.rg-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rg-modal {
    background: white;
    border-radius: var(--rg-radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--rg-shadow-xl);
    transform: translateY(16px);
    transition: transform var(--rg-duration-slow) var(--rg-ease);
}

.rg-modal-overlay.active .rg-modal {
    transform: translateY(0);
}

.rg-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--rg-space-lg) var(--rg-space-lg) var(--rg-space-md);
    border-bottom: 1px solid var(--rg-border);
}

.rg-modal__title {
    font-family: var(--rg-font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.rg-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--rg-text-muted);
    transition: background var(--rg-duration) var(--rg-ease);
}

.rg-modal__close:hover {
    background: var(--rg-bg-alt);
}

.rg-modal__body {
    padding: var(--rg-space-lg);
}

/* ── Contact Pro Info ── */

.rg-modal__pro {
    display: flex;
    align-items: center;
    gap: var(--rg-space-sm);
    margin-bottom: var(--rg-space-lg);
}

.rg-modal__pro-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rg-bg-alt);
    overflow: hidden;
    flex-shrink: 0;
}

.rg-modal__pro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-modal__pro-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.rg-modal__pro-reviews {
    display: flex;
    align-items: center;
    gap: var(--rg-space-2xs);
    font-size: 0.75rem;
    color: var(--rg-text-muted);
}

.rg-modal__pro-reviews .rg-pro-card__star {
    font-size: 0.6875rem;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER (Contractor Signup)
   ═══════════════════════════════════════════════════════════════ */

.rg-cta-banner {
    background: linear-gradient(135deg, var(--rg-primary) 0%, var(--rg-primary-hover) 100%);
    padding: var(--rg-space-2xl) var(--rg-space-lg);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.rg-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.rg-cta-banner__title {
    font-family: var(--rg-font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--rg-space-xs);
    position: relative;
}

.rg-cta-banner__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--rg-space-lg);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════════════ */

.rg-trust-bar {
    display: flex;
    justify-content: center;
    gap: var(--rg-space-2xl);
    padding: var(--rg-space-lg) 0;
    flex-wrap: wrap;
}

.rg-trust-item {
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rg-text-body);
}

.rg-trust-item__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.rg-footer {
    background: var(--rg-bg-dark-alt);
    color: var(--rg-text-on-dark);
    padding: var(--rg-space-3xl) 0 var(--rg-space-lg);
}

.rg-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--rg-space-2xl);
    max-width: var(--rg-max-width);
    margin: 0 auto;
    padding: 0 var(--rg-space-lg);
}

.rg-footer__brand {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--rg-text-on-dark-muted);
    margin-top: var(--rg-space-md);
}

.rg-footer__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rg-text-on-dark);
    margin-bottom: var(--rg-space-md);
}

.rg-footer__links {
    list-style: none;
}

.rg-footer__links li {
    margin-bottom: var(--rg-space-xs);
}

.rg-footer__links a {
    color: var(--rg-text-on-dark-muted);
    font-size: 0.875rem;
    transition: color var(--rg-duration) var(--rg-ease);
}

.rg-footer__links a:hover {
    color: white;
}

.rg-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--rg-max-width);
    margin: var(--rg-space-2xl) auto 0;
    padding: var(--rg-space-lg) var(--rg-space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: var(--rg-text-on-dark-muted);
    flex-wrap: wrap;
    gap: var(--rg-space-md);
}

.rg-footer__bottom-links {
    display: flex;
    gap: var(--rg-space-lg);
}

.rg-footer__bottom-links a {
    color: var(--rg-text-on-dark-muted);
    font-size: 0.75rem;
}

.rg-footer__bottom-links a:hover { color: white; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.rg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--rg-space-xs);
    padding: var(--rg-space-xl) 0;
}

.rg-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: var(--rg-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    background: white;
    color: var(--rg-text-body);
    cursor: pointer;
    transition: all var(--rg-duration) var(--rg-ease);
}

.rg-pagination__btn:hover {
    border-color: var(--rg-primary);
    color: var(--rg-primary);
}

.rg-pagination__btn.active {
    background: var(--rg-primary);
    border-color: var(--rg-primary);
    color: white;
}

.rg-pagination__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════ */

.rg-breadcrumbs {
    padding: var(--rg-space-md) 0;
    font-size: 0.8125rem;
    color: var(--rg-text-muted);
    display: flex;
    align-items: center;
    gap: var(--rg-space-xs);
    flex-wrap: wrap;
}

.rg-breadcrumbs a {
    color: var(--rg-text-muted);
}

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

.rg-breadcrumbs__sep {
    color: var(--rg-text-light);
    font-size: 0.625rem;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING & EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */

.rg-loading {
    text-align: center;
    padding: var(--rg-space-3xl);
    color: var(--rg-text-muted);
}

.rg-loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--rg-border);
    border-top-color: var(--rg-primary);
    border-radius: 50%;
    margin: 0 auto var(--rg-space-md);
    animation: rg-spin 0.7s linear infinite;
}

@keyframes rg-spin {
    to { transform: rotate(360deg); }
}

.rg-empty {
    text-align: center;
    padding: var(--rg-space-3xl);
}

.rg-empty__icon {
    font-size: 2.5rem;
    margin-bottom: var(--rg-space-md);
    opacity: 0.4;
}

.rg-empty__title {
    font-family: var(--rg-font-display);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: var(--rg-space-xs);
}

.rg-empty__text {
    color: var(--rg-text-muted);
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.rg-mb-xs { margin-bottom: var(--rg-space-xs); }
.rg-mb-sm { margin-bottom: var(--rg-space-sm); }
.rg-mb-md { margin-bottom: var(--rg-space-md); }
.rg-mb-lg { margin-bottom: var(--rg-space-lg); }
.rg-mb-xl { margin-bottom: var(--rg-space-xl); }
.rg-mb-2xl { margin-bottom: var(--rg-space-2xl); }

.rg-mt-md { margin-top: var(--rg-space-md); }
.rg-mt-lg { margin-top: var(--rg-space-lg); }
.rg-mt-xl { margin-top: var(--rg-space-xl); }

.rg-flex { display: flex; }
.rg-flex-center { display: flex; align-items: center; justify-content: center; }
.rg-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rg-gap-xs { gap: var(--rg-space-xs); }
.rg-gap-sm { gap: var(--rg-space-sm); }
.rg-gap-md { gap: var(--rg-space-md); }
.rg-gap-lg { gap: var(--rg-space-lg); }

.rg-hidden { display: none !important; }
.rg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .rg-results-layout {
        grid-template-columns: 1fr;
    }

    .rg-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-height: 100vh;
        background: white;
        z-index: 1500;
        padding: var(--rg-space-lg);
        box-shadow: var(--rg-shadow-xl);
        transform: translateX(-100%);
        transition: transform var(--rg-duration-slow) var(--rg-ease);
        overflow-y: auto;
    }

    .rg-sidebar.open {
        transform: translateX(0);
    }

    .rg-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1499;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--rg-duration-slow) var(--rg-ease),
                    visibility var(--rg-duration-slow);
    }

    .rg-sidebar-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .rg-pro-card {
        grid-template-columns: 1fr;
    }

    .rg-pro-card__photos {
        height: 220px;
        min-height: unset;
    }

    .rg-mega {
        position: static;
        transform: none;
        min-width: unset;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        padding: var(--rg-space-md);
        display: none;
    }

    .rg-nav__item.open .rg-mega {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .rg-mega__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--rg-space-md);
    }
}

@media (max-width: 768px) {
    .rg-header__mobile-btn { display: flex; }

    .rg-header__left .rg-nav,
    .rg-header__search {
        display: none;
    }

    .rg-header__left .rg-nav.open {
        display: flex;
        position: fixed;
        top: var(--rg-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: var(--rg-space-lg);
        z-index: 1100;
        overflow-y: auto;
        gap: 0;
    }

    .rg-nav.open .rg-nav__item {
        height: auto;
    }

    .rg-nav.open .rg-nav__link {
        padding: var(--rg-space-md) 0;
        border-bottom: 1px solid var(--rg-border);
        height: auto;
    }

    .rg-hero { min-height: 380px; padding: var(--rg-space-3xl) var(--rg-space-md); }
    .rg-hero__steps { flex-direction: column; gap: var(--rg-space-sm); }

    .rg-hero-search {
        flex-direction: column;
        border-radius: var(--rg-radius);
    }

    .rg-hero-search__input {
        border-bottom: 1px solid var(--rg-border);
    }

    .rg-hero-search__btn {
        margin: var(--rg-space-xs);
        width: calc(100% - var(--rg-space-md));
    }

    .rg-section { padding: var(--rg-space-2xl) 0; }
    .rg-container { padding: 0 var(--rg-space-md); }

    .rg-steps { grid-template-columns: 1fr; gap: var(--rg-space-md); }

    .rg-stats { gap: var(--rg-space-xl); }

    .rg-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--rg-space-lg);
    }

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

    .rg-trust-bar { gap: var(--rg-space-lg); }

    .rg-pro-card__cta {
        position: static;
        margin-top: var(--rg-space-sm);
    }

    .rg-header__cta { display: none; }

    .rg-mega__grid { grid-template-columns: 1fr; }

    .rg-cat-tile { flex: 0 0 160px; }
}

@media (max-width: 480px) {
    .rg-footer__grid { grid-template-columns: 1fr; }
    .rg-service-grid { grid-template-columns: repeat(2, 1fr); }
    .rg-city-grid { grid-template-columns: 1fr; }
    .rg-cat-tile { flex: 0 0 140px; }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */

.rg-faq {
    max-width: 800px;
}

.rg-faq__item {
    border-bottom: 1px solid var(--rg-border);
}

.rg-faq__item:last-child {
    border-bottom: none;
}

.rg-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--rg-space-md) 0;
    font-family: var(--rg-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rg-text-dark);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    gap: var(--rg-space-sm);
    transition: color var(--rg-duration) var(--rg-ease);
}

.rg-faq__question:hover {
    color: var(--rg-primary);
}

.rg-faq__toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--rg-duration) var(--rg-ease);
    color: var(--rg-text-muted);
}

.rg-faq__item.open .rg-faq__toggle {
    transform: rotate(180deg);
}

.rg-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--rg-ease), padding 0.35s var(--rg-ease);
    padding: 0 0;
}

.rg-faq__item.open .rg-faq__answer {
    max-height: 500px;
    padding: 0 0 var(--rg-space-md) 0;
}

.rg-faq__answer p {
    font-size: 0.9375rem;
    color: var(--rg-text-body);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   INLINE CTA (Mid-Content Call to Action)
   ═══════════════════════════════════════════════════════════════ */

.rg-inline-cta {
    background: var(--rg-primary-muted);
    border-left: 4px solid var(--rg-accent);
    border-radius: 0 var(--rg-radius) var(--rg-radius) 0;
    padding: var(--rg-space-md) var(--rg-space-lg);
    margin: var(--rg-space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rg-space-md);
    flex-wrap: wrap;
}

.rg-inline-cta__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rg-text-dark);
    flex: 1;
    min-width: 200px;
}

.rg-inline-cta__text span {
    color: var(--rg-primary);
}

.rg-inline-cta .rg-btn {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SUBTLE ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes rg-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rg-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rg-animate-in {
    animation: rg-fadeIn 0.4s var(--rg-ease) forwards;
}

.rg-pro-card {
    animation: rg-fadeIn 0.3s var(--rg-ease) forwards;
}

.rg-pro-card:nth-child(2) { animation-delay: 0.05s; }
.rg-pro-card:nth-child(3) { animation-delay: 0.1s; }
.rg-pro-card:nth-child(4) { animation-delay: 0.15s; }
.rg-pro-card:nth-child(5) { animation-delay: 0.2s; }

/* ═══════════════════════════════════════════════════════════════
   MARKETPLACE MOTION — Activity ticker & live signals
   ═══════════════════════════════════════════════════════════════ */

.rg-ticker {
    position: fixed;
    bottom: var(--rg-space-md);
    left: var(--rg-space-md);
    background: var(--rg-bg-card);
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius-lg);
    padding: var(--rg-space-sm) var(--rg-space-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-size: var(--rg-body-sm);
    color: var(--rg-text-body);
    z-index: 100;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    max-width: 340px;
}

.rg-ticker.visible {
    transform: translateY(0);
    opacity: 1;
}

.rg-ticker__icon {
    margin-right: var(--rg-space-xs);
}

.rg-live-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--rg-caption);
    color: var(--rg-text-muted);
}

.rg-live-signal__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rg-green);
    animation: rg-pulse 2s ease-in-out infinite;
}

@keyframes rg-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@media (max-width: 600px) {
    .rg-ticker {
        left: var(--rg-space-xs);
        right: var(--rg-space-xs);
        max-width: none;
        bottom: var(--rg-space-xs);
    }
}

/* ═══════════════════════════════════════════════════════════════
   LEAD WIZARD — Multi-step form
   ═══════════════════════════════════════════════════════════════ */

.rg-wizard {
    max-width: 600px;
    margin: 0 auto;
}

.rg-wizard__progress {
    display: flex;
    justify-content: center;
    gap: var(--rg-space-xs);
    margin-bottom: var(--rg-space-lg);
}

.rg-wizard__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.3s, transform 0.3s;
}

.rg-wizard__dot.active {
    background: var(--rg-accent);
    transform: scale(1.3);
}

.rg-wizard__dot.done {
    background: var(--rg-primary-light);
}

.rg-wizard__step {
    display: none;
    animation: rg-fadeUp 0.35s ease;
}

.rg-wizard__step.active {
    display: block;
}

.rg-wizard__step-label {
    font-family: var(--rg-font-heading);
    font-size: var(--rg-heading-lg);
    color: white;
    text-align: center;
    margin-bottom: var(--rg-space-xs);
}

.rg-wizard__step-hint {
    color: var(--rg-text-on-dark-muted);
    text-align: center;
    font-size: var(--rg-body-sm);
    margin-bottom: var(--rg-space-md);
}

.rg-wizard__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rg-space-sm);
}

.rg-wizard__option {
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--rg-radius-lg);
    padding: var(--rg-space-md) var(--rg-space-sm);
    color: white;
    font-family: var(--rg-font-body);
    font-size: var(--rg-body);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.rg-wizard__option:hover {
    border-color: var(--rg-accent);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.rg-wizard__option.selected {
    border-color: var(--rg-accent);
    background: rgba(224, 122, 95, 0.18);
}

.rg-wizard__option svg {
    display: block;
    margin: 0 auto var(--rg-space-xs);
    stroke: var(--rg-accent);
}

.rg-wizard__zip-wrap {
    max-width: 320px;
    margin: 0 auto;
}

.rg-wizard__zip-input {
    width: 100%;
    padding: var(--rg-space-md);
    font-size: var(--rg-heading-md);
    text-align: center;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--rg-radius-lg);
    color: white;
    font-family: var(--rg-font-body);
    letter-spacing: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.rg-wizard__zip-input::placeholder {
    color: rgba(255,255,255,0.35);
    letter-spacing: 4px;
}

.rg-wizard__zip-input:focus {
    border-color: var(--rg-accent);
}

.rg-wizard__nav {
    display: flex;
    justify-content: center;
    gap: var(--rg-space-sm);
    margin-top: var(--rg-space-lg);
}

.rg-wizard__back {
    background: none;
    border: 2px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    padding: var(--rg-space-sm) var(--rg-space-lg);
    border-radius: var(--rg-radius-pill);
    cursor: pointer;
    font-family: var(--rg-font-body);
    font-size: var(--rg-body);
    transition: border-color 0.2s, color 0.2s;
}

.rg-wizard__back:hover {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.rg-wizard__next {
    background: var(--rg-accent);
    border: none;
    color: white;
    padding: var(--rg-space-sm) var(--rg-space-xl);
    border-radius: var(--rg-radius-pill);
    cursor: pointer;
    font-family: var(--rg-font-body);
    font-size: var(--rg-body);
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.rg-wizard__next:hover {
    background: var(--rg-accent-hover);
    transform: translateY(-1px);
}

.rg-wizard__next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.rg-wizard__contact-fields {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-sm);
}

.rg-wizard__contact-fields input {
    width: 100%;
    padding: var(--rg-space-sm) var(--rg-space-md);
    font-size: var(--rg-body);
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--rg-radius-lg);
    color: white;
    font-family: var(--rg-font-body);
    outline: none;
    transition: border-color 0.2s;
}

.rg-wizard__contact-fields input::placeholder {
    color: rgba(255,255,255,0.35);
}

.rg-wizard__contact-fields input:focus {
    border-color: var(--rg-accent);
}

.rg-wizard__contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rg-space-sm);
}

.rg-wizard__success {
    text-align: center;
    padding: var(--rg-space-xl) 0;
}

.rg-wizard__success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--rg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--rg-space-md);
}

.rg-wizard__success-icon svg {
    stroke: white;
}

.rg-wizard__success h3 {
    font-family: var(--rg-font-heading);
    font-size: var(--rg-heading-lg);
    color: white;
    margin-bottom: var(--rg-space-xs);
}

.rg-wizard__success p {
    color: var(--rg-text-on-dark-muted);
}

@media (max-width: 600px) {
    .rg-wizard__options {
        grid-template-columns: 1fr;
    }
    .rg-wizard__contact-row {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */

@media print {
    .rg-header, .rg-footer, .rg-cta-banner,
    .rg-hero-search, .rg-sidebar, .rg-pagination { display: none; }
    .rg-pro-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    body { background: white; }
}
