/* Basic reset and typography */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    font-family: 'Varela Round', Arial, sans-serif;
}

body {
    font-size: 18px;
    line-height: 1.6;
    background: white;
    color: #556666;
}

a {
    color: #334444;
}

a:hover {
    color: #ff1a3f;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 50px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.opaque {
    background: #ff1a3f;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 180px;
    position: relative;
}

.site-header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container .logo {
    max-height: 176px;
    width: auto;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.site-header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 3px 0 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.site-header nav ul li a:hover,
.site-header nav ul li a.active {
    border-bottom-color: white;
}

.logo-container,
.site-header nav {
    transition: opacity 0.3s ease;
}

.site-header.scrolled .logo-container,
.site-header.scrolled nav {
    opacity: 0;
    pointer-events: none;
}

main {
    text-align: left;
    padding: 50px;
    padding-top: 16px;
}

body.no-hero main {
    padding-top: 200px;
}

h2 {
    font-size: 54px;
    color: #334444;
}

.intro {
    max-width: 80ch;
    margin: 0 auto 40px;
    text-align: center;
}

.intro h2 {
    margin-bottom: 16px;
}

.intro h3 {
    color: #ff1a3f;
    text-align: center;
    margin-bottom: 16px;
}

.intro p {
    text-align: left;
    margin-bottom: 0;
    line-height: 2;
}

#hero {
    min-height: 68vh;
    padding: 0 50px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url('../images/hero-home.png') no-repeat center center/cover;
    background-color: #ff1a3f;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#hero.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url('../images/hero-about.png');
}

#hero.contact-hero {
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url('../images/shop-front-night.jpg');
}

.timeline-era {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff1a3f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.hero-content {
    background: rgba(0,0,0,0.4);
    padding: 30px 40px;
    border-radius: 8px;
    text-align: left;
    max-width: 800px;
}

#features {
    padding: 32px 0 40px;
}

.carousel {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 32px;
    transition: transform 0.4s ease;
}

.feature {
    flex: 0 0 calc(50% - 16px);
    text-align: left;
    box-sizing: border-box;
    min-height: 220px;
}

.carousel-btn {
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #556666;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: border-color 0.2s, color 0.2s;
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-btn:hover {
    color: #ff1a3f;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #ff1a3f;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s ease;
}

.feature.card {
    background: #f2f2f2;
    box-shadow: none;
    transition: none;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
}

.feature-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-img {
    flex: 0 0 40%;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-btn {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    background: #ff1a3f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background 0.2s;
}

.card-btn:hover {
    background: #cc1533;
}

.feature.card:hover {
    box-shadow: none;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Weekly Flavors page */
.flavor-grid {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 20px;
}

.flavor-card {
    border-radius: 12px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    background-color: white !important;
    color: #334444;
    box-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.flavor-card:hover {
    background-color: var(--flavor-color) !important;
}

.flavor-card.hidden {
    display: none;
}

.flavor-badge {
    display: inline-block;
    background: rgba(0,0,0,0.08);
    color: #334444;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    transition: background 0.3s ease, color 0.3s ease;
}

.flavor-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.flavor-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    transition: color 0.3s ease;
}

/* Light-background flavor cards keep dark text on hover */
.flavor-card:has(.dark-text):hover .flavor-info h3,
.flavor-card:has(.dark-text):hover .flavor-info p,
.flavor-card:has(.dark-text):hover .flavor-badge {
    color: #334444;
}

.flavor-card:has(.dark-text):hover .flavor-badge {
    background: rgba(0,0,0,0.1);
}

/* Dark-background flavor cards switch to white text on hover */
.flavor-card:not(:has(.dark-text)):hover .flavor-info h3,
.flavor-card:not(:has(.dark-text)):hover .flavor-info p,
.flavor-card:not(:has(.dark-text)):hover .flavor-badge {
    color: white;
}

.flavor-card:not(:has(.dark-text)):hover .flavor-badge {
    background: rgba(255,255,255,0.25);
}

/* Dialog */
.site-dialog {
    border: none;
    border-radius: 12px;
    padding: 40px 36px;
    text-align: center;
    max-width: 400px;
    font-family: 'Varela Round', Arial, sans-serif;
    color: #334444;
}

.site-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.site-dialog p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.site-dialog .card-btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

footer {
    background: #888888;
    padding: 15px 35px;
    color: white;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-social:hover {
    opacity: 1;
}

/* Contact list with icons */
.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-item svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin-top: 2px;
}

/* force SVG icon colors to dark gray for consistency */
.contact-item svg path,
.contact-item svg circle,
.contact-item svg rect {
    fill: #333333 !important;
    stroke: #333333 !important;
}

.contact-item a {
    color: #334444;
}

.contact-item a:hover {
    color: #ff1a3f;
    text-decoration: underline;
}

/* Material Icons styling for contact items */
.contact-item .material-icons {
    font-size: 28px;
    color: #666666;
    flex: 0 0 28px;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 0 20px;
    }

    .header-inner {
        height: 90px;
    }

    .logo-container .logo {
        max-height: 70px;
    }

    .site-header nav ul {
        gap: 16px;
        font-size: 0.85rem;
    }

    main {
        padding: 30px 20px;
        padding-top: 16px;
    }

    body.no-hero main {
        padding-top: 110px;
    }

    #hero {
        padding: 0 20px;
    }

    #features {
        flex-direction: column;
        align-items: center;
        padding-top: 16px;
    }

    .feature {
        flex: 0 0 calc(100vw - 40px);
        width: calc(100vw - 40px);
    }

    .feature.card {
        flex-direction: column;
    }

    body {
        font-size: 15px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 1.1rem;
    }

}

