/* ============================================
   Docs Coffee House — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation
   ============================================ */
.nav-scrolled {
    border-bottom: 1px solid transparent;
}

.nav-scrolled.scrolled {
    border-bottom-color: rgba(45, 90, 61, 0.08);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #F5F0E8;
    color: #2D5A3D;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #F5F0E8;
    font-weight: 600;
    border: 2px solid rgba(245, 240, 232, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: rgba(245, 240, 232, 0.8);
    background: rgba(245, 240, 232, 0.08);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    background: #2D5A3D;
    color: #F5F0E8;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-nav:hover {
    background: #3a6347;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.25);
}

.btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2D5A3D;
    color: #F5F0E8;
    font-weight: 700;
    padding: 0.8rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-mobile:hover {
    background: #3a6347;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    max-height: 0;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
}

/* ============================================
   Form Inputs
   ============================================ */
.input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #d9e6dc;
    border-radius: 0.75rem;
    font-family: 'Nunito Sans', system-ui, sans-serif;
    font-size: 1rem;
    color: #2D5A3D;
    background: #FDFCFA;
    transition: all 0.2s ease;
    outline: none;
}

.input-field::placeholder {
    color: #b8d1bb;
}

.input-field:hover {
    border-color: #8fb896;
}

.input-field:focus {
    border-color: #2D5A3D;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
    background: #ffffff;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* Always visible for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Menu hover effects
   ============================================ */
.menu-item-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d9e6dc, transparent);
}

/* ============================================
   Focus visible styles
   ============================================ */
:focus-visible {
    outline: 2px solid #2D5A3D;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background: #d9e6dc;
    color: #2D5A3D;
}
