/* =============================================================================
 * Blue Horse Pictures — Footer redesign (self-contained)
 * =============================================================================
 * Loaded after style.css so all .bhp-ft-* rules win by cascade order.
 * Fully namespaced (.bhp-ft-*) so nothing here collides with the old
 * .footer-wrap / .footer-widget styles still in style.css.
 *
 * Data bindings (unchanged from the original footer):
 *   $ro  = tbl_contact row  (phones, emails, address, social links, whatsapp)
 *   $pro = tbl_profile row  (dark logo)
 *   $conn = DB handle       (categories loop)
 * Form posts to mail/footerMail.php with fields: name, phone,
 * g-recaptcha-response, submit — all preserved.
 * ============================================================================= */

.bhp-footer {
    position: relative;
    background: #00003a;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(60, 70, 160, 0.28) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(20, 26, 90, 0.40) 0%, transparent 45%),
        linear-gradient(180deg, #000552 0%, #00002e 100%);
    color: rgba(255, 255, 255, 0.72);
    font-family: "Open Sans", sans-serif;
    overflow: hidden;
    isolation: isolate;
}

/* faint dot-grid texture */
.bhp-footer::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.6;
    pointer-events: none;
}

/* hairline gold rule along the very top */
.bhp-footer::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #d4a95a 20%, #d4a95a 80%, transparent);
    opacity: 0.55;
}

.bhp-ft-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 72px 24px 40px;
}

/* ---- Top grid: brand | links | contact | callback ------------------------- */
.bhp-ft-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.6fr;
    gap: 48px;
}
@media (max-width: 1100px) {
    .bhp-ft-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 575px) {
    .bhp-ft-grid { grid-template-columns: 1fr; gap: 36px; }
    .bhp-ft-inner { padding: 48px 20px 32px; }
}

.bhp-ft-col-title {
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 22px;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 12px;
}
.bhp-ft-col-title::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 32px; height: 2px;
    background: #d4a95a;
    border-radius: 2px;
}

/* ---- Brand column --------------------------------------------------------- */
.bhp-ft-logo { display: inline-block; margin-bottom: 18px; }
.bhp-ft-logo img { max-width: 190px; height: auto; }
.bhp-ft-unit {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}
.bhp-ft-unit strong { color: rgba(255,255,255,0.85); font-weight: 600; }

.bhp-ft-social-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.45);
    margin: 24px 0 12px;
}
.bhp-ft-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
.bhp-ft-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.bhp-ft-social a:hover {
    transform: translateY(-3px);
    background: #d4a95a;
    border-color: #d4a95a;
    color: #00002e;
}

/* ---- Links column --------------------------------------------------------- */
.bhp-ft-links {
    list-style: none;
    margin: 0; padding: 0;
    columns: 1;
}
.bhp-ft-links li { margin-bottom: 11px; }
.bhp-ft-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.66);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.18s ease, padding-left 0.18s ease;
}
.bhp-ft-links a i { color: #d4a95a; font-size: 16px; transition: transform 0.18s ease; }
.bhp-ft-links a:hover { color: #ffffff; padding-left: 4px; }
.bhp-ft-links a:hover i { transform: translateX(2px); }

/* ---- Contact column ------------------------------------------------------- */
.bhp-ft-contact { list-style: none; margin: 0; padding: 0; }
.bhp-ft-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.55;
}
.bhp-ft-contact li i {
    flex: 0 0 auto;
    color: #d4a95a;
    font-size: 18px;
    margin-top: 2px;
}
.bhp-ft-contact a {
    color: rgba(255,255,255,0.66);
    text-decoration: none;
    transition: color 0.18s ease;
    word-break: break-word;
}
.bhp-ft-contact a:hover { color: #ffffff; }
.bhp-ft-contact .stack a { display: block; }

/* ---- Callback form column ------------------------------------------------- */
.bhp-ft-form-intro {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin: 0 0 18px;
}
.bhp-ft-form .form-group { margin-bottom: 12px; }
.bhp-ft-form input[type="text"],
.bhp-ft-form input[type="tel"] {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 13px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.bhp-ft-form input::placeholder { color: rgba(255,255,255,0.4); }
.bhp-ft-form input:focus {
    outline: none;
    border-color: #d4a95a;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(212, 169, 90, 0.15);
}
.bhp-ft-form .bhp-ft-submit {
    width: 100%;
    background: #d4a95a;
    color: #00002e;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-family: "Lexend", sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bhp-ft-form .bhp-ft-submit:hover {
    transform: translateY(-2px);
    background: #e0b96e;
    box-shadow: 0 8px 20px rgba(212, 169, 90, 0.3);
}
.bhp-ft-form .bhp-ft-submit:active { transform: translateY(0); }
/* reCAPTCHA v3 notice text — keep it small + muted */
.bhp-ft-form .grecaptcha-notice,
.bhp-ft-form small,
.bhp-ft-recaptcha {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255,255,255,0.4);
    margin: 4px 0 12px;
}
.bhp-ft-form .grecaptcha-notice a,
.bhp-ft-recaptcha a { color: rgba(255,255,255,0.6); }

/* ---- Bottom bar ----------------------------------------------------------- */
.bhp-ft-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
}
.bhp-ft-bottom-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.bhp-ft-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.bhp-ft-copyright i { color: #d4a95a; margin-right: 4px; vertical-align: middle; }
.bhp-ft-copyright a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 600; }
.bhp-ft-copyright a:hover { color: #d4a95a; }

.bhp-ft-bottom-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0; padding: 0;
    justify-content: center;
    flex: 1 1 auto;
}
.bhp-ft-bottom-menu a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.18s ease;
}
.bhp-ft-bottom-menu a:hover { color: #ffffff; }

.bhp-ft-credit {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    white-space: nowrap;
}
.bhp-ft-credit a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
}
.bhp-ft-credit a:hover { color: #d4a95a; }

@media (max-width: 767px) {
    .bhp-ft-bottom-inner { flex-direction: column; text-align: center; gap: 12px; }
    .bhp-ft-bottom-menu { justify-content: center; }
}

/* ---- Floating WhatsApp button (kept, restyled a touch) -------------------- */
.bhp-wa-float {
    position: fixed;
    left: 22px; bottom: 22px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: bhp-wa-pulse 2.4s infinite;
}
.bhp-wa-float:hover {
    transform: scale(1.08);
    color: #ffffff;
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
}
@keyframes bhp-wa-pulse {
    0%   { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
    .bhp-wa-float { animation: none; }
    .bhp-ft-social a, .bhp-ft-links a, .bhp-ft-form .bhp-ft-submit { transition: none; }
}
@media (max-width: 575px) {
    .bhp-wa-float { width: 50px; height: 50px; font-size: 26px; left: 16px; bottom: 16px; }
}
