/* css/footer-unified.css - Unified footer styles (Modern/Warm theme) */

/* ============================================
   ROOT VARIABLES (matching home.css)
   ============================================ */
:root {
    /* Earthy/warm palette */
    --footer-bg: #f1f2f4;
    --footer-bg-alt: #f8f9fa;
    --footer-ink: #1a1a1a;
    --footer-accent: #e9c46a;
    --footer-accent-strong: #f4a261;
    --footer-muted: #7a7a7a;
    --footer-border: #dedede;
    --footer-surface: #ffffff;

    --footer-radius-sm: 8px;
    --footer-radius-md: 12px;
    --footer-radius-lg: 16px;
    --footer-radius-pill: 999px;

    --footer-shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.04);
    --footer-shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.16), 0 16px 32px rgba(0, 0, 0, 0.10);
    --footer-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FOOTER BASE
   ============================================ */
.site-footer {
    margin-top: auto;
    padding-block: 20px 16px;
    background-color: var(--footer-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--footer-ink);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.footer-intro {
    padding-block: 20px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.footer-intro-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    color: var(--footer-ink);
    margin: 0 0 6px;
    font-weight: 600;
}

.footer-intro-text {
    font-size: 13px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0 0 6px;
}

.footer-intro-text:last-child {
    margin-bottom: 0;
}

.footer-intro-text strong {
    color: var(--footer-ink);
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 12px;
    margin-bottom: 10px;
}

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

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

.footer-col {
    font-size: 13px;
}

/* ============================================
   BRAND BLOCK
   ============================================ */
.footer-brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.footer-brand-block .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 40% 60% 55% 45%;
    background-color: var(--footer-ink);
    color: var(--footer-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.footer-brand-block .brand-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: var(--footer-ink);
}

.footer-brand-block .brand-subtitle {
    font-size: 12px;
    color: var(--footer-muted);
}

.footer-small {
    font-size: 12px;
    color: var(--footer-muted);
    margin: 6px 0 10px;
    line-height: 1.5;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.footer-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 10px;
    max-width: 280px;
}

.footer-search-input {
    flex: 1;
    padding: 7px 12px;
    border-radius: var(--footer-radius-pill);
    border: 1px solid var(--footer-border);
    font-size: 13px;
    background: var(--footer-surface);
    color: var(--footer-ink);
    transition: border-color var(--footer-transition);
}

.footer-search-input:focus {
    outline: none;
    border-color: var(--footer-accent-strong);
}

.footer-search-button {
    border-radius: var(--footer-radius-pill);
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background-color: var(--footer-accent-strong);
    color: var(--footer-ink);
    cursor: pointer;
    transition: transform var(--footer-transition), box-shadow var(--footer-transition), background-color var(--footer-transition);
    box-shadow: var(--footer-shadow-soft);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-search-button:hover,
.footer-search-button:focus-visible {
    transform: scale(1.05) translateY(-1px);
    box-shadow: var(--footer-shadow-hover);
    background-color: var(--footer-accent);
}

.footer-search-button span {
    display: none;
}

@media (min-width: 400px) {
    .footer-search-button span {
        display: inline;
    }
}

/* ============================================
   LEGAL LINKS
   ============================================ */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    font-size: 12px;
    margin-top: 10px;
}

.footer-legal a {
    color: var(--footer-muted);
    text-decoration: none;
    transition: color var(--footer-transition);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--footer-ink);
}

/* ============================================
   COLUMN TITLES & LINKS
   ============================================ */
.footer-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--footer-ink);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links a {
    font-size: 13px;
    color: var(--footer-muted);
    text-decoration: none;
    transition: color var(--footer-transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--footer-ink);
}

/* ============================================
   PROVINCE GRID
   ============================================ */
.footer-provinces {
    padding-block: 16px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 10px;
}

.footer-provinces .footer-title {
    margin-bottom: 12px;
}

.footer-province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.footer-province-grid--preview {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    max-width: 700px;
}

.province-pill {
    padding: 7px 9px;
    border-radius: var(--footer-radius-pill);
    border: 1px solid #e0e0e0;
    background-color: var(--footer-surface);
    font-size: 12px;
    text-align: center;
    color: var(--footer-ink);
    text-decoration: none;
    transition: background-color var(--footer-transition), box-shadow var(--footer-transition), transform var(--footer-transition);
    cursor: pointer;
}

.province-pill:hover,
.province-pill:focus-visible {
    background-color: var(--footer-accent);
    transform: translateY(-2px);
    box-shadow: var(--footer-shadow-hover);
}

.province-pill--more {
    background-color: var(--footer-accent-strong);
    color: var(--footer-ink);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.province-pill--more:hover,
.province-pill--more:focus-visible {
    background-color: var(--footer-accent);
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--footer-radius-pill);
    background-color: var(--footer-accent);
    color: var(--footer-ink);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--footer-transition);
    border: 1px solid transparent;
    margin-top: 5px;
}

.footer-pill:hover,
.footer-pill:focus-visible {
    background-color: var(--footer-accent-strong);
    transform: translateY(-1px);
    box-shadow: var(--footer-shadow-soft);
}

/* ============================================
   CTA SECTION
   ============================================ */
.footer-cta {
    padding-block: 14px 14px;
}

.footer-cta-inner {
    border-radius: 14px;
    padding: 12px 16px;
    background-color: #e9f0ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-cta-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--footer-ink);
}

.footer-cta-text {
    font-size: 13px;
    margin: 0;
    color: #4a4a4a;
}

.footer-cta-button {
    border-radius: var(--footer-radius-pill);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background-color: var(--footer-ink);
    color: var(--footer-bg);
    box-shadow: var(--footer-shadow-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--footer-transition), box-shadow var(--footer-transition), background-color var(--footer-transition);
}

.footer-cta-button:hover,
.footer-cta-button:focus-visible {
    transform: scale(1.05) translateY(-1px);
    box-shadow: var(--footer-shadow-hover);
    background-color: var(--footer-accent-strong);
}

@media (max-width: 640px) {
    .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   BOTTOM BAR
   ============================================ */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-block: 10px 2px;
    font-size: 12px;
    color: var(--footer-muted);
}

.footer-copyright {
    font-weight: 500;
}

.footer-sources a {
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: color var(--footer-transition);
}

.footer-sources a:hover,
.footer-sources a:focus-visible {
    color: var(--footer-ink);
}

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

/* ============================================
   ACCESSIBILITY
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
    outline: 2px solid var(--footer-accent-strong);
    outline-offset: 2px;
}

/* ============================================
   EV COLUMN (ENHANCED)
   ============================================ */
.footer-col-ev {
    font-size: 13px;
}

.footer-ev-block {
    display: flex;
    flex-direction: column;
}

.footer-ev-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--footer-muted);
    margin: 8px 0 4px;
}

.footer-ev-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    background-color: var(--footer-accent-strong);
    color: var(--footer-ink);
    border-radius: var(--footer-radius-pill);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: transform var(--footer-transition), box-shadow var(--footer-transition), background-color var(--footer-transition);
    box-shadow: var(--footer-shadow-soft);
    width: fit-content;
}

.footer-ev-cta:hover,
.footer-ev-cta:focus-visible {
    transform: scale(1.03) translateY(-1px);
    box-shadow: var(--footer-shadow-hover);
    background-color: var(--footer-accent);
}