/* ============================================
   MERCY ROOFING — Global Styles
   Navy: #001F3F  |  Gold: #C5B358
   Font: Montserrat
   ============================================ */

:root {
    --navy: #001F3F;
    --navy-light: #002B57;
    --navy-dark: #00152B;
    --gold: #C5B358;
    --gold-light: #D4C46A;
    --gold-dim: rgba(197, 179, 88, 0.15);
    --gold-border: rgba(197, 179, 88, 0.3);
    --cream: #FAF8F2;
    --cream-dark: #F0ECDF;
    --gray: #6B7B8D;
    --gray-light: #9BAAB8;
    --charcoal: #1A1A1A;
    --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }


/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--navy-dark);
    border-bottom: 2px solid var(--gold);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-mercy {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
}

.nav-logo-roofing {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3.5px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(197, 179, 88, 0.08);
}

.nav-links .nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 700;
    margin-left: 8px;
}

.nav-links .nav-cta:hover {
    background: var(--gold-light);
}

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

.nav-dropdown > a::after {
    content: ' ▾';
    font-size: 0.7rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-dark);
    border: 1px solid rgba(197, 179, 88, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    z-index: 200;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.82rem;
    border-radius: 0;
}

.dropdown-label {
    padding: 6px 20px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    pointer-events: none;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    margin: 5px 0;
    transition: all 0.3s ease;
}


/* ---- HERO (index only) ---- */
.hero {
    margin-top: 68px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(197,179,88,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 20%, rgba(0,43,87,0.5) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 88px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero-text h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero-text p {
    color: var(--gray-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.badge {
    background: rgba(197,179,88,0.08);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.hero-phone:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(197,179,88,0.25);
}

.hero-phone svg {
    width: 20px;
    height: 20px;
}


/* ---- FORM CARD ---- */
.form-card {
    background: var(--white);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(197,179,88,0.1);
}

.form-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.form-sub {
    color: var(--gray);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D5D9DD;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: var(--charcoal);
    background: var(--cream);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 72px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.form-submit:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(197,179,88,0.3);
}

.form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 10px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show { display: block; }
.form-fields.hidden { display: none; }

.form-success h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray);
    font-size: 0.95rem;
}


/* ---- SECTION COMMONS ---- */
.section {
    padding: 80px 24px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-desc {
    color: var(--gray);
    font-size: 1rem;
    max-width: 620px;
    margin-bottom: 44px;
    line-height: 1.7;
}

.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-navy {
    background: var(--navy);
}
.bg-navy .section-title { color: var(--white); }
.bg-navy .section-desc { color: var(--gray-light); }


/* ---- NEIGHBORHOOD CARDS ---- */
.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hood-card {
    background: var(--cream);
    border: 1.5px solid var(--cream-dark);
    border-radius: 12px;
    padding: 28px 18px;
    text-align: center;
    transition: all 0.25s ease;
}

.bg-white .hood-card {
    background: var(--cream);
}

.hood-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px var(--gold-dim);
    transform: translateY(-3px);
}

.hood-card .hood-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hood-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.hood-card p {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.5;
}


/* ---- SHOWCASE (before/after) ---- */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--navy);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--gold-border);
}


/* ---- LEARN / CONTENT CARDS ---- */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.learn-card {
    background: rgba(197,179,88,0.04);
    border: 1px solid rgba(197,179,88,0.12);
    border-radius: 14px;
    padding: 32px 24px;
    transition: all 0.25s ease;
}

.bg-navy .learn-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

.learn-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.bg-navy .learn-card:hover {
    background: rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.learn-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.learn-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.bg-navy .learn-card h3 { color: var(--white); }

.learn-card p {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bg-navy .learn-card p { color: var(--gray-light); }

.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.material-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    padding: 3px 10px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.material-tag:hover {
    background: rgba(197,179,88,0.25);
}


/* ---- TESTIMONIAL ---- */
.testimonial-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border: 1.5px solid var(--cream-dark);
    border-radius: 14px;
    padding: 36px 32px;
    text-align: center;
}

.bg-navy .testimonial-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 16px;
}

.bg-navy .testimonial-card blockquote { color: var(--white); }

.testimonial-card cite {
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 600;
    color: var(--gray);
}

.testimonial-card .cite-source {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--gray-light);
}


/* ---- ABOUT / TRUST ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.trust-list {
    display: grid;
    gap: 18px;
}

.trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.trust-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--gold-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.trust-item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.trust-item p {
    font-size: 0.84rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}


/* ---- CTA BANNER ---- */
.cta-banner {
    padding: 64px 24px;
    background: var(--gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    position: relative;
}

.cta-banner p {
    color: rgba(0,31,63,0.7);
    font-size: 1.05rem;
    margin-bottom: 28px;
    position: relative;
}

.cta-banner .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.cta-banner .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}


/* ---- FOOTER ---- */
.footer {
    background: var(--navy-dark);
    padding: 48px 24px 28px;
    border-top: 2px solid var(--gold);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-brand img {
    height: 32px;
}

.footer-brand-text {
    font-weight: 800;
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-info p {
    color: var(--gray-light);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-info a {
    color: var(--gold);
    font-weight: 600;
}

.footer-links h4 {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    color: var(--gray-light);
    font-size: 0.85rem;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(197,179,88,0.12);
    text-align: center;
    color: var(--gray);
    font-size: 0.78rem;
}


/* ---- CONTENT PAGE HERO (subpages) ---- */
.page-hero {
    margin-top: 68px;
    background: var(--navy);
    padding: 56px 24px 48px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.page-hero p {
    color: var(--gray-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .breadcrumb {
    margin-bottom: 20px;
    font-size: 0.82rem;
}

.page-hero .breadcrumb a {
    color: var(--gold);
    font-weight: 600;
}

.page-hero .breadcrumb span {
    color: var(--gray-light);
}


/* ---- CONTENT BODY (subpages) ---- */
.content-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.content-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin: 40px 0 14px;
}

.content-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 32px 0 10px;
}

.content-body p {
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-placeholder {
    background: var(--gold-dim);
    border: 2px dashed var(--gold-border);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    margin: 32px 0;
}

.content-placeholder p {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}


/* ---- SUBPAGE GRID (section landing pages) ---- */
.subpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.subpage-card {
    display: block;
    background: var(--white);
    border: 1.5px solid var(--cream-dark);
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.25s ease;
}

.subpage-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 20px var(--gold-dim);
    transform: translateY(-3px);
}

.subpage-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.subpage-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 14px;
}

.subpage-card .card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.3px;
}


/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text { animation: fadeUp 0.6s ease-out; }
.form-card { animation: fadeUp 0.6s ease-out 0.12s both; }


/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .neighborhood-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 24px 56px;
    }
    .hero-text h1 { font-size: 2.4rem; }
    .showcase-grid { grid-template-columns: 1fr; }
    .learn-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .section-title { font-size: 1.8rem; }
    .neighborhood-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 16px 24px 20px;
        border-top: 1px solid rgba(197,179,88,0.12);
        box-shadow: 0 16px 32px rgba(0,0,0,0.4);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 12px;
    }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .hero-text h1 { font-size: 1.9rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 20px; }
    .neighborhood-grid { grid-template-columns: 1fr; }
    .hero-inner { padding: 36px 20px 44px; }
    .cta-banner h2 { font-size: 1.6rem; }
    .page-hero h1 { font-size: 1.8rem; }
}
