/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d7543a;
    --secondary-color: #36454f;
    --accent-color: #b8c6d1;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    height: 80px;
    transition: height 0.3s ease, padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.navbar-shrink {
    height: 50px;
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 48px;
    transition: var(--transition);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar.navbar-shrink .logo img {
    height: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.navbar.navbar-shrink .nav-menu li a {
    font-size: 0.95rem;
    padding: 0.3rem 0;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.hamburger:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-light) 0%, #e8ecf0 100%);
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 0.8s ease forwards;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Stats Dashboard */
.hero-visual {
    animation: fadeInRight 0.8s ease forwards;
}

.stats-dashboard {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid #e5e7eb;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.chart-container {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 80px;
    margin-bottom: 1rem;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, var(--primary-color), #e57469);
    height: 0;
    animation-fill-mode: forwards;
}

.chart-bar:nth-child(1) { animation: growTo35 1.5s ease 0.1s forwards; }
.chart-bar:nth-child(2) { animation: growTo60 1.5s ease 0.2s forwards; }
.chart-bar:nth-child(3) { animation: growTo25 1.5s ease 0.3s forwards; }
.chart-bar:nth-child(4) { animation: growTo80 1.5s ease 0.4s forwards; }
.chart-bar:nth-child(5) { animation: growTo45 1.5s ease 0.5s forwards; }
.chart-bar:nth-child(6) { animation: growTo90 1.5s ease 0.6s forwards; }
.chart-bar:nth-child(7) { animation: growTo55 1.5s ease 0.7s forwards; }
.chart-bar:nth-child(8) { animation: growTo75 1.5s ease 0.8s forwards; }

@keyframes growTo35 { from { height: 0; } to { height: 35%; } }
@keyframes growTo60 { from { height: 0; } to { height: 60%; } }
@keyframes growTo25 { from { height: 0; } to { height: 25%; } }
@keyframes growTo80 { from { height: 0; } to { height: 80%; } }
@keyframes growTo45 { from { height: 0; } to { height: 45%; } }
@keyframes growTo90 { from { height: 0; } to { height: 90%; } }
@keyframes growTo55 { from { height: 0; } to { height: 55%; } }
@keyframes growTo75 { from { height: 0; } to { height: 75%; } }

.chart-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Services Section */
.main-content {
    padding: 100px 0;
    background: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-block {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.service-block:hover {
    transform: translateY(-10px);
}

.service-block-left {
    grid-row: span 2;
}

.service-block-left .service-block-bg {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8b4c0 100%);
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.service-block-right .service-block-bg {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    border-radius: 20px;
    height: 100%;
}

.right-blocks {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-block-icon {
    margin-bottom: 2rem;
}

.service-block-left .service-block-icon i {
    font-size: 4rem;
    color: var(--secondary-color);
}

.service-block-right .service-block-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.service-block h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.service-block-left h3 {
    font-size: 3rem;
    color: var(--secondary-color);
}

.service-block p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.service-block-left p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.roofing-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.roofing-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.service-more-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
}

.service-more-btn:hover {
    background: #c44932;
    transform: translateY(-2px);
}

/* Network Benefits Section */
.network-benefits-section {
    padding: 100px 0;
    background: white;
}

.network-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.network-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.network-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.network-header-lined {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.why-it-works {
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-image {
    width: 100%;
    max-width: 450px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.network-points {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.network-points ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.network-points li {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.network-points li strong {
    color: var(--primary-color);
}

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

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-section .cta-primary {
    background: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 280px;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section a {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #9ca3af;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Mobile First Approach */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-block-left {
        grid-row: span 1;
    }
    
    .network-flex {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .network-points ul {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        height: calc(100vh - 80px);
        overflow-y: auto;
        gap: 0;
    }
    
    .navbar.navbar-shrink .nav-menu {
        top: 50px;
        height: calc(100vh - 50px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li a::after {
        display: none;
    }
    
    /* Hero Mobile */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .stats-dashboard {
        margin: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-container {
        height: 60px;
    }
    
    /* Services Mobile */
    .main-content {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .service-block-left {
        grid-row: span 1;
    }
    
    .service-block {
        border-radius: 12px;
    }
    
    .service-block-left .service-block-bg {
        padding: 2rem;
        min-height: auto;
        border-radius: 12px;
    }
    
    .service-block-right .service-block-bg {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .service-block-left h3 {
        font-size: 2.2rem;
    }
    
    .service-block h3 {
        font-size: 1.8rem;
    }
    
    .roofing-categories-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Network Mobile */
    .network-benefits-section {
        padding: 60px 0;
    }
    
    .network-flex {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .network-header-lined {
        border-left-width: 3px;
        padding-left: 1rem;
    }
    
    .network-header h2 {
        font-size: 2.2rem;
    }
    
    .network-image {
        max-width: 95%;
        border-radius: 8px;
    }
    
    .network-points {
        padding: 1.5rem;
        border-radius: 12px;
        margin: 0 20px;
    }
    
    .network-points ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .network-points li {
        padding: 1rem;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 0 20px;
    }
    
    .cta-section .cta-primary {
        width: 100%;
        max-width: 350px;
        min-width: 0;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 20px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container, .nav-container {
        padding: 0 15px;
    }
    
    /* Navigation Small Mobile */
    .logo img {
        height: 35px;
    }
    
    .navbar.navbar-shrink .logo img {
        height: 25px;
    }
    
    .nav-menu li a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    /* Hero Small Mobile */
    .hero {
        padding-top: 120px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .stats-dashboard {
        margin: 0 15px;
        padding: 1.5rem;
    }
    
    /* Services Small Mobile */
    .section-header {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .services-grid {
        padding: 0 15px;
    }
    
    .service-block-bg {
        padding: 1.5rem !important;
    }
    
    .service-block-left h3 {
        font-size: 2rem;
    }
    
    .service-block h3 {
        font-size: 1.6rem;
    }
    
    /* Network Small Mobile */
    .network-flex {
        padding: 0 15px;
    }
    
    .network-points {
        margin: 0 15px;
        padding: 1rem;
    }
    
    .network-points li {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* CTA Small Mobile */
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .cta-buttons {
        padding: 0 15px;
    }
    
    .cta-section .cta-primary {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Footer Small Mobile */
    .footer-content {
        padding: 0 15px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .stats-dashboard {
        margin: 0 10px;
        padding: 1.2rem;
    }
    
    .services-grid, .network-flex, .network-points, .cta-buttons {
        margin: 0 10px;
    }
    
    .footer-content {
        padding: 0 10px;
    }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .container, .nav-container, .hero-container, .network-flex, .footer-content {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}
