/* ================================
   Shared Footer Styles
   Extracted from homepage.css for use across all pages
   ================================ */

/* Hide reCAPTCHA badge — attribution text in footer per Google TOS */
.grecaptcha-badge { visibility: hidden !important; width: 0 !important; height: 0 !important; overflow: hidden !important; opacity: 0 !important; position: absolute !important; z-index: -1 !important; }

/* ================================
   Apple Safari Link Reset (Aggressive)
   Prevents the classic "blue underlined 90s look"
   ================================ */
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:active {
    /* Remove default blue color */
    color: inherit;
    /* Remove underline decoration */
    text-decoration: none;
    /* Remove tap highlight on iOS */
    -webkit-tap-highlight-color: transparent;
    /* Remove text decoration skip */
    -webkit-text-decoration-skip: none;
    text-decoration-skip-ink: none;
}

/* ================================
   Footer Container
   ================================ */
.site-footer {
    background-color: var(--color-bg-primary, #0d0d0d);
    border-top: 1px solid var(--color-border-dark, #2a2a2a);
    padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 4vw, 3rem);
}

.site-footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ================================
   MAIN GRID LAYOUT - Thoughtful Responsive Strategy
   Desktop: 5 columns (Brand, Nav1, Nav2, Contact, Social+Payment)
   Medium: Smart 2x2 grid with Brand full-width
   ================================ */
.site-footer__main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ================================
   RESPONSIVE BREAKPOINTS - Professional Flow
   ================================ */

/* 1200px - Start tightening before squish happens */
@media (max-width: 1200px) {
    .site-footer__main {
        gap: 2.5rem;
    }
}

/* 1024px - Break to 2x2 grid earlier to fix medium screen scatter */
@media (max-width: 1024px) {
    .site-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2.5rem;
    }

    /* Brand column spans full width on first row */
    .site-footer__col--brand {
        grid-column: 1 / -1;
    }
}

/* 900px - Maintain 2x2 with tighter gaps */
@media (max-width: 900px) {
    .site-footer__main {
        gap: 2.5rem 2rem;
    }

    .site-footer__newsletter {
        padding: 1rem;
    }
}

/* 768px - Keep 2 columns but tighter */
@media (max-width: 768px) {
    .site-footer__main {
        gap: 2rem 1.5rem;
    }

    .site-footer__newsletter-input-group {
        width: 100%;
    }
}

/* 640px - Single column stack */
@media (max-width: 640px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* 480px - Tighten mobile spacing */
@media (max-width: 480px) {
    .site-footer__main {
        gap: 2.5rem;
    }
}

/* ================================
   Column Base Styles
   ================================ */
.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0; /* Prevent overflow */
}

.site-footer__col-title {
    font-family: var(--font-sans, 'Montserrat', -apple-system, sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-gold, #d4af37);
    margin-bottom: 0.5rem;
}

/* ================================
   BRAND COLUMN - Clean & Restrained
   ================================ */
.site-footer__logo-img {
    height: 80px;
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.site-footer__logo-text {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--color-text-primary, #f5f5f5);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.site-footer__tagline {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-secondary, #c4c4c4);
    margin-bottom: 1rem;
}

.site-footer__description {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-text-secondary, #c4c4c4);
    margin-bottom: 1.5rem;
}

/* ================================
   NEWSLETTER - Smaller, Less Dominant
   ================================ */
.site-footer__newsletter {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-dark, #2a2a2a);
    border-radius: 2px;
}

@media (max-width: 640px) {
    .site-footer__newsletter {
        padding: 1rem;
    }
}

.site-footer__newsletter-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-primary, #f5f5f5);
    margin-bottom: 0.5rem;
}

.site-footer__newsletter-text {
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text-muted, #8a8a8a);
    margin-bottom: 1rem;
}

.site-footer__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.site-footer__newsletter-input-group {
    display: flex;
    gap: 0;
}

.site-footer__newsletter-input {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    background-color: var(--color-bg-primary, #0d0d0d);
    border: 1px solid var(--color-border-dark, #2a2a2a);
    border-right: none;
    border-radius: 2px 0 0 2px;
    color: var(--color-text-primary, #f5f5f5);
    outline: none;
    transition: border-color 250ms;
}

@media (max-width: 640px) {
    .site-footer__newsletter-input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

.site-footer__newsletter-input:focus {
    border-color: var(--color-accent-gold, #d4af37);
}

.site-footer__newsletter-input::placeholder {
    color: var(--color-text-muted, #8a8a8a);
    font-size: 0.8125rem;
}

.site-footer__newsletter-button {
    padding: 0.625rem 0.875rem;
    background-color: var(--color-accent-gold, #d4af37);
    border: 1px solid var(--color-accent-gold, #d4af37);
    border-radius: 0 2px 2px 0;
    color: var(--color-bg-primary, #0d0d0d);
    cursor: pointer;
    transition: all 250ms;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-footer__newsletter-button:hover {
    background-color: #e0be51;
}

.site-footer__newsletter-privacy {
    font-size: 0.6875rem;
    color: var(--color-text-muted, #8a8a8a);
    line-height: 1.4;
}

.site-footer__newsletter-privacy a {
    color: var(--color-text-secondary, #c4c4c4);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 250ms;
}

.site-footer__newsletter-privacy a:hover {
    border-bottom-color: var(--color-accent-gold, #d4af37);
}

/* ================================
   NAVIGATION COLUMNS - Clean Lists
   ================================ */
.site-footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__nav-link {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-text-secondary, #c4c4c4);
    text-decoration: none;
    transition: color 250ms;
    display: inline-block;
}

.site-footer__nav-link:hover {
    color: var(--color-accent-gold, #d4af37);
}

/* ================================
   CONTACT COLUMN
   ================================ */
.site-footer__contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-text-secondary, #c4c4c4);
    line-height: 1.5;
}

.site-footer__contact-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--color-text-muted, #8a8a8a);
}

.site-footer__contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 250ms;
}

.site-footer__contact-item a:hover {
    color: var(--color-accent-gold, #d4af37);
}

/* Social Media */
.site-footer__social {
    margin-top: 1.25rem;
}

.site-footer__social-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-primary, #f5f5f5);
    margin-bottom: 0.75rem;
}

.site-footer__social-links {
    display: flex;
    gap: 0.75rem;
}

.site-footer__social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #c4c4c4);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-dark, #2a2a2a);
    border-radius: 50%;
    transition: all 250ms;
}

.site-footer__social-link:hover {
    color: var(--color-accent-gold, #d4af37);
    border-color: var(--color-accent-gold, #d4af37);
    transform: translateY(-2px);
}

/* ================================
   PAYMENT BADGES - Subtle
   ================================ */
.site-footer__payment {
    margin-top: 1.25rem;
}

.site-footer__payment-title {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted, #8a8a8a);
    margin-bottom: 0.625rem;
}

.site-footer__payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer__payment-icon {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-muted, #8a8a8a);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-dark, #2a2a2a);
    border-radius: 2px;
    white-space: nowrap;
}

/* ================================
   BOTTOM BAR - Clean Separation
   ================================ */
.site-footer__bottom {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid var(--color-border-dark, #2a2a2a);
}

.site-footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .site-footer__bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

.site-footer__copyright {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--color-text-muted, #8a8a8a);
    margin: 0;
}

/* Legal Navigation in Bottom Bar */
.site-footer__legal-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-footer__legal-link {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--color-text-muted, #8a8a8a);
    text-decoration: none;
    transition: color 200ms ease;
}

.site-footer__legal-link:hover {
    color: var(--color-text-primary, #f5f5f5);
}

.site-footer__legal-separator {
    color: var(--color-border-dark, #2a2a2a);
    font-size: 0.75rem;
    user-select: none;
}

/* Right side wrapper for legal nav + credit */
.site-footer__bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Footer credit styling */
.footer-credit {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--color-text-muted, #8a8a8a);
}

.footer-credit a {
    color: var(--color-text-muted, #8a8a8a);
    text-decoration: none;
    transition: color 200ms ease;
}

.footer-credit a:hover {
    color: var(--color-accent-gold, #d4af37);
}

@media (max-width: 640px) {
    .site-footer__legal-nav {
        justify-content: center;
    }

    .site-footer__bottom-right {
        align-items: center;
        width: 100%;
    }
}

/* ================================
   ANIMATIONS - Subtle
   ================================ */
@keyframes footerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer__col {
    animation: footerFadeInUp 500ms ease-out backwards;
}

.site-footer__col:nth-child(1) { animation-delay: 0ms; }
.site-footer__col:nth-child(2) { animation-delay: 75ms; }
.site-footer__col:nth-child(3) { animation-delay: 150ms; }
.site-footer__col:nth-child(4) { animation-delay: 225ms; }
.site-footer__col:nth-child(5) { animation-delay: 300ms; }

/* ================================
   ACCESSIBILITY
   ================================ */
.site-footer__nav-link:focus,
.site-footer__social-link:focus,
.site-footer__newsletter-input:focus,
.site-footer__newsletter-button:focus {
    outline: 2px solid var(--color-accent-gold, #d4af37);
    outline-offset: 2px;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .site-footer {
        background: white;
        color: black;
    }
    .site-footer__newsletter,
    .site-footer__social,
    .site-footer__payment {
        display: none;
    }
}

/* ================================
   Newsletter Message Feedback
   ================================ */
.newsletter-message {
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border-radius: 2px;
    font-size: 0.85rem;
    transition: opacity 300ms;
}

.newsletter-message--success {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-message--error {
    background: rgba(244, 67, 54, 0.15);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}
