/* ========================================
   Hero's Plumbing Repair - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    --brand-red: #D92323;
    --brand-black: #000000;
    --brand-white: #FFFFFF;
    --brand-dark-gray: #333333;
    --brand-light-gray: #f5f5f5;
    --brand-medium-gray: #666666;
    
    --font-primary: 'Lato', 'Open Sans', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--brand-dark-gray);
    background-color: var(--brand-white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--brand-dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b01c1c;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-black);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.top-bar {
    background: var(--brand-black);
    color: var(--brand-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-white);
    font-weight: 600;
}

.top-bar-phone:hover {
    color: var(--brand-red);
}

.header-main {
    background: var(--brand-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.logo-compact {
    display: none;
    height: 50px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark-gray);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-red);
}

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

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--brand-black);
    border-radius: 2px;
    transition: var(--transition-medium);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--brand-white);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: right var(--transition-medium);
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--brand-dark-gray);
}

.nav-mobile-link {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark-gray);
    border-bottom: 1px solid var(--brand-light-gray);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--brand-red);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.mobile-overlay.active {
    opacity: 1;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('assets/hero_bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--brand-white);
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    color: var(--brand-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-red);
    color: var(--brand-white);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    animation: pulse 2s infinite;
}

.hero-cta:hover {
    background: #b01c1c;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(217, 35, 35, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 35, 35, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(217, 35, 35, 0);
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   Primary CTA Button
   ======================================== */
.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand-red);
    color: var(--brand-white);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.primary-cta:hover {
    background: #b01c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.primary-cta:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 35, 35, 0.3);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--brand-light-gray);
}

.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.services-intro h2 {
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--brand-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

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

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-image.plumbing {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.service-image.grinder {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.service-image.drain {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-image.repipe {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 12px;
    color: var(--brand-black);
}

.service-content p {
    color: var(--brand-medium-gray);
    margin-bottom: 0;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--brand-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 400px;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--brand-medium-gray);
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-text p {
    margin-bottom: 0;
    color: var(--brand-medium-gray);
    font-size: 0.95rem;
}

/* ========================================
   Process Section
   ======================================== */
.process {
    background: var(--brand-light-gray);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--brand-white);
    border: 3px solid var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-red);
    position: relative;
}

.step-icon {
    width: 120px;
    height: 120px;
    background: var(--brand-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

.step-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.process-step:hover .step-icon img {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.process-step h3 {
    margin-bottom: 12px;
}

.process-step p {
    color: var(--brand-medium-gray);
    margin-bottom: 0;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    background: var(--brand-white);
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--brand-light-gray);
    padding: 35px;
    border-radius: 12px;
    position: relative;
    transition: all var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--brand-dark-gray);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--brand-medium-gray);
}

/* ========================================
   Blog Section
   ======================================== */
.blog {
    background: var(--brand-light-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--brand-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform var(--transition-medium);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-image-container {
    overflow: hidden;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--brand-medium-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.blog-link {
    color: var(--brand-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-link:hover {
    color: #b01c1c;
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--brand-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--brand-medium-gray);
    margin-bottom: 30px;
}

.contact-details {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--brand-medium-gray);
}

.contact-form {
    background: var(--brand-light-gray);
    padding: 40px;
    border-radius: 12px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    background: var(--brand-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(217, 35, 35, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: var(--brand-red);
    color: var(--brand-white);
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.submit-btn:hover {
    background: #b01c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--brand-black);
    color: var(--brand-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    font-size: 1.1rem;
    transition: all var(--transition-medium);
}

.social-link:hover {
    background: var(--brand-red);
    transform: scale(1.1);
}

.footer-column h4 {
    color: var(--brand-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #999;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    .hero {
        background-attachment: scroll;
        min-height: 70vh;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-cta {
        width: 100%;
        justify-content: center;
    }
    
    .primary-cta {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 25px;
    }
}
