/* 
   Affordable Climate Control (A.C.C) Website Styles
   A professional HVAC company website
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #e63946;
    --accent-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
    --light-text: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #004494;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.alternate-bg {
    background-color: var(--accent-color);
}

/* ===== Header ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 700;
}

.tagline {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: -5px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.btn-contact {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: #d32f3a;
    color: var(--light-text);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://placehold.co/1200x600/e9e9e9/5a5a5a?text=HVAC+Services') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== Services Overview ===== */
.services-overview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* ===== Why Choose Us ===== */
.why-choose-us {
    background-color: var(--accent-color);
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== Testimonials ===== */
.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 350px;
    position: relative;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial::before {
    content: '"';
    font-size: 5rem;
    color: rgba(0, 86, 179, 0.1);
    position: absolute;
    top: 10px;
    left: 10px;
    line-height: 1;
}

.client {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--accent-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* QR Code Styles */
#contact-qrcode {
    margin-top: 2rem;
    text-align: center;
}

#contact-qrcode img {
    max-width: 120px;
    margin: 0 auto;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
}

.qr-label {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-top: 0.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--secondary-color);
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-services ul li a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://placehold.co/1200x400/e9e9e9/5a5a5a?text=HVAC+Services') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 0;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ===== Service Detail Page ===== */
.service-detail {
    padding: 4rem 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.service-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-text h3 {
    margin: 2rem 0 1rem;
}

.service-text ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-text ul li {
    margin-bottom: 0.8rem;
}

.maintenance-importance h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.importance-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.importance-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.maintenance-cta {
    text-align: center;
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.maintenance-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ===== Service Process ===== */
.service-process {
    background-color: var(--accent-color);
}

.service-process h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.process-step {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://placehold.co/1200x400/e9e9e9/5a5a5a?text=HVAC+Services') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cta-section #contact-qrcode {
    margin: 1rem auto 2rem;
    text-align: center;
}

.cta-section #contact-qrcode img {
    max-width: 120px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.9);
}

.cta-section .qr-label {
    color: var(--light-text);
    margin-top: 0.5rem;
}

/* ===== About Page Styles ===== */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.member-image img {
    width: 100%;
}

.member-bio {
    padding: 1.5rem;
}

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    text-align: center;
}

.member-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.credentials-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.credentials-text h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.credentials-text ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.credentials-text ul li {
    margin-bottom: 0.8rem;
}

.experience-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: center;
}

.experience-text ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.experience-text ul li {
    margin-bottom: 0.8rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
    padding-left: 1.5rem;
}

/* ===== Mobile Menu Styles ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}

/* ===== Testimonial Slider Styles ===== */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* ===== Animation Styles ===== */
.service-card, .feature, .importance-item, .process-step, .value-item, .team-member {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .service-content,
    .about-content,
    .credentials-content,
    .experience-content {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        order: -1;
    }
    
    .about-image,
    .credentials-image,
    .experience-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
        align-items: center;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card,
    .feature,
    .testimonial,
    .importance-item,
    .process-step,
    .value-item {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}
