@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* CSS VARIABLES */
:root { 
    --display-font: 'Playfair Display', serif;
    --mono-font: 'Space Mono', monospace;
    --primary: #e63946; /* Deep Red */
    --primary-hover: #f05a66;
    --secondary: #0b132b; /* True Dark */
    --white: #1c2541; /* Off-Black for panels */
    --accent: #2ecc71;
    --bg-light: #212c4d;
    --bg-gray: #16203d;
    --border: #2a2a2a;
    --text-main: #f1faee;
    --text-muted: #8d99ae;
}

/* GLOBAL STYLES & TEXTURE */
body { 
    font-family: 'Inter', 'Arial', sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--secondary);
    color: var(--text-main); 
    line-height: 1.6; 
    position: relative;
    z-index: 0;
}
* { box-sizing: border-box; }

/* The Anti-Flat Noise Layer */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display-font);
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* THE AUTHORITY HEADER */




.logo { 
    font-size: 1.8rem; 
    font-family: var(--display-font);
    font-weight: 900; 
    color: #ffffff; 
}
.logo span { color: var(--primary); font-family: var(--mono-font); font-size: 1.2rem; }

/* CTA BUTTONS (Asymmetrical & Textured) */
.btn-call { 
    background: var(--primary); 
    color: white; 
    text-decoration: none; 
    border-radius: 2px 12px 2px 8px; /* Anti-AI pill shape */
    font-weight: bold; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 4px 10px rgba(0,0,0,0.5);
}
.btn-call:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px) rotate(1deg);
    border-radius: 8px 2px 12px 2px;
}

.header-call-btn {
    font-family: var(--mono-font);
    font-size: 0.9rem; 
    padding: 10px 18px;
}

.hero-btn {
    background: #27ae60; 
    padding: 20px 40px; 
    font-size: 1.2rem;
    font-family: var(--mono-font);
    text-transform: uppercase;
}
.hero-btn:hover { background: #219653; }

.mobile-btn {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    display: block; 
    border-radius: 0; 
    text-align: center; 
    padding: 20px;
}

/* =========================================
   HAMBURGER MENU & DROPDOWN STYLES
   ========================================= */

.header-actions { display: flex; align-items: center; gap: 15px; }
.menu-toggle { 
    background: none; 
    border: none; 
    font-size: 2rem; 
    color: #fff; 
    cursor: pointer; 
    display: block; 
}

.main-nav { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: #111; 
    border-top: 3px solid var(--primary); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.main-nav.active { max-height: 600px; }

.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav ul li { border-bottom: 1px solid var(--border); }
.main-nav ul li a { 
    display: block; 
    padding: 15px 5%; 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: bold; 
    font-family: var(--mono-font);
    text-transform: uppercase;
    font-size: 0.9rem;
}
.main-nav ul li a:hover { background: var(--border); color: #fff; }

.submenu { 
    background: #0a0a0a; 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.has-dropdown.open .submenu { max-height: 600px; }

.submenu-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.submenu li a { padding-left: 10%; font-weight: normal; font-size: 0.85rem; }
.submenu li a::before { content: "» "; color: var(--primary); }

/* =========================================
   CONTENT SECTIONS (HERO, SERVICES, GRID)
   ========================================= */

.hero { 
    padding: 120px 5%; 
    text-align: center; 
    color: white; 
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 20px; line-height: 1.1; }

@media (max-width: 768px) {
    .hero { padding: 80px 5%; }
}

.services-global { padding: 80px 5%; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; color: #fff; margin-bottom: 15px; font-size: clamp(2rem, 4vw, 3rem); }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; font-family: var(--mono-font); text-transform: uppercase; letter-spacing: 1px; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.services-grid > a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-item { 
    padding: 35px 25px; 
    transition: transform 0.3s ease, border-radius 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}
.base-service {
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    border-radius: 4px 20px 4px 8px; /* Asymmetrical */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.base-service:hover {
    transform: translateY(-8px);
    border-radius: 20px 4px 20px 4px;
    border-left-width: 6px;
}
.service-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 15px;
    display: block;
    transition: stroke 0.3s ease, transform 0.3s ease;
}
.base-service:hover .service-icon {
    stroke: #fff;
    transform: scale(1.1);
}
.base-service h4 { font-size: 1.5rem; margin-top: 0; color: #fff; }

/* 24/7 Emergency Highlight Card */
.emergency-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #d35400 100%) !important;
    border-left: 5px solid #fff !important;
    border-radius: 24px 8px 24px 12px !important;
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.4) !important;
    transform: scale(1.02) rotate(-0.5deg);
}
.emergency-highlight h4 {
    color: #000 !important;
    font-weight: 800 !important;
}
.emergency-highlight p {
    color: rgba(0, 0, 0, 0.9) !important;
    font-weight: 500;
}
.emergency-highlight .service-icon {
    stroke: #000 !important;
}
.emergency-highlight:hover {
    transform: scale(1.05) rotate(1deg) translateY(-8px) !important;
    background: #fff !important;
    border-left-color: var(--primary) !important;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15) !important;
}
.emergency-highlight:hover h4 {
    color: #000 !important;
}
.emergency-highlight:hover p {
    color: #111 !important;
}
.emergency-highlight:hover .service-icon {
    stroke: var(--primary) !important;
}

/* =========================================
   NEW: COMPETITOR FEATURES (Reviews, Badges, Area Clusters)
   ========================================= */

.trust-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 5%;
    background: #000;
}
.trust-badge {
    height: 50px;
    transition: all 0.3s ease;
}
.trust-badge:hover {
    transform: scale(1.05);
}

.checklist-section {
    padding: 80px 5%;
    background: var(--secondary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) {
    .checklist-section { grid-template-columns: 1fr; }
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.checklist-icon {
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
}
.checklist-text h4 { margin: 0 0 5px 0; font-family: var(--mono-font); font-size: 1.1rem; }
.checklist-text p { margin: 0; color: var(--text-muted); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 5% 80px;
}
.review-card {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 2px 24px 4px 12px;
    border: 1px solid var(--border);
    position: relative;
}
.stars { color: #f1c40f; letter-spacing: 2px; margin-bottom: 15px; font-size: 1.2rem; }
.review-text { font-style: italic; color: var(--text-main); margin-bottom: 20px; }
.review-author { font-family: var(--mono-font); font-weight: bold; color: #fff; text-transform: uppercase; font-size: 0.9rem; }
.review-location { color: var(--primary); font-size: 0.8rem; margin-left: 10px; }

.service-area-cluster {
    padding: 60px 5%;
    text-align: center;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}
.cluster-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.cluster-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-gray);
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px 12px 2px 8px; /* jagged anti-AI button */
    transition: all 0.3s;
}
.cluster-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: rotate(-2deg);
}


/* =========================================
   STICKY MOBILE CTA
   ========================================= */

.mobile-cta { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    display: none; 
    z-index: 9999; 
    margin: 0; 
    padding: 0; 
}

@media (max-width: 768px) {
    .mobile-cta { display: block; }
    body { padding-bottom: 70px; }
}

/* =========================================
   SMOOTH DESKTOP NAVIGATION OVERRIDES
   ========================================= */
@media (min-width: 769px) {
    .menu-toggle { display: none; }
    
    .main-nav { 
        position: static; 
        width: auto; 
        background: none; 
        border: none; 
        box-shadow: none; 
        max-height: none; 
        overflow: visible;
    }
    
    .main-nav ul { display: flex; gap: 20px; }
    .main-nav ul li { border: none; position: relative; }
    .main-nav ul li a { padding: 10px; color: var(--text-main); font-size: 0.85rem; }
    .main-nav ul li a:hover { background: none; color: var(--primary); }
    
    .submenu { 
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute; 
        top: 100%; 
        left: 0; 
        min-width: 220px; 
        background: #111; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
        border-top: 2px solid var(--primary);
        max-height: none; 
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }
    
    .main-nav ul li:last-child .submenu {
        left: auto;
        right: 0;
    }
    
    .submenu-right {
        width: max-content;
        max-width: 90vw;
        display: grid;
        grid-template-columns: repeat(5, max-content);
        gap: 0;
    }
    
    .has-dropdown:hover .submenu { 
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .submenu li a { color: var(--text-main); padding: 15px; border-bottom: 1px solid var(--border); }
    .submenu li a:hover { background: var(--bg-gray); color: #fff; padding-left: 20px; transition: 0.2s; }
}

/* =========================================
   FOOTER STYLES
   ========================================= */
footer { 
    background: #000; 
    color: var(--text-muted); 
    padding: 60px 5%; 
    text-align: center; 
    border-top: 1px solid var(--border);
}
footer p {
    margin: 8px 0;
}
footer strong {
    font-family: var(--mono-font);
    color: #fff;
    letter-spacing: 2px;
}

/* =========================================
   FOOTER CREDITS
   ========================================= */
.footer-credits {
    margin-top: 25px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.footer-credits a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.footer-credits a:hover {
    color: #fff;
}
.footer-credits img {
    height: 16px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.footer-credits a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   NEW SPLIT-HEADER NAVIGATION
   ========================================= */

.top-bar {
    background: #050a15;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    font-size: 0.8rem;
    font-family: var(--mono-font);
    border-bottom: 1px solid var(--border);
}

.top-bar-left { color: #e6c200; font-weight: bold; }
.top-bar-right a { color: var(--primary); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.top-bar-right a:hover { color: var(--primary-hover); }

@media (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 5px; text-align: center; }
}

.split-header {
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-cta-wrapper {
    display: none; /* Hidden on mobile */
}

@media (min-width: 769px) {
    .header-cta-wrapper { display: block; }
    
    /* Center the main nav in the header */
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 40px;
    }
    
    .main-nav {
        justify-self: center;
    }
    
    /* Fix the dropdown overflow */
    .submenu-right {
        left: auto !important;
        right: 0 !important;
    }
}

.header-cta-btn {
    padding: 12px 24px;
    border-radius: 50px; /* Pill shape */
    font-family: var(--mono-font);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Responsive capabilities grid */
.capabilities-container {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 900px) {
    .capabilities-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Responsive SEO List */
.seo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 20px;
    align-content: start;
}
.seo-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    min-height: 54px;
}
.seo-list li a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s;
    width: 100%;
}
.seo-list li a:hover {
    color: var(--primary);
}
@media (max-width: 900px) {
    .seo-list {
        grid-template-columns: 1fr;
    }
}
\n==
   OUR WORK GALLERY (Asymmetrical & Textured)
   ========================================= */
.our-work-section {
    padding: 100px 5%;
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.our-work-header {
    margin-bottom: 60px;
    text-align: left;
    max-width: 60%;
}
.our-work-header h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #ffffff;
    line-height: 1;
}
.our-work-header p {
    font-family: var(--mono-font);
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .our-work-header { max-width: 100%; }
}

.gallery-grid {
    column-count: 6;
    column-gap: 20px;
}

@media (max-width: 1200px) {
    .gallery-grid { column-count: 5; }
}
@media (max-width: 1000px) {
    .gallery-grid { column-count: 4; }
}
@media (max-width: 768px) {
    .gallery-grid { column-count: 3; column-gap: 10px; }
}
@media (max-width: 500px) {
    .gallery-grid { column-count: 2; column-gap: 8px; }
    .gallery-item { margin-bottom: 8px; }
    /* Simplify border radiuses slightly on mobile to look good at small sizes */
    .gallery-item:nth-child(odd) { border-radius: 2px 12px 4px 2px; }
    .gallery-item:nth-child(even) { border-radius: 8px 2px 12px 4px; }
    .gallery-item:nth-child(3n) { border-radius: 4px 4px 16px 6px; }
    .gallery-item:nth-child(5n) { border-radius: 16px 6px 4px 10px; }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px 24px 8px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    filter: brightness(0.85) contrast(1.1); /* Gritty film look */
    image-orientation: from-image;
}

/* Asymmetrical Radiuses for Masonry */
.gallery-item:nth-child(odd) { border-radius: 4px 30px 12px 4px; }
.gallery-item:nth-child(even) { border-radius: 20px 4px 30px 8px; }
.gallery-item:nth-child(3n) { border-radius: 8px 8px 40px 12px; }
.gallery-item:nth-child(5n) { border-radius: 40px 12px 8px 24px; }

.gallery-item:hover {
    transform: scale(1.02) rotate(1deg);
    z-index: 2;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-radius: 24px 8px 32px 8px;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.1);
}

/* =========================================
   HOME PAGE GALLERY GRID (Original Layout)
   ========================================= */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}
@media (max-width: 900px) {
    .home-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .home-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}
.home-gallery-grid .gallery-item img {
    height: 100%;
    object-fit: cover;
}

/* Asymmetrical Spanning for Grid */
.home-gallery-grid .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; border-radius: 4px 40px 12px 4px; }
.home-gallery-grid .gallery-item:nth-child(4) { grid-column: span 2; border-radius: 20px 4px 30px 8px; }
.home-gallery-grid .gallery-item:nth-child(5) { grid-row: span 2; border-radius: 8px 8px 40px 12px; }
.home-gallery-grid .gallery-item:nth-child(7) { grid-column: span 2; border-radius: 40px 12px 8px 24px; }
.home-gallery-grid .gallery-item:nth-child(9) { grid-column: span 2; border-radius: 12px 24px 8px 30px; }

@media (max-width: 500px) {
    .home-gallery-grid .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* =========================================
   LIGHTBOX STYLES
   ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    image-orientation: from-image;
}
.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    font-family: var(--mono-font);
    transition: color 0.3s, transform 0.3s;
}
.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* =========================================
   SEO SERVICES SECTION (Responsive)
   ========================================= */
.seo-services-section {
    padding: 100px 5%;
    background: var(--bg-main);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.seo-services-container {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
.seo-services-sidebar {
    position: sticky;
    top: 100px;
}
.seo-services-sidebar h2 {
    font-family: var(--display-font, serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.seo-services-sidebar p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: var(--mono-font, monospace);
}
.seo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0 40px;
    align-content: start;
}
.seo-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.seo-list li a {
    color: #eee;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 0;
    min-height: 54px;
    width: 100%;
    transition: color 0.3s;
}
.seo-list li a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .seo-services-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .seo-services-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}