/* ============================================
   ELDO BAKERY — Styles
   Palette: Plum (#4A1942 / #6B2158 / #8B3A72)
            Amber (#D4A017 / #B8860B / #F5D76E)
            Neutrals: #1A1A1A / #2C2C2C / #F8F5F0 / #EDE8E0
*/

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

:root {
    --plum-deep: #2D0A28;
    --plum: #4A1942;
    --plum-mid: #6B2158;
    --plum-light: #8B3A72;
    --plum-pale: #F3E8F0;
    --amber: #D4A017;
    --amber-dark: #B8860B;
    --amber-light: #F5D76E;
    --amber-pale: #FFF8E7;
    --dark: #1A1A1A;
    --dark-mid: #2C2C2C;
    --cream: #F8F5F0;
    --cream-warm: #EDE8E0;
    --text: #1A1A1A;
    --text-light: #5A5A5A;
    --text-inverse: #F8F5F0;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--plum-deep);
    margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn--plum {
    background: var(--plum);
    color: var(--text-inverse);
    border-color: var(--plum);
}

.btn--plum:hover {
    background: var(--plum-mid);
    border-color: var(--plum-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 25, 66, 0.3);
}

.btn--light {
    background: var(--cream);
    color: var(--plum-deep);
    border-color: var(--cream);
}

.btn--light:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.3);
}

.btn--ghost-light {
    background: transparent;
    color: var(--cream);
    border-color: rgba(248, 245, 240, 0.5);
}

.btn--ghost-light:hover {
    background: rgba(248, 245, 240, 0.1);
    border-color: var(--cream);
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 25, 66, 0.08);
    transition: all 0.4s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(248, 245, 240, 0.97);
    box-shadow: 0 2px 20px rgba(74, 25, 66, 0.08);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--plum-deep);
}

.nav__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--plum);
    color: var(--amber-light);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
}

.nav__logo-text {
    letter-spacing: -0.01em;
}

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

.nav__link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    transition: color 0.3s;
}

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

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

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

.nav__cta {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--plum);
    background: var(--plum-pale);
    border: 1.5px solid var(--plum);
    padding: 8px 20px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-smooth);
}

.nav__cta:hover {
    background: var(--plum);
    color: var(--text-inverse);
}

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

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--plum-deep);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--cream);
    padding: 40px 24px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease-smooth);
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav__link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--plum-deep);
    transition: color 0.3s;
}

.mobile-nav__link:hover {
    color: var(--amber-dark);
}

.mobile-nav__cta {
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--plum);
    background: var(--plum-pale);
    border: 1.5px solid var(--plum);
    padding: 12px 32px;
    border-radius: 4px;
}

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

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

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

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(45, 10, 40, 0.55) 0%,
        rgba(45, 10, 40, 0.70) 50%,
        rgba(45, 10, 40, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    padding-top: 72px;
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 24px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    color: var(--cream);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero__sub {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(248, 245, 240, 0.85);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(248, 245, 240, 0.6);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(248, 245, 240, 0.6), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

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

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about__text {
    max-width: 520px;
}

.about__text .section-headline {
    margin-bottom: 28px;
}

.about__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 6px;
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--plum);
    border-radius: 6px;
    z-index: -1;
    opacity: 0.12;
}

/* ---------- Divider ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--plum-light), transparent);
    opacity: 0.3;
}

.divider__mark {
    font-size: 0.75rem;
    color: var(--plum-light);
    opacity: 0.6;
}

/* ---------- Menu ---------- */
.menu {
    padding: 120px 0;
    background: var(--plum-deep);
}

.menu .section-eyebrow {
    color: var(--amber-light);
}

.menu .section-headline {
    color: var(--cream);
}

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

.menu__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(248, 245, 240, 0.65);
}

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

.menu__card {
    background: rgba(248, 245, 240, 0.05);
    border: 1px solid rgba(248, 245, 240, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.menu__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.menu__card-img {
    overflow: hidden;
    height: 220px;
}

.menu__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.menu__card:hover .menu__card-img img {
    transform: scale(1.05);
}

.menu__card-body {
    padding: 32px 28px;
}

.menu__card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-light);
    margin-bottom: 24px;
}

.menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.menu__item-name {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cream);
}

.menu__item-desc {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(248, 245, 240, 0.5);
    text-align: right;
    white-space: nowrap;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 120px 0;
    background: var(--cream-warm);
}

.gallery__header {
    text-align: center;
    margin-bottom: 64px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery__item {
    border-radius: 6px;
    overflow: hidden;
}

.gallery__item--large {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

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

.gallery__item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.gallery__item:nth-child(3) { grid-column: 8 / 13; grid-row: 2; }
.gallery__item:nth-child(4) { grid-column: 1 / 5; grid-row: 3; }
.gallery__item:nth-child(5) { grid-column: 5 / 13; grid-row: 3; }

/* ---------- Visit ---------- */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

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

.visit__info .section-headline {
    margin-bottom: 40px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.visit__detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit__icon {
    flex-shrink: 0;
    color: var(--plum);
    margin-top: 2px;
}

.visit__label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: 4px;
}

.visit__detail p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.visit__detail a {
    color: var(--plum);
    text-decoration: underline;
    text-decoration-color: rgba(74, 25, 66, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.visit__detail a:hover {
    text-decoration-color: var(--plum);
}

/* Form */
.visit__form-wrap {
    background: var(--plum-deep);
    border-radius: 8px;
    padding: 48px;
}

.visit__form-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 32px;
}

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(248, 245, 240, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form__input,
.form__textarea {
    width: 100%;
    background: rgba(248, 245, 240, 0.07);
    border: 1px solid rgba(248, 245, 240, 0.15);
    border-radius: 4px;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--cream);
    transition: border-color 0.3s, background 0.3s;
    outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: rgba(248, 245, 240, 0.35);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--amber);
    background: rgba(248, 245, 240, 0.1);
}

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

.form__success {
    display: none;
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--amber-light);
    text-align: center;
}

.form__success.visible {
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: rgba(248, 245, 240, 0.6);
    padding: 72px 0 40px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

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

.footer__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--plum);
    color: var(--amber-light);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 6px;
}

.footer__logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
}

.footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
}

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

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(248, 245, 240, 0.6);
    transition: color 0.3s;
}

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

.footer__contact p {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.footer__contact a {
    color: var(--amber-light);
    text-decoration: none;
}

.footer__contact a:hover {
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid rgba(248, 245, 240, 0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .menu__categories {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

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

    .gallery__item--large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery__item:nth-child(2) { grid-column: 1 / 2; grid-row: auto; }
    .gallery__item:nth-child(3) { grid-column: 2 / 3; grid-row: auto; }
    .gallery__item:nth-child(4) { grid-column: 1 / 2; grid-row: auto; }
    .gallery__item:nth-child(5) { grid-column: 2 / 3; grid-row: auto; }

    .gallery__item img {
        height: 280px;
    }
}

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

    .nav__toggle {
        display: flex;
    }

    .hero__headline {
        font-size: clamp(2.75rem, 12vw, 4rem);
    }

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

    .about__image img {
        height: 360px;
    }

    .about__image-accent {
        width: 100px;
        height: 100px;
        bottom: -12px;
        right: -12px;
    }

    .menu {
        padding: 80px 0;
    }

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

    .visit__form-wrap {
        padding: 32px 24px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .gallery__item img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .menu__card-body {
        padding: 24px 20px;
    }

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

    .menu__item-desc {
        text-align: left;
        white-space: normal;
    }
}
