/* CSS Reset & Variables */
:root {
    --primary-color: #07A07E;
    --primary-light: #2ADBB1;
    --primary-dark: #046650;
    --blue-accent: #0081C4;
    --text-main: #1C2321;
    --text-muted: #566560;
    --bg-main: #F4F9F7;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 30px rgba(7, 160, 126, 0.1);
    --shadow-hover: 0 15px 40px rgba(7, 160, 126, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

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

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

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

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(7, 160, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 160, 126, 0.4);
    color: var(--white);
}

.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--white);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--white);
}

.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Header (Glassmorphism) */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.glass-header.scrolled {
    height: 100px;
    background: rgba(255, 255, 255, 0.96);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 165px;
    width: auto;
    max-width: 550px;
    object-fit: contain;
    transition: var(--transition);
}

.glass-header.scrolled .logo-img {
    height: 88px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -4px;
    transition: var(--transition);
}

nav ul li a:not(.btn-primary):hover::after {
    width: 100%;
}

nav ul li a:not(.btn-primary):hover {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    text-align: center;
    padding: 140px 20px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 50, 40, 0.45), rgba(0, 60, 90, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    z-index: 3;
    margin-top: -50px;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.features-section .container {
    display: grid;
    grid-template-columns: repeat(3, 1px)
        /* Wait, better repeat */
}

.features-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-main);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(7, 160, 126, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(7, 160, 126, 0.1), rgba(42, 219, 177, 0.2));
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 240px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.drip-bg {
    background-image: url('https://images.unsplash.com/photo-1498408040764-ab6eb772a145?q=80&w=1000&auto=format&fit=crop');
}

.sprinkler-bg {
    background-image: url('https://images.unsplash.com/photo-1563200922-0d12e6bfddbb?q=80&w=1000&auto=format&fit=crop');
}

.landscape-bg {
    background-image: url('https://images.unsplash.com/photo-1558904541-efa843a96f0f?q=80&w=1000&auto=format&fit=crop');
}

.eco-bg {
    background-image: url('https://images.unsplash.com/photo-1628102491629-778571d893a3?q=80&w=1000&auto=format&fit=crop');
}

.pipe-bg {
    background-image: url('https://images.unsplash.com/photo-1613626296147-9755ab376483?q=80&w=1000&auto=format&fit=crop');
}

.product-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 160, 126, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .overlay {
    opacity: 1;
}

.view-btn {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

.product-info {
    padding: 30px 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--blue-accent));
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-btn {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-btn:hover {
    background: transparent;
    color: var(--white);
    box-shadow: 0 0 0 2px var(--white);
}

/* Footer */
footer {
    background: #111514;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 130px;
    width: auto;
    max-width: 450px;
    object-fit: contain;
    background: #ffffff;
    padding: 10px 22px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-about p {
    color: #9aa8a3;
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #9aa8a3;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    color: #9aa8a3;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .glass-header {
        padding: 0 20px;
    }

    .mobile-menu {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        transition: var(--transition);
        padding: 40px 20px;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Page Banner for Inner Pages */
.page-banner {
    position: relative;
    padding: 180px 0 70px;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    text-align: center;
    color: var(--white);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 50, 40, 0.85), rgba(0, 60, 90, 0.8));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section & Grid */
.contact-section {
    padding: 80px 0;
    background: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-branch-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(7, 160, 126, 0.08);
}

.branch-badge {
    display: inline-block;
    background: rgba(7, 160, 126, 0.12);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.contact-branch-card h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.branch-sub {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.detail-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.detail-item .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-text h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.detail-text p, .detail-text a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.phone-link {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.branch-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    color: #fff;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-accent);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 129, 196, 0.3);
}

.btn-directions:hover {
    background: #006da6;
    transform: translateY(-2px);
    color: #fff;
}

/* Contact Form Card */
.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(7, 160, 126, 0.08);
}

.contact-form-card h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-form-card > p {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdff0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fdfdfd;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(7, 160, 126, 0.12);
    background: #fff;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.form-success {
    margin-top: 15px;
    padding: 12px 16px;
    background: #e6f9f3;
    border: 1px solid var(--primary-color);
    color: var(--primary-dark);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Map Section */
.map-section {
    padding: 60px 0 90px;
    background: var(--white);
}

.map-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-header h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-overlay-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.map-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.map-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}