/* The Sprinkler Man - Professional Irrigation Website */
:root {
    --primary: #0047AB;
    /* Cobalt Blue / "Uniform Blue" */
    --primary-dark: #003380;
    --secondary: #00BFFF;
    /* Deep Sky Blue / Cyan Accents */
    --accent: #E0F2F1;
    --dark: #0A192F;
    /* Navy Dark */
    --light: #F0F4F8;
    /* Alice Blue Light */
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.85);
    /* Glass Background */
    --shadow: 0 10px 30px -10px rgba(0, 71, 171, 0.2);
}

/* Reset & Scaffolding */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 191, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 71, 171, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0;
    /* More spacing for luxury feel */
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 71, 171, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid rgba(0, 71, 171, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* Sprinkler Logo Icon */
.logo::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background-image: url('../Sprinkler logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: sprinkle-bounce 2s ease-in-out infinite;
}

@keyframes sprinkle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section - UPDATED */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
    /* Space for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

/* New Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    z-index: 2;
}

.hero-text {
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Align left */
}

/* Hero Image Container */
/* Hero Image Container */
.hero-image-container {
    position: relative;
    height: auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-owner-img {
    height: auto;
    max-height: 55vh;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    /* Soften the white background edges */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.15);
    transition: transform 0.5s ease;
}

.hero-owner-img:hover {
    transform: scale(1.02);
}

.owner-tag {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    border-left: 4px solid var(--secondary);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Value Props */
.value-props {
    background: var(--light);
}

.vp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vp-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
}

.vp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.vp-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Featured Work */
.featured-work {
    padding: 0;
    position: relative;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* Services Preview */
.services-preview {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transition: var(--transition);
}

.service-content h3,
.service-content p {
    color: white;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-content p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 4rem 0 1rem;
}

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

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-estimator {
    border: 1px solid rgba(0, 71, 171, 0.16);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.08), rgba(255, 255, 255, 0.9));
}

.quote-estimator h3 {
    margin-bottom: 0.35rem;
}

.quote-estimator p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.estimate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.estimate-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.quote-estimate {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--primary-dark);
    color: white;
    font-weight: 700;
}

/* Mobile */
/* Mobile */
@media (max-width: 768px) {
    header {
        height: 70px;
    }

    nav {
        height: 70px;
    }

    .logo {
        font-size: 1.2rem;
        gap: 0.3rem;
    }

    .logo::before {
        width: 20px;
        height: 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
        order: 1;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image-container {
        order: 2;
        max-width: 320px;
        margin: 0 auto;
        height: auto;
    }

    .hero-owner-img {
        height: 300px;
        width: 100%;
        transform: rotate(0);
        border-radius: 12px;
    }

    .owner-tag {
        bottom: 10px;
        right: 10px;
        transform: none;
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        animation: none;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .estimate-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
}
