/* ========================================
   B & E Candy — Styles
   Palette: Midnight Blue (#0a1628) + Mint (#5eead4)
   Fonts: Cormorant Garamond + Inter
   ======================================== */

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

:root {
    --midnight: #0a1628;
    --midnight-light: #132238;
    --midnight-mid: #0d1e33;
    --mint: #5eead4;
    --mint-light: #7ff5e3;
    --mint-dark: #3dd4be;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-300: #94a3b8;
    --gray-400: #64748b;
    --gray-500: #475569;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--midnight);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Typography */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.8;
}

/* Thin Divider */
.thin-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.thin-divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--mint);
    transform: rotate(45deg);
    opacity: 0.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    border-radius: 6px;
    transition: all var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}

.btn-primary:hover {
    background: var(--mint-light);
    border-color: var(--mint-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-full {
    width: 100%;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

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

.nav-cta {
    padding: 9px 20px !important;
    border: 1px solid rgba(94, 234, 212, 0.4) !important;
    border-radius: 5px;
    color: var(--mint) !important;
    transition: all var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: rgba(94, 234, 212, 0.1) !important;
    border-color: var(--mint) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--midnight);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--mint);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.82) 0%,
        rgba(10, 22, 40, 0.55) 50%,
        rgba(10, 22, 40, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 72px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    max-width: 800px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(94, 234, 212, 0.6), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ========== ABOUT ========== */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--mint);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.4;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-100);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--midnight);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray-400);
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    background: var(--gray-200);
    align-self: stretch;
}

/* ========== PRODUCTS ========== */
.products {
    padding: 120px 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
    border-color: transparent;
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--midnight);
    padding: 20px 24px 0;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    padding: 12px 24px 24px;
}

/* ========== CAFÉ ========== */
.cafe {
    padding: 120px 0;
    background: var(--white);
}

.cafe-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cafe-text {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 20px;
}

.cafe-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
}

.cafe-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--midnight);
}

.cafe-features svg {
    color: var(--mint-dark);
    flex-shrink: 0;
}

.cafe-images {
    position: relative;
}

.cafe-img-main {
    border-radius: 8px;
    overflow: hidden;
}

.cafe-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.cafe-img-stack {
    position: absolute;
    bottom: -40px;
    right: -40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cafe-img-stack img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.15);
}

/* ========== VISIT ========== */
.visit {
    padding: 120px 0;
    background: var(--midnight);
    color: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.visit .section-eyebrow {
    color: var(--mint);
}

.visit .section-title {
    color: var(--white);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visit-detail-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.visit-detail-value {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.5;
}

.visit-detail-link {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--mint);
    transition: color var(--transition);
}

.visit-detail-link:hover {
    color: var(--mint-light);
}

.visit-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
}

/* Hours Panel */
.visit-hours {
    background: var(--midnight-light);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 32px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hours-time {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 400;
}

.hours-closed .hours-time {
    color: var(--gray-400);
}

.hours-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hours-note svg {
    color: var(--mint);
    flex-shrink: 0;
}

/* ========== CONTACT ========== */
.contact {
    padding: 120px 0;
    background: var(--off-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    padding-top: 12px;
}

.contact-text p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 36px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-email, .contact-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--midnight);
    transition: color var(--transition);
}

.contact-email:hover, .contact-phone:hover {
    color: var(--mint-dark);
}

.contact-email svg, .contact-phone svg {
    color: var(--mint-dark);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid var(--gray-100);
}

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

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--midnight);
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    outline: none;
    transition: all var(--transition);
}

.form-input:focus {
    border-color: var(--mint-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.form-input::placeholder {
    color: var(--gray-300);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.btn-submit {
    margin-top: 8px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--midnight);
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--mint-dark);
    flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--midnight);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
}

.footer-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    display: block;
    margin-top: 2px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--mint);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-contact a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--mint);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .about-grid,
    .cafe-layout,
    .visit-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image-wrap::before {
        display: none;
    }

    .cafe-img-stack {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        margin-top: 16px;
    }

    .cafe-img-stack img {
        width: calc(50% - 8px);
        height: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 600px;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
        align-self: center;
    }

    .visit-grid {
        gap: 48px;
    }

    .visit-hours {
        padding: 28px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .cafe-img-stack img {
        height: 160px;
    }
}

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

    .about,
    .products,
    .cafe,
    .visit,
    .contact {
        padding: 80px 0;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-scroll {
        display: none;
    }
}
