/* ===== Infinity Fireplace Services - Shared Styles ===== */
:root {
    --ember-orange: #B23A1E;
    --deep-charcoal: #2B2522;
    --warm-stone: #D98A3D;
    --soft-cream: #F4EEE6;
    --smoke-gray: #5c4f4a;
    --accent-gold: #D98A3D;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--deep-charcoal);
    background: var(--soft-cream);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(43, 37, 34, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 5%;
    border-bottom: 1px solid rgba(178, 58, 30, 0.25);
    display: flex;
    align-items: center;
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - supports image or text */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo img {
    height: 85px;
    width: auto;
    max-width: 320px;
    display: block;
}

.logo .logo-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--soft-cream);
    letter-spacing: 0.02em;
}

.logo .logo-text .flame { color: var(--ember-orange); }

nav ul { display: flex; gap: 2.2rem; list-style: none; align-items: center; }

nav a.navlink {
    color: var(--soft-cream);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a.navlink { color: #ffffff; }

nav a.navlink:hover, nav a.navlink.active { color: var(--ember-orange); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(43, 37, 34, 0.98);
    list-style: none;
    min-width: 220px;
    border-radius: 4px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(178, 58, 30, 0.2);
}

.dropdown:hover .dropdown-menu { max-height: 400px; opacity: 1; }

.dropdown-menu li { border-bottom: 1px solid rgba(178, 58, 30, 0.1); }

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(178, 58, 30, 0.15);
    color: var(--ember-orange);
    padding-left: 2rem;
}

/* menu-toggle defined in Responsive section below */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--ember-orange); color: #fff; box-shadow: 0 4px 20px rgba(178, 58, 30, 0.3); }
.btn-primary:hover { background: #d66330; transform: translateY(-2px); }

/* Page Hero */
.page-hero {
    margin-top: 0;
    background: linear-gradient(135deg, #2B2522 0%, #3a322c 100%);
    color: #ffffff;
    padding: 9rem 5% 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(43, 37, 34, 0.55);
}

.page-hero h1 { font-family: 'Crimson Pro', serif; font-size: 3.2rem; font-weight: 700; position: relative; z-index: 2; color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.page-hero p { position: relative; z-index: 2; color: #ffffff; font-size: 1.15rem; margin-top: 0.8rem; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

/* Section */
.hero-image {
    width: 100%;
    line-height: 0;
    background: var(--deep-charcoal);
}
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section { padding: 3.25rem 5%; }
.wrap { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-family: 'Crimson Pro', serif; font-size: 2.8rem; font-weight: 700; margin-bottom: 0.8rem; }
.section-header p { color: var(--smoke-gray); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

.intro-text { background: var(--soft-cream); }
.intro-text p { font-size: 1.12rem; color: var(--smoke-gray); margin-bottom: 1.3rem; max-width: 850px; margin-left: auto; margin-right: auto; }

.content-list { max-width: 700px; margin: 0 auto 2rem; list-style-position: inside; color: var(--smoke-gray); line-height: 2; }

/* Location Grid - Compact */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.7rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.location-tile {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--ember-orange);
    padding: 0.85rem 0.7rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
}

.location-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.location-tile h4 { font-family: 'Crimson Pro', serif; font-size: 0.92rem; color: var(--deep-charcoal); margin-bottom: 0.25rem; }
.location-tile p { font-size: 0.78rem; color: var(--smoke-gray); }

/* FAQ Accordion */
.faq-container { max-width: 900px; margin: 0 auto; }

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--ember-orange);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: #fafafa;
}

.faq-question:hover { background: #f5f5f5; }
.faq-question h3 { font-family: 'Crimson Pro', serif; font-size: 1.2rem; color: var(--deep-charcoal); margin: 0; }
.faq-toggle { font-size: 1.5rem; color: var(--ember-orange); transition: transform 0.3s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fff; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 1.5rem 1.5rem; color: var(--smoke-gray); line-height: 1.8; }

/* CTA Band */
.cta-band { background: linear-gradient(135deg, var(--ember-orange) 0%, #d66330 100%); color: #fff; text-align: center; padding: 4rem 5%; }
.cta-band h2 { font-family: 'Crimson Pro', serif; font-size: 2.6rem; margin-bottom: 1rem; }
.cta-band p { margin-bottom: 2rem; opacity: 0.95; }
.cta-band .btn-primary { background: #fff; color: var(--ember-orange); }
.cta-band .btn-primary:hover { background: var(--deep-charcoal); color: #fff; }

/* Footer */
footer { background: var(--deep-charcoal); color: #ffffff; padding: 3rem 5% 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: block; text-align: center; margin-bottom: 2rem; }
.footer-grid h4 { font-family: 'Crimson Pro', serif; color: var(--soft-cream); font-size: 1.3rem; margin-bottom: 1rem; }
.footer-grid a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.footer-grid a:hover { color: var(--ember-orange); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(219, 200, 182, 0.15); padding-top: 1.5rem; font-size: 0.9rem; }
.social-row { display: flex; gap: 1.3rem; margin-top: 0.8rem; justify-content: center; flex-wrap: wrap; }
.social-row a { color: #ffffff; text-decoration: none; }
.social-row a:hover { color: var(--ember-orange); }

/* Contact box */
.contact-box { background: #fff; padding: 2rem; border-radius: 4px; border-left: 4px solid var(--ember-orange); max-width: 500px; margin: 0 auto; }
.contact-box p { margin-bottom: 0.8rem; }
.contact-box strong { color: var(--ember-orange); }

/* Responsive */
/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    margin-left: auto;
    line-height: 1;
}

.menu-toggle:hover { color: var(--ember-orange); }

/* Mobile Menu */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(43, 37, 34, 0.98);
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
        align-items: stretch;
        border-bottom: 2px solid rgba(178, 58, 30, 0.3);
    }
    
    nav ul.open {
        max-height: calc(100vh - 70px);
        padding: 1rem 0;
        overflow-y: auto;
    }
    
    nav ul li {
        padding: 0.9rem 5%;
        border-bottom: 1px solid rgba(178, 58, 30, 0.1);
    }
    
    nav ul li a {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        background: rgba(55, 47, 42, 0.98);
        max-height: 0;
        border: none;
        opacity: 1;
        margin: 0;
        min-width: 0;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu { max-height: 0; }
    
    .dropdown.open .dropdown-menu { max-height: 500px; }
    
    .dropdown-menu a {
        padding: 0.7rem 1.5rem 0.7rem 2rem;
    }
}

@media (max-width: 640px) {
    .page-hero h1 { font-size: 2rem; }
    .location-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .section-header h2 { font-size: 2.1rem; }
    .logo .logo-text { font-size: 1.1rem; }
    .logo img { height: 64px; max-width: 280px; }
}

/* Sticky Call-Now button (mobile) */
.call-fab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--ember-orange);
    color: #fff !important;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem;
    box-shadow: 0 -3px 16px rgba(0,0,0,0.35);
    letter-spacing: 0.02em;
}
.call-fab svg { width: 22px; height: 22px; fill: #fff; }
.call-fab:active { background: #9a3119; }

@media (max-width: 900px) {
    .call-fab { display: flex; }
    /* keep footer/content clear of the fixed bar */
    footer { padding-bottom: 5rem; }
}

/* Contact form */
.contact-form { max-width: 640px; margin: 2.5rem auto 0; text-align: left; }
.contact-form .form-group { margin-bottom: 1.3rem; }
.contact-form label { display: block; font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--deep-charcoal); margin-bottom: 0.4rem; font-size: 0.95rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--deep-charcoal);
    background: #fff;
    border: 1.5px solid #d8cfc4;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ember-orange);
    box-shadow: 0 0 0 3px rgba(178, 58, 30, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
    background: var(--ember-orange);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(178, 58, 30, 0.25);
}
.contact-form button:hover { background: #9a3119; transform: translateY(-1px); }

/* Merged service-page blocks */
.service-blocks { max-width: 900px; margin: 2.5rem auto 0; }
.service-block {
    padding: 1.8rem 0;
    border-bottom: 1px solid #e4dccf;
}
.service-block:last-child { border-bottom: none; }
.service-block h3 {
    font-family: 'Crimson Pro', serif;
    color: var(--ember-orange);
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
}
.service-block p {
    color: var(--deep-charcoal);
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

/* Hero images: shrink on desktop, full-width on mobile (mobile left as-is) */
@media (min-width: 901px) {
    .hero-image img { max-width: 820px; margin-left: auto; margin-right: auto; }
}
