/* ========================================
   Mie Aceh Gandapura - Custom Styles
   ======================================== */

/* Smooth scroll & prevent horizontal overflow on mobile */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

/* Selection color */
::selection {
    background-color: rgba(139, 37, 0, 0.15);
    color: #2D1810;
}

/* Nav links - desktop */
.nav-link {
    position: relative;
    color: rgba(45, 24, 16, 0.7);
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8B2500;
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #8B2500;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    color: rgba(45, 24, 16, 0.7);
    transition: all 0.2s;
}
.mobile-nav-link:hover {
    color: #8B2500;
    background-color: rgba(139, 37, 0, 0.05);
}

/* Dot pattern for hero */
.dot-pattern {
    background-image: radial-gradient(circle, #8B2500 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #8B2500;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(139, 37, 0, 0.2);
    transition: all 0.3s;
}
.btn-primary:hover {
    background-color: #A83200;
    box-shadow: 0 20px 25px -5px rgba(139, 37, 0, 0.25);
    transform: scale(1.05);
}
.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #8B2500;
    border: 2px solid #8B2500;
    border-radius: 0.75rem;
    transition: all 0.3s;
}
.btn-outline:hover {
    background-color: rgba(139, 37, 0, 0.05);
    transform: scale(1.05);
}
.btn-outline:active {
    transform: scale(0.98);
}

/* Menu tabs */
.menu-tab {
    padding: 0.375rem 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 0.625rem;
    color: rgba(45, 24, 16, 0.5);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
    text-align: center;
}
.menu-tab:hover {
    color: #8B2500;
    background-color: rgba(139, 37, 0, 0.05);
}
.menu-tab.active {
    color: white;
    background-color: #8B2500;
    box-shadow: 0 2px 8px rgba(139, 37, 0, 0.3);
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: #8B2500;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 37, 0, 0.3);
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    z-index: 40;
    border: none;
    cursor: pointer;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background-color: #A83200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 37, 0, 0.4);
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .btn-primary,
    .btn-outline {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
    .menu-tab {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
    }
    .scroll-top-btn {
        bottom: 2rem;
        right: 2rem;
        width: 3rem;
        height: 3rem;
    }
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #8B2500;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Textarea resize */
textarea {
    min-height: 100px;
}
