/* =============================================
   RISE AND GRIND BAKERY — Custom Styles
   ============================================= */

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

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

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

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0A2342;
    color: #FDFCF8;
    padding: 0.75rem 1.25rem;
    z-index: 100;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s;
}

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

/* --- Eyebrow --- */
.eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4FB19B;
    color: #FDFCF8;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid #4FB19B;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #3d947e;
    border-color: #3d947e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 177, 155, 0.3);
}

.btn-primary:focus-visible {
    outline: 2px solid #4FB19B;
    outline-offset: 2px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FDFCF8;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid rgba(253, 252, 248, 0.5);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(253, 252, 248, 0.1);
    border-color: #FDFCF8;
    transform: translateY(-1px);
}

.btn-outline:focus-visible {
    outline: 2px solid #FDFCF8;
    outline-offset: 2px;
}

.btn-cream {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FDFCF8;
    color: #0A2342;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid #FDFCF8;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cream:hover,
.btn-cream:focus-visible {
    background: transparent;
    color: #FDFCF8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FDFCF8;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid rgba(253, 252, 248, 0.6);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: rgba(253, 252, 248, 0.15);
    border-color: #FDFCF8;
    transform: translateY(-1px);
}

/* --- Inputs --- */
.input-field {
    background: #FDFCF8;
    border: 1px solid #D5DDEE;
    color: #0A2342;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.input-field::placeholder {
    color: #85A6CF;
}

.input-field:hover {
    border-color: #4FB19B;
}

.input-field:focus {
    outline: none;
    border-color: #4FB19B;
    box-shadow: 0 0 0 3px rgba(79, 177, 155, 0.15);
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 35, 66, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* --- Hero --- */
.hero {
    position: relative;
    background: #0A2342;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 10, 21, 0.55) 0%,
        rgba(10, 35, 66, 0.75) 50%,
        rgba(6, 19, 37, 0.88) 100%
    );
}

.hero-content {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.hero-eyebrow {
    opacity: 0.85;
}

.hero-title {
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-weight: 400;
}

.hero-ctas {
    opacity: 1;
}

.hero-scroll {
    opacity: 0.6;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C5E4D0, transparent);
}

/* --- Menu Card --- */
.menu-card {
    background: rgba(253, 252, 248, 0.04);
    border: 1px solid rgba(253, 252, 248, 0.08);
    padding: 2rem;
    border-radius: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-card:hover {
    background: rgba(253, 252, 248, 0.07);
    border-color: rgba(79, 177, 155, 0.3);
}

.menu-card ul li {
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(253, 252, 248, 0.06);
}

.menu-card ul li:last-child {
    border-bottom: none;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    cursor: default;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 66, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(10, 35, 66, 0.1);
}

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

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    opacity: 1;
    color: #4FB19B;
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 2px solid #4FB19B;
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title::after {
        content: 'Savor.';
        display: block;
        font-style: italic;
        color: #6BB887;
        margin-top: 0.25rem;
    }

    .menu-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 7rem;
    }
}

/* --- Selection --- */
::selection {
    background: #4FB19B;
    color: #FDFCF8;
}

/* --- Print --- */
@media print {
    #navbar, .hero-scroll, #contact-form {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: none;
    }

    .hero-bg, .hero-overlay {
        display: none;
    }

    .hero-content {
        padding-top: 0;
    }
}
