:root {
    --primary: #004b87;
    /* Trustworthy contractor blue */
    --primary-dark: #003057;
    --primary-light: #e6f0fa;
    --accent: #e65c00;
    /* Vibrant orange for emergency / CTA */
    --accent-hover: #cc5200;
    --text-main: #2b2b2b;
    --text-muted: #555555;
    --bg-color: #ffffff;
    --bg-alt: #f4f7f6;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a1a;
}

/* Animations (Snappier, less floating) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
}

.reveal.active {
    animation: slideUp 0.6s ease-out forwards;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 5%;
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo i {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

.header-cta {
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-cta:hover {
    background: var(--accent-hover);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    /* Offset for fixed header */
    min-height: 80vh;
    /* Using a real photo of wood floor, heavily darkened to make text readable */
    background: linear-gradient(rgba(0, 48, 87, 0.85), rgba(0, 48, 87, 0.85)), url('https://images.unsplash.com/photo-1516455590571-18256e5bb9ff?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    color: white;
}

.hero-content {
    max-width: 700px;
}

.emergency-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e6e6e6;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-ghost:hover {
    background: white;
    color: var(--primary);
}

/* Stats/Trust Bar */
.trust-bar {
    background: var(--primary);
    color: white;
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item h4 {
    color: white;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.trust-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.trust-item i {
    font-size: 2rem;
    color: var(--accent);
}

/* Services */
.services {
    padding: 6rem 5%;
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-head h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--accent-hover);
}

/* Process Container (Split Layout) */
.process-section {
    padding: 6rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.process-list {
    margin-top: 2rem;
}

.process-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.process-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.process-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.process-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Strip */
.bottom-cta {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 5rem 5%;
}

.bottom-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bottom-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}

/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding: 4rem 5% 2rem 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .process-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        /* simple mobile hide for demo */
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}