/*
========================================
  MODERN HOMEPAGE STYLES
  Es Cokelat Seroja - Premium Design
  COMPLETE VERSION WITH RESPONSIVE FOOTER
========================================
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #6b4226;
    --primary-dark: #4b2c20;
    --primary-light: #8b5a3c;
    --accent-color: #f59e0b;
    --text-dark: #4A2810;
    --text-gray: #6b7280;
    --bg-light: #fef8f3;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(74, 40, 16, 0.08);
    --shadow-md: 0 4px 16px rgba(74, 40, 16, 0.12);
    --shadow-lg: 0 8px 32px rgba(74, 40, 16, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container,
.container-fluid,
.row {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

button,
.btn,
a.btn {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===== FOOTER - ENHANCED AESTHETIC & FULLY RESPONSIVE ===== */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #dddddd;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Wave */
.footer-wave {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    color: var(--bg-light);
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Main Footer Content */
.footer-content {
    padding: 80px 0 60px;
    position: relative;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--accent-color);
    animation: float 3s ease-in-out infinite;
}

.footer-logo h3 {
    color: var(--bg-white);
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

.footer-desc {
    color: #cccccc;
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Footer Quick Stats */
.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.footer-stat-item:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateX(5px);
}

.footer-stat-item i {
    color: var(--accent-color);
    font-size: 1.125rem;
}

.footer-stat-item span {
    color: #dddddd;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer Contact */
.footer-contact h4 {
    color: var(--bg-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: #999999;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-text a {
    color: #dddddd;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--accent-color);
}

.contact-text p {
    color: #cccccc;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer Social Section */
.footer-social-section h5,
.footer-social h5 {
    color: var(--bg-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-social-section h5::after,
.footer-social h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

/* Social Icons Grid */
.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-icon {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--bg-white);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 40, 16, 0.3);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.social-icon:hover::before {
    width: 200%;
    height: 200%;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 40, 16, 0.4);
}

/* Social Platform Colors */
.social-facebook {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.social-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-whatsapp {
    background: linear-gradient(135deg, #25d366, #1ebe57);
}

/* Operating Hours */
.footer-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours h5 {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-hours h5 i {
    color: var(--accent-color);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.hours-item:last-of-type {
    border-bottom: none;
}

.hours-item span:first-child {
    color: #cccccc;
}

.hours-item span:last-child {
    color: var(--accent-color);
    font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #cccccc;
    font-size: 0.9375rem;
    margin: 0;
}

.footer-copyright strong {
    color: var(--accent-color);
}

/* Back to Top Button */


@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== RESPONSIVE FOOTER - TABLET (768px - 991px) ===== */
@media (max-width: 991px) {
    .footer-content {
        padding: 70px 0 50px;
    }
    
    .footer-wave svg {
        height: 70px;
    }
    
    .footer-social-section .row {
        margin: 0;
    }
    
    .social-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .social-icon {
        height: 55px;
        font-size: 1.375rem;
    }
}

/* ===== RESPONSIVE FOOTER - MOBILE (576px - 767px) ===== */
@media (max-width: 767px) {
    .footer-content {
        padding: 60px 0 40px;
    }
    
    .footer-wave svg {
        height: 60px;
    }
    
    /* Center align all footer content on mobile */
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo i {
        font-size: 2.25rem;
    }
    
    .footer-logo h3 {
        font-size: 1.375rem;
    }
    
    .footer-desc {
        text-align: center;
        font-size: 0.875rem;
    }
    
    .footer-stats {
        align-items: center;
    }
    
    .footer-stat-item {
        justify-content: center;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Contact section mobile */
    .footer-contact h4 {
        text-align: center;
        font-size: 1rem;
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        padding: 0.875rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-text a,
    .contact-text p {
        font-size: 0.875rem;
    }
    
    /* Social section mobile */
    .footer-social-section h5,
    .footer-social h5 {
        text-align: center;
        font-size: 1rem;
    }
    
    .footer-social-section h5::after,
    .footer-social h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Keep 2 columns for social icons on mobile */
    .social-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .social-icon {
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Hours section mobile */
    .footer-hours {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-hours h5 {
        font-size: 0.9375rem;
        justify-content: center;
    }
    
    .hours-item {
        font-size: 0.8125rem;
    }
    
    /* Footer bottom mobile */
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-copyright {
        font-size: 0.875rem;
    }
    

}

/* ===== RESPONSIVE FOOTER - SMALL MOBILE (max 575px) ===== */
@media (max-width: 575px) {
    .footer-content {
        padding: 50px 0 30px;
    }
    
    .footer-wave svg {
        height: 50px;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-logo i {
        font-size: 2rem;
    }
    
    .footer-logo h3 {
        font-size: 1.25rem;
    }
    
    .footer-desc {
        font-size: 0.8125rem;
        text-align: center;
    }
    
    /* Stats full width on small mobile */
    .footer-stat-item {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-stat-item span {
        font-size: 0.8125rem;
    }
    
    /* Contact smaller padding */
    .contact-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9375rem;
    }
    
    .contact-label {
        font-size: 0.6875rem;
    }
    
    .contact-text a,
    .contact-text p {
        font-size: 0.8125rem;
    }
    
    /* Social icons - keep 2 columns but smaller */
    .social-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        max-width: 280px;
    }
    
    .social-icon {
        height: 45px;
        font-size: 1.125rem;
        border-radius: 12px;
    }
    
    /* Hours compact */
    .footer-hours {
        padding: 1rem;
    }
    
    .footer-hours h5 {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .hours-item {
        padding: 0.625rem 0;
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-copyright {
        font-size: 0.8125rem;
        line-height: 1.6;
    }
    

    
    /* Container Padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== EXTRA SMALL DEVICES (320px - 375px) ===== */
@media (max-width: 375px) {
    .footer-content {
        padding: 40px 0 25px;
    }
    
    .footer-logo h3 {
        font-size: 1.125rem;
    }
    
    .footer-desc {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .footer-stat-item {
        padding: 0.625rem 0.875rem;
    }
    
    .footer-stat-item i {
        font-size: 1rem;
    }
    
    .footer-stat-item span {
        font-size: 0.75rem;
    }
    
    .contact-item {
        padding: 0.625rem;
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .contact-text a,
    .contact-text p {
        font-size: 0.75rem;
    }
    
    .social-icons-grid {
        max-width: 260px;
        gap: 0.5rem;
    }
    
    .social-icon {
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .footer-hours {
        padding: 0.875rem;
    }
    
    .footer-hours h5 {
        font-size: 0.8125rem;
    }
    
    .hours-item {
        font-size: 0.6875rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* ===== LANDSCAPE MOBILE OPTIMIZATION ===== */
@media (max-width: 767px) and (orientation: landscape) {
    .footer-content {
        padding: 40px 0 30px;
    }
    
    .footer-logo {
        flex-direction: row;
        justify-content: center;
    }
    
    .social-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 400px;
    }
    
    .social-icon {
        height: 45px;
    }
}

/* ===== BOOTSTRAP ICONS ===== */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');