/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #223377;
    --primary-light: #4477CC;

    /* Neutral Colors */
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --gray-light: #e8e8e8;
    --gray-medium: #e0e0e0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 0.3s;

    /* Borders */
    --border-radius: 10px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px; /* Accounts for sticky navbar + subnav height */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
#navbar-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.8;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

/* Menu Sub-Navigation */
.menu-subnav {
    background-color: var(--white);
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.subnav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.subnav-link {
    padding: 15px 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.subnav-link:hover {
    background-color: var(--gray-light);
    border-bottom-color: var(--primary);
}

.subnav-link.active {
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(var(--shadow-lg));
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

/* Features Section */
.features {
    padding: 60px 20px;
    background-color: var(--gray-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Call to Action */
.cta {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Content Sections */
.content-section {
    padding: 60px 20px;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--text-dark);
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background-color: var(--white);
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Menu Items */
.menu-category {
    margin-bottom: 40px;
}

.menu-pdf-links {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.menu-info {
    background: var(--gray-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.menu-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.menu-info h3:first-child {
    margin-top: 0;
}

.menu-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.category-note {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 15px;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    gap: 15px;
    max-width: 500px;
}

.menu-list-item .item-name {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-list-item .item-name .item-description {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.menu-list-item .item-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1rem;
    white-space: nowrap;
}

/* Featured Menu Items (with longer descriptions) */
.featured-menu-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

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

.featured-menu-item .item-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.featured-menu-item .item-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1rem;
    white-space: nowrap;
}

.featured-menu-item .item-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Dessert Subsection Headings */
.dessert-subsection-heading {
    margin-top: 30px;
    color: var(--primary);
}

/* Flavor Grid for multiple flavor listings */
.flavor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
}

.flavor-item {
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: default;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid transparent;
}

.flavor-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Size pricing list */
.size-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
}

.size-pricing .size-item {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.size-pricing .size-name {
    color: var(--text-dark);
    font-weight: 500;
}

.size-pricing .size-price {
    color: var(--primary);
    font-weight: bold;
}

/* Location indicator */
.location-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.menu-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.menu-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.menu-item .price {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.menu-item p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Locations */
.location-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.location-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.location-card .hours {
    margin-top: 1rem;
}

.location-card .hours h4 {
    margin-bottom: 0.5rem;
}

/* Apparel */
.apparel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.apparel-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.apparel-item h3 {
    color: var(--primary);
    margin: 1rem 0;
}

.apparel-item .price {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 1rem 0;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-item {
    background: var(--gray-medium);
    padding-bottom: 100%;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 30px;
}

.timeline-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    margin-left: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.timeline-item .year {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.social-media {
    margin-bottom: 20px;
}

.social-media h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link.facebook:hover {
    background-color: #1877f2;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

footer p {
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-fast) ease-out, padding var(--transition-fast) ease-out;
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 1rem 0;
    }

    .nav-menu li {
        padding: 0.5rem 20px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 40px;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .timeline-item {
        margin-left: 20px;
    }

    .timeline-item::before {
        left: -20px;
    }

    .subnav-container {
        gap: 0;
        padding: 0 5px;
    }

    .subnav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-container {
        padding: 0 15px;
    }

    .subnav-link {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
}
