/* ========================================
   1065 Bakery — Styles
   Clean Minimalist · Forest Green + Off-White
======================================== */

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

:root {
    --green-900: #1A3A0E;
    --green-800: #2D5016;
    --green-700: #3D6B1E;
    --green-600: #4A7C28;
    --green-500: #5C9A32;
    --green-400: #7BB852;
    --green-100: #D4E8C4;
    --green-50:  #EAF5DC;
    
    --cream:      #F5F2EB;
    --cream-light:#FAF8F4;
    --cream-dark: #EDE8DD;
    --warm-gray:  #8A8478;
    --text-dark:  #1A1A18;
    --text-mid:   #3D3A35;
    --text-light: #6B6660;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', -apple-system, sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ─── Typography ─── */
.label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 1rem;
}

.label--light {
    color: var(--green-200, #B8D4A0);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    padding: 0.9rem 2rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    white-space: nowrap;
}

.btn--dark {
    background: var(--green-800);
    color: var(--cream-light);
    border-color: var(--green-800);
}

.btn--dark:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
}

.btn--light {
    background: var(--cream-light);
    color: var(--green-800);
    border-color: var(--cream-light);
}

.btn--light:hover {
    background: white;
    transform: translateY(-1px);
}

.btn--outline-light {
    background: transparent;
    color: var(--cream-light);
    border-color: rgba(245, 242, 235, 0.5);
}

.btn--outline-light:hover {
    background: rgba(245, 242, 235, 0.1);
    border-color: var(--cream-light);
}

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

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(245, 242, 235, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    box-shadow: 0 1px 0 rgba(45, 80, 22, 0.08);
}

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

.nav__logo {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.nav__logo-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--green-800);
}

.nav__logo-word {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-800);
}

.nav.scrolled .nav__logo-num,
.nav.scrolled .nav__logo-word {
    color: var(--green-800);
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    position: relative;
    transition: color 0.3s ease;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-700);
    transition: width 0.3s var(--ease-out);
}

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

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

/* Mobile menu button */
.nav__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__menu-line {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--green-800);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav__menu-btn.active .nav__menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 4px);
}

.nav__menu-btn.active .nav__menu-line:nth-child(2) {
    opacity: 0;
}

.nav__menu-btn.active .nav__menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -4px);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #1A3A0E 0%,
        #2D5016 25%,
        #3D6B1E 50%,
        #4A7C28 70%,
        #5C9A32 85%,
        #7BB852 100%
    );
    padding: 6rem 2rem 4rem;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26, 58, 14, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(123, 184, 82, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(0,0,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green-100);
    margin-bottom: 2rem;
    opacity: 0.85;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--cream-light);
    margin-bottom: 1.75rem;
}

.hero__headline--accent {
    font-style: italic;
    font-weight: 300;
    opacity: 0.88;
}

.hero__sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(245, 242, 235, 0.78);
    max-width: 520px;
    margin: 0 auto 2.75rem;
}

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

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 242, 235, 0.5);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ─── Divider ─── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.divider__icon {
    color: var(--green-400);
    opacity: 0.5;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

.about__text {
    max-width: 480px;
}

.about__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.about__title em {
    font-style: italic;
    color: var(--green-700);
}

.about__body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.about__image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

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

.about__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 58, 14, 0.08) 100%);
    pointer-events: none;
}

/* ─── Menu ─── */
.menu {
    padding: 7rem 0 8rem;
    background: var(--cream);
}

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

.menu__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.menu__sub {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.75;
}

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

.menu__category {
    background: var(--cream-light);
    padding: 2.5rem 2rem;
    border-radius: 2px;
    border: 1px solid var(--cream-dark);
    transition: all 0.4s var(--ease-out);
}

.menu__category:hover {
    border-color: var(--green-100);
    box-shadow: 0 8px 40px rgba(45, 80, 22, 0.06);
    transform: translateY(-3px);
}

.menu__cat-icon {
    color: var(--green-700);
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.menu__cat-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cream-dark);
}

.menu__list {
    list-style: none;
}

.menu__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(237, 232, 221, 0.6);
}

.menu__list li:last-child {
    border-bottom: none;
}

.menu__item-name {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-dark);
}

.menu__item-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    text-align: right;
}

.menu__note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--warm-gray);
    font-style: italic;
}

/* ─── Gallery ─── */
.gallery {
    padding: 0;
}

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

.gallery__item {
    overflow: hidden;
    aspect-ratio: 5/4;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    filter: saturate(0.85);
}

.gallery__item:hover img {
    transform: scale(1.05);
    filter: saturate(1);
}

/* ─── Visit ─── */
.visit {
    padding: 8rem 0;
    background: var(--cream-light);
}

.visit__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.visit__left {
    max-width: 460px;
}

.visit__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.visit__title em {
    font-style: italic;
    color: var(--green-700);
}

.visit__body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

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

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

.visit__detail svg {
    color: var(--green-700);
    flex-shrink: 0;
    margin-top: 3px;
}

.visit__detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 0.25rem;
}

.visit__detail-value {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit__detail-link {
    font-size: 0.92rem;
    color: var(--green-700);
    border-bottom: 1px solid var(--green-100);
    transition: border-color 0.3s ease;
}

.visit__detail-link:hover {
    border-color: var(--green-700);
}

/* Hours */
.visit__hours {
    background: var(--green-800);
    padding: 3rem;
    border-radius: 2px;
}

.visit__hours-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--cream-light);
    margin-bottom: 2rem;
}

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

.visit__hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(245, 242, 235, 0.1);
}

.visit__hours-row:last-child {
    border-bottom: none;
}

.visit__hours-day {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(245, 242, 235, 0.85);
}

.visit__hours-time {
    font-size: 0.85rem;
    color: var(--green-100);
    font-weight: 300;
}

.visit__hours-note {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: rgba(245, 242, 235, 0.45);
    font-style: italic;
}

/* ─── CTA ─── */
.cta {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #2D5016 0%,
        #3D6B1E 40%,
        #4A7C28 70%,
        #5C9A32 100%
    );
}

.cta__gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(123, 184, 82, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(26, 58, 14, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.12;
    color: var(--cream-light);
    margin-bottom: 1.25rem;
}

.cta__title em {
    font-style: italic;
    opacity: 0.85;
}

.cta__body {
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.75);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

/* ─── Contact ─── */
.contact {
    padding: 8rem 0;
    background: var(--cream-light);
}

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

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.contact__title em {
    font-style: italic;
    color: var(--green-700);
}

.contact__body {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-mid);
    transition: color 0.3s ease;
}

.contact__info-item a {
    color: var(--green-700);
    border-bottom: 1px solid var(--green-100);
    transition: border-color 0.3s ease;
}

.contact__info-item a:hover {
    border-color: var(--green-700);
}

.contact__info-item svg {
    color: var(--green-700);
    flex-shrink: 0;
}

/* Form */
.contact__form-wrap {
    background: var(--cream);
    padding: 2.75rem;
    border-radius: 2px;
    border: 1px solid var(--cream-dark);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
}

.form__input {
    width: 100%;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--cream-dark);
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form__input::placeholder {
    color: var(--warm-gray);
    opacity: 0.6;
}

.form__input:focus {
    border-bottom-color: var(--green-700);
}

.form__select {
    cursor: pointer;
    color: var(--text-light);
}

.form__select option {
    color: var(--text-dark);
}

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

.form__success {
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 2px;
    font-size: 0.85rem;
    color: var(--green-800);
}

.form__success.show {
    display: flex;
}

.form__success svg {
    flex-shrink: 0;
    color: var(--green-700);
}

/* ─── Footer ─── */
.footer {
    background: var(--green-900);
    padding: 4rem 0 2.5rem;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    margin-bottom: 0.75rem;
}

.footer__logo-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cream);
}

.footer__logo-word {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-400);
}

.footer__tagline {
    font-size: 0.88rem;
    color: rgba(245, 242, 235, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer__links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.55);
    transition: color 0.3s ease;
}

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

.footer__legal {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 242, 235, 0.08);
    width: 100%;
    max-width: 1200px;
}

.footer__legal p {
    font-size: 0.75rem;
    color: rgba(245, 242, 235, 0.3);
    line-height: 1.8;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .menu__categories {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--cream-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        box-shadow: -8px 0 40px rgba(0,0,0,0.1);
        z-index: 999;
    }

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

    .nav__links a {
        font-size: 0.9rem;
    }

    .nav__menu-btn {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

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

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

    .about__text {
        max-width: 100%;
    }

    .about__image {
        order: -1;
    }

    .visit__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact__form-wrap {
        padding: 2rem 1.5rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .menu__category {
        padding: 2rem 1.5rem;
    }

    .menu__item-desc {
        display: none;
    }

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

    .visit__hours {
        padding: 2rem;
    }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
