/* Premium Aesthetic CSS for Historic Home Water Mitigation */
:root {
    --primary: #cba358; /* Rich Gold for high-end feel */
    --primary-dark: #b58d40;
    --secondary: #162c2f; /* Deep, moody dark green for historic, premium mood */
    --accent: #234c52;
    --text: #ffffff;
    --text-muted: #e0e0e0;
    --bg-dark: #0a1112; /* Very dark green/black base */
    --bg-card: rgba(22, 44, 47, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.4s 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-body);
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

/* Typography Enhancements */
h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    color: #fff;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 17, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
    font-weight: 300;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(203, 163, 88, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 163, 88, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(203, 163, 88, 0.1);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-huge {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05); /* initial scale for animation */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 17, 18, 0.9) 0%, rgba(10, 17, 18, 0.6) 50%, rgba(22, 44, 47, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-text h2 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Services */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(203, 163, 88, 0.3);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10, 17, 18, 1), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.card-overlay i, .card-icon-only i {
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(203, 163, 88, 0.5));
}

.card-content {
    padding: 2rem;
}

.card-icon-only {
    padding: 3rem 2rem 1rem 2rem;
    text-align: center;
}

/* Two Col Process section */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Glass panel stats */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(203, 163, 88, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-box {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-box .number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box .label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary), var(--bg-dark));
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
}

/* Footer */
.footer {
    background: #050809;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--primary);
    font-weight: 300;
    font-style: italic;
}

.footer-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-info i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

/* Animations Classes */
.hidden {
    opacity: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    animation: slideUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-right.visible, .slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delay modifiers */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Initial animations for Hero using CSS animations instead of observer if possible, 
   but we'll hook up an observer for scrolling elements in script.js */
.hero-image {
    animation: subtleZoom 20s infinite alternate linear;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text.fade-in-up {
    animation: slideUp 1s ease-out 0.5s backwards;
}

.hero-buttons {
    animation: slideUp 1s ease-out 0.8s backwards;
}

/* Media Queries */
@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
    .hero-text h2 {
        font-size: 3rem;
    }
    .nav-links {
        display: none; /* simple mobile nav approach - mostly hidden */
    }
    .nav-content {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }
    .hero-text h2 {
        font-size: 2.2rem;
    }
    .section {
        padding: 4rem 0;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info p {
        justify-content: center;
    }
}
