/* ============================================
   Ulbrich Home Town Bakery — Stylesheet
   Classic & Elegant · Midnight Blue + Mint
   ============================================ */

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

:root {
    --midnight: #0A2342;
    --midnight-light: #143A5C;
    --midnight-deep: #061829;
    --mint: #B8E6D3;
    --mint-light: #D4F5E9;
    --mint-dark: #7BC4A8;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --warm-white: #FFFDF9;
    --text-dark: #1A1A1A;
    --text-medium: #3D3D3D;
    --text-light: #6B6B6B;
    --gold: #C8A96E;
    --gold-light: #E0C992;
    
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Palatino Linotype', Palatino, Georgia, serif;
    
    --shadow-sm: 0 1px 3px rgba(10, 35, 66, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 35, 66, 0.08);
    --shadow-lg: 0 8px 40px rgba(10, 35, 66, 0.12);
    --shadow-xl: 0 16px 60px rgba(10, 35, 66, 0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --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(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--midnight);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1.5px;
    background: var(--mint-dark);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--midnight);
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}

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

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-full {
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 230, 211, 0.1);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 24, 41, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mint);
    letter-spacing: 0.02em;
}

.nav-logo-icon {
    color: var(--mint);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(184, 230, 211, 0.8);
    letter-spacing: 0.03em;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--mint);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--mint);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--mint);
    color: var(--midnight) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--mint-light) !important;
    color: var(--midnight) !important;
}

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

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mint);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger: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;
    background: var(--midnight-deep);
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 24, 41, 0.7) 0%,
        rgba(10, 35, 66, 0.85) 50%,
        rgba(6, 24, 41, 0.95) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--mint);
    margin: 0 auto 32px;
    opacity: 0.7;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--mint);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(184, 230, 211, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---------- Section Base ---------- */
.section {
    padding: 100px 0;
}

/* ---------- About ---------- */
.about {
    background: var(--warm-white);
}

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

.about-image-wrap {
    position: relative;
}

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7.5;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--mint);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(10, 35, 66, 0.08);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--midnight);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(10, 35, 66, 0.12);
}

/* ---------- Menu ---------- */
.menu {
    background: var(--cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.menu-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(10, 35, 66, 0.04);
}

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

.menu-card-image {
    overflow: hidden;
    aspect-ratio: 4/2.6;
}

.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.05);
}

.menu-card-body {
    padding: 24px 28px 28px;
}

.menu-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--midnight);
}

.menu-card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery {
    background: var(--midnight);
    padding: 100px 0;
}

.gallery .section-label {
    color: var(--mint);
}

.gallery .section-label::before {
    background: var(--mint);
}

.gallery .section-title {
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
    margin-top: 56px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.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.05);
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 2; }

/* ---------- Visit ---------- */
.visit {
    background: var(--warm-white);
}

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

.visit-desc {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--mint-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--midnight);
}

.visit-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.visit-detail-value {
    display: block;
    font-size: 1rem;
    color: var(--midnight);
    line-height: 1.6;
}

.visit-detail-value a {
    color: var(--midnight);
    border-bottom: 1px solid rgba(10, 35, 66, 0.2);
    transition: border-color var(--transition);
}

.visit-detail-value a:hover {
    border-color: var(--mint-dark);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.map-placeholder {
    width: 100%;
    height: 100%;
}

/* ---------- Contact ---------- */
.contact {
    background: var(--cream);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.contact-form-wrap {
    background: var(--warm-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(10, 35, 66, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1.5px solid rgba(10, 35, 66, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mint-dark);
    background: var(--warm-white);
    box-shadow: 0 0 0 3px rgba(184, 230, 211, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 12px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--mint-dark);
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--midnight);
}

.form-success p {
    color: var(--text-medium);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--midnight-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(184, 230, 211, 0.08);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mint);
}

.footer-logo-icon {
    color: var(--mint);
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer ul a:hover {
    color: var(--mint);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-hours .day { color: rgba(255, 255, 255, 0.55); }
.footer-hours .time { color: rgba(255, 255, 255, 0.75); }

.footer address {
    font-style: normal;
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer address a {
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(184, 230, 211, 0.2);
    transition: border-color var(--transition);
}

.footer address a:hover {
    border-color: var(--mint);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-loc {
    color: rgba(184, 230, 211, 0.4) !important;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-rows: repeat(3, 200px);
    }
    .gallery-item:nth-child(1) { grid-column: span 6; grid-row: span 1; }
    .gallery-item:nth-child(2) { grid-column: span 6; }
    .gallery-item:nth-child(3) { grid-column: span 6; }
    .gallery-item:nth-child(4) { grid-column: span 6; }
    .gallery-item:nth-child(5) { grid-column: span 6; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6, 24, 41, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        border-bottom: 1px solid rgba(184, 230, 211, 0.1);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4/3;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .about-image-accent {
        top: -10px;
        right: -10px;
        width: 80px;
        height: 80px;
    }
    
    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .hero-content {
        padding: 100px 16px 60px;
    }
}
