/* --- Footer Component Styles --- */
:root {
    --color-dark: #292f35;
    --color-darker: #202428;
    --color-red: #b21f24;
    --color-text-light: #ced4da;
    --color-white: #fff;
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- General Link Styles --- */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Pre-Footer --- */
.pre-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 20px 0;
    margin-bottom: -50px;
}

.pre-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-footer span {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-white);
    font-weight: 500;
}

.quote-btn {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.quote-btn:hover {
    background-color: #8c171b;
}

/* --- Main Footer --- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 100px 0 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-col-1 {
    width: 30%;
}

.footer-col-2 {
    width: 18%;
}

.footer-col-3 {
    width: 18%;
}

.footer-col-4 {
    width: 34%;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    display: inline-block;
}

.newsletter-form {
    margin-top: 15px;
    display: flex;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #555;
    background-color: #333;
    color: var(--color-white);
    border-radius: 0;
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: #555;
    border: 1px solid #555;
    color: var(--color-white);
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-light);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-red);
}

.footer-socials {
    margin-bottom: 25px;
}

.footer-socials a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.footer-socials .fb {
    background: #3b5998;
}

.footer-socials .tw {
    background: #1da1f2;
}

.footer-socials .gplus {
    background: #dd4b39;
}

.footer-socials .li {
    background: #0077b5;
}

.footer-socials .db {
    background: #ea4c89;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.contact-info strong {
    color: var(--color-white);
}

.contact-info .view-directions {
    color: var(--color-red);
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.3s;
}

.contact-info .view-directions:hover {
    color: #8c171b;
}

/* Sister Concerns Image */
.sister-concerns-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-top: 15px;
}

/* --- Sub-Footer --- */
.sub-footer {
    background-color: var(--color-darker);
    color: #aaa;
    padding: 20px 0;
    font-size: 14px;
}

.sub-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

.copyright strong {
    color: var(--color-white);
}

.sub-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom-links a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

.back-to-top {
    width: 35px;
    height: 35px;
    background-color: #444;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: var(--color-red);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
}

.whatsapp-float a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float a:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

.whatsapp-float a:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.6);
    outline-offset: 2px;
}

.whatsapp-float i {
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .whatsapp-float a {
        width: 52px;
        height: 52px;
    }
    .whatsapp-float i {
        font-size: 26px;
    }
}

/* =======================
     Responsive Adjustments
  ======================== */
@media (max-width: 992px) {
    .main-footer { padding: 80px 0 50px; }
    .footer-grid { gap: 20px; }
    .footer-col-1 { width: 100%; }
    .footer-col-2, .footer-col-3, .footer-col-4 { width: 48%; }
    .pre-footer span { font-size: 20px; }
    .quote-btn { padding: 10px 20px; font-size: 13px; }
    .sub-footer .container { flex-wrap: wrap; gap: 10px 16px; }
}

@media (max-width: 768px) {
    .pre-footer { padding: 16px 0; margin-bottom: 0; }
    .pre-footer-content { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
    .quote-btn { width: 100%; max-width: 320px; text-align: center; }

    .footer-col { width: 100%; text-align: center; }
    .footer-col h4 { font-size: 18px; }
    .footer-socials { display: flex; justify-content: center; }
    .contact-info { text-align: center; }

    .sub-footer .container { flex-direction: column; align-items: center; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
    .sub-footer-right { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .main-footer { padding: 60px 0 40px; }
    .pre-footer span { font-size: 18px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { margin-bottom: 10px; }
    .back-to-top { width: 32px; height: 32px; }
    .copyright { font-size: 13px; }
    .footer-bottom-links a { font-size: 13px; }
}
