/* ============================================
   B.T.M Fletcher — Custom Styles
   Bold editorial café & bar website
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background-color: #1B4332;
    color: #faf9f6;
}

/* ---- Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999;
    padding: 0.75rem 1.5rem;
    background: #1B4332;
    color: #faf9f6;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ---- Scroll Progress Line ---- */
.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(147, 188, 152, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line-fill {
    width: 100%;
    height: 40%;
    background: #93bc98;
    position: absolute;
    top: 0;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -40%; }
    100% { top: 100%; }
}

/* ---- Navigation ---- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1B4332;
    transition: width 0.3s ease;
}

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

/* ---- Primary Button ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: #1B4332;
    color: #faf9f6;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: #264f30;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.3);
}

/* ---- Hero Buttons ---- */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #faf9f6;
    color: #1B4332;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-hero-primary:hover {
    background: #ebe7db;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #faf9f6;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(250, 249, 246, 0.3);
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(250, 249, 246, 0.1);
    border-color: rgba(250, 249, 246, 0.6);
    transform: translateY(-2px);
}

/* ---- Hero Animations ---- */
.hero-title {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(100%);
}

.hero-title:nth-child(2) { animation-delay: 0.1s; }
.hero-title:nth-child(3) { animation-delay: 0.2s; }
.hero-title:nth-child(4) { animation-delay: 0.3s; }
.hero-title:nth-child(5) { animation-delay: 0.4s; }
.hero-title:nth-child(6) { animation-delay: 0.5s; }
.hero-title:nth-child(7) { animation-delay: 0.6s; }

.hero-subtitle {
    animation: heroFadeIn 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-intro {
    animation: heroFadeIn 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-ctas {
    animation: heroFadeIn 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image-wrapper {
    animation: heroImageIn 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateX(40px);
}

@keyframes heroSlideUp {
    to { transform: translateY(0); }
}

@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImageIn {
    to { opacity: 1; transform: translateX(0); }
}

/* ---- Floating Card ---- */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---- Menu Items ---- */
.menu-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(147, 188, 152, 0.2);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item h4 {
    transition: color 0.2s ease;
}

.menu-item:hover h4 {
    color: #bcd3be;
}

/* ---- Mobile Menu ---- */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #1B4332;
    transition: width 0.3s ease;
}

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

/* ---- Header Scrolled State ---- */
#site-header.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

#site-header.scrolled .font-serif,
#site-header.scrolled .nav-link {
    color: #1B4332;
}

#site-header.scrolled .btn-primary {
    background: #1B4332;
    color: #faf9f6;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-intro,
    .hero-ctas,
    .hero-image-wrapper {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .floating-card {
        animation: none;
    }
    
    .scroll-line-fill {
        animation: none;
        opacity: 1;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-title:nth-child(5),
    .hero-title:nth-child(6),
    .hero-title:nth-child(7) {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
}
