/* ==========================================================================
   Lionheart Roofing Contractors - Modern Stylesheet
   Color Palette: Deep Slate Navy (#0f172a, #1e293b), Emerald Accent (#059669, #047857)
   ========================================================================== */

:root {
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-color: #059669;
    --accent-hover: #047857;
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo a {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-logo a:hover {
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav a {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.site-nav .nav-cta-btn {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.site-nav .nav-cta-btn:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.hero-content h1 {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    font-weight: 800;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtext {
    font-size: 1.15rem;
    max-width: 820px;
    margin: 0 auto 2rem auto;
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==========================================================================
   Content Cards & Layout
   ========================================================================== */
.main-content {
    padding: 3rem 0;
}

.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

h2 {
    color: var(--primary-dark);
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

h3 {
    color: var(--secondary-dark);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.7rem 0;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.styled-benefits-list {
    margin: 1rem 0 1.5rem 1.5rem;
}

.styled-benefits-list li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   Process Cards
   ========================================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 1.25rem;
    border-radius: 0 6px 6px 0;
}

.step-box h3 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.step-box p {
    font-size: 0.98rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.98rem;
}

.data-table th, .data-table td {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-dark);
    color: #ffffff;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* ==========================================================================
   Highlight Section
   ========================================================================== */
.highlight-card {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.highlight-card h2 {
    color: #065f46;
    border-bottom-color: #a7f3d0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    background-color: #ffffff;
}

.faq-question {
    padding: 1.1rem 1.3rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    cursor: pointer;
    background-color: var(--bg-light);
    position: relative;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #e2e8f0;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 1.3rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.faq-item.active .faq-question::after {
    content: "-";
}

.faq-answer {
    display: none;
    padding: 1.2rem;
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    margin-top: 2.5rem;
}

.contact-card {
    background-color: var(--secondary-dark);
    color: #ffffff;
    text-align: center;
    border: none;
}

.contact-card h2 {
    color: #ffffff;
    border-bottom: none;
}

.contact-card p {
    color: #cbd5e1;
}

.contact-info {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-info a {
    color: #34d399;
}

.contact-cta {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 0.8rem;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-subtext {
        font-size: 1.0rem;
    }

    .content-card {
        padding: 1.4rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}