/* --- Roofing Master Variables (Dark Mode) --- */
:root {
    --bg-darker: #050505; /* True Black */
    --bg-dark: #0f1115; /* Slate Black */
    --card-bg: #1A1D24;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --accent: #F59E0B; /* Premium Gold/Amber */
    --accent-hover: #D97706;
    --border-dark: #272A30;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.dark-theme {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-gray);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 120px 0; }
.bg-darker { background-color: var(--bg-dark); }
.bg-black { background-color: var(--bg-darker); }
.text-white { color: var(--text-white); }
.text-accent { color: var(--accent); }
.noselect { user-select: none; -webkit-user-select: none; }

/* --- Disclaimer Banner --- */
.josef-preview-banner {
    background: var(--accent);
    color: #000;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    position: relative;
    z-index: 2000;
}

/* --- Dark Header --- */
.dark-header {
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.5px; color: var(--text-white); }
.desktop-nav a { text-decoration: none; color: var(--text-white); font-weight: 500; margin: 0 1rem; transition: color 0.3s; }
.desktop-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.link-back { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.link-back:hover { color: var(--text-white); }

/* Buttons */
.btn-accent { background: var(--accent); color: #000; padding: 0.8rem 1.8rem; border-radius: 4px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s ease; display: inline-block; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2); }
.btn-outline { background: transparent; color: var(--text-white); border: 1px solid var(--text-white); padding: 0.8rem 1.8rem; border-radius: 4px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-outline:hover { background: var(--text-white); color: #000; }
.w-100 { width: 100%; }

/* --- Hero Section (Centered & Parallax) --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1632154933405-197e7428f5a6?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.6), var(--bg-dark));
    z-index: 1;
}

.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.pill-badge {
    display: inline-block;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* --- Floating Stats (The Overlap) --- */
.floating-stats-wrapper {
    position: absolute;
    bottom: -50px; /* Pulls it down over the next section */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 10;
}

.floating-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.stat-box {
    text-align: center;
    padding: 2.5rem 1rem;
    border-right: 1px solid var(--border-dark);
}
.stat-box:last-child { border-right: none; }
.stat-box h3 { font-size: 2.5rem; color: var(--accent); font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.stat-box p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Spacer to push content down below the floating stats */
.mt-spacer { margin-top: 60px; }

/* --- Services Grid --- */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.dark-card { background: var(--card-bg); border: 1px solid var(--border-dark); padding: 3rem 2rem; border-radius: 8px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.dark-card .card-icon { font-size: 3rem; margin-bottom: 1.5rem; display: inline-block; padding: 1rem; background: rgba(245, 158, 11, 0.1); border-radius: 8px; }
.dark-card h3 { color: var(--text-white); font-size: 1.3rem; margin-bottom: 1rem; }

/* The Lift Animation on Hover */
.lift-effect:hover { transform: translateY(-15px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* --- Contact CTA --- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta-text h2 { font-size: 3rem; color: var(--text-white); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.accent-list { list-style: none; margin-top: 2rem; }
.accent-list li { margin-bottom: 1rem; color: var(--text-white); font-weight: 500; display: flex; gap: 10px; }
.accent-list li::first-letter { color: var(--accent); }

.dark-form { background: var(--card-bg); padding: 3rem; border-radius: 8px; border: 1px solid var(--border-dark); display: flex; flex-direction: column; gap: 1.5rem; }
.dark-form input, .dark-form select { width: 100%; padding: 1.2rem; background: var(--bg-dark); border: 1px solid var(--border-dark); color: var(--text-white); border-radius: 4px; font-family: inherit; outline: none; transition: border 0.3s; }
.dark-form input:focus, .dark-form select:focus { border-color: var(--accent); }

/* --- Footer --- */
.dark-footer { background: #000; padding: 60px 0; text-align: center; border-top: 1px solid var(--border-dark); }
.footer-logo { font-size: 1.5rem; font-weight: 900; color: var(--text-white); margin-bottom: 1rem; }
.legal-text { margin-top: 1.5rem; font-size: 0.85rem; color: #4B5563; }

/* --- KEYFRAME ANIMATIONS (The Movement) --- */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.stagger-animation .pill-badge { animation-delay: 0.1s; }
.stagger-animation h1 { animation-delay: 0.3s; }
.stagger-animation p { animation-delay: 0.5s; }
.stagger-animation .hero-actions { animation-delay: 0.7s; }

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Subtle pulse for the main CTA */
.pulse-btn { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .floating-stats-wrapper { position: relative; bottom: 0; transform: none; left: 0; width: 100%; margin-top: 3rem; }
    .floating-stats { grid-template-columns: 1fr; }
    .stat-box { border-right: none; border-bottom: 1px solid var(--border-dark); }
    .cta-grid { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
}
/* --- Team Section --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.team-member { text-align: center; padding: 2rem; }
.member-img { height: 250px; background-size: cover; background-position: center; border-radius: 8px; margin-bottom: 1.5rem; filter: grayscale(50%); transition: filter 0.3s; }
.team-member:hover .member-img { filter: grayscale(0%); }
.team-member h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.team-member p { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- FAQ Section --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { padding: 2rem 0; }
.dark-border { border-bottom: 1px solid var(--border-dark); }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-white); }
.faq-item p { color: var(--text-gray); font-size: 1.05rem; }