/* Custom Premium Styles for redesigned Merchantville Landing Page */

/* Base Theme Styles */
body.innerpage.merchantville {
    background-color: #F4F1EA;
    color: #545049;
    font-family: 'Nobile', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.innerpage.merchantville p {
    margin-top: 0;
    margin-bottom: 10px;
}

.section-padding {
    padding: 70px 0;
}

.bg-cream-surface {
    background-color: #EBE8DF;
    border-top: 1px solid #D8D4C9;
    border-bottom: 1px solid #D8D4C9;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Bellefair', serif;
    color: #17281C;
    font-weight: 400;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    position: relative;
    text-align: center;
}

h3 {
    font-size: 1.65rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #17281C;
}

/* Hero Banner */
#SecHdr {
    background-position: center;
    background-size: cover;
    position: relative;
    height: auto;
    padding: 200px 0 110px;
    text-align: center;
}

#SecHdr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 40, 28, 0.65);
    z-index: 1;
}

#SecHdr .container {
    position: relative;
    z-index: 2;
}

#SecHdr h1 {
    color: #F4F1EA;
    font-size: 3.1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Content Blocks & Callouts */
.id-callout {
    background: rgba(179, 142, 56, 0.07);
    border-left: 4px solid #B38E38;
    border-right: 1px solid #D8D4C9;
    border-top: 1px solid #D8D4C9;
    border-bottom: 1px solid #D8D4C9;
    border-radius: 0 8px 8px 0;
    padding: 24px;
    margin: 30px 0;
    font-size: 1.02rem;
    color: #17281C;
}

.id-callout strong {
    color: #B38E38;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
}

.warning-callout {
    background: rgba(239, 68, 68, 0.04);
    border-left: 4px solid #EF4444;
    border-right: 1px solid #D8D4C9;
    border-top: 1px solid #D8D4C9;
    border-bottom: 1px solid #D8D4C9;
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: #17281C;
}

/* Product categories styling */
.product-list-card {
    background: #FFFFFF;
    border: 1px solid #D8D4C9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(23,40,28,0.03);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.product-item {
    background: #FDFDFB;
    border: 1px solid #EBE8DF;
    border-radius: 8px;
    padding: 16px 20px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #17281C;
}

.product-item:hover {
    border-color: #B38E38;
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(23,40,28,0.06);
}

.product-item img {
    margin-right: 12px;
    filter: sepia(100%) hue-rotate(30deg) saturate(300%);
}

/* Directions Route Cards */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.route-card {
    background: #FFFFFF;
    border: 1px solid #D8D4C9;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(23, 40, 28, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.route-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 40, 28, 0.08);
    border-color: #17281C;
}

.route-card h3 {
    margin-top: 0;
    font-size: 1.45rem;
    border-bottom: 1px solid rgba(179, 142, 56, 0.25);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.route-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.route-card a {
    font-size: 0.88rem;
    font-weight: 700;
    color: #B38E38;
    text-decoration: none;
    margin-top: auto;
}

.route-card a:hover {
    color: #17281C;
    text-decoration: underline;
}

/* Store Information visual wrapper */
.store-info-wrapper {
    background: #FFFFFF;
    border: 1px solid #D8D4C9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(23,40,28,0.03);
}

.store-detail-row {
    border-bottom: 1px solid #F4F1EA;
    padding: 12px 0;
}

.store-detail-row:last-child {
    border-bottom: none;
}

.store-detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #B38E38;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.store-detail-value {
    font-size: 0.98rem;
    color: #17281C;
}

/* Numbered steps styling */
.step-list {
    list-style-type: none;
    padding-left: 0;
    margin: 25px 0;
    text-align: left;
}

.step-list > li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 18px;
    font-size: 0.98rem;
    color: #545049;
}

.step-list > li p {
    margin-top: 0;
    margin-bottom: 10px;
}

.step-list > li p:last-child {
    margin-bottom: 0;
}

.step-list > li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #17281C;
    color: #F4F1EA;
    text-align: center;
    font-size: 0.85rem;
    line-height: 28px;
    font-weight: 700;
}

.step-list {
    counter-reset: step-counter;
}

/* FAQ Accordion Styling (H3 elements as accordion buttons) */
.faq-accordion .accordion-header {
    margin: 0 !important;
    padding: 0 !important;
}

.faq-accordion .accordion-item {
    border: 1px solid #D8D4C9 !important;
    margin-bottom: 12px;
    border-radius: 8px !important;
    overflow: hidden;
    background: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(23, 40, 28, 0.02);
}

.faq-accordion .accordion-button {
    font-family: 'Bellefair', serif;
    font-size: 1.25rem;
    color: #17281C !important;
    background-color: #FFFFFF !important;
    padding: 20px 24px;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: #B38E38 !important;
    border-bottom: 1px solid #D8D4C9;
}

.faq-accordion .accordion-body {
    padding: 22px 24px;
    font-size: 0.95rem;
    color: #545049;
    line-height: 1.6;
    background-color: #FCFBF9;
}

/* Bottom CTA Banner styling */
.bottom-cta-card {
    background-color: #17281C;
    color: #F4F1EA;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(23, 40, 28, 0.15);
}

.bottom-cta-card h2 {
    color: #F4F1EA;
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.bottom-cta-card p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #D8D4C9;
}

.bottom-cta-card .btn {
    margin: 8px;
    min-width: 180px;
}

.bottom-cta-card .btn-secondary {
    border-color: #F4F1EA;
    color: #F4F1EA;
}

.bottom-cta-card .btn-secondary:hover {
    background-color: #F4F1EA;
    color: #17281C;
}

/* Bullet icon lists */
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.bullet-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.98rem;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #B38E38;
}

/* General Links */
.inline-accent-link {
    color: #B38E38;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.inline-accent-link:hover {
    color: #17281C;
    text-decoration: underline;
}

/* Responsive adjustments for Merchantville Landing Page */
@media (max-width: 767px) {
    #SecHdr {
        padding: 220px 0 70px;
    }
    #SecHdr h1 {
        font-size: 45px;
    }
    h2 {
        font-size: 32px;
    }
    .section-padding {
        padding: 45px 0;
    }
    .bottom-cta-card {
        padding: 40px 20px;
        margin-left: 20px;
        margin-right: 20px;
    }
    .bottom-cta-card h2 {
        font-size: 32px;
    }

    /* Keep headings and text left-aligned on mobile */
    #how-it-works-section h2,
    #before-order-section h2,
    #pickup-instructions-section h2,
    #id-requirements-section h2,
    #payment-changes-section h2,
    #comparison-section h2,
    #after-pickup-section h2,
    #children-pets-section h2 {
        text-align: left !important;
    }

    #how-it-works-section p,
    #before-order-section p,
    #pickup-instructions-section p,
    #id-requirements-section p,
    #payment-changes-section p,
    #comparison-section p,
    #after-pickup-section p,
    #children-pets-section p,
    #pickup-instructions-section h4,
    #payment-changes-section h4 {
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    #SecHdr h1 {
        font-size: 1.7rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    h2 {
        font-size: 1.55rem;
    }
    h3 {
        font-size: 1.35rem;
    }
    .store-info-wrapper, .product-list-card, .route-card, .faq-accordion .accordion-body {
        padding: 20px;
    }
    .faq-accordion .accordion-button {
        padding: 15px 18px;
        font-size: 1.1rem;
    }
    .bottom-cta-card .btn {
        width: 100%;
        margin: 6px 0;
        min-width: 0;
    }
    .directions-grid, .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    #SecHdr h1 {
        font-size: 1.5rem;
    }
    .store-info-wrapper, .product-list-card, .route-card, .faq-accordion .accordion-body {
        padding: 15px;
    }
    .id-callout, .warning-callout {
        padding: 15px;
        font-size: 0.9rem;
    }
    .step-list > li {
        padding-left: 36px;
        font-size: 0.92rem;
    }
    .step-list > li::before {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.8rem;
    }
}

/* 2-Column Bullet List */
.bullet-list-2col {
    column-count: 2;
    column-gap: 40px;
}

.bullet-list-2col li {
    break-inside: avoid-column;
}

@media (max-width: 576px) {
    .bullet-list-2col {
        column-count: 1;
        column-gap: 0;
    }
}

/* Redesign Helpers */
.transition-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.transition-lift h3 {
    transition: color 0.25s ease;
}

.transition-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(23, 40, 28, 0.08);
    border-color: #B38E38;
}

.transition-lift:hover h3 {
    color: #B38E38;
}

.card-icon-accent {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #17281C;
    color: #F4F1EA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.border-highlight-gold {
    border-color: #B38E38 !important;
    box-shadow: 0 4px 15px rgba(179, 142, 56, 0.08) !important;
}

.border-bottom-soft {
    border-bottom: 1px solid #D8D4C9;
}

/* Remove borders on nav-links active/hover states */
.nav-link:hover, 
.nav-link:focus, 
.navbar-nav .nav-link.active, 
.navbar-nav .nav-link.show {
    border-color: transparent !important;
}

/* Ensure footer bottomnav items are inline (in one line) and borderless */
#bottomnav .nav-link,
footer .nav-link {
    display: inline-block !important;
    margin: 0 15px !important;
    border: none !important;
}

#bottomnav .nav-link:hover,
#bottomnav .nav-link:focus,
footer .nav-link:hover,
footer .nav-link:focus {
    border: none !important;
    text-decoration: underline !important;
}
