/**
 * Footer Styles
 * Italia Delight Theme - Replicates Next.js Footer.tsx
 */

/* ===== Site Footer ===== */
.site-footer {
    position: relative;
    background-color: var(--color-footer-gray);
    color: white;
    margin-top: 5rem;
}

/* ===== Footer Pattern Background ===== */
.footer-pattern {
    position: relative;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
}

/* ===== Footer Links ===== */
.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: white;
}

.footer-link:focus-visible {
    outline: 2px solid var(--color-brand-red);
    outline-offset: 2px;
}

/* ===== Footer Headings ===== */
.site-footer h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.site-footer h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: 0.5rem;
}

/* ===== Footer Lists ===== */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.75rem;
}

/* ===== Contact Icons ===== */
.contact-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-red);
    transition: transform var(--transition-normal);
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== CTA Button ===== */
.footer-cta-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-brand-red);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-top: 1.5rem;
}

.footer-cta-button:hover {
    background-color: var(--color-brand-red-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ===== Blog Section (Tier 2) ===== */
.blog-section {
    background-color: var(--color-footer-gray-medium);
    border-top: 1px solid #4b5563;
}

.blog-section h3 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: 0.5rem;
}

/* ===== Blog Card ===== */
.blog-card {
    background-color: var(--color-footer-gray);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.blog-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.blog-card:hover img {
    transform: scale(1.1);
}

.blog-card h4 {
    color: white;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.blog-card:hover h4 {
    color: var(--color-brand-red);
}

.blog-card p {
    color: #d1d5db;
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.blog-card time {
    color: #9ca3af;
    font-size: var(--font-size-xs);
}

.blog-card-link {
    color: var(--color-brand-red);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xs);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-link:hover {
    color: white;
    gap: 0.5rem;
}

/* ===== Legal Bar (Tier 3) ===== */
.legal-bar {
    background-color: var(--color-footer-gray-dark);
    border-top: 1px solid #4b5563;
}

.legal-bar .company-info {
    color: #9ca3af;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-relaxed);
}

.legal-bar .legal-links {
    color: #9ca3af;
    font-size: var(--font-size-sm);
}

.legal-bar a {
    color: #9ca3af;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-bar a:hover {
    color: white;
}

.legal-bar a:focus-visible {
    outline: 2px solid var(--color-brand-red);
    outline-offset: 2px;
}

.tech-stack {
    color: #6b7280;
    font-size: var(--font-size-xs);
}

/* ===== Responsive Grid ===== */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Address Styling ===== */
address {
    font-style: normal;
}

/* ===== Red Accent Divider ===== */
.accent-divider {
    height: 0.125rem;
    width: 2.5rem;
    background-color: var(--color-brand-red);
    margin-bottom: 1rem;
}

/* ===== Flex-shrink Fix for Icons ===== */
.flex-shrink-0 {
    flex-shrink: 0;
}
