/* CSS Variables */
:root {
    /* Premium Construction Palette */
    --color-primary: hsl(215, 15%, 20%);
    /* Dark Slate */
    --color-primary-light: hsl(215, 15%, 30%);
    /* Lighter Slate */
    --color-primary-dark: hsl(215, 15%, 12%);
    /* Deep Slate */

    --color-accent: hsl(30, 90%, 45%);
    /* Warm Oak / Amber */
    --color-accent-hover: hsl(30, 90%, 35%);
    --color-accent-light: hsl(30, 90%, 85%);

    /* Earth Tones & Neutrals */
    --color-earth: hsl(30, 25%, 25%);
    /* Deep Soil/Brown */
    --color-bg: #ffffff;
    --color-surface: #fdfbf7;
    /* Slight warm tint (Stone/Cream) */
    --color-text-main: #1c1917;
    /* Warm Black */
    --color-text-muted: #57534e;
    /* Stone Grey */
    --color-border: #e5e5e5;

    /* Premium Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-gold: 0 10px 20px -5px rgba(217, 119, 6, 0.2);
    /* Warm Amber Shadow */

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #b45309 100%);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
    }

    70% {
        box-shadow: 0 0 10px 10px rgba(234, 179, 8, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.6);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    /* Changed to white for better contrast on gold gradient */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.45);
}

.section-padding {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

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

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent) !important;
}

/* Header */
/* Emergency Top Bar */
.emergency-top-bar {
    background-color: #dc2626;
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative !important;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.emergency-top-bar a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 0.5rem;
}

.emergency-top-bar a:hover {
    color: #fca5a5;
}

@media (max-width: 600px) {
    .emergency-top-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    /* Premium glass effect */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Floating shader */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    max-width: 100%;
    padding: 0 0.5rem; /* Tighter padding for extra width */
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem; /* Further reduced to ensure single-line fit on desktop alongside nav */
    font-weight: 800;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: -0.03em;
    white-space: nowrap; /* Prevent awkward text wrapping */
}

@media (max-width: 1024px) {
    .logo {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        align-items: flex-start;
        padding-top: 0.75rem;
    }
    .logo {
        font-size: 0.95rem; /* Small enough for mobile header to prevent breaking */
        white-space: normal;
        line-height: 1.15;
        margin-left: 1rem;
    }
    .logo > span > span {
        display: block; /* Push 'Construction' to a new line cleanly */
    }
}

.nav-links {
    display: flex;
    visibility: hidden;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Drops right below the header */
    left: 0;
    right: 0;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 1.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 0.75rem;
    z-index: 1100; /* Above header (1000) */
    overflow-y: auto;
    overflow-x: hidden; /* Stop horizontal scrolling */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.nav-links.active {
    visibility: visible;
    flex-direction: column !important;
    align-items: flex-start;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    font-size: 1.05rem; /* Restored proportional size for mobile */
}

/* Fix mobile overflow for inline-styled mega menus */
@media (max-width: 900px) {
    .mega-menu {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        padding: 1rem 0 !important;
        gap: 1rem !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    .dropdown-menu > div {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 0 !important;
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 900px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 145px;
        padding-top: 0.25rem;
        padding-bottom: 0.5rem;
        align-content: flex-start; /* CRITICAL: Prevents Row 1 and Row 2 from spreading apart */
    }
    .header {
        height: auto !important;
    }
    .hero {
        margin-top: 225px !important;
    }
    /* emergency-top-bar no longer needs a top override - it uses position:absolute top:100% inside the header */
    .nav-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        position: static !important;
        width: 100% !important;
        order: 3;
        justify-content: center !important;
        margin-top: 0.25rem;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(0,0,0,0.05); /* clean separator */
        background: transparent !important;
        box-shadow: none !important;
        gap: 1rem !important; /* Reduced gap to fit all items */
        animation: none !important;
        font-size: 0.95rem; /* Restored size for readability */
        overflow: visible !important;
        align-items: center !important;
        transform: none !important;
        height: auto !important;
    }
    .nav-links a {
        padding: 0.5rem 0.5rem;
        white-space: nowrap !important; /* CRITICAL: Prevent wrapping */
    }

    /* Desktop Dropdown Mega-Menu */
    .dropdown {
        position: relative;
    }
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        z-index: 1200;
    }
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    .dropdown-item {
        display: block;
        padding: 0.5rem 0;
        color: var(--color-text-muted);
        transition: color 0.2s;
    }
    .dropdown-item:hover {
        color: var(--color-accent);
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* Card Styles - Updated */
.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    /* Use undefined var? ensure it exists or use lg/custom */
    border-color: var(--color-primary-light);
}

.card-image {
    height: 240px;
    /* Taller for landscaping visuals */
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img:not(.logo-overlay-img) {
    transform: scale(1.05);
}

/* 3D Logo Corner Overlay */
.logo-overlay-img {
    width: 80px !important;
    height: auto !important;
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    z-index: 20 !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    transition: none !important;
    pointer-events: none;
}

.card:hover .card-image img.logo-overlay-img {
    transform: none !important;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

.card-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Header Refinement */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.cta-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-phone {
    background: #dc2626;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.btn-phone .phone-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #4ade80;
}

.btn-cindi {
    background: var(--color-primary-dark);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.btn-cindi:hover {
    background: #000;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-primary-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

@media (min-width: 900px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Header Adjustments */


.phone-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

.phone-cta span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #ef4444;
    /* Bright Red */
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    display: block;
    animation: pulse-glow 2s infinite;
}

.phone-cta a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #dc2626;
    /* Red */
    line-height: 1;
    display: block;
    animation: pulse-glow 2s infinite;
}

/* Mobile Header Adjustments - Moved here for specificity */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        max-width: 45%;
        font-size: 1.05rem;
        white-space: normal;
        line-height: 1.1;
    }

    .cta-group {
        gap: 0.5rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .phone-cta {
        align-items: flex-end;
        text-align: right;
        margin-right: 0;
        white-space: nowrap;
    }

    .phone-cta span {
        display: none !important;
        /* Force hide */
    }

    .phone-cta a {
        font-size: 1.1rem;
        white-space: nowrap;
    }
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 0 rgba(220, 38, 38, 0);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
        transform: scale(1.05);
        color: #ef4444;
    }

    100% {
        text-shadow: 0 0 0 rgba(220, 38, 38, 0);
        transform: scale(1);
    }
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(234, 179, 8, 0);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
        transform: scale(1);
    }
}

.pulse-gold-card {
    animation: pulse-gold 2s infinite;
    position: relative;
    z-index: 10;
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* Slider manages its own layout */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 560px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 420px;
    }
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slider .slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.3);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: 2px solid rgba(255,255,255,0.6);
}

.slider-dots .dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
    border-color: var(--color-accent);
}

/* =============================================
   HERO SECTION (non-slider)
   ============================================= */
/* Hero Section */
.hero {
    margin-top: 90px;
    padding: 6rem 0 5rem;
    background: linear-gradient(to right, rgba(239, 246, 255, 0.9) 40%, rgba(255, 255, 255, 0) 60%), url('../assets/images/hero-final.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 72vh; /* restored */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* .hero::before was removed - it was a legacy white gradient overlay from an older
   homepage design. All current pages use their own dark overlays via inline styles.
   The slider container suppression is also no longer needed. */


.hero-content {
    position: relative;
    max-width: 700px;
    /* Increased slightly to accommodate width */
}

.hero-title-wrapper {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.side-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.side-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.side-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(234, 179, 8, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.side-badge:hover {
    transform: translateY(-3px) scale(1.05);
}

.side-badge:hover::after {
    opacity: 1;
}

.side-badge svg {
    width: 1.5rem;
    height: 1.5rem;
    z-index: 1;
}

/* =============================================
   MOBILE LAYOUT - COMPREHENSIVE FIX
   Mobile header is ~90px tall (header-container height: 90px)
   Emergency bar is 40px
   Total fixed top offset: ~130px
   ============================================= */
@media (max-width: 768px) {
    .header {
        height: auto !important;
        min-height: 90px;
        padding-bottom: 0.5rem;
    }

    /* Emergency bar is relative now, so top override is not needed */
    .emergency-top-bar {
        position: relative !important;
        top: auto !important;
    }

    /* All non-slider hero sections: push below header + emergency bar + reviews bar */
    .hero:not(.hero-slider-container) {
        margin-top: 170px !important;
        padding: 2.5rem 0 3rem;
        min-height: auto;
        text-align: center;
        background-position: center center;
    }

    /* Homepage hero slider: also push below header + emergency bar + reviews bar */
    .hero.hero-slider-container {
        margin-top: 170px !important;
    }

    /* Hero slider height on mobile */
    .hero-slider {
        height: 65vh;
        min-height: 400px;
    }

    .hero-title-wrapper {
        display: block;
        margin-bottom: 1rem;
    }

    .side-badges {
        display: none !important;
    }

    .feature-list {
        display: none !important;
    }

    .hero h1,
    .hero-slider .slide h2 {
        font-size: 1.9rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.2 !important;
    }

    .hero h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 1.25rem !important;
        max-width: 100% !important;
        color: rgba(255,255,255,0.95) !important;
        text-shadow: 0 1px 6px rgba(0,0,0,0.7);
        font-weight: 500 !important;
        line-height: 1.5 !important;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    /* Mobile nav: must sit BELOW the header, covering full screen */
    .nav-links {
        top: 90px !important;
        z-index: 1100 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
    }

    /* Hide search bar on mobile - it takes too much space */
    .nav-search {
        display: none !important;
    }

    /* Section headers smaller on mobile */
    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Paul/founder content scaling */
    .paul-content h2 {
        font-size: 2.25rem;
    }

    .paul-content .lead-text {
        font-size: 1.2rem;
    }

    /* Better card layout on small screens */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.hero h1,
.hero-slider .slide h2 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero p {
    font-size: 1.35rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 520px;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Slider slides have dark overlay — always use white text */
.hero-slider .slide h1,
.hero-slider .slide h2 {
    color: white !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9);
}

.hero-slider .slide p {
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.75);
    font-weight: 500 !important;
}

/* Service/inner page heroes all have dark overlay backgrounds.
   Force white text for ALL .hero h1/h2 UNLESS it is the homepage
   hero-slider-container (which uses a light ::before gradient overlay with dark text). */
.hero:not(.hero-slider-container) h1,
.hero:not(.hero-slider-container) h2 {
    color: white !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.9);
}

.hero:not(.hero-slider-container) p {
    color: rgba(255,255,255,0.93) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
    font-weight: 500;
}

/* All service/inner page heroes that have dark overlay images also need white text.
   These hero sections typically have a class like .hero-service or .hero-dark,
   or have a dark background via their ::before overlay. */
.hero-dark h1, .hero-dark h2, .hero-dark p,
.hero-service h1, .hero-service h2, .hero-service p {
    color: white !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}



/* Boiler Advert Styles */
.hero-grid-container {
    display: grid;
    grid-template-columns: minmax(300px, 420px) 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.boiler-advert-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--color-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fade-in-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.map-frame {
    border: 6px solid white;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    box-shadow: 0 20px 40px -5px rgba(234, 179, 8, 0.4), 0 10px 10px -5px rgba(234, 179, 8, 0.2);
    width: 100%;
    height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(234, 179, 8, 0.5);
}

.boiler-image-container {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

.boiler-advert-badge {
    background: var(--color-primary-dark);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 1rem;
}

.boiler-advert-card h3 {
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

/* Feature List */
.feature-list {
    display: flex;
    align-items: center;
    /* Ensure vertical alignment */
    gap: 2rem;
    /* Comfortable separation */
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero .feature-item {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}



.feature-item svg {
    color: var(--color-accent);
}

/* Logo Marquee */
.logo-marquee-section {
    background: var(--color-primary-dark);
    padding: 0.5rem 0;
    /* Reduced padding for sleeker look */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.25);
    z-index: 5;
}

.marquee-container {
    display: flex;
    max-width: 100%;
}


.marquee-track {
    display: flex;
    /* gap: 5rem; Removed in favor of margin on items for better consistency */
    animation: scroll 30s linear infinite;
    width: max-content;
    /* Force width */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
        /* Scroll 1/3 since we have 3 sets */
    }
}

.marquee-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    /* Sleeker text size */
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Tighter gap */
    white-space: nowrap;
    opacity: 0.8;
    text-decoration: none;
    /* Remove underline for links */
    transition: opacity 0.3s, color 0.3s;
    margin-right: 4rem;
    /* Adjusted spacing */
}

.marquee-item:hover {
    opacity: 1;
    color: white;
}

.marquee-item img {
    height: 32px;
    /* Sleeker image height */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    /* Optional: brightness filter if needed for dark mode, but standard logo is usually fine */
    transition: transform 0.3s ease;
}

.marquee-item:hover img {
    transform: scale(1.1);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    /* Ensures transparent PNGs look good */
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .gallery-item.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Adjust based on content width */
    }
}

.boiler-advert-card .price {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
}

/* Reviews Section */
.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.stars {
    color: var(--color-accent);
    /* Gold */
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
    filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.5));
    /* Gold glow */
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-style: italic;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.review-author {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: 'Outfit', sans-serif;
}

.reviews-section .grid {
    align-items: stretch;
}

/* Pimlico-style review carousel */
.pimlico-review-section,
.pimlico-reviews-section {
    position: relative;
    background: #fff;
    padding: 5rem 0;
    overflow: visible;
}

.pimlico-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .pimlico-bg {
        width: 100%;
        opacity: 0.15;
        right: auto;
        left: 0;
    }
}

.pimlico-review-section > .container,
.pimlico-reviews-section > .container,
.pimlico-content {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.pimlico-header-block,
.pimlico-header {
    max-width: 50%;
    padding-right: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .pimlico-header-block,
    .pimlico-header,
    .mobile-full {
        max-width: 100% !important;
        padding-right: 0 !important;
    }
}

.pimlico-cards-slider,
.pimlico-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: visible;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 1rem calc(50vw - 50% + 1.5rem) 2rem;
    scroll-behavior: smooth;
    scroll-padding-inline: 1.5rem;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    box-sizing: border-box;
}

.pimlico-cards-slider::-webkit-scrollbar,
.pimlico-slider::-webkit-scrollbar {
    display: none;
}

.pimlico-card {
    flex: 0 0 420px;
    width: 420px;
    max-width: min(420px, calc(100vw - 3rem));
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #1e293b;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.pimlico-card--alt {
    background: #fdfbf7;
    border-top-color: var(--color-accent);
}

.pimlico-card h3,
.pimlico-card > p,
.pimlico-card-footer {
    min-width: 0;
    max-width: 100%;
}

.pimlico-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.pimlico-card > p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.pimlico-card-footer p:first-child {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.pimlico-card-footer p:last-child {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 600px) {
    .pimlico-card {
        flex: 0 0 min(340px, calc(100vw - 2rem));
        width: min(340px, calc(100vw - 2rem));
        padding: 1.5rem;
    }
}

/* Homeowner's Guide Section */
.guide-section {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

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

.guide-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.guide-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

.guide-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #475569;
}

.guide-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.price-box {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    text-align: center;
}

.price-box .amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.price-box .label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.region-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 150px;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
    /* Space for labels */
    font-size: 0.875rem;
}

.chart-bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    transition: height 1s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.chart-bar.wales {
    background: var(--color-accent);
    height: 70%;
}

.chart-bar.london {
    background: var(--color-primary-light);
    height: 90%;
}

.chart-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.chart-value {
    color: white;
    font-weight: 700;
    padding-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.advert-features {
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advert-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.advert-features li svg {
    color: var(--color-success);
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .boiler-advert-card {
        order: 2;
        /* Put below text on tablet/mobile */
        margin-top: 2rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-title-wrapper {
        justify-content: center;
        grid-template-columns: 1fr;
        place-items: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }
}

/* Services Grid */
.services {
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: var(--color-primary-dark);
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly wider cards */
    gap: 2.5rem;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(234, 179, 8, 0.3);
    /* Gold hint on hover */
}

.card-image {
    height: 260px;
    /* Taller */
    background: #e2e8f0;
    position: relative;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    background: var(--color-primary);
    /* Will get overridden by gradient in HMTL usually, but good fallback */
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    box-shadow: 0 8px 16px -4px rgba(30, 41, 59, 0.3);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: var(--color-primary-dark);
}

.card p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.card .btn {
    width: 100%;
    padding: 1rem;
    margin-top: auto;
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.card .btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: none;
}


/* Features/About */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-check {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Paul/Founder Section */
.paul-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: #e2e8f0;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 600;
    gap: 1rem;
    border: 2px dashed var(--color-border);
    position: relative;
    overflow: hidden;
}

.paul-placeholder::after {
    content: 'Add Paul Photo';
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.paul-placeholder svg {
    width: 80px;
    height: 80px;
    stroke-width: 1.5;
    color: var(--color-border);
}

.paul-content .inline-badge {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.paul-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary-dark);
    letter-spacing: -0.03em;
}

.paul-content p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.paul-content .lead-text {
    font-size: 1.5rem;
    color: var(--color-text-main);
    font-weight: 500;
    line-height: 1.5;
}

.signature {
    margin-top: 3rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 2rem;
}

.sign-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

.sign-title {
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    display: block;
}

/* Served Areas Card */
.areas-card {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.areas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 25%);
    pointer-events: none;
}

.areas-list {
    margin-top: 2.5rem;
    display: inline-flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.areas-card h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.areas-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.areas-list li svg {
    color: var(--color-accent);
    width: 1.5rem;
    height: 1.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question svg {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 2rem;
}

.faq-answer-content {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Emergency CTA */
.emergency-banner {
    background: var(--color-primary-dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.emergency-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.emergency-banner .btn {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

/* Service Areas Column Split */
.footer-col:nth-child(3) .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.footer-col:nth-child(3) .footer-links li {
    margin-bottom: 0.5rem;
    /* Slightly tighter spacing for grid */
}

.footer-links a:hover {
    color: white;
}

.footer-qr {
    margin-top: 1.75rem;
}

.footer-qr-label {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-qr-link {
    display: inline-block;
    line-height: 0;
}

.footer-qr-img {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.875rem;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Trust Badges */
.trust-badges-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    /* FORCE single line on desktop as requested */
    margin-top: 2rem;
    overflow-x: auto;
    /* Safety scroll if screen is too narrow but not mobile yet */
    padding-bottom: 1rem;
    /* Space for scrollbar just in case */
}

/* Force badges to be responsive and fit */
.trust-badges-container>div {
    max-width: 220px !important;
    width: auto !important;
    min-width: 120px;
    /* Prevent becoming too small */
    flex-shrink: 1;
    /* Allow shrinking */
}

/* Ensure images scale */
.trust-badges-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prevent Phone Number Wrapping Globally */
.phone-cta {
    white-space: nowrap;
    /* Apply to container too */
    flex-shrink: 0;
    /* Prevent container from shrinking */
}

.phone-cta a {
    white-space: nowrap;
    display: inline-block;
    /* Ensure white-space works */
}

.phone-cta span {
    white-space: nowrap;
    display: inline-block;
}

/* Responsive adjust for badges */
@media (max-width: 900px) {
    .trust-badges-container {
        gap: 1rem;
        justify-content: center;
    }

    .trust-badges-container>div {
        max-width: 180px !important;
    }
}

@media (max-width: 640px) {
    .trust-badges-container {
        gap: 0.5rem;
    }

    /* Mobile Header Fixes */
    .header-container {
        height: auto;
        padding: 0.75rem 0;
        min-height: 80px;
    }

    .trust-badges-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.15rem;
        /* Tighter gap to allow more width */
        justify-items: center;
        align-items: center;
        width: 100%;
        padding: 0 0.15rem;
        /* Minimal padding */
    }

    .trust-badges-container>div {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        /* CRITICAL FIX: Allow shrinking below 120px */
        height: auto !important;
        display: flex;
        justify-content: center;
    }

    .trust-badges-container img {
        max-height: 70px;
        /* Increased from 40px to allow them to be bigger */
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .logo {
        font-size: 1.3rem;
        max-width: 60%;
        line-height: 1.1;
        margin-left: 1rem;
    }

    .logo svg {
        width: 1.75rem;
        height: 1.75rem;
    }

    .phone-cta span {
        display: none;
        /* Hide 'EMERGENCY LINE' label */
    }

    .phone-cta a {
        font-size: 1.1rem;
    }

    .mobile-toggle {
        font-size: 1.75rem;
        /* Make icon slightly bigger for easier tapping */
    }

    .hero {
        margin-top: 170px !important;
        /* Match new header height with emergency bar and reviews bar */
    }
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .hero {
        background: url('../assets/images/hero.png');
        background-size: cover;
        background-position: center;
        text-align: center;
        padding: 10rem 0 4rem;
        /* Reduced from default */
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero::before {
        background: rgba(255, 255, 255, 0.95);
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background-color: #25D366;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: 3px solid white;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    background-color: #22c35e;
}

.whatsapp-float span {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.25rem;
    }
}

.paul-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    /* Photo frame effect */
}

/* Dynamic Counters */
.counters-section {
    background: white;
    color: var(--color-text-main);
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.counters-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.counter-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: none;
}

.counter-card:hover {
    transform: none;
    background: transparent;
}

.counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
    display: block;
    text-shadow: 3px 3px 0px rgba(234, 179, 8, 0.2), 0 0 20px rgba(234, 179, 8, 0.4);
}

.counter-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Availability Section */
.availability-section {
    padding: 5rem 0;
    background-color: #f1f5f9;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}

.availability-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Section Background Logic */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default overlay (Desktop) - Darker for text readability */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--hero-bg);
    padding-top: 12rem;
    /* Ensure padding for header */
}

@media (max-width: 768px) {
    .hero-section {
        /* Mobile: Slightly more visible image (lighter overlay) as requested */
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), var(--hero-bg);
        background-position: center top;
    }
}

/* =========================================================================
   HERO SLIDER
   ========================================================================= */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero.hero-slider-container {
    background: #1e293b !important;
    padding: 0 !important;
    display: block;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 18rem 0 8rem;
}

.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero.hero-slider-container {
        min-height: 85vh !important;
    }
    .hero-slider .slide {
        padding: 12rem 0 4rem;
        background-position: center center;
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 20;
    padding: 0 2rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-dots .dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

.hero-slider .slide h1 {
    color: white;
}

.hero-slider .slide p {
    color: rgba(255, 255, 255, 0.9);
}

.hero-slider .container {
    width: 100%;
}


/* =========================================================================
   NAVIGATION DROPDOWN
   ========================================================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
}

.dropdown-toggle:hover {
    color: var(--color-accent);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid var(--color-border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: var(--color-surface);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    padding-left: 1.75rem;
}

@media (max-width: 900px) {
    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        justify-content: flex-start;
        padding-left: 0.5rem; /* Align left alongside regular items */
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border: none;
        border-left: 2px solid var(--color-border);
        margin-left: 0.75rem;
        padding-left: 0.5rem;
        padding: 0;
        margin-top: 0.5rem;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        text-align: center;
        border-left: none;
        padding: 0.75rem !important;
    }
}

/* ========================================================================= */
/* Bespoke Door Selection Modal Styles                                        */
/* ========================================================================= */

.door-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    /* Deep slate overlay */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    /* Hidden by default, toggled via JS to 'flex' */
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeInModal 0.3s ease-out forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.door-modal-content {
    background: white;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    /* Prevent it from being taller than viewport */
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.door-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-text-main);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.door-modal-close:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: rotate(90deg);
}

.door-modal-layout {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    overflow-y: auto;
    /* Allow scrolling on small screens */
}

@media (min-width: 768px) {
    .door-modal-layout {
        grid-template-columns: 2fr 3fr;
        /* Flexible split, image vs content */
        overflow-y: hidden;
        /* Hide scroll on outer layout on desktop */
    }
}

.door-modal-image-container {
    background: #f8fafc;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

@media (min-width: 768px) {
    .door-modal-image-container {
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
}

.door-modal-image-container img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
}

.door-modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Allow scrolling just the content side if colors get tall */
}

.door-modal-info h2 {
    font-size: 2.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.door-modal-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.door-modal-colors-section {
    background: white;
}

.door-modal-colors-section h3 {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Color Grid Swatches - Updated for Grouping */
.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.color-category-header {
    width: 100%;
    grid-column: 1 / -1;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 2rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.color-category-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.5rem;
    background: var(--color-accent);
    border-radius: 2px;
}

.color-swatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: 12px;
}

.color-swatch-container:hover {
    background: #f8fafc;
    transform: translateY(-4px);
}

.color-swatch {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.color-swatch:hover {
    box-shadow: 0 0 0 3px var(--color-accent);
    transform: scale(1.1);
}

.color-swatch-label {
    font-size: 0.7rem;
    color: var(--color-text-main);
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

/* Allow door cards to act as buttons visually */
.door-card.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.door-card.card::after {
    content: 'View Options →';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.door-card.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 25px -5px rgba(234, 179, 8, 0.15), 0 10px 10px -5px rgba(234, 179, 8, 0.05);
    /* Soft gold shadow */
}

.door-card.card:hover::after {
    bottom: 20px;
    opacity: 1;
}



/* Project Management Process Timeline */
.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 2px;
    background: #e5e5e5;
}

.process-step {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 4rem;
    height: 4rem;
    background: white;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--color-primary);
    color: var(--color-accent);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid white;
}

.step-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease;
}

.step-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-color: var(--color-accent);
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
}

.step-content p {
    margin: 0;
    color: #57534e;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 1.5rem;
    }

    .process-step {
        padding-left: 4rem;
    }

    .step-icon {
        width: 3rem;
        height: 3rem;
    }

    .step-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Emergency Tab Animation - NOTE: position:fixed is set in the primary rule above */
.emergency-top-bar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    height: 40px; /* Consistent height */
    overflow: hidden;
    /* DO NOT set position here - it is position:fixed in the primary block */
}

.emergency-top-bar.collapsed {
    transform: translateY(-100%);
    opacity: 0;
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    pointer-events: none;
}

/* Floating Emergency Tab */
.floating-emergency-tab {
    position: fixed;
    bottom: 2rem;
    left: -100%;
    background-color: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.floating-emergency-tab.visible {
    left: 0;
}

.floating-emergency-tab:hover {
    background-color: #b91c1c;
    padding-left: 2rem;
}


@media (min-width: 1200px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.6rem;
        gap: 0.75rem;
    }

    .cta-group {
        gap: 1rem;
    }

    .header-container {
        max-width: 98%;
        padding: 0 1.5rem;
    }
}

/* Decorative Abstract Shapes - Premium Refinement */
.abstract-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Soft, elegant dark fade aura */
.shape-aura-dark {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(28, 25, 23, 0.04) 0%, rgba(28, 25, 23, 0) 70%);
    border-radius: 50%;
}

/* Fine architectural grid fading at edges */
.shape-grid {
    width: 400px;
    height: 400px;
    background-image:
        linear-gradient(rgba(28, 25, 23, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 25, 23, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    /* Fade out the edges of the grid */
    mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
}

/* Soft gold aura */
.shape-aura-gold {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.06) 0%, rgba(234, 179, 8, 0) 70%);
    border-radius: 50%;
}

/* Elegant thin gold geometric ring */
.shape-ring-gold {
    width: 350px;
    height: 350px;
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(234, 179, 8, 0.05);
}

/* Header Layout Fix for Awkward Desktop Sizes (900px to 1150px) */
@media (min-width: 900px) and (max-width: 1150px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .nav-links {
        gap: 0.25rem;
        font-size: 0.8rem;
    }

    .nav-links a {
        padding: 0.5rem 0.25rem;
    }

    .cta-group .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .logo {
        font-size: 1.1rem;
        max-width: 25%;
    }
}


/* Dropdown visibility fix for desktop */
@media (min-width: 900px) {
    .nav-links {
        overflow-y: visible;
    }
}


/* Increase dropdown width for 4 columns */
@media (min-width: 900px) {
    .dropdown-menu[style*="column"] {
        min-width: 950px !important;
    }
}


/* ========================================================================= */
/* SLEEK MENU BUTTONS - Chat with Cindi & Phone Bar                          */
/* ========================================================================= */

.btn-cindi {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--color-primary); /* Dark Navy */
    border: 1px solid var(--color-primary);
    border-radius: 99px;
    color: white !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-cindi:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-cindi i {
    color: var(--color-accent); /* Accent color for the icon */
}

/* Phone Button - Matching Dark Navy */
.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    background: var(--color-primary); /* Dark Navy */
    border: 1px solid var(--color-primary);
    border-radius: 99px;
    color: white !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.phone-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444; /* Keep red dot for attention */
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        transform: scale(1);
    }
}

/* Specific adjustments for smaller screens to ensure they fit */
@media (max-width: 1150px) {
    .btn-cindi {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    .btn-phone {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .btn-cindi span.desktop-only {
        display: none;
    }
    .btn-cindi {
        padding: 0.5rem;
        aspect-ratio: 1/1;
        border-radius: 50%;
        justify-content: center;
    }
    .btn-phone {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        border-radius: 99px !important;
        aspect-ratio: auto !important;
    }
}


/* Utility Classes */
.desktop-only { display: inline-flex !important; }
@media (max-width: 900px) { .desktop-only { display: none !important; } }

/* =============================================
   WALL PANELLING PAGE - MOBILE CALCULATOR FIX
   ============================================= */
/* The sidebar/calculator uses position:sticky inside a flex row.
   On mobile this causes severe layout glitches. Stack it vertically. */
@media (max-width: 900px) {
    .wp-product-layout {
        flex-direction: column !important;
    }

    .wp-calculator-sidebar {
        position: relative !important; /* Remove sticky - prevents glitch */
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        width: 100% !important;
        flex: none !important;
        order: -1; /* Show calculator ABOVE products on mobile */
        margin-bottom: 2rem;
    }
}





/* Desktop Hero Image Focal Point Fix */
@media (min-width: 1024px) {
    .hero-slider .slide, .hero {
        background-position: center 75%;
    }
}

/* Fix Cramped Header on Mobile added dynamically */
@media (max-width: 768px) {
    .btn-cindi { display: none !important; }
    .btn-phone { padding: 0.5rem 0.8rem !important; font-size: 0.85rem !important; }
    .header-container { align-items: center !important; height: auto !important; padding-bottom: 0.5rem !important; }
}

/* FAQ Section Styling */
.faq-section {
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question i {
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Subtle Cardiff & Caerphilly Watermark Background */
body {
    background-image: url('../assets/images/cardiff_caerphilly_watermark.png');
    background-repeat: no-repeat;
    background-position: bottom 40px right 40px;
    background-attachment: fixed;
    background-size: 550px auto;
}

/* Make sections transparent so body watermark shows through in open spaces */
.services,
.faq-section,
.process-section,
.guide-section,
.pimlico-reviews-section,
.section-padding[style*="background: white"],
.section-padding[style*="background:white"],
.section-padding[style*="background: #ffffff"],
.section-padding[style*="background:#ffffff"] {
    background-color: transparent !important;
    background-image: none; /* prevent overlapping multiple patterns */
}

/* For smaller screens, hide or adjust size of the watermark */
@media (max-width: 1200px) {
    body {
        background-size: 400px auto;
        background-position: bottom 30px right 30px;
    }
}

@media (max-width: 900px) {
    body {
        background-size: 300px auto;
        background-position: bottom 20px right 20px;
    }
}

/* Hide on mobile to prioritize readability and clean mobile layout */
@media (max-width: 768px) {
    body {
        background-image: none !important;
    }
}


/* Typewriter Effect */
@media (min-width: 900px) {
    .typewriter-container {
        display: flex !important;
    }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* Awesome Pulse */
.pulse-awesome {
    color: var(--color-accent);
    font-size: 1.3em;
    font-style: italic;
    display: inline-block;
    animation: pulse-gold 2s infinite ease-in-out;
    margin-left: 10px;
}

@keyframes pulse-gold {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(249, 115, 22, 0.2); }
    50% { transform: scale(1.08); text-shadow: 0 0 15px rgba(249, 115, 22, 0.6); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(249, 115, 22, 0.2); }
}
