/*
==================================
    GLOBAL RESET & BASE STYLES
==================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* LANDSCAPING */
    --land-accent: #4CAF50;
    --land-dark: #2E7D32;
    --land-glow: rgba(76, 175, 80, 0.25);
    --land-earth: #795548;

    /* BUILDING */
    --build-accent: #E8651A;
    --build-dark: #BF4E0F;
    --build-glow: rgba(232, 101, 26, 0.25);
    --build-concrete: #757575;

    /* ELECTRICAL */
    --elec-accent: #FFD600;
    --elec-dark: #F9A825;
    --elec-glow: rgba(255, 214, 0, 0.25);
    --elec-charcoal: #212121;

    /* NEUTRAL */
    --bg: #F5F5F5;
    --bg-dark: #1A1A1A;
    --bg-card: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.08);

    /* ACTIVE TRADE - Default to Landscaping */
    --accent: var(--land-accent);
    --accent-dark: var(--land-dark);
    --accent-glow: var(--land-glow);
}

/* TRADE BODY CLASSES */
body.trade-landscaping {
    --accent: var(--land-accent);
    --accent-dark: var(--land-dark);
    --accent-glow: var(--land-glow);
}

body.trade-building {
    --accent:      var(--build-accent);
    --accent-dark: var(--build-dark);
    --accent-glow: var(--build-glow);
}

body.trade-electrical {
    --accent:      var(--elec-accent);
    --accent-dark: var(--elec-dark);
    --accent-glow: var(--elec-glow);
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.3px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/*
=================
    PAGE HERO
=================
*/
.trades-page-hero {
    padding: 100px 40px 60px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #F9F9F9;
}

.trades-page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 14px;
    margin-top: 10px;
}

.trades-page-hero > p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

/*
===============
    BUTTONS
===============
*/
.trades-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #FFF;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

body.trade-electrical .trades-btn-primary {
    color: #1A1A1A;
}

.trades-btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.trades-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #FFF;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.trades-btn-outline:hover {
    border-color: #FFF;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/*
=======================
    SECTION HEADERS
=======================
*/
.trades-section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trades-eyebrow {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.trades-section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.trades-section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/*
====================
    HERO SECTION
====================
*/
.trades-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trades-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.6s ease, opacity 0.6s ease;
    background-image: url('/img/land-hero.png');
}

.trades-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

.trades-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 80px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.trades-hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
    transition: color 0.4s ease;
}

.trades-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #FFF;
    line-height: 1.15;
    margin-bottom: 20px;
}

.trades-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.trades-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/*
=====================
    ARROW BUTTONS
=====================
*/
.trades-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFF;
    transition: all 0.25s ease;
}

.trades-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.trades-arrow-prev {
    left: 24px;
}

.trades-arrow-next {
    right: 24px;
}

/*
========================
    TRADE INDICATORS
========================
*/
.trades-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.trades-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.trades-indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/*
===================
    WHY SECTION
===================
*/
.trades-why {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.trades-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.trades-why-item {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.trades-why-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.trades-why-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 16px;
}

.trades-why-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.trades-why-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/*
========================
    SERVICES PREVIEW
========================
*/
.trades-services-preview {
    padding: 100px 40px;
    background: #EFEFEF;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trades-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.trades-preview-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    display: block;
    cursor: pointer;
}

.trades-preview-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.trades-preview-card:hover .trades-preview-bg {
    transform: scale(1.06);
}

.trades-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    transition: background 0.3s ease;
}

.trades-preview-card:hover .trades-preview-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}

.trades-preview-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}

.trades-preview-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.trades-preview-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 8px;
}

.trades-preview-content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
    line-height: 1.5;
}

.trades-preview-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.2s ease;
}

.trade-card-landscaping .trades-preview-link { color: var(--land-accent); }
.trade-card-building .trades-preview-link { color: var(--build-accent); }
.trade-card-electrical .trades-preview-link { color: var(--elec-accent); }

/*
=================
    CTA STRIP
=================
*/
.trades-cta-strip {
    padding: 80px 40px;
    background: var(--accent);
    text-align: center;
    transition: background 0.4s ease;
}

body.trade-electrical .trades-cta-strip {
    background: var(--elec-charcoal);
}

.trades-cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 12px;
}

body.trade-electrical .trades-cta-content h2 {
    color: var(--elec-accent);
}

.trades-cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.trades-cta-strip .trades-btn-primary {
    background: #FFF;
    color: var(--accent);
}

body.trade-electrical .trades-cta-strip .trades-btn-primary {
    background: var(--elec-accent);
    color: var(--elec-charcoal);
}

.trades-cta-strip .trades-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/*
===================
    BACK TO TOP
===================
*/
#backToTopTrades {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.2s ease, background 0.4s ease;
    z-index: 999;
    color: #FFF;
}

body.trade-electrical #backToTopTrades {
    color: #1A1A1A;
}

#backToTopTrades:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

#backToTopTrades.show {
    opacity: 1;
    visibility: visible;
}

/*
======================================
    RESPONSIVE CODE (SMALL MOBILE)
======================================
*/
@media (max-width: 480px) {
    .trades-hero-content {
        padding: 0 56px;
    }

    .trades-hero-title {
        font-size: 2rem;
    }

    .trades-hero-sub {
        font-size: 0.95rem;
    }

    .trades-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .trades-arrow {
        width: 40px;
        height: 40px;
    }

    .trades-arrow-prev {
        left: 10px;
    }

    .trades-arrow-next {
        right: 10px;
    }

    .trades-why {
        padding: 60px 16px;
    }

    .trades-why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .trades-services-preview {
        padding: 60px 16px;
    }

    .trades-preview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trades-preview-card {
        height: 280px;
    }

    .trades-cta-strip {
        padding: 60px 16px;
    }

    .trades-cta-content h2 {
        font-size: 1.7rem;
    }

    .trades-section-header h2 {
        font-size: 1.7rem;
    }
}

/*
================================
    RESPONSIVE CODE (MOBILE)
================================
*/
@media (max-width: 768px) {
    .trades-hero-content {
        padding: 0 64px;
    }

    .trades-hero-title {
        font-size: 2.6rem;
    }

    .trades-why {
        padding: 70px 24px;
    }

    .trades-why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .trades-services-preview {
        padding: 70px 24px;
    }

    .trades-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trades-preview-card {
        height: 320px;
    }

    .trades-cta-strip {
        padding: 70px 24px;
    }
}

/*
================================
    RESPONSIVE CODE (TABLET)
================================
*/
@media (min-width: 769px) and (max-width: 1024px) {
    .trades-why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .trades-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .trades-preview-card {
        height: 340px;
    }

    .trades-why {
        padding: 80px 30px;
    }

    .trades-services-preview {
        padding: 80px 30px;
    }
}