/*
Theme Name:        561 Roofers
Theme URI:         https://561roofers.com
Description:       Custom child theme for 561 Roofers — The Architectural Curator of Palm Beach County. Built on Hello Elementor.
Author:            561 Roofers
Version:           50
Template:          hello-elementor
Text Domain:       561-roofers
Tags:              elementor, custom, directory, palm-beach

License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   BRAND DESIGN TOKENS
   All values locked to the 561 Roofers Design System
   ============================================================ */

:root {
    /* Core Palette */
    --561-pink:            #F7B5CD;
    --561-carbon:          #231F20;
    --561-primary:         #834F63;
    --561-primary-dark:    #68384C;
    --561-primary-fixed:   #340D20;

    /* Surfaces */
    --561-surface:         #FFF8F8;
    --561-surface-low:     #FBF1F2;
    --561-surface-high:    #EFE6E7;
    --561-surface-highest: #E9E0E1;
    --561-surface-white:   #FFFFFF;
    --561-sand:            #F9F6F1;

    /* Text */
    --561-on-surface:      #1E1B1C;
    --561-on-variant:      #504347;
    --561-outline:         #D4C2C7;
    --561-outline-variant: #827378;

    /* Typography */
    --561-font:            'Manrope', sans-serif;

    /* Spacing Scale (base-8) */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  24px;
    --space-6:  32px;
    --space-7:  48px;
    --space-8:  64px;
    --space-9:  80px;
    --space-10: 120px;

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

    /* Shadows */
    --shadow-ambient: 0 8px 32px rgba(30, 27, 28, 0.06);
    --shadow-card:    0 2px 12px rgba(30, 27, 28, 0.05);
    --shadow-float:   0 16px 48px rgba(30, 27, 28, 0.10);

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */

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

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


body {
    font-family: var(--561-font);
    background-color: var(--561-surface);
    color: var(--561-on-surface);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Hello Elementor resets */
body.elementor-page .elementor-section-wrap,
body.elementor-page > .elementor {
    margin-top: 0;
}

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

a {
    color: var(--561-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--561-font);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--561-on-surface);
    margin: 0 0 var(--space-5) 0;
}

h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4.5vw, 60px); }
h3 { font-size: clamp(24px, 3vw, 40px); }
h4 { font-size: clamp(20px, 2vw, 28px); }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--561-on-variant);
    margin: 0 0 var(--space-5) 0;
}

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

.text-lg {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.6;
}

/* Eyebrow Labels */
.eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--561-primary);
    margin-bottom: var(--space-4);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--561-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    padding: 14px 28px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

/* Primary — Pink fill */
.btn-primary,
.elementor-button.btn-primary {
    background-color: var(--561-pink);
    color: var(--561-primary-fixed);
    border-color: var(--561-pink);
}
.btn-primary:hover {
    background-color: #f4a0bc;
    border-color: #f4a0bc;
    color: var(--561-primary-fixed);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(247, 181, 205, 0.4);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — Carbon fill */
.btn-secondary,
.elementor-button.btn-secondary {
    background-color: var(--561-carbon);
    color: #ffffff;
    border-color: var(--561-carbon);
}
.btn-secondary:hover {
    background-color: #3d3839;
    border-color: #3d3839;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Ghost — Outlined */
.btn-ghost,
.elementor-button.btn-ghost {
    background-color: transparent;
    color: var(--561-on-surface);
    border-color: var(--561-outline);
}
.btn-ghost:hover {
    border-color: var(--561-primary);
    color: var(--561-primary);
    background-color: rgba(131, 79, 99, 0.04);
}

/* Button sizes */
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ============================================================
   SITE HEADER — Glassmorphism Floating Nav
   ============================================================ */

#site-header,
.site-header {
    position: relative;
    z-index: 10;
    height: 76px;
    background: #fff8f8;
    border-bottom: 1px solid rgba(212, 194, 199, 0.4);
}


.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 32px;
}

/* Logo / Wordmark */
.site-header__logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--561-carbon);
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}
.site-header__logo span {
    color: var(--561-pink);
}
.site-header__logo:hover {
    color: var(--561-carbon);
}

/* Nav links */
.site-header__nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 4px;
}

.site-header__nav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--561-on-variant);
    padding: 8px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.site-header__nav a:hover,
.site-header__nav .current-menu-item > a {
    color: var(--561-primary);
    background: rgba(131, 79, 99, 0.06);
}

/* Header CTA */
.site-header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

/* Mobile hamburger */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--561-carbon);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s;
}
.site-header__hamburger:hover { background: var(--561-primary); }
.site-header__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Mobile Nav Drawer ──────────────────────────── */
.site-header__mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--561-carbon);
    z-index: 99999;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    visibility: hidden;
}
.site-header__mobile-nav.open {
    transform: translateX(0);
    visibility: visible;
}
.mobile-nav__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(35,31,32,0.65);
    z-index: 99998;
}
.mobile-nav__backdrop.open { display: block; }
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.mobile-nav__logo {
    font-size: 20px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -0.03em;
}
.mobile-nav__logo span { color: var(--561-pink); }
.mobile-nav__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.mobile-nav__close:hover { background: rgba(255,255,255,0.18); }
.mobile-nav__cta {
    display: block;
    margin: 20px 24px 8px;
    padding: 14px 20px;
    background: var(--561-pink);
    color: #340D20;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    border-radius: var(--radius);
    text-align: center;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.mobile-nav__cta:hover { background: #f0a8c2; }
.mobile-nav__links {
    display: flex;
    flex-direction: column;
    padding: 8px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.mobile-nav__link {
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: -0.02em;
    transition: color 0.15s;
}
.mobile-nav__link:last-child { border-bottom: none; }
.mobile-nav__link:hover { color: var(--561-pink); }
.mobile-nav__section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    padding: 20px 24px 10px;
    flex-shrink: 0;
}
.mobile-nav__cities {
    display: flex;
    flex-direction: column;
    padding: 0 24px 40px;
}
.mobile-nav__city {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.15s;
}
.mobile-nav__city:hover { color: white; }
.mobile-nav__city--all {
    color: var(--561-pink) !important;
    font-weight: 800;
    margin-top: 8px;
    border-bottom: none;
}

/* No body padding needed — header is not fixed */

/* ============================================================
   SITE FOOTER
   ============================================================ */

#site-footer,
.site-footer {
    background: var(--561-carbon);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.site-footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-9);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-9);
    box-sizing: border-box;
}

#site-footer,
.site-footer {
    width: 100%;
    display: block;
}

.site-footer__brand-name {
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}
.site-footer__brand-name span { color: var(--561-pink); }

.site-footer__tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
}

.site-footer__col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--561-pink);
    margin-bottom: var(--space-5);
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer__col ul li {
    margin-bottom: var(--space-3);
}
.site-footer__col ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.site-footer__col ul li a:hover {
    color: white;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-6) var(--space-9);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    box-sizing: border-box;
}
.site-footer__copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}
.site-footer__legal {
    display: flex;
    gap: var(--space-6);
}
.site-footer__legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: var(--transition);
}
.site-footer__legal a:hover { color: white; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-9);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-9);
}

.section-padding {
    padding: var(--space-10) 0;
}

.section-padding-sm {
    padding: var(--space-8) 0;
}

/* Background surface variants */
.bg-surface         { background-color: var(--561-surface); }
.bg-surface-low     { background-color: var(--561-surface-low); }
.bg-surface-high    { background-color: var(--561-surface-high); }
.bg-sand            { background-color: var(--561-sand); }
.bg-carbon          { background-color: var(--561-carbon); color: white; }
.bg-white           { background-color: #ffffff; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-slow);
    border: 1px solid var(--561-outline);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: rgba(131, 79, 99, 0.2);
}

.card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.card__body {
    padding: var(--space-6);
}

/* ============================================================
   CONTRACTOR LISTING CARDS (Directory Grid)
   ============================================================ */

.contractor-card {
    display: flex;
    background: white;
    border: 1px solid var(--561-outline);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
}
.contractor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
    border-color: rgba(131, 79, 99, 0.25);
}

/* Tier accent border */
.contractor-card[data-tier="concierge"] {
    border-top: 3px solid var(--561-primary);
}
.contractor-card[data-tier="premier"] {
    border-top: 3px solid var(--561-carbon);
}
.contractor-card[data-tier="essential"] {
    border-top: 3px solid var(--561-pink);
}

.contractor-card__image {
    width: 180px;
    min-height: 160px;
    flex-shrink: 0;
    object-fit: cover;
}

.contractor-card__body {
    padding: var(--space-5) var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contractor-card__tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.tier-badge--concierge {
    background: rgba(131, 79, 99, 0.12);
    color: var(--561-primary-dark);
}
.tier-badge--premier {
    background: rgba(35, 31, 32, 0.08);
    color: var(--561-carbon);
}
.tier-badge--essential {
    background: rgba(247, 181, 205, 0.3);
    color: var(--561-primary);
}

.contractor-card__name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--561-on-surface);
    margin: 0;
    line-height: 1.2;
}

.contractor-card__tagline {
    font-size: 14px;
    color: var(--561-on-variant);
    margin: 0;
    line-height: 1.4;
}

.contractor-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.contractor-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--561-on-variant);
    font-weight: 600;
}

.contractor-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.contractor-card__stars {
    color: #F59E0B;
    font-size: 14px;
    letter-spacing: -1px;
}

.contractor-card__services {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.contractor-card__service-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: var(--561-surface-low);
    color: var(--561-on-variant);
    border-radius: var(--radius-full);
    border: 1px solid var(--561-outline);
}

.contractor-card__cta {
    margin-top: auto;
    align-self: flex-end;
}

/* ============================================================
   SECTION TITLES (Reusable)
   ============================================================ */

.section-title-block {
    margin-bottom: var(--space-8);
}
.section-title-block h2 {
    margin-bottom: var(--space-4);
}
.section-title-block p {
    font-size: 18px;
    max-width: 600px;
}

/* Split header — title left, link right */
.section-title-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    gap: var(--space-6);
}

/* ============================================================
   TRUST SIGNALS / BADGES
   ============================================================ */

/* FIX v50: trust bar centering — white-space:nowrap stops label wrapping,
   justify-content:center vertically centers each cell */
.home-trust-bar__item{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 20px;border-right:1px solid rgba(255,255,255,0.07);text-align:center;}
.home-trust-bar__item:last-child{border-right:none;}
.home-trust-bar__value{font-size:20px;font-weight:900;color:var(--561-pink);letter-spacing:-0.03em;line-height:1;text-align:center;white-space:nowrap;}
.home-trust-bar__label{font-size:10px;font-weight:600;color:rgba(255,255,255,0.35);text-transform:uppercase;letter-spacing:0.12em;margin-top:4px;text-align:center;white-space:nowrap;}

.trust-bar {
    display: flex;
    align-items: center;
    gap: var(--space-7);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 14px;
    font-weight: 700;
    color: var(--561-on-surface);
}
.trust-item__icon {
    width: 36px;
    height: 36px;
    background: var(--561-surface-low);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* License badge */
.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
}

/* Star ratings */
.star-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.star-rating__stars {
    color: #F59E0B;
    letter-spacing: -1px;
}
.star-rating__count {
    font-size: 13px;
    color: var(--561-on-variant);
    font-weight: 600;
}

/* ============================================================
   FORMS (Quote / Contact / Join)
   ============================================================ */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--561-on-variant);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    font-family: var(--561-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--561-on-surface);
    background: var(--561-surface);
    border: 1.5px solid var(--561-outline);
    border-radius: var(--radius);
    padding: 12px 16px;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--561-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(131, 79, 99, 0.12);
}

.form-textarea,
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Quote form card (sidebar sticky) */
.quote-form-card {
    background: white;
    border: 1px solid var(--561-outline);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    box-shadow: var(--shadow-float);
}
.quote-form-card__title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}
.quote-form-card__subtitle {
    font-size: 13px;
    color: var(--561-on-variant);
    margin-bottom: var(--space-6);
}
.quote-form-card .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 16px;
}

/* Mobile sticky quote bar */
.mobile-quote-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: white;
    border-top: 1px solid var(--561-outline);
    padding: var(--space-3) var(--space-5);
    box-shadow: 0 -8px 32px rgba(30,27,28,0.1);
}
.mobile-quote-bar .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--561-on-variant);
    padding: var(--space-5) 0;
}
.breadcrumbs a {
    color: var(--561-on-variant);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--561-primary); }
.breadcrumbs__sep { color: var(--561-outline); }
.breadcrumbs__current { color: var(--561-on-surface); }

/* ============================================================
   CITY GRID (Homepage + County Hub)
   ============================================================ */

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

.city-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
}
.city-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.city-card:hover .city-card__image {
    transform: scale(1.06);
}
.city-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35,31,32,0.85) 0%, rgba(35,31,32,0.1) 60%, transparent 100%);
}
.city-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-5);
}
.city-card__name {
    font-size: 18px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}
.city-card__count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

/* ============================================================
   BLOG
   ============================================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--561-outline);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition-slow);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}
.blog-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.blog-card__body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card__category {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--561-primary);
    margin-bottom: var(--space-3);
}
.blog-card__title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--561-on-surface);
    margin-bottom: var(--space-4);
    text-decoration: none;
    display: block;
}
.blog-card__title:hover { color: var(--561-primary); }
.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--561-on-variant);
    flex: 1;
}
.blog-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--561-surface-high);
    font-size: 13px;
    color: var(--561-on-variant);
    font-weight: 600;
}

/* Single blog post */
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--561-on-surface);
    max-width: 720px;
}
.post-content h2 {
    font-size: 32px;
    margin-top: var(--space-9);
    margin-bottom: var(--space-5);
}
.post-content h3 {
    font-size: 24px;
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
}
.post-content p { margin-bottom: var(--space-5); }
.post-content ul,
.post-content ol {
    margin: 0 0 var(--space-5) var(--space-6);
}
.post-content li { margin-bottom: var(--space-2); }
.post-content blockquote {
    border-left: 3px solid var(--561-pink);
    padding: var(--space-5) var(--space-7);
    margin: var(--space-7) 0;
    background: var(--561-surface-low);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 19px;
    font-weight: 600;
    color: var(--561-on-surface);
}

/* In-content CTA block */
.post-cta-block {
    background: var(--561-carbon);
    color: white;
    padding: var(--space-7);
    border-radius: var(--radius);
    margin: var(--space-9) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}
.post-cta-block h4 {
    font-size: 22px;
    color: white;
    margin-bottom: var(--space-2);
}
.post-cta-block p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ============================================================
   PRICING TABLE (/join page)
   ============================================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    align-items: start;
}

.pricing-card {
    background: white;
    border: 1.5px solid var(--561-outline);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    position: relative;
    transition: var(--transition-slow);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}
.pricing-card--featured {
    border-color: var(--561-primary);
    box-shadow: 0 0 0 4px rgba(131, 79, 99, 0.08);
}
.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--561-primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card__tier {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--561-primary);
    margin-bottom: var(--space-3);
}
.pricing-card__name {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-2);
}
.pricing-card__price {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--561-carbon);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-card__price-note {
    font-size: 13px;
    color: var(--561-on-variant);
    margin-bottom: var(--space-7);
}

.pricing-card__features {
    list-style: none;
    margin: 0 0 var(--space-7) 0;
    padding: 0;
}
.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--561-surface-high);
    font-size: 14px;
    color: var(--561-on-variant);
    line-height: 1.4;
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li::before {
    content: '✓';
    color: var(--561-primary);
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}
.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* Full-bleed image hero */
.hero-fullbleed {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-10);
    overflow: hidden;
}
.hero-fullbleed__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.hero-fullbleed__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(35, 31, 32, 0.92) 0%,
        rgba(35, 31, 32, 0.5) 40%,
        rgba(35, 31, 32, 0.15) 100%
    );
}
.hero-fullbleed__content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-9);
}
.hero-fullbleed h1 {
    color: white;
    font-size: clamp(52px, 8vw, 110px);
    margin-bottom: var(--space-5);
}
.hero-fullbleed .hero-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    margin-bottom: var(--space-7);
}

/* City hero (smaller) */
.hero-city {
    min-height: 55vh;
    padding-bottom: var(--space-9);
}

/* Contractor listing hero */
.hero-contractor {
    min-height: 65vh;
    padding-bottom: var(--space-9);
}

@media(max-width:768px){
    .hero-contractor{
        min-height: 50vh !important;
        max-height: 50vh !important;
        align-items: flex-end !important;
    }
    .hero-contractor .hero-fullbleed__content{
        padding-bottom: 24px;
    }
    .hero-contractor h1{
        font-size: clamp(24px, 6vw, 40px) !important;
        margin-bottom: 8px !important;
    }
}

/* ============================================================
   BENTO GALLERY (Contractor Listing Page)
   ============================================================ */

.bento-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 300px 240px;
    gap: var(--space-3);
    border-radius: var(--radius);
    overflow: hidden;
}

.bento-gallery__item {
    overflow: hidden;
    position: relative;
}
.bento-gallery__item--main {
    grid-column: 1 / 7;
    grid-row: 1 / 2;
}
.bento-gallery__item--2 {
    grid-column: 7 / 10;
    grid-row: 1 / 2;
}
.bento-gallery__item--3 {
    grid-column: 10 / 13;
    grid-row: 1 / 2;
}
.bento-gallery__item--4 {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
}
.bento-gallery__item--5 {
    grid-column: 5 / 9;
    grid-row: 2 / 3;
}
.bento-gallery__item--6 {
    grid-column: 9 / 13;
    grid-row: 2 / 3;
    position: relative;
}
.bento-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.bento-gallery__item:hover img {
    transform: scale(1.04);
}
.bento-gallery__more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 31, 32, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-2);
    color: white;
    font-weight: 900;
    font-size: 24px;
    cursor: pointer;
}
.bento-gallery__more-overlay span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 0.1em;
}

/* ============================================================
   FILTERS (JetSmartFilters wrapper styles)
   ============================================================ */

.filters-bar {
    background: white;
    border: 1px solid var(--561-outline);
    border-radius: var(--radius);
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-bottom: var(--space-7);
    box-shadow: var(--shadow-card);
}
.filters-bar__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--561-primary);
    flex-shrink: 0;
}

/* JetSmartFilters override styles */
.jet-smart-filters .jet-select select,
.jet-smart-filters .jet-radio-list input + label {
    font-family: var(--561-font);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border-color: var(--561-outline);
    transition: var(--transition);
}

/* ============================================================
   STATS / COUNTERS
   ============================================================ */

.stats-row {
    display: flex;
    align-items: center;
    gap: var(--space-9);
    flex-wrap: wrap;
}

.stat-item__number {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--561-pink);
    line-height: 1;
    margin-bottom: var(--space-1);
}
.stat-item__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* ============================================================
   404 PAGE
   ============================================================ */

.page-404 {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-9);
}
.page-404__number {
    font-size: clamp(120px, 20vw, 240px);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--561-pink);
    line-height: 0.85;
    opacity: 0.4;
    margin-bottom: var(--space-6);
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

.search-results-header {
    padding: var(--space-9) 0 var(--space-7);
}
.search-results-header h1 {
    font-size: 40px;
    margin-bottom: var(--space-3);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1200px) {
    .site-header__inner { padding: 0 var(--space-7); }
    .container { padding: 0 var(--space-7); }
    .site-footer__main { padding: var(--space-9) var(--space-7); grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

@media (max-width: 1024px) {
    body { padding-top: 68px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .bento-gallery { grid-template-rows: 220px 180px; }
}

@media (max-width: 768px) {
    body { padding-top: 64px; }
    .site-header__nav { display: none; }
    .site-header__cta .btn-primary { display: none; }
    .site-header__hamburger { display: flex; }

    .mobile-quote-bar { display: block; }
    /* Give space for mobile quote bar on listing pages */
    .has-mobile-quote-bar { padding-bottom: 80px; }

    .hero-fullbleed { min-height: 90dvh; align-items: center; }
    .hero-fullbleed__content { text-align: left; }

    .site-footer__main { grid-template-columns: 1fr; padding: var(--space-9) var(--space-6); }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; padding: var(--space-5) var(--space-6); }

    .bento-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
    }
    .bento-gallery__item--main { grid-column: 1 / -1; grid-row: 1 / 2; }
    .bento-gallery__item--2 { grid-column: 1 / 2; grid-row: 2 / 3; }
    .bento-gallery__item--3 { grid-column: 2 / 3; grid-row: 2 / 3; }
    .bento-gallery__item--4 { grid-column: 1 / 2; grid-row: 3 / 4; }
    .bento-gallery__item--5 { grid-column: 2 / 3; grid-row: 3 / 4; }
    .bento-gallery__item--6 { display: none; }

    .contractor-card { flex-direction: column; }
    .contractor-card__image { width: 100%; min-height: 200px; }

    .post-cta-block { flex-direction: column; }
    .city-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .stats-row { gap: var(--space-7); }

    .section-padding { padding: var(--space-8) 0; }
    .container { padding: 0 var(--space-5); }
    .container-narrow { padding: 0 var(--space-5); }
}

@media (max-width: 480px) {
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .city-grid { grid-template-columns: 1fr; }
    .bento-gallery { grid-template-rows: repeat(3, 160px); }
    .hero-fullbleed { padding-bottom: var(--space-8); }
    .hero-fullbleed h1 { font-size: 38px; }
    .quote-form-card { padding: var(--space-6); }
}

/* ============================================================
   ACCESSIBILITY & UTILITIES
   ============================================================ */

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

:focus-visible {
    outline: 2px solid var(--561-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.color-pink    { color: var(--561-pink); }
.color-primary { color: var(--561-primary); }
.color-carbon  { color: var(--561-carbon); }

/* Transition: page reveal */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Hello Elementor full-width fix ────────────────────────
   Hello Elementor wraps everything in .hfe-full-width or .site
   with a constrained max-width. We override at the .site level
   to allow the footer to extend edge-to-edge.
─────────────────────────────────────────────────────────── */
.site {
    max-width: 100% !important;
    overflow-x: hidden;
}

#site-footer,
.site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.site-footer__main {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.site-footer__bottom {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ── Global mobile overflow guard ────────────────────────── */
@media (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    /* 2-column footer link lists on mobile */
    #site-footer .site-footer__col ul,
    #site-footer .site-footer__col .menu,
    .site-footer .site-footer__col ul,
    .site-footer .site-footer__col .menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px 16px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #site-footer .site-footer__col ul li,
    #site-footer .site-footer__col .menu li,
    .site-footer .site-footer__col ul li,
    .site-footer .site-footer__col .menu li {
        margin-bottom: 10px !important;
    }
}
