/* =========================================
   AQUA NOIR DESIGN SYSTEM
   ========================================= */

:root {
    --midnight-ocean: #071C2A;
    --deep-atlantic: #102F40;
    --marine-blue: #17465A;
    --glacier-cyan: #53D5D8;
    --ice-white: #EAF7F8;
    --warm-sand: #D9C5A5;
    --mist-gray: #E9F0F1;
    --slate-blue: #78929C;
    --charcoal: #14232D;
    
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--midnight-ocean);
    color: var(--ice-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; letter-spacing: -1px; }
h2 { font-size: 2.2rem; color: var(--glacier-cyan); }
h3 { font-size: 1.5rem; color: var(--ice-white); }

.highlight { color: var(--glacier-cyan); }
.cyan-dot { color: var(--glacier-cyan); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--glacier-cyan);
    color: var(--midnight-ocean);
}

.btn-primary:hover {
    background-color: var(--ice-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(83, 213, 216, 0.2);
}

.btn-secondary {
    border-color: var(--glacier-cyan);
    color: var(--glacier-cyan);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: rgba(83, 213, 216, 0.1);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 28, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(83, 213, 216, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ice-white);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--mist-gray);
}

.nav-links a:hover { color: var(--glacier-cyan); }

.btn-nav {
    background: var(--marine-blue);
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid var(--glacier-cyan);
}

.hamburger { display: none; cursor: pointer; }
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--ice-white);
    margin: 5px 0;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, var(--marine-blue), var(--midnight-ocean));
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-label {
    color: var(--warm-sand);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.hero-intro {
    font-size: 1.1rem;
    color: var(--mist-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.trust-badges {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--slate-blue);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* CSS House Illustration */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.house-cutaway {
    width: 200px;
    height: 250px;
    position: relative;
}

.roof {
    width: 0; 
    height: 0; 
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 80px solid var(--deep-atlantic);
    position: absolute;
    top: 0;
    left: 0;
}

.walls {
    width: 160px;
    height: 100px;
    background: var(--marine-blue);
    position: absolute;
    top: 80px;
    left: 20px;
    border: 1px solid var(--slate-blue);
}

.window {
    width: 40px;
    height: 40px;
    background: var(--midnight-ocean);
    margin: 20px auto;
    border: 2px solid var(--glacier-cyan);
}

.foundation {
    width: 180px;
    height: 70px;
    background: var(--charcoal);
    position: absolute;
    bottom: 0;
    left: 10px;
    overflow: hidden;
    border: 1px solid var(--slate-blue);
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(83, 213, 216, 0.3);
}

.ripple {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--glacier-cyan);
    opacity: 0.5;
    animation: ripple 2s infinite linear;
}

.r1 { top: 0; animation-delay: 0s; }
.r2 { top: 10px; animation-delay: 0.5s; }
.r3 { top: 20px; animation-delay: 1s; }

@keyframes ripple {
    0% { transform: translateX(-10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(10px); opacity: 0; }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glacier-cyan);
    box-shadow: 0 0 10px var(--glacier-cyan);
    animation: scan 3s infinite ease-in-out;
    opacity: 0.5;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.floating-card {
    position: absolute;
    background: rgba(16, 47, 64, 0.9);
    border: 1px solid var(--glacier-cyan);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-1 { top: 20%; right: 10%; animation: float 4s infinite ease-in-out; }
.card-2 { bottom: 20%; left: 0%; animation: float 5s infinite ease-in-out reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   SECTIONS GENERAL
   ========================================= */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }

/* Highlights */
.highlights { background: var(--deep-atlantic); }
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-box {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-left: 3px solid var(--glacier-cyan);
    transition: var(--transition);
}

.highlight-box:hover { background: rgba(255,255,255,0.08); }
.icon-box { font-size: 2rem; margin-bottom: 15px; }

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--charcoal);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card.large { grid-column: span 2; }
.service-card.wide { grid-column: span 3; }

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--glacier-cyan);
}

.service-card ul {
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--mist-gray);
    padding-left: 20px;
    list-style-type: disc;
}

.text-link { color: var(--glacier-cyan); font-weight: 600; font-size: 0.9rem; }

/* Visualization Section */
.visualization-section { background: var(--midnight-ocean); text-align: center; }
.css-basement-diagram {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 40px auto;
    position: relative;
    background: var(--charcoal);
    border: 2px solid var(--slate-blue);
}

.ground-layer { height: 50px; background: #2a2a2a; width: 120%; margin-left: -10%; }
.foundation-wall {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 150px;
    background: var(--marine-blue);
}
.foundation-wall.left { left: 50px; }
.foundation-wall.right { right: 50px; }
.basement-floor {
    position: absolute;
    bottom: 0;
    left: 50px;
    right: 50px;
    height: 10px;
    background: var(--slate-blue);
}
.water-table {
    position: absolute;
    bottom: 10px;
    left: 50px;
    right: 50px;
    height: 60px;
    background: rgba(83, 213, 216, 0.2);
}
.label {
    position: absolute;
    background: var(--glacier-cyan);
    color: var(--midnight-ocean);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
}
.label-1 { top: 20%; left: 10%; }
.label-2 { bottom: 30%; right: 10%; }

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--marine-blue);
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 60px;
    position: relative;
}

.marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--deep-atlantic);
    border: 2px solid var(--glacier-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--glacier-cyan);
}

/* Education Section */
.education-section { background: var(--deep-atlantic); }
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.warning-box {
    background: rgba(217, 197, 165, 0.1);
    border-left: 4px solid var(--warm-sand);
    padding: 20px;
    margin-top: 20px;
    color: var(--warm-sand);
}

.stat-card.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--glacier-cyan);
}

/* Article Styling */
.seo-article {
    background: var(--ice-white);
    color: var(--charcoal);
    padding: 100px 0;
}

.article-container { max-width: 800px; }

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.reading-time {
    color: var(--marine-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.article-header h1 {
    color: var(--midnight-ocean);
    font-size: 2.5rem;
    margin: 10px 0;
}

.author-meta { color: var(--slate-blue); font-style: italic; }

.article-body h2 {
    color: var(--marine-blue);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.article-body p { margin-bottom: 20px; font-size: 1.05rem; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 20px; }
.article-body li { margin-bottom: 10px; }

.article-body a {
    color: var(--marine-blue);
    text-decoration: underline;
    font-weight: 600;
}

/* FAQ */
.faq-section { background: var(--midnight-ocean); }
.faq-item {
    border-bottom: 1px solid var(--marine-blue);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--ice-white);
    padding: 20px 0;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.toggle { color: var(--glacier-cyan); font-size: 1.5rem; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--mist-gray);
    padding-right: 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-item.active .toggle { transform: rotate(45deg); }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: var(--deep-atlantic);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--marine-blue);
}

.stars { color: var(--warm-sand); margin-bottom: 15px; }
.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.initials {
    width: 40px;
    height: 40px;
    background: var(--glacier-cyan);
    color: var(--midnight-ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Contact */
.contact-section { background: var(--charcoal); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-list li { margin-bottom: 15px; font-size: 1.1rem; }
.info-list a { color: var(--glacier-cyan); }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--marine-blue);
    color: var(--ice-white);
    border-radius: 4px;
}

.btn-submit {
    background: var(--glacier-cyan);
    color: var(--midnight-ocean);
    border: none;
    padding: 15px 40px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

/* Footer */
.footer {
    background: var(--midnight-ocean);
    padding: 60px 0 20px;
    border-top: 1px solid var(--marine-blue);
}

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

.footer h3 { font-size: 1.5rem; margin-bottom: 20px; }
.footer h4 { color: var(--glacier-cyan); margin-bottom: 20px; font-size: 1.1rem; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--mist-gray); }
.footer ul li a:hover { color: var(--glacier-cyan); }

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--glacier-cyan);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: var(--slate-blue);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .trust-badges { justify-content: center; }
    .hero-visual { display: none; } /* Hide complex CSS art on mobile for performance */
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--midnight-ocean);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glacier-cyan);
    }
    
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .service-grid { grid-template-columns: 1fr; }
    .service-card.large, .service-card.wide { grid-column: span 1; }
    
    .edu-grid, .contact-grid { grid-template-columns: 1fr; }
}