/* 
    Integrity Roof Solutions - Custom CSS
    No images used - CSS-only design
*/

:root {
    --primary-color: #0056b3;
    --secondary-color: #ff9800;
    --accent-color: #00bcd4;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #00bcd4 100%);
    --gradient-secondary: linear-gradient(135deg, #ff9800 0%, #f44336 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--dark-color);
}

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

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

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 50%, 100% 100%, 0% 100%, 0% 50%);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roof-shape {
    width: 300px;
    height: 200px;
    background: var(--gradient-secondary);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.accent-circles {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.accent-circles::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.main-article {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.category {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.article-content h3 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 20px;
}

.article-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: none;
}

.article-content ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.article-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 900;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color);
    transition: var(--transition);
}

.article-content a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.conclusion-box {
    margin-top: 50px;
    padding: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 15px;
}

.conclusion-box h3 {
    color: var(--white);
    border-left-color: var(--white);
    margin-top: 0;
}

.conclusion-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

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

.service-card {
    padding: 40px;
    background: var(--light-color);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 20px;
    position: relative;
}

.card-icon.shingle {
    clip-path: polygon(0% 20%, 50% 0%, 100% 20%, 100% 100%, 0% 100%);
}

.card-icon.metal {
    background: var(--gradient-secondary);
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
}

.card-icon.storm {
    background: linear-gradient(135deg, #607d8b 0%, #263238 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0 20px;
}

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

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .main-article {
        padding: 30px 20px;
    }
    
    .article-header h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
