/* ===================================
   Global Styles & Reset
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0047AB;
    --light-blue: #1E90FF;
    --dark-blue: #003380;
    --primary-orange: #FF6B35;
    --light-orange: #FF8C42;
    --dark-orange: #E85D27;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --text-dark: #2C3E50;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   Header & Navigation
   =================================== */
header {
    background: #edeced;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 120px;
    width: auto;
}

.call-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.call-btn:hover {
    background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.call-btn svg {
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, var(--light-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 0L100 50L50 100L0 50z" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light-orange);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    border: 3px solid var(--white);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--light-orange), var(--primary-orange));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.2);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 25px 25px 15px;
}

.service-card p {
    padding: 0 25px 25px;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

.why-choose h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.feature h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature p {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ===================================
   Roofing Types Section
   =================================== */
.roofing-types {
    padding: 80px 0;
    background-color: var(--white);
}

.roofing-types h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.type-item {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 35px 30px;
    border-radius: 15px;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 71, 171, 0.2);
}

.type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.3);
}

.type-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light-orange);
}

.type-item p {
    line-height: 1.7;
    opacity: 0.95;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-section .cta-button {
    background: var(--white);
    color: var(--primary-orange);
    border: 3px solid var(--white);
}

.cta-section .cta-button:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--white);
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.faq h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.faq-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 50px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 25px rgba(0, 71, 171, 0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question span {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-orange);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--medium-gray);
    line-height: 1.8;
    font-size: 16px;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

.contact h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-orange);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.2);
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 16px;
    color: var(--medium-gray);
    line-height: 1.7;
}

.contact-card a {
    color: var(--primary-orange);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--dark-orange);
}

.contact-form-area {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 71, 171, 0.25);
}

.form-placeholder-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.form-placeholder-content p {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 30px;
    opacity: 0.95;
}

.contact-cta-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: var(--white);
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    border: 3px solid var(--white);
}

.contact-cta-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-orange);
}

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

.footer-logo img {
    max-height: 100px;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.85;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-orange);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    opacity: 0.9;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--light-orange);
}

.footer-contact a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--light-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    opacity: 0.8;
    font-size: 14px;
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .services h2,
    .why-choose h2,
    .roofing-types h2,
    .contact h2,
    .cta-section h2 {
        font-size: 32px;
    }

    .services,
    .why-choose,
    .roofing-types,
    .contact,
    .cta-section,
    .faq {
        padding: 50px 0;
    }

    .services-grid,
    .features-grid,
    .types-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq h2,
    .faq-subtitle {
        padding: 0 15px;
    }

    .logo img {
        max-height: 80px;
    }

    .call-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 16px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-area {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .container {
        padding: 0 15px;
    }

    .service-card h3,
    .type-item h3 {
        font-size: 20px;
    }

    .feature h3 {
        font-size: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* ===================================
   Accessibility & Print Styles
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    header {
        position: static;
    }

    .call-btn,
    .cta-button {
        display: none;
    }
}