/* ==========================================================================
   Shared Site Footer Styles (WEB-INF/css/footer.css)
   Reusable across all pages of Oporajita / Aparajito.
   Comprises 3 distinct horizontal regions:
     - Region A: Deep Navy-Blue Main Contact Area (#263D7B)
     - Region B: Dark Charcoal Social Media Bar (#222222)
     - Region C: Solid Black Copyright Strip (#111111)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Footer Variables & Wrapper
   -------------------------------------------------------------------------- */
.site-footer {
    width: 100%;
    margin-top: auto;
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    color: #ffffff;
    box-sizing: border-box;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

/* Centered container for each footer region (max ~1300px) */
.footer-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3.5vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   2. Region A: Main Contact Footer (Navy Blue)
   -------------------------------------------------------------------------- */
.footer-contact-region {
    width: 100%;
    background-color: #263D7B;
    padding: clamp(3.5rem, 5.5vw, 5.25rem) 0;
    position: relative;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: clamp(2rem, 4.5vw, 4.75rem);
    align-items: start;
}

/* Column 1: Brand / Tilted Logo & Address */
.footer-col-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-wrapper {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    outline: none;
}

.footer-logo-img {
    display: block;
    width: auto;
    height: 95px;
    max-height: 105px;
    object-fit: contain;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.footer-logo-img:hover {
    transform: scale(1.04);
}

/* Tilted Logo Placeholder Card (~112px x 112px, -7deg tilt) */
.footer-logo-placeholder {
    width: 112px;
    height: 112px;
    background: #1e2f5b;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    box-shadow: 
        -4px 6px 18px rgba(0, 0, 0, 0.38),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    transform: rotate(-7deg);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    user-select: none;
}

.footer-logo-placeholder:hover {
    transform: rotate(-3deg) scale(1.04);
    box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.48);
}

.footer-logo-inner {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 4px;
}

.footer-logo-symbol {
    font-size: 1.35rem;
    color: #ffd166;
    line-height: 1;
    margin-bottom: 3px;
}

.footer-logo-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 3px;
}

.footer-logo-badge {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.32);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Future actual logo replacement support */
.footer-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.footer-address {
    font-style: normal;
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    max-width: 330px;
    margin: 0;
}

/* Columns 2 & 3: Headings and Details */
.footer-col-heading {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.8rem, 2.3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 clamp(1.15rem, 1.8vw, 1.5rem) 0;
    letter-spacing: -0.01em;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-contact-line {
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.footer-hours-line {
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.footer-separator {
    display: inline-block;
    margin: 0 0.35rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.footer-link:hover {
    color: #ffd166;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link:focus-visible {
    outline: 2px solid #ffd166;
    outline-offset: 3px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Region B: Social Media Bar (Dark Charcoal #222222)
   -------------------------------------------------------------------------- */
.footer-social-region {
    width: 100%;
    background-color: #222222;
    padding: clamp(0.85rem, 1.4vw, 1.15rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-bar {
    display: flex;
    justify-content: flex-end; /* Right-aligned on desktop as per screenshot */
    align-items: center;
}

.footer-social-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.footer-social-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.footer-social-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.12);
}

.footer-social-item:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.footer-social-icon {
    display: block;
}

/* --------------------------------------------------------------------------
   4. Region C: Copyright Bar (Solid Black Strip #111111)
   -------------------------------------------------------------------------- */
.footer-copyright-region {
    width: 100%;
    background-color: #111111;
    padding: clamp(0.85rem, 1.2vw, 1.1rem) 0;
}

.footer-copyright-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.footer-copyright-text {
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
    margin: 0;
    letter-spacing: 0.01em;
}

.footer-heart {
    color: #e53e3e; /* Red heart symbol */
    display: inline-block;
    margin: 0 3px;
    font-size: 1.05em;
    vertical-align: baseline;
}

.footer-seo-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: clamp(0.78rem, 0.9vw, 0.85rem);
}

.footer-seo-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-seo-link:hover,
.footer-seo-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    outline: none;
}

.footer-seo-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    user-select: none;
}

/* --------------------------------------------------------------------------
   5. Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Tablet (max-width: 992px) */
@media screen and (max-width: 992px) {
    .footer-contact-grid {
        gap: clamp(1.75rem, 3vw, 2.5rem);
    }

    .footer-col-heading {
        font-size: clamp(1.5rem, 2.8vw, 1.85rem);
        margin-bottom: 1rem;
    }
}

/* Small Tablet & Mobile Stack (max-width: 768px) */
@media screen and (max-width: 768px) {
    .footer-contact-region {
        padding: 3.25rem 0;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col-brand {
        align-items: flex-start;
    }

    .footer-address {
        max-width: 100%;
    }

    .footer-social-bar {
        justify-content: center; /* Centered on mobile */
    }

    .footer-copyright-container {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-copyright-text {
        text-align: center;
        font-size: 0.84rem;
        line-height: 1.55;
        padding: 0 0.5rem;
    }

    .footer-seo-nav {
        justify-content: center;
    }
}

/* Small Mobile Screens (max-width: 480px) */
@media screen and (max-width: 480px) {
    .footer-contact-region {
        padding: 2.75rem 0;
    }

    .footer-contact-grid {
        gap: 2.25rem;
    }

    .footer-col-heading {
        font-size: 1.45rem;
    }

    .footer-contact-line,
    .footer-hours-line,
    .footer-address {
        font-size: 0.98rem;
    }

    .footer-social-nav {
        gap: 1.25rem;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .footer-logo-placeholder,
    .footer-social-item,
    .footer-link {
        transition: none;
    }

    .footer-logo-placeholder:hover,
    .footer-social-item:hover {
        transform: none;
    }
}
