/* ============================================
   LOG CABIN BAKERY — Styles
   Palette: Plum (#7B2D8E) + Amber (#E8A838)
   Fonts: Playfair Display (headlines) + Inter (body)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2A1A2E;
    background: #FFF9F0;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
    --plum: #7B2D8E;
    --plum-deep: #5A1D68;
    --plum-light: #9B4DB8;
    --plum-pale: #F3E5F5;
    --amber: #E8A838;
    --amber-deep: #C4871D;
    --amber-light: #F5CC7A;
    --cream: #FFF9F0;
    --cream-dark: #F5E6D0;
    --text-dark: #2A1A2E;
    --text-muted: #6B5070;
    --text-light: #F5F0F7;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(123, 45, 142, 0.08);
    --shadow-md: 0 8px 30px rgba(123, 45, 142, 0.12);
    --shadow-lg: 0 20px 60px rgba(123, 45, 142, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum);
    margin-bottom: 1rem;
}

.section-eyebrow--dark {
    color: var(--plum);
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-heading--light {
    color: var(--text-light);
}

.section-heading--dark {
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--amber);
    color: var(--text-dark);
    border-color: var(--amber);
}

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

.btn--ghost {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.5);
}

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

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

.nav.scrolled {
    background: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.nav.scrolled .nav__links a {
    color: var(--text-dark);
}

.nav.scrolled .nav__links a:hover {
    color: var(--plum);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    transition: color var(--transition);
}

.nav__logo-icon {
    color: var(--amber);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

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

.nav__cta {
    background: var(--amber);
    color: var(--text-dark) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav__cta:hover {
    background: var(--amber-deep);
    color: var(--text-dark) !important;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 0.5rem;
    margin-left: auto;
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
}

.mobile-menu__link {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    transition: color var(--transition);
}

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

.mobile-menu__cta {
    margin-top: 1rem;
    background: var(--amber);
    color: var(--text-dark);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- 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__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(90, 29, 104, 0.88) 0%,
        rgba(123, 45, 142, 0.80) 40%,
        rgba(180, 70, 120, 0.72) 100%
    );
    z-index: 1;
}

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

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(42, 26, 46, 0.3) 0%,
        rgba(42, 26, 46, 0.1) 50%,
        rgba(42, 26, 46, 0.5) 100%
    );
    z-index: 2;
}

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

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.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: 3;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

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

/* ---------- ABOUT ---------- */
.about {
    padding: 8rem 0;
    background: var(--cream);
}

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

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

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat__number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--plum);
    line-height: 1;
}

.stat__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- MENU ---------- */
.menu {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 60%, #9B4DB8 100%);
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--amber), var(--plum-light), var(--amber));
}

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

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

.menu__lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.menu-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

.menu-card__body {
    padding: 1.75rem;
}

.menu-card__title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.menu-card__desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.menu__note {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    font-style: italic;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 8rem 0;
    background: var(--cream);
}

.gallery .section-eyebrow {
    text-align: center;
}

.gallery .section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

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

.gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

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

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

/* ---------- VISIT ---------- */
.visit {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

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

.visit__info .section-eyebrow {
    margin-bottom: 0.75rem;
}

.visit__info .section-heading {
    margin-bottom: 2rem;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.visit__details p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.visit__details a {
    color: var(--plum);
    font-weight: 500;
    transition: color var(--transition);
}

.visit__details a:hover {
    color: var(--plum-deep);
    text-decoration: underline;
}

.visit__icon {
    flex-shrink: 0;
    color: var(--plum);
}

.visit__hours-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.visit__hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.visit__hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    font-size: 0.95rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--cream-dark);
}

.visit__day {
    color: var(--text-muted);
    font-weight: 500;
}

.visit__time {
    color: var(--text-dark);
    font-weight: 600;
}

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

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

.visit__map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/5;
}

.visit__map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(123, 45, 142, 0.7);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}

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

/* ---------- FOOTER ---------- */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.footer__contact p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer__contact a {
    color: var(--amber-light);
    transition: color var(--transition);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .menu__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem;
    }

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

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

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

    .visit__map {
        max-width: 600px;
    }

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

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

@media (max-width: 600px) {
    .hero__headline {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }

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

    .about__stats {
        gap: 1.5rem;
    }

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

    .gallery__item--wide {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .visit__hours-list li {
        flex-direction: column;
        gap: 0.15rem;
    }
}
