/*
 * Designed In Ink — Footer Styles
 * File: child-theme/assets/css/footer.css
 * Loads on every page sitewide.
 *
 * VARIABLES inherited from homepage.css :root when on homepage,
 * redeclared here for use on all other pages.
 *
 * TO CHANGE FOOTER COLORS: update the variables below.
 */

:root {
    --footer-bg:         #0e1e27;
    --footer-border:     rgba(255,255,255,0.07);
    --footer-text:       rgba(255,255,255,0.65);
    --footer-text-dim:   rgba(255,255,255,0.35);
    --footer-link:       rgba(255,255,255,0.65);
    --footer-link-hover: #ffffff;
    --footer-accent:     #5C8BA4;
    --footer-bottom-bg:  #060f14;
    --dii-radius:        6px;
    --dii-font-display:  'Barlow Condensed', 'Impact', sans-serif;
    --dii-font-body:     'Barlow', system-ui, sans-serif;
}

/* ─── Suppress Astra's default footer so ours renders cleanly ──────────────── */
.site-footer,
.ast-footer-overlay,
#colophon:not(#dii-footer),
.footer-adv-overlay {
    display: none !important;
}

/* ─── Footer wrapper ────────────────────────────────────────────────────────── */
#dii-footer {
    font-family: var(--dii-font-body);
    background: var(--footer-bg);
    color: var(--footer-text);
    width: 100%;
}

/* ─── Footer main — 4 column grid ──────────────────────────────────────────── */
.dii-footer-main {
    padding: 3rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--footer-border);
}

.dii-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ─── Column headings ───────────────────────────────────────────────────────── */
.dii-footer-col-heading {
    font-family: var(--dii-font-display);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--footer-border);
}

/* ─── Footer nav lists ──────────────────────────────────────────────────────── */
.dii-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dii-footer-nav li a {
    font-size: 13px;
    color: var(--footer-link);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.25s ease;
    display: block;
}

.dii-footer-nav li a:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
}

/* Submenu items — indented, slightly smaller */
.dii-footer-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 6px 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--footer-border);
    padding-left: 12px;
}

.dii-footer-nav .sub-menu li a {
    font-size: 12px;
    color: var(--footer-text-dim);
}

.dii-footer-nav .sub-menu li a:hover {
    color: var(--footer-link-hover);
}

/* ─── Contact column ────────────────────────────────────────────────────────── */
.dii-footer-logo {
    margin-bottom: 14px;
}

.dii-footer-logo img {
    max-height: 50px;
    width: auto;
    display: block;
    /* Slightly brighten logo on dark background */
    filter: brightness(1.1);
}

.dii-footer-site-name {
    font-family: var(--dii-font-display);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.04em;
}

/* Static map image */
.dii-footer-map-link {
    display: block;
    margin-bottom: 14px;
    text-decoration: none;
}

.dii-footer-map-img {
    position: relative;
    border-radius: var(--dii-radius);
    overflow: hidden;
    border: 1px solid var(--footer-border);
}

.dii-footer-map-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.dii-footer-map-link:hover .dii-footer-map-img img {
    opacity: 0.85;
}

/* Placeholder shown before real map image is uploaded */
.dii-footer-map-placeholder {
    height: 140px;
    background: rgba(92,139,164,0.08);
    border: 1px dashed rgba(92,139,164,0.3);
    border-radius: var(--dii-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(92,139,164,0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* "Open in Maps" overlay on hover */
.dii-footer-map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14,30,39,0.75);
    backdrop-filter: blur(3px);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dii-footer-map-link:hover .dii-footer-map-overlay {
    opacity: 1;
}

/* Address */
.dii-footer-address {
    font-style: normal;
    font-size: 13px;
    color: var(--footer-text);
    line-height: 1.65;
    margin-bottom: 12px;
}

.dii-footer-address-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

/* Phone + hours */
.dii-footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dii-footer-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.dii-footer-phone:hover {
    color: var(--footer-accent);
    text-decoration: none;
}

.dii-footer-hours {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--footer-text);
    flex-wrap: wrap;
}

.dii-footer-hours-note {
    font-size: 11px;
    color: var(--footer-text-dim);
    display: block;
    width: 100%;
    padding-left: 20px;
}

/* ─── Footer bottom ─────────────────────────────────────────────────────────── */
.dii-footer-bottom {
    background: var(--footer-bottom-bg);
    padding: 1rem 1.5rem;
}

.dii-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dii-footer-copy {
    font-size: 12px;
    color: var(--footer-text-dim);
}

.dii-footer-copy a {
    color: var(--footer-text-dim);
    text-decoration: none;
}

.dii-footer-copy a:hover {
    color: var(--footer-text);
}

/* Social icons */
.dii-footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dii-social-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-dim);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.dii-social-icon:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: #fff;
    text-decoration: none;
}

/* Legal links */
.dii-footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--footer-text-dim);
}

.dii-footer-legal a {
    color: var(--footer-text-dim);
    text-decoration: none;
    transition: color 0.25s ease;
}

.dii-footer-legal a:hover {
    color: var(--footer-text);
}

.dii-footer-legal span {
    opacity: 0.4;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .dii-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .dii-footer-col--contact {
        grid-column: span 2;
    }
    .dii-footer-map-img img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .dii-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .dii-footer-col--contact {
        grid-column: span 1;
    }
    .dii-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .dii-footer-copy {
        order: 3;
    }
    .dii-footer-social {
        order: 1;
        justify-content: center;
    }
    .dii-footer-legal {
        order: 2;
        justify-content: center;
    }
}
