/* 
   D8-Plumbing Website Styles
   Modern design with focus on professionalism and usability
   Author: Claude
   Version: 1.0
*/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
    /* Colors */
    --primary-color: #3498db; /* Lighter blue - better contrast with black */
    --secondary-color: #2980b9; /* Lighter blue for navigation - not purple */
    --accent-color: #f39c12; /* Slightly lighter gold/yellow for accent */
    --light-color: #f9f9f9; /* Light background */
    --dark-color: #333333; /* Dark text */
    --gray-color: #666666; /* Medium gray */
    --light-gray: #eeeeee; /* Light gray for backgrounds */
    
    /* Typography */
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.15s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Reset & Base Styles
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-medium);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-xl) 0;
}

.accent {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary,
.btn-secondary,
.btn-tertiary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-tertiary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-size: 0.9rem;
    padding: 10px 20px;
}

.btn-tertiary:hover {
    background-color: #e69400;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
    background-color: var(--secondary-color);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: white;
}

.logo img {
    height: 50px;
    margin-right: var(--space-sm);
}

.logo span {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: var(--space-md);
}

.nav-link {
    color: white;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Header Scroll Effect */
.header.scrolled {
    padding: 5px 0;
    background-color: rgba(41, 128, 185, 0.95); /* Updated to match new secondary color */
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: var(--space-md);
        transition: right var(--transition-medium);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: var(--space-sm) 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    background-image: url('../images/p1.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 70px;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    max-width: 600px;
}

.hero-buttons {
    margin-bottom: var(--space-md);
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    margin-right: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.badge {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(5px);
}

.badge i, .badge img {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.badge img.rgi-badge {
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-badges {
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.about-content {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: var(--space-sm);
}

.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.credential {
    background-color: white;
    padding: var(--space-sm);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: transform var(--transition-medium);
}

.credential:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.credential i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.credential h4 {
    margin-bottom: 5px;
}

.credential p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.service-card h3 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.service-card p {
    margin-bottom: var(--space-sm);
    flex-grow: 1;
}

.service-features {
    margin-bottom: var(--space-sm);
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-card .btn-tertiary {
    align-self: center;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
    background-color: white;
}

.testimonial-summary {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.rating-overview {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars {
    margin: var(--space-xs) 0;
    color: var(--accent-color);
}

.rating-count {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.testimonials-slider {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-sm) 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    min-width: 300px;
    flex: 1;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-initial {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: var(--space-sm);
}

.author-details h4 {
    margin-bottom: 2px;
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
    gap: var(--space-sm);
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--secondary-color);
}

.google-reviews-link {
    text-align: center;
    margin-top: var(--space-md);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: var(--space-sm);
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.contact-details p, .contact-details a {
    margin-bottom: 0;
    color: var(--gray-color);
}

.operating-hours, .emergency-service {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.operating-hours h3, .emergency-service h3 {
    margin-bottom: var(--space-sm);
}

.operating-hours ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.operating-hours ul li span {
    font-weight: 600;
}

.emergency-service p {
    margin-bottom: var(--space-sm);
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    margin-top: var(--space-sm);
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# Map Section
--------------------------------------------------------------*/
.map-section {
    padding-top: 0;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-lg) 0 var(--space-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 45px;
    margin-bottom: var(--space-sm);
}

.footer-logo h3 {
    color: white;
    margin-bottom: 5px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
}

.footer h4 {
    color: white;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li,
.footer-services ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-color);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact ul li i {
    width: 25px;
    color: var(--accent-color);
    margin-right: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-medium);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    section {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    :root {
        --space-xl: 3rem;
        --space-lg: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo span {
        font-size: 1.5rem;
    }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

.fadeIn-delay-1 {
    animation-delay: 0.2s;
}

.fadeIn-delay-2 {
    animation-delay: 0.4s;
}

.fadeIn-delay-3 {
    animation-delay: 0.6s;
} 