﻿/* ============================================
   Water Heaters Direct - Complete CSS
   ============================================ */

/* Global CSS Variables */
:root {
    --primary: #005B96;
    --secondary: #00A6A6;
    --accent: #FF7F11;
    --dark: #333333;
    --light: #F4F4F4;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #005B96 0%, #00A6A6 100%);
    --gradient-secondary: linear-gradient(135deg, #00A6A6 0%, #005B96 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Page Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-top: 80px;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 91, 150, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

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

/* Logo styles are handled in MainLayout.razor to preserve the glow effect */

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }

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

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--secondary);
            transition: width 0.3s ease;
        }

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

.cta-button {
    background: var(--accent);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 127, 17, 0.3);
    font-weight: bold;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 127, 17, 0.4);
        background: #e66a00;
        color: white !important;
    }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
    }

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu ul {
        list-style: none;
        padding: 2rem;
        margin: 0;
    }

    .mobile-menu li {
        margin-bottom: 1rem;
    }

    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
    }

.mobile-cta {
    background: var(--accent);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-top: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: float 20s linear infinite;
    }

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100px, -100px);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.water-heater-graphic {
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, #ffffff, #F4F4F4);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 91, 150, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

    .water-heater-graphic:hover {
        transform: perspective(1000px) rotateY(0deg);
    }

.water-heater-svg {
    width: 200px;
    height: 250px;
}

.steam-animation {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.steam {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: steam-rise 3s infinite;
}

    .steam:nth-child(2) {
        left: 20px;
        animation-delay: 1s;
    }

    .steam:nth-child(3) {
        left: -20px;
        animation-delay: 2s;
    }

@keyframes steam-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 4rem 2rem;
    background: var(--light);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .feature-card:hover::before {
        transform: scaleX(1);
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   Buttons - Consolidated and Fixed
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #FF7F11 0%, #FF9A44 100%) !important;
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 127, 17, 0.3);
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 127, 17, 0.4);
        background: linear-gradient(135deg, #e66a00 0%, #FF7F11 100%) !important;
        color: white !important;
    }

.btn-secondary {
    background: white !important;
    color: #00A6A6 !important;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 166, 166, 0.3);
    display: inline-block;
    border: 2px solid #00A6A6 !important;
    cursor: pointer;
}

    .btn-secondary:hover {
        background: #00A6A6 !important;
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 166, 166, 0.4);
        border-color: #00A6A6 !important;
    }

/* Special styling for hero and CTA sections */
.hero .btn-secondary,
.cta-section .btn-secondary {
    background: white !important;
    color: #00A6A6 !important;
    border: 2px solid white !important;
}

    .hero .btn-secondary:hover,
    .cta-section .btn-secondary:hover {
        background: #00A6A6 !important;
        color: white !important;
        border-color: #00A6A6 !important;
    }

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.hero .cta-buttons {
    margin-top: 2rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 200%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        animation: shine 3s infinite;
    }

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-section .cta-buttons {
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section p {
    color: #9ca3af;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
        color: #9ca3af;
    }

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: var(--secondary);
    }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
    color: #9ca3af;
}

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

.section {
    padding: 4rem 2rem;
}

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

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.pt-4 {
    padding-top: 2rem;
}

.pb-4 {
    padding-bottom: 2rem;
}

/* ============================================
   404 Page
   ============================================ */
.not-found-container {
    text-align: center;
    padding: 5rem 2rem;
    min-height: 400px;
}

    .not-found-container h1 {
        color: var(--primary);
        margin-bottom: 1rem;
    }

    .not-found-container p {
        margin-bottom: 2rem;
        color: #666;
    }

/* ============================================
   Blazor Specific
   ============================================ */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTT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uMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ============================================
   Enhanced Carousel Styles
   ============================================ */
.price-cards-carousel {
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

    .price-cards-carousel.active {
        cursor: grabbing;
    }

    .price-cards-carousel::-webkit-scrollbar {
        height: 10px;
    }

    .price-cards-carousel::-webkit-scrollbar-track {
        background: var(--light);
        border-radius: 10px;
    }

    .price-cards-carousel::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
        transition: background 0.3s ease;
    }

        .price-cards-carousel::-webkit-scrollbar-thumb:hover {
            background: var(--secondary);
        }

/* Carousel indicators (optional) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-indicator.active {
        background: var(--primary);
        transform: scale(1.2);
    }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .nav-links,
    .cta-button {
        display: none !important;
    }

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

    .mobile-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .carousel-btn {
        display: none;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .price-card {
        min-width: 280px;
    }
}
