/* 
   Roof Relic - Premium CSS 
   Custom-made for Roofing & Storm Restoration
*/

:root {
    --primary: #c0392b; /* Deep Red for Trust/Strength */
    --primary-light: #e74c3c;
    --secondary: #2c3e50; /* Slate Blue/Grey for Professionalism */
    --accent: #f39c12; /* Gold for Quality/Insurance */
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --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: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

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

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary) 25%, transparent 25%),
                linear-gradient(-45deg, var(--primary) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, var(--primary) 75%),
                linear-gradient(-45deg, transparent 75%, var(--primary) 75%);
    background-size: 40px 40px;
    opacity: 0.03;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(192, 57, 43, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 25px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Content Section (Article) */
.content-section {
    padding: 100px 0;
    background: var(--white);
}

.blog-layout {
    max-width: 900px;
    margin: 0 auto;
}

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

.article-header h2 {
    font-size: 42px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-body p {
    margin-bottom: 25px;
    font-size: 17px;
    color: #444;
}

.article-body h3 {
    font-size: 28px;
    color: var(--secondary);
    margin: 50px 0 25px;
    padding-left: 20px;
    border-left: 5px solid var(--primary);
}

.styled-list {
    margin: 25px 0 40px;
    padding-left: 20px;
}

.styled-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
}

.situation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.situation-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

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

.situation-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.warning-box {
    background: #fff8f0;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #ffe8cc;
    margin: 40px 0;
}

.warning-box p {
    margin-bottom: 15px;
}

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

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

.section-header h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 15px;
}

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

.service-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.service-icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary);
    margin: 0 auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: var(--secondary);
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.check-list li::before {
    content: '✓';
    margin-right: 15px;
    color: var(--primary);
    font-weight: 900;
    font-size: 20px;
}

.about-visual {
    flex: 1;
}

.visual-box {
    width: 100%;
    height: 400px;
    background: var(--secondary);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-box::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 48%, var(--primary) 50%, transparent 52%);
    opacity: 0.1;
    animation: slide 10s linear infinite;
}

@keyframes slide {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.visual-inner {
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.stat {
    display: block;
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
}

.stat-text {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 60px;
    background: var(--secondary);
    color: var(--white);
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info h2 span {
    color: var(--primary-light);
}

.contact-details {
    margin-top: 40px;
}

.detail-item {
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-form-box {
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: #1a252f;
    color: #bdc3c7;
    padding: 80px 0 30px;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 48px; }
    .about-flex { flex-direction: column; gap: 50px; }
    .contact-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 40px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 { font-size: 38px; }
    .article-header h2 { font-size: 32px; }
    .hero-btns { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
