/* Style definitions for FARO BY THE SEA digital menu */

:root {
    --primary-color: #00adc1;
    --primary-hover: #0093a4;
    --primary-light: rgba(0, 173, 193, 0.08);
    --primary-light-solid: #e0f7fa;
    --primary-dark: #006064;
    --bg-color: #fdfcfb;
    --card-bg: #ffffff;
    --text-main: #2b3a42;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --title-font: 'Outfit', sans-serif;
    --body-font: 'Montserrat', sans-serif;
    --serif-font: 'Cormorant Garamond', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Accounts for sticky control panel + sticky nav */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= HERO COVER SECTION ================= */
.hero {
    background: linear-gradient(135deg, #00acc1 0%, #00838f 100%);
    color: #ffffff;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 20px;
    text-align: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    opacity: 0.8;
}

.bg-shape.leaf {
    top: 10%;
    right: 10%;
    width: 250px;
    height: 250px;
}

.bg-shape.vase {
    top: 15%;
    left: 12%;
    width: 150px;
    height: 150px;
}

.bg-shape.steps {
    bottom: 25%;
    left: 10%;
    width: 200px;
    height: 200px;
}

.hero-content {
    z-index: 2;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.logo-container {
    margin-bottom: 40px;
}

.faro-logo-svg {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    color: #ffffff;
}

.faro-title {
    font-family: var(--title-font);
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    line-height: 1;
    margin-left: 0.3em; /* offsets tracking for perfect center alignment */
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faro-subtitle {
    font-family: var(--title-font);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    margin-top: 5px;
    opacity: 0.9;
    margin-left: 0.4em;
}

.faro-divider {
    width: 50px;
    height: 2px;
    background-color: #ffffff;
    margin: 20px auto;
    opacity: 0.7;
}

.menu-label {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    font-style: italic;
    opacity: 0.95;
}

.scroll-down-btn {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--title-font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.8;
    transition: var(--transition);
    cursor: pointer;
}

.scroll-down-btn i {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

.scroll-down-btn:hover {
    opacity: 1;
}

.wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-container svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ================= MAIN INTERACTIVE INTERFACE ================= */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
}

/* Sticky Controls Area (Tabs & Search) */
.controls-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    padding-top: 20px;
    padding-bottom: 10px;
    transition: var(--transition);
}

.controls-wrapper.is-sticky {
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    box-shadow: var(--shadow-md);
    border-radius: 50px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 173, 193, 0.15);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

#menu-search {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: none;
    border-radius: 50px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: transparent;
    outline: none;
}

#menu-search::placeholder {
    color: var(--text-muted);
}

#search-clear-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Menu Toggle Tabs */
.menu-tabs {
    display: flex;
    background-color: var(--primary-light-solid);
    padding: 6px;
    border-radius: 50px;
    width: 100%;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    background: none;
    font-family: var(--title-font);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 173, 193, 0.25);
}

/* ================= STICKY CATEGORIES NAV ================= */
.sticky-nav {
    position: sticky;
    top: 145px; /* Offset below the control panel stack */
    z-index: 90;
    background-color: rgba(253, 252, 251, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 30px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.01);
}

.nav-scroll-container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.nav-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-group {
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 0 10px;
}

.nav-group.active {
    display: flex;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--title-font);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: var(--transition);
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-color: rgba(0, 173, 193, 0.3);
    font-weight: 600;
}

/* ================= MENU CONTENT SECTION ================= */
.menu-category-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-category-wrapper.active {
    display: block;
    opacity: 1;
}

.menu-section {
    padding: 60px 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.menu-section:last-child {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.section-title {
    font-family: var(--title-font);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--primary-dark);
}

.section-subtitle {
    display: block;
    font-family: var(--serif-font);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.1em;
}

.header-line {
    width: 60px;
    height: 1.5px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    opacity: 0.6;
}

/* Sub-group title (e.g. PIZZAS / WINES subgroups) */
.menu-subgroup-title {
    text-align: center;
    margin: 40px auto 20px;
    width: 100%;
}

.menu-subgroup-title h4 {
    font-family: var(--title-font);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--text-muted);
}

.subgroup-line {
    width: 30px;
    height: 1px;
    background-color: var(--border-color);
    margin: 8px auto 0;
}

/* Grid Layout for Dishes */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 40px;
    }
}

/* Menu Item Card styling */
.menu-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 173, 193, 0.2);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.item-name {
    font-family: var(--title-font);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.item-description-inline {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--body-font);
    text-transform: lowercase;
}

.item-price {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.price-suffix {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-variation {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
}

.item-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: auto;
}

/* Custom layout for inline variations (Ice cream) */
.menu-item.inline-variation .item-header {
    align-items: center;
}

/* ================= WINE LIST SPECIFIC STYLING ================= */
.wine-legend {
    display: none;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 10px;
    padding-right: 20px;
    color: var(--text-muted);
    font-family: var(--title-font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .wine-legend {
        display: flex;
    }
}

.wine-grid {
    grid-template-columns: 1fr;
}

.wine-item .item-header {
    align-items: center;
    width: 100%;
}

.wine-prices {
    display: flex;
    align-items: center;
    gap: 25px;
}

.wine-price-glass, .wine-price-bottle {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    width: 60px;
    text-align: right;
}

.wine-price-glass {
    color: var(--text-muted);
    font-weight: 500;
}

.wine-price-bottle {
    color: var(--primary-color);
}

/* Mobile specific styling for wine columns */
@media (max-width: 767px) {
    .wine-prices {
        gap: 12px;
    }
    
    .wine-price-glass::before {
        content: "Glass: ";
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--text-muted);
    }
    
    .wine-price-bottle::before {
        content: "Bot.: ";
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--text-muted);
    }
    
    .wine-price-glass, .wine-price-bottle {
        width: auto;
        font-size: 0.95rem;
    }
    
    .wine-prices {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
}

/* ================= NO RESULTS CARD ================= */
.no-results-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 40px auto;
    max-width: 400px;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    opacity: 0.6;
}

.no-results-card h4 {
    font-family: var(--title-font);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.no-results-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--primary-dark);
    color: #e0f7fa;
    padding: 60px 20px 40px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.faro-footer-logo {
    margin-bottom: 35px;
}

.faro-footer-logo h3 {
    font-family: var(--title-font);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-left: 0.3em;
}

.faro-footer-logo span {
    font-family: var(--title-font);
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    opacity: 0.8;
}

.allergy-notices {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item {
    font-size: 0.85rem;
    color: #b2ebf2;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.notice-main {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.5;
    margin-top: 5px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ================= ANIMATIONS ================= */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.animate-fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= SCROLL AND UTILITIES ================= */
/* Sticky Nav Transitions on scroll */
.controls-wrapper.is-sticky {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
