:root {
    --bg-main: #f8f9fa;
    --deep-navy: #1a1a1a;
    --brand-orange: #f39200;
    --text-muted: #475569;
    --border: #e2e8f0;
    --white: #ffffff;
    --gold: #ffc107;
}
* { box-sizing: border-box; transition: transform 0.3s ease, background 0.3s ease; scroll-behavior: smooth; }
body { font-family: 'Poppins', 'Segoe UI', sans-serif; margin: 0; background-color: var(--bg-main); color: var(--deep-navy); line-height: 1.5; overflow-x: hidden; }

/* ── NAV ── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
    padding: 0 40px; border-bottom: 3px solid var(--brand-orange);
    display: flex; justify-content: space-between; align-items: center; height: 60px;
}
.nav-logo-container { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 40px; width: 40px; margin-right: 12px; }
.logo-text { font-family: 'Montserrat', 'Arial Black', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--deep-navy); }
.nav-links { display: flex; align-items: center; }
.nav-links > a {
    color: var(--deep-navy); text-decoration: none; margin-left: 20px;
    font-weight: 600; font-size: 0.7rem; text-transform: uppercase;
}
.nav-links > a:hover { color: var(--brand-orange); }

/* Dropdown */
.dropdown { position: relative; margin-left: 20px; }
.dropdown > a {
    color: var(--deep-navy); text-decoration: none;
    font-weight: 600; font-size: 0.7rem; text-transform: uppercase; cursor: pointer;
}
.dropdown > a:hover { color: var(--brand-orange); }
/* Homepage uses .nav-dropdown — alias to same styles */
.nav-dropdown { position: relative; margin-left: 20px; }
.nav-dropdown > a {
    color: var(--deep-navy); text-decoration: none;
    font-weight: 600; font-size: 0.7rem; text-transform: uppercase; cursor: pointer;
    display: flex; align-items: center; gap: 4px;
}
.nav-dropdown > a:hover { color: var(--brand-orange); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: white; border: 1px solid var(--border);
    border-top: 3px solid var(--brand-orange);
    border-radius: 0 0 8px 8px; min-width: 230px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); z-index: 2000; padding: 8px 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block; padding: 9px 18px;
    color: var(--deep-navy); text-decoration: none;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    border-left: 3px solid transparent;
}
.dropdown-menu a:hover { color: var(--brand-orange); border-left-color: var(--brand-orange); background: #fef9f0; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; background: none; border: none; padding: 5px; }
.hamburger span { width: 25px; height: 2px; background: var(--deep-navy); display: block; }

/* Mobile nav */
.mobile-nav {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: white; border-bottom: 3px solid var(--brand-orange);
    z-index: 999; padding: 10px 20px 20px; max-height: calc(100vh - 60px); overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block; padding: 10px 0; color: var(--deep-navy);
    text-decoration: none; font-weight: 600; font-size: 0.82rem;
    text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--brand-orange); }
.mobile-nav-label { font-size: 0.62rem; color: var(--brand-orange); font-weight: 800; padding: 14px 0 2px; letter-spacing: 1px; text-transform: uppercase; }

/* ── HERO ── */
.hero {
    position: relative; height: 60vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; margin-top: 60px;
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.35)), url('handyman-reading-luxury-home-berkshire.webp');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-home { height: 75vh; }
.hero h1 { font-family: 'Montserrat', 'Arial Black', sans-serif; font-size: clamp(1.5rem, 5vw, 2.5rem); margin: 0 0 15px 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); padding: 0 20px; text-transform: uppercase; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 600px; padding: 0 20px; margin: 0 auto 20px; }
.hero-cta { display: inline-block; background: var(--brand-orange); color: white; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; margin-top: 10px; }

.trust-bar { background: transparent; padding: 15px 20px; text-align: center; margin-top: -50px; position: relative; z-index: 10; }
.trust-logo { height: 100px; width: 100px; margin-bottom: 5px; object-fit: contain; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.2)); }
.stats-bar-compact { display: flex; justify-content: center; background: var(--deep-navy); padding: 12px; border-bottom: 4px solid var(--brand-orange); gap: 40px; }

section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.section-title { font-family: 'Montserrat', 'Arial Black', sans-serif; font-size: 1.7rem; margin-bottom: 15px; position: relative; display: inline-block; padding-bottom: 5px; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: var(--brand-orange); }
.text-block { max-width: 900px; margin: 0 auto; font-size: 1.05rem; text-align: center; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--deep-navy); padding: 10px 40px; font-size: 0.8rem; margin-top: 60px; }
.breadcrumb a { color: var(--brand-orange); text-decoration: none; }
.breadcrumb span { color: #aaa; margin: 0 6px; }
.breadcrumb strong { color: white; }

/* ── SERVICE PAGE CONTENT ── */
.service-content { max-width: 900px; margin: 0 auto; text-align: left; }
.service-content h2 { font-family: 'Montserrat', sans-serif; color: var(--brand-orange); margin-top: 30px; }
.service-content p { font-size: 1rem; line-height: 1.8; color: #333; }
.service-content ul { padding-left: 20px; }
.service-content ul li { margin-bottom: 8px; font-size: 1rem; line-height: 1.8; }
.service-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin: 20px 0; }

/* ── WHY BOX ── */
.why-box { background: var(--deep-navy); color: white; border-radius: 8px; padding: 30px; margin: 30px 0; text-align: left; }
.why-box h3 { font-family: 'Montserrat', sans-serif; color: var(--brand-orange); margin-top: 0; }
.why-box ul { padding-left: 20px; }
.why-box ul li { margin-bottom: 8px; }

/* ── DIY TIPS BOX ── */
.tips-box {
    background: #fffbf0; border: 2px solid var(--brand-orange);
    border-radius: 8px; padding: 25px 30px; margin: 30px 0; text-align: left;
}
.tips-box h3 { font-family: 'Montserrat', sans-serif; color: var(--deep-navy); margin-top: 0; font-size: 1.05rem; }
.tips-box ul { padding-left: 20px; margin: 12px 0 0; }
.tips-box ul li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.7; color: #333; }

/* ── PRICE BANNER ── */
.price-banner {
    background: var(--deep-navy); color: white; border-radius: 8px;
    padding: 16px 25px; margin: 25px 0; text-align: center; font-size: 1rem; font-weight: 600;
}
.price-banner span { color: var(--brand-orange); font-weight: 800; }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; max-width: 1100px; margin: 25px auto; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; background: #e2e8f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: white; padding: 20px 12px 10px; font-size: 0.8rem; font-weight: 600; }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; background: #e2e8f0; border-radius: 8px; aspect-ratio: 4/3; color: #94a3b8; font-size: 0.82rem; text-align: center; padding: 20px; border: 2px dashed #cbd5e1; }

/* ── CTA STRIP ── */
.cta-strip { background: var(--brand-orange); padding: 40px 20px; text-align: center; width: 100%; max-width: 100%; }
.cta-strip h2 { font-family: 'Montserrat', sans-serif; color: white; margin: 0 0 15px 0; font-size: 1.5rem; }
.cta-strip a { display: inline-block; background: white; color: var(--brand-orange); padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; margin: 5px; }

/* ── SERVICES GRID ── */
#services { background: #f1f5f9; width: 100%; max-width: 100%; }
.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 25px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.premium-card { background: var(--white); border-radius: 6px; border-bottom: 4px solid var(--brand-orange); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 4px rgba(0,0,0,0.05); text-decoration: none; color: inherit; }
.premium-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.card-img { height: 160px; width: 100%; object-fit: cover; aspect-ratio: 16/7; }
.card-body { padding: 15px; text-align: left; flex-grow: 1; }
.card-body h3 { font-family: 'Montserrat', sans-serif; margin-top: 0; font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; margin: 0; }

/* ── REVIEWS ── */
#reviews { background: var(--white); width: 100%; max-width: 100%; padding: 20px 20px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; max-width: 1100px; margin: 10px auto; min-height: 160px; }
.review-card { padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); text-align: left; display: none; }
.review-card.active { display: block; animation: fadeIn 0.4s ease-out; }
.stars { color: var(--gold); margin-bottom: 5px; font-size: 0.9rem; }
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 5px; }
.btn-nav { background: var(--deep-navy); color: white; border: none; padding: 6px 18px; border-radius: 50px; cursor: pointer; font-weight: 600; text-transform: uppercase; font-size: 0.7rem; }
.static-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; max-width: 1100px; margin: 10px auto; }
.static-reviews .review-card { display: block; }
.static-reviews.hidden { display: none; }

/* ── AREAS ── */
.area-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; text-align: left; margin-top: 15px; font-weight: 600; font-size: 0.9rem; }

/* ── FAQ ── */
.faq-section { max-width: 850px; margin: 0 auto; text-align: left; }
.faq-item { margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 5px; color: var(--brand-orange); }
.faq-item p { font-size: 0.95rem; margin-top: 0; }

/* ── CONTACT ── */
#contact { background: var(--deep-navy); width: 100%; max-width: 100%; color: white; padding: 40px 20px; }
.contact-box { max-width: 500px; margin: 0 auto; background: var(--white); padding: 25px; border-radius: 12px; text-align: center; color: var(--deep-navy); }
.btn-submit { background: var(--brand-orange); color: white; padding: 12px; width: 100%; border: none; border-radius: 50px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 0.85rem; }
.form-input { width:100%; padding:10px; margin-bottom:10px; border-radius:5px; border:1px solid #ddd; font-family:inherit; font-size:0.95rem; }
.form-textarea { width:100%; padding:10px; height:100px; margin-bottom:10px; border-radius:5px; border:1px solid #ddd; font-family:inherit; font-size:0.95rem; resize:vertical; }

/* ── FLOATING HUB ── */
.floating-hub { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 2000; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3); color: white; text-decoration: none; }
.bg-wa { background-color: #25D366; }
.bg-phone { background-color: var(--brand-orange); }
.bg-email { background-color: #4682B4; }

/* ── FOOTER ── */
footer { margin-top: 50px; padding: 40px 20px; background-color: #222; color: #ffffff; text-align: center; font-family: Arial, sans-serif; border-top: 4px solid #f1c40f; }
footer .footer-inner { max-width: 1200px; margin: 0 auto; }
footer a { color: #ffffff; text-decoration: none; }

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

/* ── MOBILE MENU TOGGLE LOGIC ── */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Keeps it hidden until clicked */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        border-bottom: 3px solid var(--brand-orange);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex !important; /* Shows the menu when active */
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
        color: var(--deep-navy);
    }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .trust-bar { margin-top: -40px; }
    .stats-bar-compact { flex-direction: column; gap: 10px; align-items: center; }
    .hero { height: 35vh; background-attachment: scroll; }
    .hero-home { height: 35vh; }
    .breadcrumb { padding: 10px 20px; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .tips-box { padding: 20px; }
}
