/* ========================================
   Bauer Family Coffee Shop & Bakery
   Bold Editorial Design — Plum & Amber
   ======================================== */

/* --- Custom Properties --- */
:root {
    --plum-50: #fdf4f6;
    --plum-100: #fce8ec;
    --plum-200: #f9d0d9;
    --plum-300: #f3a9b8;
    --plum-400: #e97490;
    --plum-500: #d4466a;
    --plum-600: #b82d50;
    --plum-700: #9a2342;
    --plum-800: #7f1f39;
    --plum-900: #6b1d33;
    --plum-950: #3a0c16;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --amber-950: #451a03;

    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --neutral-950: #0c0a09;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
.section__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum-600);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
}

.section__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--neutral-600);
    max-width: 560px;
}

.section__body--wide {
    max-width: 640px;
}

.text-plum {
    color: var(--plum-700);
}

.text-amber {
    color: var(--amber-700);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--plum-700);
    color: #fff;
    box-shadow: 0 4px 14px rgba(154, 35, 66, 0.35);
}

.btn--primary:hover {
    background-color: var(--plum-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 35, 66, 0.45);
}

.btn--ghost {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.nav__logo-icon {
    font-size: 1.5rem;
}

.nav__logo-text {
    transition: color 0.3s;
}

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

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--neutral-700);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

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

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--plum-500);
    transition: width 0.3s;
}

.nav__link:hover {
    color: var(--plum-700);
}

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

.nav__cta {
    padding: 0.625rem 1.5rem;
    background-color: var(--plum-700);
    color: #fff !important;
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s;
}

.nav__cta:hover {
    background-color: var(--plum-800);
    transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--plum-950);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/31484078/pexels-photo-31484078.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(58, 12, 22, 0.88) 0%,
        rgba(107, 29, 51, 0.75) 50%,
        rgba(58, 12, 22, 0.85) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
    text-align: center;
}

.hero__card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-2xl);
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: var(--space-md);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin-bottom: var(--space-md);
}

.hero__highlight {
    color: var(--amber-400);
    font-style: italic;
}

.hero__subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
}

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

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: auto;
    animation: float 6s ease-in-out infinite;
}

.stat-card__number {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--plum-800);
}

.stat-card__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--neutral-500);
}

.stat-card--1 {
    top: 18%;
    left: 5%;
    animation-delay: 0s;
}

.stat-card--2 {
    top: 25%;
    right: 8%;
    animation-delay: 1.5s;
}

.stat-card--3 {
    bottom: 22%;
    left: 10%;
    animation-delay: 3s;
}

.stat-card--4 {
    bottom: 15%;
    right: 5%;
    animation-delay: 4.5s;
}

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

/* --- Section --- */
.section {
    padding: var(--space-4xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section--about {
    background-color: var(--neutral-50);
}

.section--menu {
    background-color: var(--plum-50);
}

.section--gallery {
    background-color: var(--neutral-50);
}

.section--visit {
    background-color: var(--neutral-100);
}

/* --- About --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--amber-400);
    border-radius: var(--radius-md);
    z-index: -1;
}

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

.about__content .section__body {
    margin-bottom: var(--space-md);
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.feature-item__icon {
    width: 24px;
    height: 24px;
    color: var(--plum-600);
    flex-shrink: 0;
}

/* --- Menu --- */
.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.menu-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.menu-card:hover .menu-card__image img {
    transform: scale(1.08);
}

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

.menu-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-xs);
}

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

.menu__cta {
    text-align: center;
    padding: var(--space-2xl);
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--plum-100);
}

.menu__cta p {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-md);
}

/* --- Gallery --- */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery__item {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 5/4;
}

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

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

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    background-color: var(--plum-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item__icon svg {
    width: 22px;
    height: 22px;
    color: var(--plum-700);
}

.contact-item__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-400);
    margin-bottom: 2px;
}

.contact-item__value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-800);
    line-height: 1.6;
}

.contact-item__value a {
    color: var(--plum-700);
    transition: color 0.3s;
}

.contact-item__value a:hover {
    color: var(--plum-900);
}

.visit__map {
    margin-top: var(--space-lg);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* --- Contact Form --- */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.form-card__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-xs);
}

.form-card__subtitle {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--neutral-600);
    margin-bottom: var(--space-xs);
}

.form-group__input,
.form-group__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    outline: none;
}

.form-group__input:focus,
.form-group__textarea:focus {
    border-color: var(--plum-400);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(212, 70, 106, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    gap: var(--space-sm);
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--plum-600);
}

.form-success p {
    font-size: 1.0625rem;
    color: var(--neutral-700);
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background-color: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
}

.footer__logo-icon {
    font-size: 1.5rem;
}

.footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-md);
}

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

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

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

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: 0.9375rem;
}

.footer__contact a {
    color: var(--amber-400);
    transition: color 0.3s;
}

.footer__contact a:hover {
    color: var(--amber-300);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__stats {
        display: none;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about__image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

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

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-3xl) var(--space-xl) var(--space-xl);
        gap: var(--space-md);
        box-shadow: var(--shadow-xl);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav__menu.open {
        right: 0;
    }

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

    .nav__link {
        font-size: 1.125rem;
    }

    .hero__card {
        padding: var(--space-2xl) var(--space-lg);
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-card {
        padding: var(--space-lg);
    }
}

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

    .hero__actions .btn {
        width: 100%;
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

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

.nav__overlay.active {
    display: block;
}
