/* ============================================
   Bell's Ice Cream Cafe — Styles
   Teal + Slate Grey | Clean Minimalist
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #080e1a;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal-700);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--teal-700);
    color: #fff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 200;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-sm);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-500);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--teal-600);
    color: #fff;
    border-color: var(--teal-600);
}

.btn--primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn--light {
    background: #fff;
    color: var(--teal-800);
    border-color: #fff;
}

.btn--light:hover {
    background: var(--teal-50);
    color: var(--teal-800);
}

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 0.9375rem;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(248, 250, 252, 0.97);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--slate-800);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--teal-600);
}

.site-logo__text {
    letter-spacing: 0.02em;
}

/* --- Nav --- */
.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav__menu a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate-600);
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

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

.nav__menu a:hover {
    color: var(--teal-600);
}

.nav__menu a:hover::after {
    width: 100%;
}

.nav__cta {
    font-weight: 500 !important;
    color: var(--teal-600) !important;
    border: 1px solid var(--teal-200);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition) !important;
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background: var(--teal-50);
    border-color: var(--teal-300);
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--slate-700);
    transition: all var(--transition);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 14, 26, 0.55) 0%,
        rgba(8, 14, 26, 0.65) 50%,
        rgba(8, 14, 26, 0.80) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: var(--space-xl) var(--space-md);
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: var(--space-md);
}

.hero__headline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    line-height: 1.05;
    color: #fff;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.hero__headline em {
    font-style: italic;
    color: var(--teal-200);
}

.hero__sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    font-weight: 300;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: float 2.5s ease-in-out infinite;
    text-decoration: none;
}

.hero__scroll:hover {
    color: rgba(255, 255, 255, 0.8);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Intro --- */
.intro {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.intro__text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--slate-700);
    max-width: 680px;
    margin: 0 auto var(--space-lg);
}

.intro__divider {
    width: 60px;
    height: 1px;
    background: var(--teal-300);
    margin: 0 auto var(--space-xl);
}

.intro__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.intro__stat {
    text-align: center;
}

.intro__stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--teal-700);
    line-height: 1.2;
}

.intro__stat-label {
    font-size: 0.8125rem;
    color: var(--slate-500);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
}

.intro__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--slate-200);
}

/* --- Menu --- */
.menu {
    padding: var(--space-3xl) 0;
    background: #fff;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.menu-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--slate-50);
    transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.menu-card__img-wrap {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.menu-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-card:hover .menu-card__img-wrap img {
    transform: scale(1.04);
}

.menu-card__body {
    padding: var(--space-md);
}

.menu-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: var(--space-xs);
}

.menu-card__desc {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.menu-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-700);
    background: var(--teal-50);
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
}

.menu-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--slate-400);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.menu .btn {
    display: inline-flex;
    margin: 0 auto;
}

/* --- About --- */
.about {
    padding: var(--space-3xl) 0;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about__images {
    position: relative;
}

.about__img-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 7 / 9;
}

.about__img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    border: 4px solid var(--slate-50);
    aspect-ratio: 3 / 2;
    max-width: 260px;
}

.about__img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content {
    padding: var(--space-md) 0;
}

.about__text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--slate-200);
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--slate-700);
    font-weight: 400;
}

.about__feature svg {
    color: var(--teal-600);
    flex-shrink: 0;
}

/* --- Visit --- */
.visit {
    padding: var(--space-3xl) 0;
    background: #fff;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.visit__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit__card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.visit__card:hover {
    border-color: var(--teal-200);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.06);
}

.visit__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border-radius: var(--radius-sm);
    color: var(--teal-700);
    flex-shrink: 0;
}

.visit__card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}

.visit__card p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.visit__card a {
    color: var(--teal-600);
    font-weight: 500;
}

.visit__card a:hover {
    color: var(--teal-700);
    text-decoration: underline;
}

.visit__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.visit__map-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.visit__map-link img {
    width: 100%;
    aspect-ratio: 7 / 4.5;
    object-fit: cover;
}

.visit__map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 14, 26, 0.3);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.visit__map-link:hover .visit__map-overlay {
    opacity: 1;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
}

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

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8, 14, 26, 0.82) 0%,
        rgba(8, 14, 26, 0.65) 100%
    );
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta__eyebrow {
    color: var(--teal-300);
}

.cta__title {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.cta__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.cta__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo {
    color: var(--slate-200);
}

.footer__logo:hover {
    color: var(--teal-400);
}

.footer__brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--slate-500);
}

.footer__brand a {
    color: var(--teal-400);
}

.footer__brand a:hover {
    color: var(--teal-300);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.footer__nav a {
    font-size: 0.875rem;
    color: var(--slate-400);
    letter-spacing: 0.02em;
}

.footer__nav a:hover {
    color: var(--teal-400);
}

.footer__copy {
    text-align: center;
}

.footer__copy p {
    font-size: 0.8125rem;
    color: var(--slate-600);
}

.footer__note {
    font-size: 0.75rem !important;
    color: var(--slate-700) !important;
    margin-top: 0.25rem;
}

/* --- Reveal animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__inner {
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
        z-index: 101;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        justify-content: center;
        background: var(--slate-50);
        border-left: 1px solid var(--slate-200);
        gap: var(--space-md);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav__menu.open {
        transform: translateX(0);
    }

    .nav__menu a {
        font-size: 1.125rem;
    }

    .nav__cta {
        font-size: 1rem !important;
    }

    .hero__headline {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .about__img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 220px;
        margin-top: var(--space-sm);
    }

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

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

    .visit__map {
        order: -1;
    }

    .intro__stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .intro__stat-divider {
        width: 40px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta__actions {
        flex-direction: column;
    }

    .cta__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile nav overlay */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 26, 0.4);
    z-index: 99;
}

.nav__overlay.active {
    display: block;
}
