/* ==========================================================================
   Caleb Smith Design — Reusable Site Footer Styles
   Aligned with styles.css Hero Palette (#FAF6F0 Creme) & Nav Logo Mark
   ========================================================================== */

:root {
    --bg-creme: #FAF6F0;
    --accent-orange: #C25222;
    --accent-orange-hover: #A33F15;
    --ink-primary: #231C18;
    --ink-secondary: #534840;
    --ink-muted: #76695F;
    --border-subtle: #E4D9CB;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1180px;
    --radius-sm: 4px;
}

.csd-footer-block,
.csd-footer-block * {
    box-sizing: border-box;
}

.csd-footer-block {
    position: relative;
    width: 100%;
    padding: 4rem 0 2.75rem;
    font-family: var(--font-sans);
    background-color: var(--bg-creme);
    background-image: radial-gradient(
        circle at 88% 20%,
        rgba(217, 119, 70, 0.10) 0%,
        rgba(194, 82, 34, 0.04) 45%,
        rgba(250, 246, 240, 0) 75%
    );
    color: var(--ink-primary);
    border-top: 1px solid var(--border-subtle);
    -webkit-font-smoothing: antialiased;
}

.csd-footer-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* Main Footer Layout */
.csd-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.85fr);
    gap: clamp(2.25rem, 5vw, 4rem);
    padding-bottom: 2.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* Brand Column (Matches .csd-brand-mark from nav.css) */
.csd-footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink-primary);
}

.csd-footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--accent-orange);
    padding: 7px;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.csd-footer-logo-link:hover .csd-footer-logo-mark {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
}

.csd-footer-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.csd-footer-brand-name {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C25222;
}

.csd-footer-tagline {
    margin: 1rem 0 0;
    max-width: 40ch;
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.72;
    color: var(--ink-secondary);
}

/* Link Columns */
.csd-footer-heading {
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.csd-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.csd-footer-link {
    display: inline-block;
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-secondary);
    transition: color 0.2s ease;
}

.csd-footer-link:hover {
    color: var(--accent-orange);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

/* Focus Accessibility */
.csd-footer-logo-link:focus-visible,
.csd-footer-link:focus-visible,
.csd-footer-legal-link:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Bottom Legal Bar */
.csd-footer-bottom {
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.csd-footer-copy {
    margin: 0;
}

.csd-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.csd-footer-legal-link {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease;
}

.csd-footer-legal-link:hover {
    color: var(--accent-orange-hover);
}

.csd-footer-sep {
    opacity: 0.55;
}

/* ==========================================================================
   Responsive Breakpoints (Synced with styles.css)
   ========================================================================== */
@media (max-width: 920px) {
    .csd-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 560px) {
    .csd-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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