/* Keystone Wind Damage Specialists - Stylesheet */

/* CSS Variables */
:root {
    --primary: #1E3A5F;
    --primary-dark: #152a45;
    --primary-light: #2a4f7a;
    --accent: #FF6B35;
    --accent-dark: #e55a28;
    --accent-light: #ff8555;
    --background: #F7F9FC;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.12);
    --shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.16);
    --shadow-xl: 0 16px 48px rgba(30, 58, 95, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: var(--gray-700);
}

.nav a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 500;
}

.hero-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-badges span::before {
    content: "✓";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: var(--accent);
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.service-card-full {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 30px;
}

.service-card-full .service-icon {
    flex-shrink: 0;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--gray-100);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.service-card p {
    color: var(--gray-600);
    font-size: 15px;
}

/* Service Area Section */
.service-area {
    padding: 100px 0;
    background-color: var(--white);
}

.service-area-content {
    max-width: 800px;
    margin: 0 auto;
}

.area-list {
    background-color: var(--background);
    border-radius: var(--radius-xl);
    padding: 50px;
    text-align: center;
    border: 2px solid var(--gray-200);
}

.area-list h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
}

.area-list ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.area-list li {
    padding: 12px 20px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.area-list li strong {
    color: var(--primary);
}

.area-note {
    font-size: 14px;
    color: var(--gray-500);
    font-style: italic;
}

/* Why Choose Us */
.why-choose {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent);
}

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

.feature-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-200);
    margin-bottom: 15px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

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

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
}

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

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

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

.contact-info {
    font-size: 16px;
    opacity: 0.85;
}

.contact-info p {
    margin: 5px 0;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-info a {
    color: var(--accent-light);
}

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

.footer-services h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-services ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.footer-services li {
    font-size: 13px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card-full {
        grid-column: span 2;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .area-list ul {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card-full {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .area-list {
        padding: 30px 20px;
    }
    
    .area-list ul {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-services ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .area-list ul {
        grid-template-columns: 1fr;
    }
}
