/* ============================================
   Plum-Rite Plumbing Services - Main Stylesheet
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d35400;
    --primary-dark: #b54600;
    --primary-light: #e67e22;
    --secondary-color: #34495e;
    --dark-bg: #333333;
    --light-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e7e7e7;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #444444 100%);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.header p {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Navigation Styles */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #444444;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    display: block;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-light);
    background-color: #555555;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 80%;
}

.navbar a.icon {
    display: none;
    font-size: 1.5rem;
    padding: 1rem;
}

/* Content Styles */
.content {
    padding: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex: 1;
}

.content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.content h3 {
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    border: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero .phone-number {
    font-size: 2rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    margin: 1rem 0;
}

/* Button Styles */
.btn,
button[type="submit"],
.service-price {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.btn:hover,
button[type="submit"]:hover,
.service-price:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Service Cards */
.services-section,
.equipment-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card,
.equipment-card {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before,
.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before,
.equipment-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover,
.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-title,
.equipment-name {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.service-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Testimonial Styles */
.testimonial {
    background: var(--light-bg);
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    position: relative;
    transition: var(--transition);
}

.testimonial:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial p {
    font-style: italic;
    margin-left: 2rem;
    position: relative;
    z-index: 1;
}

/* Team Member Styles */
.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.team-member {
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    width: 280px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
    display: block;
}

.team-member h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--primary-color);
    font-weight: 600;
}

/* Table Styles */
.responsive-table {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background-color: #f8f8f8;
}

table tr.highlight {
    background-color: #fff3cd;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: var(--light-bg);
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #222222 100%);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555555;
    text-align: center;
    color: #aaaaaa;
}

/* State License Notice */
.state-license-notice {
    background: linear-gradient(135deg, #ffcc00, #ffd633);
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    font-weight: 700;
    text-align: center;
    border: 2px solid #ffaa00;
}

/* Equipment Image */
.equipment-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

/* Call to Action Section */
.call-to-action {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
    border: 2px solid var(--primary-color);
}

.call-to-action h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero .phone-number {
        font-size: 1.5rem;
    }

    .navbar a:not(.icon) {
        display: none;
    }

    .navbar a.icon {
        display: block;
    }

    .navbar.responsive {
        flex-direction: column;
    }

    .navbar.responsive a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .content {
        padding: 20px;
        margin: 1rem;
    }

    .services-section,
    .equipment-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team {
        flex-direction: column;
        align-items: center;
    }

    .team-member {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    /* Responsive table for mobile */
    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }

    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .responsive-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 1rem;
        border-radius: 8px;
        padding: 1rem;
        background: var(--light-bg);
    }

    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 700;
        color: var(--secondary-color);
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    .content {
        box-shadow: none;
        margin: 0;
    }
}
