/* Pistachio — custom styles layered on top of Tailwind */

::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }

/* Anchor targets clear the fixed header */
section[id], article[id], div[id] { scroll-margin-top: 6rem; }

/* Nav items: muted by default, lit only for the page you are on */
.nav-item {
    opacity: 0.6;
    transition: opacity 0.4s ease;
}
.nav-item:hover,
.nav-item:focus-visible {
    opacity: 1;
}
.nav-item[aria-current="page"] {
    opacity: 1;
}
.nav-dot { display: none; }
.nav-item[aria-current="page"] .nav-dot { display: block; }

.drawer-link[aria-current="page"] { color: #8A9E7A; }

/* Underline that wipes in from the left on hover */
.nav-link-line::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}
.nav-link-line:hover::after,
.nav-link-line:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Category cards */
.offer-img {
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: grayscale(20%);
}
.offer-card:hover .offer-img,
.offer-card:focus-within .offer-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Header state once the page is scrolled */
#header {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#header.is-scrolled {
    background-color: rgba(247, 243, 236, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 0 #D6DECA;
}

/* Mobile drawer */
#mobile-menu {
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
#mobile-menu[hidden] { display: none; }

/* Soft green wash behind the hero */
.hero-glow {
    position: absolute;
    top: -14rem;
    left: -12rem;
    width: 48rem;
    height: 48rem;
    max-width: 130vw;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(138, 158, 122, 0.20) 0%, rgba(138, 158, 122, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Menu rows — name, dotted leader, price */
.menu-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.menu-name {
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}
.menu-dots {
    flex: 1 1 auto;
    min-width: 1rem;
    align-self: flex-end;
    margin-bottom: 0.3rem;
    border-bottom: 1px dotted #C6CDB8;
}
.menu-price {
    color: #8A9E7A;
    font-size: 0.875rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.menu-note {
    color: #5E5C57;
    font-size: 0.75rem;
    line-height: 1.7;
    margin-top: 0.35rem;
    max-width: 26rem;
}

/* Printing the menu */
@media print {
    #header, #mobile-menu, #footer, .offer-card, section:not(#menu) { display: none !important; }
    #menu { background: #fff !important; padding: 0 !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .menu-price { color: #000 !important; }
    #menu-coffee, #menu-nuts, #menu-icecream, #menu-smoothies, #menu-pastries, #menu-gifts {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }
}

/* Reservation form */
.field-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: #5E5C57;
    margin-bottom: 0.6rem;
}
.field-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #D6DECA;
    padding: 0.6rem 0;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #2B2B2B;
    border-radius: 0;
    transition: border-color 0.4s ease;
}
.field-input:focus {
    outline: none;
    border-bottom-color: #8A9E7A;
}
.field-input::placeholder { color: #A9A399; }
select.field-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235E5C57' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    background-size: 10px;
    padding-right: 1.5rem;
}
textarea.field-input { resize: vertical; min-height: 4.5rem; }
.field-input:user-invalid { border-bottom-color: #B4726A; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

:focus-visible {
    outline: 2px solid #8A9E7A;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .offer-img, #header { transition: none; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
