/* Dan Cain Heating & Cooling - Delhi Township Microsite
   Brand Colors: Navy Blue, Orange (Bryant), White, Gray */

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

:root {
    --primary-navy: #1e3a5f;
    --primary-dark: #152a45;
    --accent-orange: #f7941d;
    --accent-orange-hover: #e8850a;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e2e8f0;
    --text-dark: #2d3748;
    --text-light: #718096;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

a {
    color: var(--primary-navy);
    text-decoration: none;
}

a:hover {
    color: var(--accent-orange);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo img,
.logo-img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-navy);
}

.phone-link:hover {
    color: var(--accent-orange);
}

.phone-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--primary-navy);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px 80px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.hero-intro {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.hero .btn-primary {
    background-color: var(--accent-orange);
}

.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-navy);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-orange);
}

/* Section Styles */
section {
    padding: 60px 20px;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 15px;
}

section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--light-gray);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-orange);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Service Area Section */
.area-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.area-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.area-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-tag {
    background: var(--white);
    color: var(--primary-navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--medium-gray);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: var(--accent-orange);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

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

.testimonial-location,
.testimonial-source {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Header call button */
.header-call-btn {
    font-size: 0.95rem;
    padding: 10px 18px;
    gap: 6px;
}

.header-call-btn svg {
    flex-shrink: 0;
}

/* Dan's Photo */
.dan-photo {
    text-align: center;
    margin: 30px 0 40px;
}

.dan-portrait {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .dan-portrait {
        max-width: 100%;
        border-radius: 8px;
    }

    .dan-photo {
        margin: 20px 0 30px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    font-size: 1.2rem;
    padding: 18px 36px;
}

.cta-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-orange);
}

.contact-item a {
    color: var(--white);
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--accent-orange);
}

.free-estimate {
    background: rgba(247, 148, 29, 0.2);
    border: 1px solid var(--accent-orange);
    border-radius: 8px;
    padding: 15px 25px;
    margin-top: 30px;
    display: inline-block;
}

.free-estimate strong {
    color: var(--accent-orange);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 50px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

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

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: var(--accent-orange);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-sticky-cta .btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo img,
    .logo-img {
        height: 40px;
    }

    .header-call-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .hero {
        padding: 40px 15px 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-sticky-cta {
        display: block;
    }

    .footer {
        padding-bottom: 100px; /* Space for sticky CTA */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-sticky-cta,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .hero {
        background: none;
        color: var(--text-dark);
        padding: 20px 0;
    }

    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}
