:root {
    --rb-primary: #146c94;
    --rb-secondary: #103b52;
    --rb-accent: #087c70;
    --rb-surface: #eaf6fb;
    --rb-text: #1d2935;
    --rb-border: #d8e3e8;
    --rb-radius: 14px;
    --rb-shadow: 0 14px 40px rgba(16, 59, 82, 0.10);
}

html { scroll-behavior: smooth; }
body.rentbiz-local-site {
    color: var(--rb-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #fff;
}

.rentbiz-local-site .site-header {
    border-bottom: 1px solid rgba(16, 59, 82, 0.09);
}

.rentbiz-local-site .main-navigation .main-nav ul li a {
    font-weight: 650;
}

.rentbiz-local-site .main-navigation .main-nav ul li:last-child > a {
    background: var(--rb-accent);
    color: #fff;
    border-radius: 8px;
    margin-left: 8px;
    line-height: 42px;
}

.rentbiz-local-site h1,
.rentbiz-local-site h2,
.rentbiz-local-site h3 {
    color: var(--rb-secondary);
    letter-spacing: -0.025em;
}

.rentbiz-local-site h1 { font-size: clamp(2.15rem, 5.4vw, 4.4rem); }
.rentbiz-local-site h2 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); }
.rentbiz-local-site h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

.rentbiz-local-site .wp-block-button__link,
.rentbiz-local-site button,
.rentbiz-local-site input[type="submit"] {
    border-radius: 8px;
    font-weight: 750;
    min-height: 48px;
}

.rentbiz-local-site .is-style-fill .wp-block-button__link,
.rentbiz-local-site .rb-button-primary {
    background: var(--rb-accent);
    color: #fff;
}

.rb-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fcfe 0%, var(--rb-surface) 100%);
    border-bottom: 1px solid rgba(20, 108, 148, 0.12);
}

.rb-hero::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    right: -180px;
    top: -210px;
    background: rgba(20, 108, 148, 0.10);
    pointer-events: none;
}

.rb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(8, 124, 112, 0.10);
    color: var(--rb-accent);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rb-form-shell,
.rb-card,
.rb-trust-card {
    background: #fff;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
}

.rb-form-shell { padding: clamp(18px, 3vw, 30px); }
.rb-card { padding: 24px; height: 100%; }
.rb-card p:last-child { margin-bottom: 0; }

.rb-card-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--rb-surface);
    color: var(--rb-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.rb-section-soft { background: var(--rb-surface); }
.rb-section-dark { background: var(--rb-secondary); color: #fff; }
.rb-section-dark h2,
.rb-section-dark h3 { color: #fff; }

.rb-disclaimer {
    border-left: 4px solid var(--rb-primary);
    padding: 14px 16px;
    background: #f7fbfd;
    color: #425766;
    font-size: 0.94rem;
}

.rb-footer-note {
    background: #0b2e3f;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.87rem;
    padding: 14px 20px;
    text-align: center;
}

.rb-footer-note p { margin: 0; }

/* RentBiz Leads Local form compatibility */
.rentbiz-local-site .rbl-form,
.rentbiz-local-site .rentbiz-lead-form,
.rentbiz-local-site [class*="rentbiz-lead"] form {
    font-family: inherit;
}

.rentbiz-local-site input[type="text"],
.rentbiz-local-site input[type="email"],
.rentbiz-local-site input[type="tel"],
.rentbiz-local-site input[type="number"],
.rentbiz-local-site input[type="url"],
.rentbiz-local-site select,
.rentbiz-local-site textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #bccbd3;
    border-radius: 8px;
    background: #fff;
    color: var(--rb-text);
    padding: 11px 13px;
    font-size: 16px;
}

.rentbiz-local-site textarea { min-height: 120px; }
.rentbiz-local-site input:focus,
.rentbiz-local-site select:focus,
.rentbiz-local-site textarea:focus {
    outline: 3px solid rgba(20, 108, 148, 0.18);
    border-color: var(--rb-primary);
}

.rb-mobile-cta { display: none; }

@media (max-width: 768px) {
    body.rentbiz-local-site { padding-bottom: 70px; }

    .rentbiz-local-site .site-content { padding-left: 18px; padding-right: 18px; }
    .rentbiz-local-site .main-navigation .main-nav ul li:last-child > a {
        margin: 8px 14px 14px;
        text-align: center;
    }

    .rb-mobile-cta {
        position: fixed;
        z-index: 99999;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 9px max(10px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(16, 59, 82, 0.14);
        box-shadow: 0 -8px 24px rgba(16, 59, 82, 0.12);
        backdrop-filter: blur(10px);
    }

    .rb-mobile-cta a {
        display: inline-flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        border-radius: 8px;
        font-weight: 800;
        text-decoration: none;
    }

    .rb-mobile-cta__primary { background: var(--rb-accent); color: #fff; }
    .rb-mobile-cta__secondary { background: #fff; color: var(--rb-accent); border: 1px solid var(--rb-accent); }
}

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

/* v1.0.1 — viewport and GeneratePress alignment fixes */
html,
body.rentbiz-local-site {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body.rentbiz-local-site {
        overflow-x: hidden;
    }
}

body.rentbiz-local-site *,
body.rentbiz-local-site *::before,
body.rentbiz-local-site *::after {
    box-sizing: border-box;
}

.rentbiz-local-site .site,
.rentbiz-local-site .site-content,
.rentbiz-local-site .content-area,
.rentbiz-local-site .site-main,
.rentbiz-local-site article,
.rentbiz-local-site .entry-content,
.rentbiz-local-site .wp-site-blocks,
.rentbiz-local-site .wp-block-group,
.rentbiz-local-site .wp-block-columns,
.rentbiz-local-site .wp-block-column {
    min-width: 0;
    max-width: 100%;
}

.rentbiz-local-site .entry-content > .alignfull,
.rentbiz-local-site .entry-content > .wp-block-group.alignfull,
.rentbiz-local-site .rb-hero.alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.rentbiz-local-site .rb-hero > .wp-block-group__inner-container,
.rentbiz-local-site .rb-hero > .wp-block-columns,
.rentbiz-local-site .rb-hero .wp-block-columns.alignwide {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.rentbiz-local-site .rb-hero .wp-block-column,
.rentbiz-local-site .rb-form-shell,
.rentbiz-local-site .rbll-form-shell,
.rentbiz-local-site .rbll-lead-form,
.rentbiz-local-site .rbll-step,
.rentbiz-local-site .rbll-progress,
.rentbiz-local-site .rbll-choice-grid,
.rentbiz-local-site .rbll-field-grid {
    min-width: 0;
    max-width: 100%;
}

.rentbiz-local-site .rbll-form-shell {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.rentbiz-local-site .rbll-progress button,
.rentbiz-local-site .rbll-progress small,
.rentbiz-local-site .rbll-choice span,
.rentbiz-local-site .rbll-field,
.rentbiz-local-site .rbll-field input,
.rentbiz-local-site .rbll-field select,
.rentbiz-local-site .rbll-field textarea {
    min-width: 0;
}

/* The front page hero already contains the only H1. */
.rentbiz-local-front-page .site-main > article > .inside-article > .entry-header {
    display: none;
}

.rentbiz-local-front-page .site-main > article > .inside-article {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.rentbiz-local-front-page .site-content,
.rentbiz-local-front-page .content-area,
.rentbiz-local-front-page .site-main,
.rentbiz-local-front-page .entry-content {
    width: 100%;
}

@media (max-width: 1100px) {
    .rentbiz-local-site .rb-hero .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .rentbiz-local-site .rb-hero .wp-block-column {
        flex-basis: 100% !important;
    }
}

@media (max-width: 768px) {
    .rentbiz-local-front-page .site-content {
        padding-left: 0;
        padding-right: 0;
    }

    .rentbiz-local-site .rb-hero {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .rentbiz-local-site .rb-form-shell {
        padding: 14px;
    }

    .rentbiz-local-site .rbll-form-intro,
    .rentbiz-local-site .rbll-lead-form {
        padding-left: 16px;
        padding-right: 16px;
    }
}
