/* ============================================================
   THE GRATEFUL BEAN — Styles
   Palette: Charcoal (#1a1a1a) · Coral (#e8645b) · Warm neutrals
   Fonts: Instrument Sans (UI) · Playfair Display (display)
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-weight: 300;
    color: #1a1a1a;
    background: #faf9f7;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b6b; }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1200px) { .container { padding: 0 64px; } }

/* ---------- DECORATIVE LINE ---------- */
.line-deco {
    position: fixed;
    top: 0; left: 64px;
    width: 1px;
    height: 100vh;
    background: rgba(26,26,26,0.06);
    z-index: 0;
    pointer-events: none;
}
@media (max-width: 767px) { .line-deco { left: 24px; } }
@media (min-width: 1400px) { .line-deco { left: calc(50% + 600px); } }

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute; top: -100%; left: 24px;
    background: #1a1a1a; color: #faf9f7;
    padding: 8px 16px; border-radius: 0 0 4px 4px;
    z-index: 200; font-size: 0.875rem;
}
.skip-link:focus { top: 16px; }

/* ---------- HEADER ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250,249,247,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26,26,26,0.06);
    transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 1px 0 rgba(26,26,26,0.06); }
.header-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem; font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}
.logo-icon { color: #e8645b; }
.logo--footer { color: #faf9f7; }

/* Nav */
.nav ul { display: flex; align-items: center; gap: 32px; }
.nav a {
    font-size: 0.875rem; font-weight: 400;
    color: #1a1a1a; letter-spacing: 0.01em;
    position: relative;
    transition: color 0.2s ease;
}
.nav a::after {
    content: ''; position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: #e8645b;
    transition: width 0.3s ease;
}
.nav a:hover { color: #e8645b; }
.nav a:hover::after { width: 100%; }

/* Nav toggle */
.nav-toggle {
    display: flex; flex-direction: column;
    gap: 5px; padding: 8px;
}
.nav-toggle-line {
    display: block; width: 22px; height: 1.5px;
    background: #1a1a1a;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile nav */
.nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(250,249,247,0.98);
    backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.nav.open { opacity: 1; pointer-events: all; }
.nav ul { flex-direction: column; gap: 24px; text-align: center; }
.nav a { font-size: 1.25rem; font-weight: 400; }
@media (min-width: 1024px) {
    .nav { position: static; opacity: 1; pointer-events: all; background: none; backdrop-filter: none; flex-direction: row; align-items: center; justify-content: flex-end; }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.875rem; font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn--coral {
    background: #e8645b; color: #faf9f7;
    border: 1.5px solid #e8645b;
}
.btn--coral:hover { background: #d4553f; border-color: #d4553f; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,100,91,0.3); }
.btn--outline {
    background: transparent; color: #1a1a1a;
    border: 1.5px solid rgba(26,26,26,0.2);
}
.btn--outline:hover { border-color: #1a1a1a; }
.btn--sm { padding: 10px 20px; font-size: 0.8125rem; }
.btn--full { width: 100%; }

/* ---------- SECTION LABELS ---------- */
.section-label {
    display: inline-block;
    font-size: 0.6875rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #e8645b; margin-bottom: 16px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400; line-height: 1.2;
    color: #1a1a1a; letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.section-title--center { text-align: center; }
.section-subtitle {
    font-size: 1.0625rem; color: #6b6b6b;
    max-width: 520px; margin: 0 auto 48px;
    line-height: 1.7;
}

/* ---------- HERO ---------- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex; align-items: center;
    background: #faf9f7;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 64px 0 80px;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 80px 0 100px; }
}
.hero-content { order: 2; }
@media (min-width: 1024px) { .hero-content { order: 1; } }
.hero-visual { order: 1; }
@media (min-width: 1024px) { .hero-visual { order: 2; } }

.hero-label {
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #e8645b; margin-bottom: 20px;
}
.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400; line-height: 1.15;
    color: #1a1a1a; letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: 1.0625rem; color: #555;
    line-height: 1.75; max-width: 480px;
    margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

/* Hero stats */
.hero-stats {
    display: flex; align-items: center; gap: 0;
    padding-top: 32px;
    border-top: 1px solid rgba(26,26,26,0.08);
}
.hero-stat { flex: 1; text-align: left; }
.hero-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 400;
    color: #1a1a1a; line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label { font-size: 0.75rem; color: #888; letter-spacing: 0.04em; }
.hero-stat-divider {
    width: 1px; height: 40px;
    background: rgba(26,26,26,0.1);
    flex-shrink: 0;
}

/* Hero image */
.hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 68/86;
}
.hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-accent {
    position: absolute; bottom: -12px; right: -12px;
    width: 120px; height: 120px;
    background: #e8645b;
    border-radius: 12px;
    opacity: 0.15;
    z-index: -1;
}
@media (min-width: 1024px) {
    .hero-img-wrap { aspect-ratio: auto; height: 600px; }
}

/* ---------- ABOUT ---------- */
.about { padding: 100px 0; }
@media (min-width: 768px) { .about { padding: 120px 0; } }
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.about-text p {
    font-size: 1.0625rem; color: #444;
    line-height: 1.8; margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px) {
    .about-image-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 260px; }
    .about-img--1 { grid-column: 1 / -1; grid-row: 1; }
    .about-img--2 { grid-column: 2; grid-row: 2; }
}
.about-img { border-radius: 12px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.about-img:hover img { transform: scale(1.03); }

/* ---------- MENU ---------- */
.menu {
    padding: 100px 0;
    background: #1a1a1a;
    color: #faf9f7;
}
.menu .section-label { color: #e8645b; }
.menu .section-title { color: #faf9f7; }
.menu .section-subtitle { color: rgba(250,249,247,0.55); }
.menu-categories {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 8px;
    margin-bottom: 48px;
}
.menu-cat {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.8125rem; font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(250,249,247,0.5);
    border: 1px solid rgba(250,249,247,0.12);
    transition: all 0.25s ease;
}
.menu-cat:hover { color: #faf9f7; border-color: rgba(250,249,247,0.3); }
.menu-cat.active {
    background: #e8645b; color: #faf9f7;
    border-color: #e8645b;
}
.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 600px) { .menu-grid { grid-template-columns: 1fr 1fr; gap: 0; } }
.menu-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(250,249,247,0.07);
}
.menu-item-header { max-width: 480px; }
@media (min-width: 600px) { .menu-item-header { max-width: 100%; } }
.menu-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1875rem; font-weight: 400;
    color: #faf9f7; margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.menu-item-desc {
    font-size: 0.9375rem; color: rgba(250,249,247,0.45);
    line-height: 1.65;
}
.menu-note {
    text-align: center;
    font-size: 0.8125rem; color: rgba(250,249,247,0.3);
    margin-top: 40px; letter-spacing: 0.02em;
}

/* ---------- STORY ---------- */
.story { padding: 100px 0; }
@media (min-width: 768px) { .story { padding: 120px 0; } }
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 900px) {
    .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.story-visual { border-radius: 16px; overflow: hidden; aspect-ratio: 60/75; }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.story-content .section-title { margin-bottom: 40px; }
.story-items { display: flex; flex-direction: column; gap: 40px; }
.story-item { position: relative; padding-left: 56px; }
.story-item-num {
    position: absolute; left: 0; top: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; font-weight: 400;
    color: rgba(232,100,91,0.2);
    line-height: 1;
}
.story-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; font-weight: 400;
    color: #1a1a1a; margin-bottom: 8px;
}
.story-item p { font-size: 0.9375rem; color: #666; line-height: 1.75; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 100px 0;
    background: #f3f0ec;
}
@media (min-width: 768px) { .testimonials { padding: 120px 0; } }
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr 1fr; } }
.testimonial-card {
    background: #faf9f7;
    border-radius: 16px;
    padding: 36px;
    position: relative;
    border: 1px solid rgba(26,26,26,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,26,26,0.08); }
.testimonial-quote {
    position: absolute; top: 24px; right: 28px;
    color: #1a1a1a;
}
.testimonial-text {
    font-size: 1rem; color: #333;
    line-height: 1.75; margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    font-size: 0.8125rem; font-weight: 500;
    color: #888; letter-spacing: 0.04em;
}

/* ---------- VISIT ---------- */
.visit { padding: 100px 0; }
@media (min-width: 768px) { .visit { padding: 120px 0; } }
.visit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 900px) {
    .visit-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}
.visit-detail {
    padding: 28px 0;
    border-bottom: 1px solid rgba(26,26,26,0.07);
}
.visit-detail:first-child { padding-top: 0; }
.visit-detail:last-child { border-bottom: none; }
.visit-detail-label {
    display: block;
    font-size: 0.6875rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #e8645b; margin-bottom: 8px;
}
.visit-detail-value {
    font-size: 1rem; color: #333;
    line-height: 1.75;
}
.visit-detail a {
    display: block; color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: rgba(232,100,91,0.3);
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.visit-detail a:hover { color: #e8645b; text-decoration-color: #e8645b; }
.visit-map { border-radius: 16px; overflow: hidden; aspect-ratio: 68/52; position: relative; }
.visit-map img { width: 100%; height: 100%; object-fit: cover; }
.map-link {
    position: absolute; bottom: 20px; left: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    background: #1a1a1a; color: #faf9f7;
    padding: 10px 18px; border-radius: 100px;
    font-size: 0.8125rem; font-weight: 500;
    transition: background 0.2s ease;
}
.map-link:hover { background: #e8645b; }

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background: #1a1a1a;
    color: #faf9f7;
}
@media (min-width: 768px) { .contact { padding: 120px 0; } }
.contact .section-title { color: #faf9f7; }
.contact .section-title { max-width: 520px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.contact-text p {
    font-size: 1.0625rem; color: rgba(250,249,247,0.55);
    line-height: 1.75; margin-bottom: 36px;
}
.contact-direct { display: flex; flex-direction: column; gap: 16px; }
.contact-direct-item {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.9375rem; color: #faf9f7;
    transition: color 0.2s ease;
}
.contact-direct-item:hover { color: #e8645b; }
.contact-direct-item svg { color: #e8645b; flex-shrink: 0; }

/* Form */
.contact-form-wrap {
    background: rgba(250,249,247,0.04);
    border: 1px solid rgba(250,249,247,0.08);
    border-radius: 16px;
    padding: 36px;
}
@media (min-width: 600px) { .contact-form-wrap { padding: 44px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 599px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px;
    color: rgba(250,249,247,0.5);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(250,249,247,0.06);
    border: 1px solid rgba(250,249,247,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #faf9f7;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9375rem; font-weight: 300;
    transition: border-color 0.2s ease, background 0.2s ease;
    appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(250,249,247,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e8645b;
    background: rgba(250,249,247,0.08);
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(250,249,247,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-group select option { background: #1a1a1a; color: #faf9f7; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
    text-align: center;
    padding: 16px;
    margin-top: 16px;
    font-size: 0.9375rem;
    color: #6ec99b;
    background: rgba(110,201,155,0.08);
    border-radius: 8px;
    border: 1px solid rgba(110,201,155,0.2);
}

/* ---------- FOOTER ---------- */
.footer {
    background: #111;
    color: rgba(250,249,247,0.5);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand p {
    font-size: 0.9375rem; line-height: 1.7;
    margin-top: 16px; max-width: 280px;
}
.footer-label {
    display: block;
    font-size: 0.6875rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(250,249,247,0.3);
    margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #e8645b; }
.footer-contact p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 8px; }
.footer-contact a {
    display: block; font-size: 0.9375rem;
    transition: color 0.2s ease;
}
.footer-contact a:hover { color: #e8645b; }
.footer-bottom {
    border-top: 1px solid rgba(250,249,247,0.06);
    padding: 24px 0;
    display: flex; flex-wrap: wrap;
    justify-content: space-between; gap: 8px;
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(250,249,247,0.25); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
