/* ============================================
   CLEANED UP INLINE STYLES - CSS CLASSES
   Replacing inline styles with reusable classes
   ============================================ */

/* Hero Section Styles */
.hero-content-centered {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.hero-title-large {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hero-title-brand {
    color: #FFB600;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 700;
    display: inline-block;
}

.hero-title-location {
    color: #ffffff;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 4.5rem;
    font-weight: 700;
    margin-left: 0.75rem;
    display: inline-block;
}

.hero-separator {
    width: 1000px;
    max-width: 95%;
    height: 5px;
    background: #FFB600;
    margin: 0 auto 2rem auto;
    box-shadow: 0 2px 10px rgba(255, 182, 0, 0.5);
}

.hero-cta-text {
    font-size: 2rem;
    color: #ffffff;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7), 2px 2px 4px rgba(0, 0, 0, 0.95);
    margin-bottom: 2rem;
}

.hero-cta-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 700;
    font-size: 2rem;
    transition: all 0.3s ease;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-subtext {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 1);
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 0, 0, 0.65), 2px 2px 4px rgba(0, 0, 0, 0.9);
    max-width: 900px;
    margin: 0 auto;
}

/* Section Dividers */
.section-divider {
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Services Grid Background */
.services-bg-section {
    background-color: #E6E4E3;
    padding: 4rem 0;
    width: 100%;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-title {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.services-subtitle {
    font-size: 2.5rem;
    color: #475569;
    margin-bottom: 2rem;
    font-weight: 600;
}

.services-grid-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

/* Better alignment for 8 items in 3-column grid */
.services-grid-main .service-card:nth-child(8) {
    grid-column: 2; /* Center the last card in the bottom row */
}

/* Service Card Styles */
.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.service-card h4 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #000000;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .btn {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 6px;
    width: fit-content;
    color: #000000 !important;
}

/* Content Section Styles */
.main-content-section {
    padding: 80px 0;
    background: #ffffff;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 80px;
}

.service-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.category-card {
    padding: 2.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card h2 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.category-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.category-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.category-card .learn-more-link {
    color: #FFB600;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    margin-top: auto;
}

/* Quote Section */
.quote-section {
    margin-bottom: 80px;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote-content h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.quote-content h3 {
    font-size: 1.75rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.quote-content p {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.quote-phone {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quote-phone a {
    color: #2563eb;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.quote-form-wrapper {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: block;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

/* Link Styles */
.content-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

/* Trust Features Grid */
.trust-features-section {
    margin-bottom: 80px;
}

.trust-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trust-feature-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.trust-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-feature-card h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.trust-feature-card p {
    color: #475569;
    line-height: 1.7;
}

/* Property Value Section */
.property-value-section {
    padding: 5rem 0;
    background: #ffffff;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.text-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 1rem;
}

.text-column h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.text-column p {
    color: #1e293b;
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.image-column {
    display: flex;
    align-items: flex-start;
}

.image-column img,
.image-column-reverse img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Demolition Section */
.demolition-section {
    padding: 5rem 0;
    background: #ffffff;
}

/* Commercial Section */
.commercial-section {
    padding: 5rem 0;
    background: #ffffff;
}

.two-column-layout-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.image-column-reverse {
    display: flex;
    align-items: flex-start;
}

.text-column-reverse {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 1rem;
}

.text-column-reverse h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.text-column-reverse p {
    color: #1e293b;
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* Portfolio Text */
.portfolio-text {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.75;
}

/* Navigation Mobile Styles */
.nav-phone-mobile {
    display: none;
}

.nav-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem; /* Slimmer pill */
    background: #2563eb;
    color: #fff;
    border-radius: 9999px; /* Pill shape for "Give us a call" */
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title-large {
        font-size: 2.5rem;
    }
    
    .hero-title-brand,
    .hero-title-location {
        font-size: 2.5rem;
        margin-left: 0.5rem;
    }
    
    .hero-cta-text,
    .hero-cta-link {
        font-size: 1.5rem;
    }
    
    .hero-subtext {
        font-size: 1.25rem;
    }
    
    .services-grid-main {
        grid-template-columns: 1fr;
    }
    
    .services-grid-main .service-card:nth-child(8) {
        grid-column: 1; /* Reset on mobile */
    }
    
    .services-title {
        font-size: 1.5rem;
    }
    
    .services-subtitle {
        font-size: 2rem;
    }
    
    .services-bg-section {
        padding: 3rem 0;
    }
    
    .service-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WIDGET POSITIONING - Viewport-Relative (Not Document-Relative)
   ============================================ */

/* Primary widget positioning - Simple CSS override (no JavaScript needed) */
/* Exclude inline form embeds (api.leadconnectorhq.com/widget/form) — contact page form must stay in flow */
iframe[src*="leadconnectorhq.com"]:not([src*="widget/form"]),
iframe[src*="leadconnector"]:not([src*="widget/form"]) {
    position: fixed !important;
    top: 90px !important; /* Below navbar */
    right: 20px !important;
    bottom: auto !important;
    z-index: 99999 !important;
}

/* Widget container divs - Simple CSS override */
div[id*="leadconnector"]:not(.footer):not(footer),
div[class*="leadconnector"]:not(.footer):not(footer),
div[data-widget-id*="69818067ed265975d253fa0e"]:not(.footer):not(footer),
*[data-widget-id*="69818067ed265975d253fa0e"]:not(.footer):not(footer) {
    position: fixed !important;
    top: 90px !important; /* Below navbar */
    right: 20px !important;
    bottom: auto !important;
    z-index: 99999 !important;
}

/* Override any inline bottom positioning (chat widget only, not form embeds) */
iframe[src*="leadconnector"][style*="bottom"]:not([src*="widget/form"]),
div[id*="leadconnector"][style*="bottom"],
div[class*="leadconnector"][style*="bottom"] {
    position: fixed !important;
    top: 90px !important; /* Below navbar */
    right: 20px !important;
    bottom: auto !important;
    z-index: 99999 !important;
}

/* Hide widget if in footer - prevent rendering there */
footer iframe[src*="leadconnector"],
footer div[id*="leadconnector"],
footer div[class*="leadconnector"],
.footer iframe[src*="leadconnector"],
.footer div[id*="leadconnector"],
.footer div[class*="leadconnector"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Modern browsers :has() support for parent containers (chat widget only) */
@supports selector(:has(*)) {
    body > div:has(iframe[src*="leadconnectorhq.com"]:not([src*="widget/form"])):not(.footer):not(footer),
    body > div:has(iframe[src*="leadconnector"]:not([src*="widget/form"])):not(.footer):not(footer),
    body > div:has(div[id*="leadconnector"]):not(.footer):not(footer) {
        position: fixed !important;
        top: 90px !important; /* Below navbar */
        right: 20px !important;
        bottom: auto !important;
        z-index: 99999 !important;
    }
}

/* Keep inline GHL form embeds (contact page) in flow — exclude from fixed widget positioning */
.contact-form-wrapper div[id*="leadconnector"],
.contact-form-wrapper div[class*="leadconnector"],
body > div:has(iframe[src*="widget/form"]) {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
}

/* Ensure form wrapper keeps iframe in flow; prevent clipping */
.contact-form-wrapper > div {
    position: relative !important;
    min-height: 400px;
}

/* Contact page: allow overflow so form is never clipped */
body.contact-page .contact {
    overflow: visible;
}
