/* ============================================
   Bimbo Bakeries — Café & Bar Website
   Color Palette: Teal (#0d9488) + Slate Grey
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --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;
    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* ── Utility ── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
    background: var(--white);
    color: var(--slate-800);
    border-color: var(--white);
}

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

.btn--outline-white:hover {
    background: var(--white);
    color: var(--teal-700);
    border-color: var(--white);
}

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

.btn--white {
    background: var(--white);
    color: var(--teal-700);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--slate-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav__logo-icon {
    width: 38px;
    height: 38px;
    background: var(--teal-600);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--slate-800);
    transition: color var(--transition);
}

.nav.scrolled .nav__logo-text {
    color: var(--slate-800);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color var(--transition);
    position: relative;
}

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

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

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.5rem 1.25rem;
    background: var(--teal-600);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav__cta:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
}

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

.nav__toggle-line {
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 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(5px, -5px);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/15105621/pexels-photo-15105621.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(13, 148, 136, 0.55) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 2rem;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── About ── */
.about {
    padding: 6rem 1.5rem;
    background: var(--white);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about__text .section-title {
    margin-bottom: 1.5rem;
}

.about__p {
    color: var(--slate-600);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about__features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

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

.feature span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-700);
}

/* ── Menu ── */
.menu {
    padding: 6rem 1.5rem;
    background: var(--slate-50);
}

.menu__container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.menu__subtitle {
    color: var(--slate-500);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card__img {
    overflow: hidden;
    height: 220px;
}

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

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

.menu-card__body {
    padding: 1.5rem;
}

.menu-card__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

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

/* ── Gallery ── */
.gallery {
    padding: 6rem 1.5rem;
    background: var(--white);
}

.gallery__container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery__header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery__item:hover img {
    transform: scale(1.04);
}

.gallery__item--wide {
    grid-column: span 2;
}

/* ── Testimonials ── */
.testimonials {
    padding: 6rem 1.5rem;
    background: var(--slate-800);
}

.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials .section-title {
    color: var(--white);
    margin-bottom: 3rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: left;
    transition: all var(--transition);
}

.testimonial:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.testimonial__quote {
    color: var(--teal-400);
    margin-bottom: 1rem;
}

.testimonial__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial__author {
    color: var(--teal-400);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Visit ── */
.visit {
    padding: 6rem 1.5rem;
    background: var(--slate-50);
}

.visit__container {
    max-width: 1200px;
    margin: 0 auto;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.visit__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visit__desc {
    color: var(--slate-500);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail__icon {
    color: var(--teal-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}

.detail p, .detail a {
    color: var(--slate-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

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

.visit__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* ── CTA ── */
.cta {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    text-align: center;
}

.cta__container {
    max-width: 680px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
    padding: 4rem 1.5rem 2rem;
    background: var(--slate-900);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__brand .nav__logo-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

.footer__brand .nav__logo-text {
    color: var(--white);
    font-size: 1.25rem;
}

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

.footer__links strong,
.footer__contact strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer__links ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__links a,
.footer__contact a,
.footer__contact li {
    color: var(--slate-400);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

.footer__bottom {
    padding-top: 2rem;
    text-align: center;
}

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

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about__grid,
    .visit__grid {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .menu__grid {
        grid-template-columns: 1fr;
    }

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

    .gallery__item--wide {
        grid-column: span 2;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__toggle {
        display: flex;
        z-index: 1001;
    }

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

    .about__image {
        order: -1;
    }

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

    .gallery__item--wide {
        grid-column: span 1;
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .about__features {
        flex-direction: column;
        gap: 1rem;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile menu overlay */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 998;
}

.nav__overlay.active {
    display: block;
}
