/* 
   Tanks Plumbing Website Styles
   A modern, professional design for a plumbing business
*/

/* Base Styles and Variables */
:root {
    --primary-color: #0095da;
    --primary-dark: #0077b3;
    --secondary-color: #f8f9fa;
    --accent-color: #08aae3;
    --text-color: #333;
    --light-text: #f8f9fa;
    --dark-text: #212529;
    --border-color: #e1e1e1;
    --success-color: #28a745;
    --error-color: #dc3545;
    --gradient-light: #e1f5fe;
    --gradient-dark: #4fc3f7;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #e67e22; /* Orange for higher contrast */
    color: white;
    border: 2px solid #e67e22;
}

.btn-primary:hover {
    background-color: #d35400; /* Darker orange on hover */
    border-color: #d35400;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: #345676; /* Darker blue for better contrast */
    border: 2px solid #345676;
}

.btn-secondary:hover {
    background-color: #345676;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-light {
    background-color: white;
    color: #e67e22; /* Orange for consistency */
    border: 2px solid white;
}

.btn-light:hover {
    background-color: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

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

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

.logo-image {
    max-height: 50px;
    width: auto;
}

.footer-logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.logo-tanks {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 1px;
}

.logo-plumbing {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: 70px; /* Added to prevent overlap with fixed navbar */
    background-image: linear-gradient(to right, rgba(34, 120, 189, 0.9), rgba(67, 133, 183, 0.7)), url('assets/foundation-pipes.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.water-drop-container {
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.water-drop {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #0095da;
    border-radius: 0% 100% 100% 100%;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: drop-animation 2s infinite;
}

.water-ripple {
    position: absolute;
    width: 120px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    bottom: 10px;
    animation: ripple-animation 2s infinite;
}

@keyframes drop-animation {
    0% { transform: rotate(45deg) translateY(-20px); opacity: 0.7; }
    50% { transform: rotate(45deg) translateY(0); opacity: 1; }
    100% { transform: rotate(45deg) translateY(-20px); opacity: 0.7; }
}

@keyframes ripple-animation {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(0.8); opacity: 0; }
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.call-now {
    margin-bottom: 30px;
}

.call-now p {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.phone-number:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

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

/* Services Section */
.services {
    background-color: var(--secondary-color);
}

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

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    color: var(--primary-color);
    margin: 20px 20px 10px;
    font-size: 1.4rem;
}

.service-card p {
    padding: 0 20px 20px;
    flex-grow: 1;
}

.service-cta {
    text-align: center;
    margin-top: 30px;
}

.service-cta p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-text .section-header h2::after {
    left: 0;
    transform: translateX(0);
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

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

.feature i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
}

.grid-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

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

/* Testimonials Section */
.testimonials {
    background-color: var(--gradient-light);
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, white 49.5%, var(--gradient-light) 50%);
}

/* Google Rating Section */
.google-rating-section {
    background-color: var(--secondary-color); /* Or a distinct background */
    text-align: center;
}

.google-rating-content .google-icon {
    font-size: 3rem;
    color: #DB4437; /* Google Red */
    margin-bottom: 20px;
}

.google-rating-content h3 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-summary .rating-score {
    font-size: 2.2rem; /* Slightly reduced for mobile */
    font-weight: 700;
    color: var(--primary-color);
}

.rating-summary .stars {
    font-size: 1.3rem; /* Slightly reduced for mobile */
    white-space: nowrap; /* Prevent stars from wrapping */
}

.rating-summary .review-count {
    font-size: 0.9rem; /* Slightly reduced for mobile */
    color: var(--text-color);
    white-space: nowrap;
}

.google-rating-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Testimonials Section */
.testimonial-grid { /* Changed from testimonial-slider */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    text-align: right;
    color: var(--primary-color);
}

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

.review-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-cta .btn i {
    margin-right: 5px;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-method.large {
    margin-bottom: 40px;
}

.contact-method.large i {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.contact-method.large h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-highlight {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e67e22;
    display: block;
    padding: 10px;
    transition: all 0.3s ease;
}

.contact-highlight:hover {
    transform: translateY(-3px);
    color: #d35400;
}

.contact-method {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-method i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    background-color: rgba(0, 149, 218, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method h3 {
    margin-bottom: 5px;
    color: var(--dark-text);
}

.contact-method a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--primary-dark);
}

.contact-hours {
    margin-top: 40px;
}

.contact-hours h3 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.contact-hours p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.contact-form {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background-color: #212529;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 160px;
    margin-bottom: 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.contact-details li {
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #343a40;
    transition: all 0.3s ease;
}

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

.social-links i {
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    .rating-summary {
        flex-wrap: wrap; /* Allow wrapping on medium screens if needed */
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px; /* Adjust for potentially smaller navbar height */
    }
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: 0.4s;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        top: 70px;
    }
    
    .nav-link {
        text-align: center;
        padding: 15px;
        width: 100%;
        display: block;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .phone-number {
        font-size: 1.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .testimonial-grid { /* Ensure testimonial grid stacks nicely */
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        max-width: 100%;
    }

    .google-rating-content h3 {
        font-size: 1.8rem;
    }
    .rating-summary .rating-score {
        font-size: 2rem;
    }
    .rating-summary .stars {
        font-size: 1.2rem;
    }
    .rating-summary .review-count {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero {
        padding-top: 55px; /* Further adjust for very small screens if navbar changes */
    }
    
    .service-card {
        min-height: auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
}
