:root {
    --app-primary: #703909;
    --app-primary-dark: #4f2806;
    --app-primary-soft: #f6f3ee;
    --app-primary-border: #e4ddd3;
    --app-accent: #c47a3a;
    --app-success: #15803d;
    --app-danger: #b91c1c;
    --app-info: #703909;
    --app-bg: #f6f3ee;
    --app-surface: #ffffff;
    --app-surface-muted: #faf8f4;
    --app-border: #e4ddd3;
    --app-border-strong: #d4cbc0;
    --app-text: #170f0d;
    --app-text-muted: #6b5d52;
    --app-text-soft: #8a7b6e;
    --app-shadow-sm: 0 8px 24px rgba(112, 57, 9, 0.06);
    --app-shadow-md: 0 18px 44px rgba(112, 57, 9, 0.08);
    --app-shadow-lg: 0 26px 60px rgba(112, 57, 9, 0.12);
    --app-radius-sm: 8px;
    --app-radius: 8px;
    --app-radius-lg: 8px;
    --app-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --app-heading-font: "Space Grotesk", "Manrope", system-ui, sans-serif;
    /* Shared content rail — padding is always visible; heroes stay full-bleed */
    --site-content-max: 1220px;
    --site-page-pad: 24px;
    --site-page-pad-md: 20px;
    --site-page-pad-sm: 16px;
    --site-gutter: 24px;
    --site-gutter-md: 20px;
    --site-gutter-sm: 16px;
    --site-content-width: min(var(--site-content-max), 100%);
}

html,
body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--app-bg);
    color: var(--app-text);
}

body {
    overflow-x: hidden;
}

a {
    transition: color .2s ease, opacity .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.app-shell,
.page-wrapper {
    min-height: 100vh;
}

.app-section-card,
.history-header,
.packages-hero,
.admin-card,
.admin-stat-card,
.review-stat-card,
.review-management-card,
.review-filter-panel,
.author-badge-panel,
.contact-shell,
.legal-card,
.authors-hero,
.author-card,
.referral-panel,
.referral-table-wrap,
.credit-info-bar,
.package-card,
.history-card,
.empty-state {
    border-radius: var(--app-radius) !important;
    border: 1px solid var(--app-border) !important;
    box-shadow: var(--app-shadow-md) !important;
}

.history-header,
.packages-hero {
    background: linear-gradient(135deg, var(--app-primary), #4f2806) !important;
}

.btn,
button,
.nav-btn,

.btn-buy-package,
.admin-primary-btn,
.admin-secondary-btn,
.review-filter-panel button,
.review-reply-actions button,
.review-mod-btn,
.referral-verify-btn,
.contact-submit {
    border-radius: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
}

.btn-primary,
.nav-btn.primary,
.btn-buy-package,
.admin-primary-btn,
.review-filter-panel button,
.review-reply-actions button,
.referral-verify-btn,
.contact-submit {
    background: linear-gradient(135deg, var(--app-primary), #4f2806) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(112, 57, 9, 0.18);
}

.btn-primary:hover,
.nav-btn.primary:hover,
.btn-buy-package:hover,
.admin-primary-btn:hover,
.review-filter-panel button:hover,
.review-reply-actions button:hover,
.referral-verify-btn:hover,
.contact-submit:hover {
    background: linear-gradient(135deg, var(--app-primary-dark), #3a1d04) !important;
    color: #fff !important;
    transform: translateY(-1px);
}



.btn-outline-primary:hover,
.review-mod-btn:hover,
.admin-secondary-btn:hover,
.btn-buy-more:hover {
    background: var(--app-primary-soft) !important;
    border-color: var(--app-primary-border) !important;
    color: var(--app-primary) !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control,
.form-select {
    border-radius: 12px !important;
    border: 1px solid var(--app-border-strong) !important;
    min-height: 46px;
    color: var(--app-text) !important;
    box-shadow: none !important;
}

textarea {
    min-height: 120px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--app-primary) !important;
    box-shadow: 0 0 0 4px rgba(112, 57, 9, 0.08) !important;
}

table {
    --bs-table-bg: transparent;
}

.table thead th,
.admin-table thead th,
.package-history-table thead th,
.referral-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid var(--app-border) !important;
}

.table tbody td,
.admin-table tbody td,
.package-history-table tbody td,
.referral-table tbody td {
    border-bottom: 1px solid #eef2f7 !important;
    color: #475569 !important;
}

.table tbody tr:hover,
.admin-table tbody tr:hover,
.package-history-table tbody tr:hover,
.referral-table tbody tr:hover {
    background: #faf8f4 !important;
}

.alert,
.custom-alert,
.contact-alert {
    border-radius: 14px !important;
    border: 1px solid transparent !important;
    box-shadow: var(--app-shadow-sm);
}

.pagination {
    --bs-pagination-color: #703909;
    --bs-pagination-bg: #ffffff;
    --bs-pagination-border-color: #e4ddd3;
    --bs-pagination-hover-color: #4f2806;
    --bs-pagination-hover-bg: #f6f3ee;
    --bs-pagination-hover-border-color: #d4cbc0;
    --bs-pagination-focus-color: #4f2806;
    --bs-pagination-focus-bg: #f6f3ee;
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(112, 57, 9, 0.18);
    --bs-pagination-active-color: #ffffff;
    --bs-pagination-active-bg: #703909;
    --bs-pagination-active-border-color: #703909;
    --bs-pagination-disabled-color: #8a7b6e;
    --bs-pagination-disabled-bg: #faf8f4;
    --bs-pagination-disabled-border-color: #e4ddd3;
    gap: 8px;
}

.pagination .page-link,
.page-link {
    border-radius: 10px !important;
    border: 1px solid #e4ddd3 !important;
    color: #703909 !important;
    background: #ffffff !important;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    font-weight: 700;
}

.pagination .page-item.active .page-link,
.page-item.active .page-link {
    background: #703909 !important;
    border-color: #703909 !important;
    color: #fff !important;
}

.pagination .page-link:hover,
.page-link:hover {
    background: #f6f3ee !important;
    border-color: #d4cbc0 !important;
    color: #4f2806 !important;
}

.pagination .page-item.disabled .page-link,
.page-item.disabled .page-link {
    color: #8a7b6e !important;
    background: #faf8f4 !important;
    border-color: #e4ddd3 !important;
}

.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, #101522 0%, #0b1120 100%);
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 72px 24px 28px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(320px, 1.6fr) repeat(3, minmax(140px, 1fr));
    gap: 40px;
}

.footer-brand-col {
    padding-right: 20px;
}

.footer-brand img {
    height: 74px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-lead {
    color: #dbe4f0;
    line-height: 1.8;
    margin: 0 0 18px;
    max-width: 440px;
    font-size: 16px;
    font-weight: 500;
}

.footer-note {
    color: #7f8da3;
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.footer-col h3, .footer-col .footer-col-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.footer-col a,
.footer-contact-item {
    display: block;
    color: #91a0b8;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 13px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #7f8da3;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== GLOBAL DESIGN SYSTEM (canonical brand tokens) ===== */
:root {
    --app-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --app-heading-font: "Space Grotesk", "Manrope", system-ui, sans-serif;
    --app-radius-sm: 8px;
    --app-radius: 8px;
    --app-radius-lg: 8px;
    --app-primary: #703909;
    --app-primary-dark: #4f2806;
    --app-primary-soft: #f6f3ee;
    --app-primary-border: #e4ddd3;
    --app-bg: #f6f3ee;
    --app-surface: #ffffff;
    --app-surface-muted: #faf8f4;
    --app-border: #e4ddd3;
    --app-border-strong: #d4cbc0;
    --app-text: #170f0d;
    --app-text-muted: #6b5d52;
    --app-text-soft: #8a7b6e;
    --app-info: #703909;
}

html,
body,
button,
input,
select,
textarea,
.app-shell,
.page-wrapper {
    font-family: var(--app-font) !important;
}

body {
    color: var(--app-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--app-heading-font) !important;
    letter-spacing: -.02em !important;
    color: var(--app-text);
}

.history-header h1 {
    margin: 0;
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 750;
    color: inherit;
}

p,
li,
label,
input,
select,
textarea,
small,
span,
a {
    font-family: var(--app-font) !important;
}

.btn,
button,
.nav-btn,
.btn-submit,
.btn-ai-description,
.btn-buy-package,

.admin-primary-btn,
.admin-secondary-btn,
.review-filter-panel button,
.review-reply-actions button,
.review-mod-btn,
.referral-verify-btn,
.contact-submit {
    min-height: 42px;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-family: var(--app-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.btn-primary,
.nav-btn.primary,
.btn-submit,
.btn-ai-description,
.btn-buy-package,
.admin-primary-btn,
.review-filter-panel button,
.review-reply-actions button,
.referral-verify-btn,
.contact-submit {
    background: var(--app-primary) !important;
    border: 1px solid var(--app-primary) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(112, 57, 9, .18) !important;
}

.btn-primary:hover,
.nav-btn.primary:hover,
.btn-submit:hover,
.btn-ai-description:hover,
.btn-buy-package:hover,
.admin-primary-btn:hover,
.review-filter-panel button:hover,
.review-reply-actions button:hover,
.referral-verify-btn:hover,
.contact-submit:hover {
    background: var(--app-primary-dark) !important;
    border-color: var(--app-primary-dark) !important;
    color: #fff !important;
}

.btn-outline-primary,
.admin-secondary-btn,
.review-mod-btn,
.btn-buy-more {
    color: var(--app-primary) !important;
    background: #ffffff !important;
    border: 1px solid var(--app-border) !important;
    border-radius: var(--app-radius) !important;
}

.btn-outline-primary:hover,
.admin-secondary-btn:hover,
.review-mod-btn:hover,
.btn-buy-more:hover {
    color: #ffffff !important;
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
}

.app-section-card,
.history-header,
.packages-hero,
.admin-card,
.admin-stat-card,
.review-stat-card,
.review-management-card,
.review-filter-panel,
.author-badge-panel,
.contact-shell,
.legal-card,
.authors-hero,
.author-card,
.referral-panel,
.referral-table-wrap,
.credit-info-bar,
.package-card,
.history-card,
.empty-state {
    border-radius: 8px !important;
}

/* Keep icon fonts intact while the site uses Manrope for text. */
.fa,
.fas,
.far,
.fal,
.fat,
.fad,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone {
    font-family: "Font Awesome 6 Free" !important;
}

.fas,
.fa-solid {
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

[data-feather],
.feather {
    font-family: inherit !important;
}

/* ===== REBUILT FOOTER ===== */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    background: #f6f3ee;
    color: #170f0d;
    border-top: 1px solid #e5ded4;
}

.site-footer::before {
    display: none;
}

.footer-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1220px;
    padding-left: var(--site-page-pad, 24px);
    padding-right: var(--site-page-pad, 24px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 52px var(--site-page-pad, 24px) 26px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(120px, .72fr)) minmax(200px, .9fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.footer-brand-col {
    padding-right: 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-brand img {
    height: 76px;
    width: auto;
    display: block;
    margin: 0;
}

.footer-lead {
    max-width: 310px;
    margin: 0;
    color: #6b5d52;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}

.footer-note {
    display: none;
}

.footer-contact-list {
    display: none;
}

.footer-contact-list a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 9px;
    color: #4b3732;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    transition: color .2s ease, transform .2s ease;
}

.footer-contact-list a:hover {
    color: #703909;
    transform: translateX(3px);
}

.footer-contact-list i {
    color: #703909;
    font-size: 13px;
}

.footer-copyright {
    margin: 20px 0 0;
    color: #071821;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #703909!important;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(112, 57, 9, .10);
    font-size: 15px;
    padding-left: 0;
    margin-bottom: 0;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.footer-social a::before {
    display: none !important;
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: #703909;
    color: #ffffff !important;
    border-color: #703909;
    box-shadow: 0 14px 24px rgba(112, 57, 9, .22);
}

.footer-col h3, .footer-col .footer-col-title {
    position: relative;
    display: inline-flex;
    color: #170f0d;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    margin: 0 0 20px;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.footer-col h3::after,
.footer-col .footer-col-title::after {
    display: none;
}

.footer-col a,
.footer-contact-item {
    position: relative;
    display: block;
    width: fit-content;
    color: #6b5d52;
    text-decoration: none;
    font-weight: 400;
    margin-bottom: 12px;
    padding-left: 14px;
    font-size: 16px;
    line-height: 1.35;
    transition: color .2s ease, transform .2s ease;
}

.footer-col a::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0;
    color: #703909;
}

.footer-col a:hover {
    color: #703909;
    transform: translateX(4px);
}

.footer-contact-col p {
    margin: 0;
    max-width: 300px;
    color: #6b5d52;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}

.footer-address {
    color: #6b5d52;
}

.footer-policy-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
    padding: 20px 0;
    border-top: 1px solid #e5ded4;
    border-bottom: 1px solid #e5ded4;
    text-align: center;
}

.footer-policy-row a {
    color: #170f0d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color .2s ease;
}

.footer-policy-row a:hover {
    color: #703909;
}

@media (max-width: 991px) {
    .footer-wrap {
        width: min(100% - 48px, 760px);
        padding-top: 54px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-policy-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: left;
    }
}

@media (max-width: 767px) {
    .footer-wrap {
        width: min(100% - 32px, 560px);
        padding: 42px 0 24px;
    }

    .footer-lead {
        font-size: 18px;
    }

    .footer-main,
    .footer-policy-row {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-col h3, .footer-col .footer-col-title {
        margin-bottom: 18px;
        font-size: 24px;
    }

    .footer-col a,
    .footer-contact-col p,
    .footer-policy-row a {
        font-size: 18px;
    }

    .footer-social {
        margin-top: 24px;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .footer-policy-row {
        margin-top: 30px;
        padding: 24px 0;
        text-align: left;
    }

    .footer-copyright {
        font-size: 14px;
    }
}

.footer-col .footer-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0 !important;
    margin: 0 !important;
    color: #703909!important;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(112, 57, 9, .10);
    transform: none;
}

.footer-col .footer-social a::before {
    content: none !important;
    display: none !important;
}

.footer-col .footer-social a i {
    line-height: 1;
}

.footer-col .footer-social a:hover {
    background: #703909;
    border-color: #703909;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* ===== PREMIUM FOOTER REFINEMENT ===== */
.site-footer {
    margin-top: 72px;
    background:
        radial-gradient(circle at 12% 0%, rgba(112, 57, 9, .08), transparent 28%),
        linear-gradient(180deg, #faf8f4 0%, #f6f3ee 100%);
    border-top: 1px solid #e4ddd3;
}

.footer-wrap {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 64px var(--site-page-pad, 24px) 28px;
    box-sizing: border-box;
}

.footer-main {
    grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(118px, .68fr)) minmax(200px, .88fr);
    gap: clamp(24px, 2.8vw, 42px);
    padding-bottom: 36px;
    border-bottom: 1px solid #e4ddd3;
}

.footer-contact-col {
    min-width: 0;
}

.footer-contact-col .footer-contact-cta {
    margin-top: 16px;
}

@media (min-width: 992px) {
    .footer-main {
        grid-template-columns: minmax(210px, 1.08fr) repeat(3, minmax(112px, .66fr)) minmax(190px, .86fr);
    }

    .footer-contact-col {
        align-self: start;
    }
}

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

.footer-lead {
    max-width: 340px;
    margin-top: 4px;
    color: #6b5d52;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 550;
}

.footer-brand-col .footer-social {
    margin-top: 22px;
}

.footer-col h3, .footer-col .footer-col-title {
    margin: 0 0 16px;
    color: #170f0d;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    max-width: none;
}

.footer-col a {
    padding-left: 0 !important;
    margin-bottom: 11px;
    color: #6b5d52;
    font-size: 15px;
    font-weight: 600;
}

.footer-col a::before {
    display: none !important;
}

.footer-col a:hover {
    color: #703909;
    transform: translateX(3px);
}

.footer-contact-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 18px;
    padding: 0 16px !important;
    color: #ffffff !important;
    background: #703909;
    border: 1px solid #703909;
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(112, 57, 9, .16);
    transition: transform .22s ease, background .22s ease;
}

.footer-contact-cta:hover {
    color: #ffffff !important;
    background: #4f2806;
    border-color: #4f2806;
    transform: translateY(-2px) !important;
}

.footer-contact-cta::before {
    display: none !important;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
}

.footer-copyright {
    margin: 0 !important;
    color: #6b5d52 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #4b3732;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.footer-bottom-links a:hover {
    color: #703909;
}

@media (max-width: 767px) {
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== MOBILE FOOTER FIX ===== */
@media (max-width: 991px) {
    .footer-wrap {
        width: 100% !important;
        max-width: 1220px !important;
        padding: 48px var(--site-page-pad-md, 20px) 24px !important;
        overflow: hidden;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 24px !important;
    }

    .footer-brand-col {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 640px) {
    .footer-wrap {
        width: 100% !important;
        max-width: 1220px !important;
        padding: 42px var(--site-page-pad-sm, 16px) 24px !important;
    }

    .footer-main {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .footer-brand-col,
    .footer-contact-col,
    .footer-col {
        grid-column: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .footer-lead,
    .footer-address,
    .footer-contact-col p {
        max-width: 100% !important;
    }

    .footer-col h3, .footer-col .footer-col-title {
        font-size: 12px !important;
    }

    .footer-col a,
    .footer-contact-col p {
        font-size: 15px !important;
        overflow-wrap: anywhere;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.footer-contact-cta,
a.footer-contact-cta,
.footer-col a.footer-contact-cta,
.footer-contact-col .footer-contact-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: auto !important;
    max-width: 100%;
    min-height: 42px !important;
    margin-top: 18px !important;
    padding: 0 22px !important;
    color: #ffffff !important;
    background: #703909 !important;
    border: 1px solid #703909 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(112, 57, 9, .16) !important;
    transform: none !important;
}

.footer-contact-cta:hover,
a.footer-contact-cta:hover {
    color: #ffffff !important;
    background: #4f2806 !important;
    border-color: #4f2806 !important;
    justify-content: center !important;
    text-align: center !important;
}

.footer-contact-cta::before,
.footer-col a.footer-contact-cta::before {
    content: none !important;
    display: none !important;
}

/* ===== VURKS-STYLE FOOTER (brand colors, same links) ===== */
.site-footer {
    margin-top: 72px;
    background-color: #faf8f4;
    background-image:
        radial-gradient(circle at 88% 92%, rgba(112, 57, 9, .10), transparent 34%),
        radial-gradient(circle at 12% 0%, rgba(112, 57, 9, .06), transparent 28%),
        linear-gradient(rgba(112, 57, 9, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 57, 9, .035) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px, 28px 28px;
    border-top: 1px solid #e4ddd3;
}

.footer-wrap {
    padding: 56px var(--site-page-pad, 24px) 30px;
}

.footer-main {
    grid-template-columns: minmax(230px, 1.2fr) repeat(3, minmax(130px, .75fr)) minmax(210px, .95fr);
    gap: clamp(22px, 2.5vw, 44px);
    padding-bottom: 0;
    border-bottom: 0;
}

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

.footer-lead {
    max-width: 320px;
    margin-top: 6px;
    color: #6b5d52;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
}

.footer-col .footer-col-title {
    margin: 0 0 18px !important;
    color: #170f0d !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-family: var(--app-heading-font, "Space Grotesk", sans-serif) !important;
    line-height: 1.25;
    max-width: none;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-list li {
    margin: 0 0 11px;
}

.footer-link-list li:last-child {
    margin-bottom: 0;
}

.footer-link-list a,
.footer-col .footer-link-list a {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding-left: 14px !important;
    margin-bottom: 0 !important;
    color: #6b5d52 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-link-list a::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0;
    color: #703909;
    font-weight: 700;
    display: inline !important;
}

.footer-link-list a:hover {
    color: #703909 !important;
    transform: translateX(4px);
}

.footer-contact-col .footer-address {
    margin: 0 0 4px;
    max-width: 280px;
    color: #6b5d52;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.footer-email-link {
    display: inline-block;
    margin-top: 12px;
    color: #703909;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.footer-email-link:hover {
    color: #4f2806;
    text-decoration: underline;
}

.footer-email-link::before {
    display: none !important;
}

.footer-contact-col .footer-social {
    margin-top: 20px;
    gap: 8px;
}

.footer-contact-col .footer-social a {
    width: 36px;
    height: 36px;
    color: #ffffff !important;
    background: #703909 !important;
    border: 1px solid #703909 !important;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(112, 57, 9, .18);
}

.footer-contact-col .footer-social a:hover {
    background: #4f2806 !important;
    border-color: #4f2806 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.footer-policy-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 38px;
    padding: 22px 0;
    border-top: 1px solid #e5ded4;
    border-bottom: 1px solid #e5ded4;
    text-align: center;
}

.footer-policy-row a {
    color: #170f0d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-policy-row a:hover {
    color: #703909;
}

.footer-bottom-bar {
    justify-content: center;
    padding-top: 24px;
}

.footer-copyright {
    width: 100%;
    margin: 0 !important;
    color: #170f0d !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: center !important;
}

@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-contact-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .footer-brand-col,
    .footer-contact-col {
        grid-column: 1 / -1 !important;
    }

    .footer-policy-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: left;
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr !important;
    }

    .footer-policy-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-col .footer-col-title {
        font-size: 16px !important;
    }
}
