/* HydroChill Engineering Solutions Shared Styles */
:root {
    --primary: #0A2540;
    --primary-light: #16365a;
    --accent: #00B4D8;
    --accent-light: #CAF0F8;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-dark: #1E1E1E;
    --text-grey: #4A5568;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 31, 63, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 31, 63, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 31, 63, 0.1), 0 10px 10px -5px rgba(0, 31, 63, 0.04);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Glassmorphism & Utilities */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.water-ripple {
    position: relative;
    overflow: hidden;
}

.water-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple-animation 3s infinite;
}

@keyframes ripple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

.wave-divider {
    position: relative;
    width: 100%;
    height: 60px;
    background: transparent;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: var(--bg-light);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: capitalize;
}

.section-title p {
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* Nav Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    /* Increased size */
    width: auto;
    display: block;
    object-fit: contain;
    margin-top: 5px;
    /* Better vertical alignment */
    transition: var(--transition);
}

.scrolled .logo img {
    height: 45px;
}

.hero-content {
    max-width: 800px;
    margin-top: 40px;
    /* Refined to middle ground */
}

.logo i {
    color: var(--accent);
}

nav.scrolled .logo {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

nav:not(.scrolled) .nav-links li a {
    color: var(--white);
}

nav.scrolled .nav-links li a {
    color: var(--text-dark);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-nav {
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

nav.scrolled .phone-nav {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

nav.scrolled .menu-toggle {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    /* Reduced from 80vh */
    background: linear-gradient(135deg, rgba(10, 31, 64, 0.9), rgba(10, 31, 64, 0.9)), url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    /* Back to center for better balance */
    color: var(--white);
    padding-top: 100px;
    /* Balanced middle ground */
    padding-bottom: 60px;
}

#home.hero {
    height: 100vh;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.badge i {
    color: var(--accent);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 31, 63, 0.05);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    border-radius: 16px 16px 0 0;
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-grey);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Repairs Grid */
.repairs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.repair-tile {
    background: var(--bg-light);
    padding: 30px 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid #e1e8ed;
}

.repair-tile:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.repair-tile i {
    font-size: 2.2rem;
    color: var(--primary);
}

.repair-tile span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.sub-label {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.about-text p {
    color: var(--text-grey);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 800;
}

.stat-item p {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-item {
    text-align: center;
    padding: 20px;
}

.why-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.why-item h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--text-grey);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    color: var(--text-grey);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Coverage */
.area-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.token {
    background: var(--accent-light);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.token:hover {
    background: var(--primary);
    color: var(--white);
}

.coverage-cta {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-body {
    padding: 25px;
}

.badge-blog {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-body h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-body p {
    font-size: 0.85rem;
    color: var(--text-grey);
    margin-bottom: 20px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact Section */
.contact-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 1.5;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.3rem;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p,
.info-item a {
    color: var(--text-grey);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--text-dark);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Form Styling */
.form-standard .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 124, 110, 0.1);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 250px;
    background: #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-img i {
    font-size: 5rem;
    color: #ccc;
}

.team-info {
    padding: 20px;
}

.team-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.team-info span {
    color: var(--text-grey);
    font-size: 0.85rem;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    border-radius: 50%;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-col img {
    height: 45px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-tagline {
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0 20px !important;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* WhatsApp & Back to top */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    z-index: 1000;
}

/* Global Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-grey);
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4BB543;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 3000;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .repairs-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li a {
        padding: 15px 20px;
        display: block;
        color: var(--text-dark) !important;
    }

    .nav-right {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .repairs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-flex {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .contact-flex {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast Notification Improvement */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}