/* ============================================
   Baldwin Serves Food - Earthy Mediterranean
   ============================================ */

/* --- CSS Variables --- */
:root {
    --earth-900: #2C1810;
    --earth-800: #3E2723;
    --earth-700: #4E342E;
    --earth-600: #5D4037;
    --earth-500: #6D4C41;
    --olive-700: #33691E;
    --olive-600: #3E7A23;
    --olive-500: #558B2F;
    --olive-400: #7CB342;
    --terracotta: #BF5B3A;
    --terracotta-light: #D4845A;
    --sand-100: #FFF8F0;
    --sand-200: #F5EDE3;
    --sand-300: #E8DDD0;
    --sand-400: #D4C5B2;
    --cream: #FDFAF5;
    --warm-white: #FBF9F6;
    --text-primary: #2C1810;
    --text-secondary: #5D4037;
    --text-light: #8D6E63;
    --font-heading: 'Playfair Display', 'Noto Sans JP', serif;
    --font-body: 'Lato', 'Noto Sans JP', sans-serif;
}

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

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

.hidden {
    display: none !important;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 250, 245, 0.97);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(44, 24, 16, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--earth-800);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
}

#navbar:not(.scrolled) .logo-text,
#navbar:not(.scrolled) .logo-sub {
    color: var(--cream);
}

#navbar:not(.scrolled) .logo-sub {
    color: var(--sand-300);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--earth-600);
    position: relative;
    padding: 4px 0;
}

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

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

#navbar:not(.scrolled) .nav-links a {
    color: rgba(255,255,255,0.9);
}

.lang-btn {
    background: none;
    border: 1.5px solid var(--earth-600);
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: var(--earth-600);
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--earth-600);
    color: var(--cream);
}

#navbar:not(.scrolled) .lang-btn {
    border-color: rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.9);
}

#navbar:not(.scrolled) .lang-btn:hover {
    background: rgba(255,255,255,0.15);
}

.lang-current {
    font-weight: 700;
}

.lang-other {
    opacity: 0.5;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--earth-800);
    transition: all 0.3s;
}

#navbar:not(.scrolled) .nav-toggle span {
    background: white;
}

/* --- Hero --- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&h=900&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 24, 16, 0.55) 0%,
        rgba(44, 24, 16, 0.4) 50%,
        rgba(44, 24, 16, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 300;
    color: var(--sand-300);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-locations {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}

.hero-divider {
    margin: 0 12px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--terracotta);
    color: white;
}

.btn-primary:hover {
    background: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(191, 91, 58, 0.3);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--earth-800);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--terracotta);
    border-radius: 8px;
    transform: translate(12px, 12px);
    z-index: -1;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--earth-800);
    margin-bottom: 20px;
}

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

/* Philosophy Cards */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.phil-card {
    text-align: center;
    padding: 40px 28px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--sand-300);
    transition: transform 0.3s, box-shadow 0.3s;
}

.phil-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.08);
}

.phil-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--olive-500);
}

.phil-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--earth-800);
    margin-bottom: 10px;
}

.phil-card p {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* --- Gallery Strip --- */
.gallery-strip {
    display: flex;
    overflow: hidden;
    height: 240px;
}

.gallery-strip img {
    flex: 1;
    min-width: 20%;
    object-fit: cover;
    height: 100%;
    transition: flex 0.5s ease;
}

.gallery-strip img:hover {
    flex: 1.5;
}

/* --- Menu Section --- */
#menu {
    background: var(--sand-100);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 10px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: none;
    border: 1.5px solid var(--sand-400);
    border-radius: 30px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.menu-tab:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.menu-tab.active {
    background: var(--earth-800);
    border-color: var(--earth-800);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.menu-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--sand-300);
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.1);
}

.menu-card-img {
    height: 200px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.menu-card-body {
    padding: 20px;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 12px;
}

.menu-card-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--earth-800);
}

.price {
    font-weight: 700;
    color: var(--terracotta);
    font-size: 1rem;
    white-space: nowrap;
}

.menu-card-body p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* --- Drinks Section --- */
#drinks {
    background: var(--earth-800);
    color: white;
}

#drinks .section-tag {
    color: var(--terracotta-light);
}

#drinks .section-header h2 {
    color: var(--sand-200);
}

#drinks .section-desc {
    color: var(--sand-400);
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.drink-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.drink-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.1);
}

.drink-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
}

.drink-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drink-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--sand-200);
    margin-bottom: 8px;
}

.drink-card p {
    color: var(--sand-400);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.drink-card .price {
    color: var(--terracotta-light);
}

/* --- Locations Section --- */
#locations {
    background: var(--warm-white);
}

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

.location-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sand-300);
    transition: transform 0.3s, box-shadow 0.3s;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(44, 24, 16, 0.1);
}

.location-img {
    position: relative;
    height: 260px;
    overflow: hidden;
}

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

.location-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--terracotta);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.location-body {
    padding: 28px;
}

.location-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--earth-800);
    margin-bottom: 20px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-detail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.location-detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--terracotta);
    margin-top: 2px;
}

/* --- Contact / Reservation --- */
#contact {
    background: var(--sand-100);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--sand-400);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: white;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
}

.contact-form .btn {
    align-self: center;
    margin-top: 12px;
}

.confirmation {
    text-align: center;
    padding: 48px;
    max-width: 500px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--olive-500);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--earth-800);
    margin-bottom: 12px;
}

.confirmation p {
    color: var(--text-secondary);
}

/* --- Footer --- */
footer {
    background: var(--earth-900);
    color: var(--sand-400);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

footer .logo-text {
    color: var(--sand-200);
}

footer .logo-sub {
    color: var(--terracotta-light);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--sand-200);
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--sand-400);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--terracotta-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .gallery-strip {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(253, 250, 245, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--earth-800) !important;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--earth-800) !important;
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--earth-800) !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-strip {
        height: 140px;
    }

    .gallery-strip img {
        min-width: 33.33%;
    }
}

@media (max-width: 480px) {
    .drinks-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 64px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* --- Japanese language adjustments --- */
body.lang-ja {
    letter-spacing: 0.02em;
}

body.lang-ja .hero-title {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
}

body.lang-ja .nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

body.lang-ja .menu-tab {
    font-size: 0.82rem;
}
