/* ========================================
   MUSTANG FENCING AND GATES - FULSHEAR
   Emerald Ranch / Rural Luxury Theme
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Emerald Colors - Fulshear Ranch Luxury */
    --emerald-primary: #059669;
    --emerald-light: #10b981;
    --emerald-dark: #047857;
    --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);

    /* Gold Accent Colors - CTA & Highlights */
    --gold-primary: #d4a017;
    --gold-light: #e8b923;
    --gold-dark: #b8860b;
    --gold-gradient: linear-gradient(135deg, #e8b923 0%, #d4a017 50%, #b8860b 100%);

    /* Deep Navy Backgrounds */
    --bg-dark: #0b1a2e;
    --bg-secondary: #0f2340;
    --bg-card: #132b4d;
    --bg-card-hover: #1a3560;
    --blue-deep: #1a3560;
    --blue-accent: #1e4070;

    /* Text Colors - WCAG AA on --bg-dark */
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent Helpers */
    --accent-emerald: rgba(5, 150, 105, 0.15);
    --accent-emerald-border: rgba(5, 150, 105, 0.4);
    --accent-gold: rgba(212, 160, 23, 0.15);
    --accent-gold-border: rgba(212, 160, 23, 0.4);

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1400px;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-emerald: 0 0 30px rgba(5, 150, 105, 0.3);
    --shadow-gold: 0 0 30px rgba(212, 160, 23, 0.3);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ===== LIGHT THEME OVERRIDES ===== */
[data-theme="light"] {
    --bg-dark: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-emerald: rgba(5, 150, 105, 0.1);
    --accent-emerald-border: rgba(5, 150, 105, 0.3);
    --accent-gold: rgba(212, 160, 23, 0.1);
    --accent-gold-border: rgba(212, 160, 23, 0.3);
    --shadow-emerald: 0 0 30px rgba(5, 150, 105, 0.15);
    --shadow-gold: 0 0 30px rgba(212, 160, 23, 0.15);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ===== FONT AWESOME font-display FIX ===== */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-display: swap;
}
@font-face {
    font-family: 'FontAwesome';
    font-display: swap;
}

/* ===== SKIP NAV LINK (Accessibility) ===== */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--emerald-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    z-index: 100000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}
.skip-nav:focus {
    top: 0;
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--emerald-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
a {
    color: var(--emerald-light);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--emerald-primary);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: var(--section-padding) 0;
}
.text-gold {
    color: var(--gold-primary);
}
.text-emerald {
    color: var(--emerald-primary);
}
.text-gradient {
    background: var(--emerald-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-dark {
    background-color: var(--bg-dark);
}
.bg-secondary {
    background-color: var(--bg-secondary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(212, 160, 23, 0.5);
    color: var(--bg-dark);
}
.btn-secondary {
    background: transparent;
    color: var(--emerald-light);
    border: 2px solid var(--emerald-primary);
}
.btn-secondary:hover {
    background: var(--emerald-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}
.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}
.navbar.scrolled {
    background: rgba(11, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    overflow: hidden;
}
.logo-icon .fence-icon {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 28px;
}
.logo-icon .fence-icon .picket {
    width: 5px;
    background: var(--bg-dark);
    border-radius: 2px 2px 0 0;
}
.logo-icon .fence-icon .picket:nth-child(1) { height: 22px; }
.logo-icon .fence-icon .picket:nth-child(2) { height: 28px; }
.logo-icon .fence-icon .picket:nth-child(3) { height: 22px; }
.logo-icon .fence-icon .picket:nth-child(4) { height: 28px; }
.logo-icon .fence-icon .picket:nth-child(5) { height: 22px; }
.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 3px;
    background: var(--bg-dark);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}
.logo-icon::before { top: 14px; }
.logo-icon::after { bottom: 14px; }
.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition-medium);
}
.navbar.scrolled .logo img {
    height: 60px;
}
.logo-content {
    display: flex;
    flex-direction: column;
}
.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--emerald-light);
    letter-spacing: 2px;
    line-height: 1;
}
.logo-tagline {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-gradient);
    transition: var(--transition-medium);
}
.nav-link:hover {
    color: var(--emerald-light);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-cta {
    margin-left: 20px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--accent-emerald-border);
    color: var(--emerald-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.dark-mode-toggle:hover {
    background: var(--accent-emerald);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--emerald-light);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(11, 26, 46, 0.92) 0%,
        rgba(11, 26, 46, 0.75) 50%,
        rgba(11, 26, 46, 0.85) 100%
    );
    z-index: -1;
}
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}
.hero-badge {
    display: inline-block;
    padding: 10px 30px;
    background: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--emerald-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}
.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-title span {
    display: block;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(5, 150, 105, 0.2);
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--emerald-primary);
    border-radius: 20px;
    position: relative;
}
.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--emerald-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}
@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(15px); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-emerald);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.section-title {
    margin-bottom: 20px;
}
.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--bg-secondary);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
    position: relative;
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-emerald-border);
    box-shadow: var(--shadow-emerald);
}
.service-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.service-card:hover .service-card-image img {
    transform: scale(1.1);
}
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 26, 46, 0.9) 0%, transparent 60%);
}
.service-card-content {
    padding: 30px;
}
.service-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-emerald);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-card-icon i {
    font-size: 1.5rem;
    color: var(--emerald-light);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--emerald-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.service-card-link i {
    transition: var(--transition-fast);
}
.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

/* ===== WHY CHOOSE US ===== */
.why-section {
    position: relative;
    overflow: hidden;
}
.why-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
    transform: translateY(-50%);
    z-index: 0;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}
.why-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border-radius: 20px;
    transition: var(--transition-medium);
    border: 1px solid transparent;
}
.why-card:hover {
    border-color: var(--accent-emerald-border);
    transform: translateY(-5px);
}
.why-icon {
    width: 80px;
    height: 80px;
    background: var(--emerald-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-emerald);
}
.why-icon i {
    font-size: 2rem;
    color: var(--text-primary);
}
.why-card h4 {
    margin-bottom: 15px;
}
.why-card p {
    font-size: 0.95rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: var(--bg-secondary);
}
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--accent-emerald-border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--emerald-primary);
    color: var(--text-primary);
    border-color: var(--emerald-primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}
.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 150, 105, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}
.gallery-item:hover .gallery-item-overlay {
    background: rgba(5, 150, 105, 0.3);
}
.gallery-item-overlay i {
    font-size: 3rem;
    color: var(--text-primary);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-medium);
}
.gallery-item:hover .gallery-item-overlay i {
    opacity: 1;
    transform: scale(1);
}
/* Gallery card variant */
.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.gallery-card:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 150, 105, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition-medium);
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}
.gallery-overlay span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    position: relative;
    overflow: hidden;
}
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}
.testimonials-slider::-webkit-scrollbar {
    display: none;
}
.testimonial-card {
    flex: 0 0 400px;
    scroll-snap-align: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--accent-emerald-border);
}
.testimonial-quote {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 4rem;
    color: var(--accent-emerald);
    font-family: serif;
    line-height: 1;
}
.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}
.testimonial-rating i {
    color: var(--gold-primary);
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--emerald-primary);
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-info h5 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.testimonial-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== SERVICE AREAS ===== */
.areas-section {
    background: var(--bg-secondary);
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.area-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    transition: var(--transition-fast);
}
.area-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}
.area-item i {
    color: var(--emerald-light);
    font-size: 1.2rem;
}
.area-item span {
    font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23059669" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}
.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-title {
    margin-bottom: 20px;
}
.cta-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== AUTO-LINKED KEYWORDS ===== */
.auto-link {
    color: var(--emerald-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--emerald-light);
    transition: var(--transition-fast);
}
.auto-link:hover {
    color: var(--emerald-primary);
    border-bottom-style: solid;
}

/* ===== PARALLAX SECTION ===== */
.baytown-parallax,
.fulshear-parallax {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: translateZ(0);
    will-change: transform;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.parallax-bg.fade-out {
    opacity: 0;
}
.parallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.parallax-video.fade-in {
    opacity: 1;
}
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(11, 26, 46, 0.3) 0%,
        rgba(11, 26, 46, 0.5) 50%,
        rgba(11, 26, 46, 0.7) 100%
    );
    z-index: 2;
}
.parallax-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
}
.parallax-badge {
    display: inline-block;
    background: rgba(5, 150, 105, 0.2);
    border: 2px solid var(--emerald-primary);
    color: var(--emerald-light);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.parallax-badge i {
    margin-right: 10px;
}
.parallax-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.parallax-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
}
.parallax-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.parallax-stat {
    text-align: center;
}
.parallax-stat i {
    font-size: 2.5rem;
    color: var(--emerald-light);
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(5, 150, 105, 0.5));
}
.parallax-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.parallax-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    .parallax-stats {
        gap: 30px;
    }
    .parallax-stat i {
        font-size: 2rem;
    }
    .parallax-stat .stat-value {
        font-size: 1.5rem;
    }
}

/* ===== FOOTER FENCE BORDER ===== */
.footer-fence-border {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.footer-fence-border img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--accent-emerald-border);
}
.footer-main {
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
}
.footer-brand p {
    margin: 20px 0;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 15px;
}
.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.footer-social a:hover {
    background: var(--emerald-primary);
}
.footer-social a i {
    color: var(--emerald-light);
    font-size: 1.1rem;
}
.footer-social a:hover i {
    color: var(--text-primary);
}
.footer-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--emerald-light);
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--emerald-light);
    padding-left: 5px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-contact-item i {
    color: var(--emerald-light);
    font-size: 1.2rem;
    margin-top: 3px;
}
.footer-contact-item span,
.footer-contact-item a {
    color: var(--text-secondary);
}
.footer-contact-item a:hover {
    color: var(--emerald-light);
}
.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(5, 150, 105, 0.15);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-copyright {
    color: #b0b8c4;
}
.footer-legal {
    display: flex;
    gap: 30px;
}
.footer-legal a {
    color: #b0b8c4;
    font-size: 0.9rem;
}
.footer-legal a:hover {
    color: var(--emerald-light);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 25px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--accent-emerald-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--emerald-primary);
    box-shadow: 0 0 0 3px var(--accent-emerald);
}
.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
    text-align: center;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-emerald) 0%, transparent 50%);
    opacity: 0.3;
}
.page-header .container {
    position: relative;
    z-index: 1;
}
.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--text-secondary);
}
.breadcrumb a:hover {
    color: var(--emerald-light);
}
.breadcrumb span {
    color: var(--emerald-light);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
.chat-button {
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-medium);
    border: none;
}
.chat-button:hover {
    transform: scale(1.1);
}
.chat-button i {
    font-size: 1.8rem;
    color: var(--bg-dark);
}
.chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-dark);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-medium);
}
.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.chat-header {
    background: var(--emerald-gradient);
    padding: 25px;
    color: var(--text-primary);
}
.chat-header h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}
.chat-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.chat-body {
    padding: 25px;
}
.chat-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    width: 100%;
    text-align: left;
}
.chat-action:hover {
    background: var(--accent-emerald);
}
.chat-action i {
    width: 40px;
    height: 40px;
    background: var(--emerald-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}
.chat-action span {
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== FINANCING BANNER ===== */
.financing-banner {
    background: var(--gold-gradient);
    padding: 30px 0;
}
.financing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.financing-text {
    display: flex;
    align-items: center;
    gap: 20px;
}
.financing-text i {
    font-size: 2.5rem;
    color: var(--bg-dark);
}
.financing-text h4 {
    color: var(--bg-dark);
    margin-bottom: 5px;
}
.financing-text p {
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}
.financing-banner .btn {
    background: var(--bg-dark);
    color: var(--emerald-light);
}
.financing-banner .btn:hover {
    background: var(--bg-secondary);
}

/* ===== IFRAME EMBED SECTION ===== */
.iframe-embed-section {
    padding: var(--section-padding) 0;
}
.iframe-embed-section iframe {
    border-radius: 15px;
    border: 1px solid var(--accent-emerald-border);
}

/* ===== SERVICE OVERVIEW GRID ===== */
.service-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-overview-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid transparent;
    transition: var(--transition-medium);
}
.service-overview-card:hover {
    border-color: var(--accent-emerald-border);
    transform: translateY(-5px);
    box-shadow: var(--shadow-emerald);
}
.service-overview-card .card-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-emerald);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-overview-card .card-icon i {
    font-size: 1.5rem;
    color: var(--emerald-light);
}
.service-overview-card h4 {
    margin-bottom: 12px;
}
.service-overview-card p {
    font-size: 0.95rem;
}

/* ===== BEFORE/AFTER COMPARISON SLIDER ===== */
.comparison-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}
.comparison-slider img {
    display: block;
    width: 100%;
    height: auto;
}
.comparison-slider .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.comparison-slider .after-image img {
    height: 100%;
    object-fit: cover;
}
.comparison-slider .slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--emerald-light);
    cursor: col-resize;
    z-index: 5;
}
.comparison-slider .slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--emerald-gradient);
    border-radius: 50%;
    border: 3px solid var(--text-primary);
    box-shadow: var(--shadow-emerald);
}
.comparison-slider .slider-handle::after {
    content: '\2194';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 6;
}
.comparison-label {
    position: absolute;
    bottom: 15px;
    padding: 8px 16px;
    background: rgba(11, 26, 46, 0.8);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}
.comparison-label.before {
    left: 15px;
}
.comparison-label.after {
    right: 15px;
}

/* ===== BENEFIT ITEMS (Why Section inline) ===== */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition-fast);
}
.benefit-item:hover {
    background: var(--bg-card-hover);
}
.benefit-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent-emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefit-icon i {
    font-size: 1.3rem;
    color: var(--emerald-light);
}
.benefit-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.benefit-text p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-secondary);
}
