/* 
   H.E. Chimney Service - Premium Design System
   Brand: Home Efficiency
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Brand Colors (Disability Compliant Contrast) */
    --gold: #A67C00;
    --gold-glow: rgba(166, 124, 0, 0.2);
    --crimson: #9B1B1B; /* Sophisticated red for accents */
    --crimson-light: rgba(155, 27, 27, 0.05);
    --dark: #FFFFFF;
    --dark-grey: #EDF0F3; /* Darkened for better section distinction */
    --light-grey: #4A4A4F;
    --white: #1A1A1B;
    --error: #9B1B1B;
    
    /* Typography */
    --font-header: 'Libre Baskerville', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Contact Info (Short Form Coding) */
    --company-phone: "610-438-3577";
    --company-email: "service@hechimney.com";
}

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

body {
    background-color: var(--dark);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

/* Short Form Utility */
.he-phone::after { content: var(--company-phone); }
.he-email::after { content: var(--company-email); }

/* Global Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

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

.header-phone {
    font-weight: 700;
    color: var(--gold);
}

.header-btn {
    padding: 12px 25px !important;
    font-size: 0.85rem !important;
}

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

section {
    padding: 100px 0;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-family: var(--font-header);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
    color: var(--dark);
    box-shadow: 0 10px 20px var(--gold-glow);
}

.card:hover {
            border-color: var(--crimson);
            transform: translateY(-5px);
        }

        .danger-card {
            border-left: 4px solid var(--crimson) !important;
            background: var(--crimson-light) !important;
        }

        .section-title.accent {
            color: var(--crimson);
        }

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--gold-glow);
    background: var(--white);
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: rgba(166, 124, 0, 0.05); /* Slight background for better visibility */
    font-weight: 900;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Glassmorphism (Lightened) */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Typography Helpers */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.section-subtitle {
    color: var(--light-grey);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* CTA Spacing & Consistency Utilities */
.cta-box {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.section-cta {
    margin-top: 50px;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--light-grey);
}

.footer-links a {
    text-decoration: underline;
    margin: 0 10px;
}

/* Step Grid & Premium Cards */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(166, 124, 0, 0.1);
}

.step-icon-wrap {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    box-shadow: 0 10px 20px var(--gold-glow);
    position: relative;
    z-index: 2;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--white);
    letter-spacing: 0.05em;
}

.step-card p {
    font-size: 1.05rem;
    color: var(--light-grey);
    line-height: 1.6;
}

.step-line {
    position: absolute;
    top: 90px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--gold) 0%, transparent 100%);
    z-index: 1;
    opacity: 0.2;
}

@media (max-width: 768px) {
    .step-line { display: none; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    text-align: center;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Page Hero (Subpages) */
.page-hero {
    min-height: 450px;
    padding: 140px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('hero.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -80px;
    color: white;
}

.page-hero h1 {
    color: white;
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0;
}

/* Policy Page Layout (Pull-up effect) */
.policy-container {
    max-width: 900px;
    margin: -180px auto 80px;
    padding: 60px;
    position: relative;
    z-index: 10;
}

.policy-content h2 {
    font-size: 1.6rem;
    margin-top: 45px;
    margin-bottom: 20px;
    color: var(--crimson);
    border-bottom: 2px solid var(--gold-glow);
    padding-bottom: 5px;
    display: inline-block;
}

.policy-content h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--white);
}

.policy-content p, .policy-content li {
    margin-bottom: 18px;
    color: var(--white);
    line-height: 1.8;
}

.policy-content ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.policy-content .effective-date {
    font-weight: 700;
    color: var(--light-grey);
    margin-bottom: 40px;
    display: block;
}
