/* ============================================================
   Footer — stil Apple Light
   Fundal #f5f5f7, SF Pro system font, hairlines #d2d2d7
   ============================================================ */

:root {
    --f-bg:         #f5f5f7;
    --f-bg-bottom:  #e8e8ed;
    --f-border:     #d2d2d7;
    --f-text:       #1d1d1f;
    --f-muted:      #6e6e73;
    --f-link:       #6e6e73;
    --f-link-hover: #1d1d1f;
    --f-accent:     #0071e3;
    --f-accent-hov: #0077ed;
    --f-input-bg:   #ffffff;
    --f-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

/* ── Bloc principal ──────────────────────────────────────── */
.footer {
    background-color: var(--f-bg);
    border-top: 1px solid var(--f-border);
    font-family: var(--f-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Divider vertical între coloane pe desktop ───────────── */
@media (min-width: 992px) {
    .footer .footer-col-divider {
        border-right: 1px solid var(--f-border);
        padding-right: 2rem;
    }
    .footer .footer-col-last {
        padding-left: 2rem;
    }
}

/* ── Logo — original, fără inversare ─────────────────────── */
.footer__logo {
    max-width: 170px;
}

/* ── Proză brand & newsletter ────────────────────────────── */
.footer__brand-prose,
.footer__newsletter-copy {
    font-size: 15px;
    line-height: 1.65;
    color: var(--f-muted);
    max-width: min(26rem, 100%);
}
.footer__brand-prose strong {
    color: var(--f-text);
    font-weight: 500;
}

@media (min-width: 992px) {
    .footer__newsletter-copy { max-width: none; }
}

/* ── Adresă ──────────────────────────────────────────────── */
.footer-address {
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--f-muted);
    font-size: 15px;
}

/* ── Override Bootstrap .text-secondary în footer ─────────── */
.footer .text-secondary { color: var(--f-muted) !important; }

/* ── Iconițe (pin, telefon) ──────────────────────────────── */
.footer .fa-map-marker-alt,
.footer .fa-phone-volume { color: var(--f-muted); font-size: 15px; }

/* ── Linkuri telefon ─────────────────────────────────────── */
.footer-tel-link {
    color: var(--f-muted);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-tel-link:hover { color: var(--f-link-hover); }

/* ── Social — flat, fără cerc ────────────────────────────── */
.footer-social-link {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: var(--f-muted);
    font-size: 15px;
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    transition: color 0.2s;
}
.footer-social-link:hover {
    color: var(--f-link-hover);
    background: none;
}

/* ── Titluri coloane ──────────────────────────────────────── */
.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--f-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.875rem;
}

/* ── Linkuri navigație ────────────────────────────────────── */
.footer-link,
.footer-link:link,
.footer-link:visited,
.footer-links a,
.footer-links a:link,
.footer-links a:visited {
    font-size: 15px;
    color: #6e6e73 !important;
    text-decoration: none !important;
    line-height: 1.4;
    transition: color 0.2s;
}
.footer-link:hover,
.footer-link:focus,
.footer-links a:hover,
.footer-links a:focus {
    color: #1d1d1f !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.footer-links li { margin-bottom: 0.5rem !important; }

/* ── Newsletter — inputs stil Apple light ────────────────── */
.newsletter-form-container .newsletter-input,
.newsletter-form-container #customerName,
.newsletter-form-container #email {
    font-size: 15px;
    font-family: var(--f-font);
    background-color: var(--f-input-bg);
    border: 1px solid var(--f-border);
    border-radius: 0.5rem;
    color: var(--f-text);
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form-container .newsletter-input:focus,
.newsletter-form-container #customerName:focus,
.newsletter-form-container #email:focus {
    outline: none;
    border-color: var(--f-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
    background-color: var(--f-input-bg);
    color: var(--f-text);
}
.newsletter-form-container .newsletter-input::placeholder,
.newsletter-form-container #customerName::placeholder,
.newsletter-form-container #email::placeholder {
    color: #aeaeb2;
    font-size: 15px;
    opacity: 1;
}

/* ── Buton — pill albastru Apple ─────────────────────────── */
.footer .btn-primary {
    background-color: var(--f-accent);
    border-color: var(--f-accent);
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--f-font);
    letter-spacing: -0.01em;
    padding: 0.625rem 1.5rem;
    transition: background-color 0.2s, border-color 0.2s;
}
.footer .btn-primary:hover,
.footer .btn-primary:focus {
    background-color: var(--f-accent-hov);
    border-color: var(--f-accent-hov);
    box-shadow: none;
}

/* ── Bara de jos ──────────────────────────────────────────── */
.footer__bottom {
    background-color: var(--f-bg-bottom);
    border-top: 1px solid var(--f-border) !important;
}
.footer__bottom .text-secondary,
.footer__bottom .small,
.footer__bottom small {
    color: var(--f-muted) !important;
    font-size: 15px;
    font-family: var(--f-font);
    line-height: 1.6;
}

/* ── Imagini metode plată — naturale ─────────────────────── */
.footer-payment-img {
    object-fit: contain;
    max-height: 28px;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.footer-payment-img:hover { opacity: 1; }

/* ── Mesaj newsletter ─────────────────────────────────────── */
#newsletterMessage.d-block {
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 15px;
    font-family: var(--f-font);
}
#newsletterMessage.success,
#newsletterMessage.d-block.success {
    color: #1c7a3a;
    background-color: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
}
#newsletterMessage.error,
#newsletterMessage.d-block.error {
    color: #c0392b;
    background-color: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.25);
}
