/* ==========================================================================
   Design System & Styling Tokens for Bistro Café
   ========================================================================== */
:root {
    /* Color Palette */
    --bistro-primary: hsl(12, 60%, 30%);      /* Deep Maroon/Wine */
    --bistro-accent: hsl(28, 80%, 50%);       /* Terracotta Orange */
    --bistro-bg-warm: hsl(35, 40%, 96%);      /* Almond/Warm White */
    --bistro-bg-card: hsl(0, 0%, 100%);
    --bistro-text-dark: hsl(24, 25%, 12%);     /* Espresso Black */
    --bistro-text-muted: hsl(24, 12%, 40%);    /* Roasted Cocoa Grey */
    --bistro-border: hsl(35, 20%, 88%);
    --bistro-success: hsl(100, 35%, 32%);     /* Olive/Basil Green */

    /* Fonts */
    --font-bistro: 'Zen Kaku Gothic New', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Border Radius & Shadows */
    --b-radius-sm: 8px;
    --b-radius-md: 16px;
    --b-radius-lg: 24px;
    
    --b-shadow-sm: 0 2px 8px rgba(45, 30, 20, 0.05);
    --b-shadow-md: 0 8px 24px rgba(45, 30, 20, 0.1);
}

/* ==========================================================================
   Reset & Frame Controls (PC view vs Mobile view)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-bistro);
    background-color: hsl(24, 15%, 90%); /* Darker background for PC mockup background */
    color: var(--bistro-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Desktop Simulation Mockup Wrapper */
.demo-wrapper {
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
}

.smartphone-frame {
    width: 380px;
    height: 800px;
    background-color: #121212;
    border-radius: 48px;
    box-shadow: 0 25px 60px -10px rgba(0,0,0,0.5), 0 0 0 10px #2a2a2a;
    border: 3px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Phone Bar & Time */
.phone-bar {
    height: 40px;
    background-color: #121212;
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-family: var(--font-display);
    font-weight: 600;
    z-index: 100;
}

.phone-notch {
    width: 120px;
    height: 20px;
    background-color: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.phone-icons {
    letter-spacing: 2px;
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 3px;
    z-index: 100;
}

/* Scrollable Container Inside the Phone Frame */
.phone-scrollable-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bistro-bg-warm);
    display: flex;
    flex-direction: column;
    padding-bottom: 24px; /* for home indicator space */
    scroll-behavior: smooth;
}

/* Hide default scrollbars inside mockup for cleaner look */
.phone-scrollable-content::-webkit-scrollbar {
    width: 5px;
}
.phone-scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* Toggle Layout Info on PC */
.layout-toggle-container {
    position: fixed;
    bottom: 20px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--b-radius-sm);
    font-size: 0.75rem;
    max-width: 320px;
    text-align: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Inner Site Styles
   ========================================================================== */
.app-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bistro-border);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 0.55rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--bistro-accent);
    letter-spacing: 2px;
}

.brand-main {
    font-size: 0.95rem;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--bistro-primary);
}

.call-btn {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--bistro-primary);
    color: #fff !important;
    padding: 0.35rem 0.8rem;
    border-radius: var(--b-radius-sm);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 4.5rem 1.2rem 4rem;
    background-image: url('sample.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Shimmer pattern animation via CSS */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 15%, transparent 16%);
    background-size: 16px 16px;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(18,12,8,0.7) 100%);
}

.hero-info {
    position: relative;
    z-index: 10;
}

.status-badge {
    display: inline-block;
    background-color: var(--bistro-success);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--b-radius-sm);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 0.8rem;
}

.hero p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.btn-book {
    background-color: var(--bistro-accent);
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: var(--b-radius-sm);
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(224, 86, 36, 0.2);
}

.btn-book:hover {
    background-color: hsl(28, 80%, 45%);
}

.btn-menu-scroll {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--b-radius-sm);
    font-size: 0.8rem;
}

.btn-menu-scroll:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Concept Section */
.concept {
    padding: 2rem 1.2rem;
    background-color: var(--bistro-bg-card);
    border-bottom: 1px solid var(--bistro-border);
}

.concept h3,
.menu-sect h3,
.info h3,
.booking h3 {
    font-size: 1.1rem;
    color: var(--bistro-primary);
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.concept h3::before, .concept h3::after,
.menu-sect h3::before, .menu-sect h3::after,
.info h3::before, .info h3::after,
.booking h3::before, .booking h3::after {
    content: "";
    width: 20px;
    height: 1px;
    background-color: var(--bistro-primary);
    opacity: 0.3;
}

.concept p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--bistro-text-muted);
    text-align: justify;
    margin-bottom: 1.5rem;
}

.concept-images {
    display: flex;
    gap: 0.8rem;
}

.concept-img-card {
    flex: 1;
    height: 90px;
    border-radius: var(--b-radius-sm);
    display: flex;
    align-items: flex-end;
    padding: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.65rem;
    position: relative;
    overflow: hidden;
}

.concept-img-card::before {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.concept-img-card span {
    position: relative;
    z-index: 2;
}

/* CSS-based images instead of external files */
.pasta-bg {
    background-image: url('sample.jpg');
    background-size: cover;
    background-position: center;
}

.wine-bg {
    background-image: url('wine_sample.jpg');
    background-size: cover;
    background-position: center;
}

/* Menu Section */
.menu-sect {
    padding: 2rem 1.2rem;
    border-bottom: 1px solid var(--bistro-border);
}

.menu-tabs {
    display: flex;
    background-color: rgba(0,0,0,0.04);
    padding: 3px;
    border-radius: var(--b-radius-sm);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bistro-text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background-color: var(--bistro-bg-card);
    color: var(--bistro-primary);
    box-shadow: var(--b-shadow-sm);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed var(--bistro-border);
    padding-bottom: 0.8rem;
}

.menu-item-details h4 {
    font-size: 0.85rem;
    color: var(--bistro-text-dark);
    margin-bottom: 2px;
}

.menu-item-details p {
    font-size: 0.7rem;
    color: var(--bistro-text-muted);
}

.menu-item-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--bistro-primary);
    white-space: nowrap;
}

/* Info & Map Section */
.info {
    padding: 2rem 1.2rem;
    background-color: var(--bistro-bg-card);
    border-bottom: 1px solid var(--bistro-border);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.info-table th {
    text-align: left;
    width: 30%;
    color: var(--bistro-primary);
    font-weight: 700;
    vertical-align: top;
    padding: 8px 0;
}

.info-table td {
    padding: 8px 0;
    color: var(--bistro-text-muted);
}

.map-container {
    border-radius: var(--b-radius-sm);
    overflow: hidden;
    border: 1px solid var(--bistro-border);
}

.map-placeholder {
    height: 120px;
    background-color: hsl(35, 15%, 90%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.map-placeholder::before {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-pin {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 4px;
}

.map-text {
    font-size: 0.65rem;
    color: var(--bistro-text-muted);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Booking Section */
.booking {
    padding: 2rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid var(--bistro-border);
}

.booking-text {
    font-size: 0.8rem;
    color: var(--bistro-text-muted);
    margin-bottom: 1.5rem;
}

.booking-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.booking-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--b-radius-sm);
    color: #fff;
    text-align: left;
    box-shadow: var(--b-shadow-sm);
}

.booking-btn .icon {
    font-size: 1.5rem;
}

.booking-btn .btn-text {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.booking-btn small {
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 400;
}

.tel-btn {
    background-color: var(--bistro-success);
}
.tel-btn:hover {
    background-color: hsl(100, 35%, 27%);
}

.web-btn {
    background-color: var(--bistro-primary);
}
.web-btn:hover {
    background-color: hsl(200, 40%, 25%);
}

/* Demo Web Booking Form */
.web-booking-form {
    padding: 2rem 1.2rem;
    background-color: var(--bistro-bg-warm);
    border-bottom: 1px solid var(--bistro-border);
    text-align: left;
}

.web-booking-form h4 {
    font-size: 0.9rem;
    color: var(--bistro-text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.demo-form-group {
    margin-bottom: 0.8rem;
}

.demo-form-group input {
    width: 100%;
    border: 1px solid var(--bistro-border);
    padding: 0.6rem;
    border-radius: var(--b-radius-sm);
    font-size: 0.8rem;
    background: var(--bistro-bg-card);
    color: var(--bistro-text-dark);
    box-sizing: border-box;
}

.demo-submit-btn {
    width: 100%;
    background-color: var(--bistro-accent);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: var(--b-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--b-shadow-sm);
    transition: var(--transition-smooth);
}

.demo-submit-btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Promotional Box inside Demo LP
   ========================================================================== */
.sns-package-feature {
    padding: 2rem 1.2rem;
    background-color: var(--bistro-primary);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.package-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.package-tag {
    display: inline-block;
    background-color: var(--bistro-accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--b-radius-sm);
    margin-bottom: 4px;
}

.package-header h4 {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 800;
}

.package-content .desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    margin-bottom: 1.2rem;
}

.mock-insta-box {
    background-color: #fff;
    color: #000;
    border-radius: var(--b-radius-md);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.box-badge {
    background-color: hsl(200, 100%, 95%);
    color: hsl(200, 80%, 40%);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 0.8rem;
}

.insta-profile-demo {
    display: flex;
    gap: 0.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #eee;
    flex-shrink: 0;
    border: 1px solid #ddd;
}

.profile-title {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.profile-bio {
    font-size: 0.65rem;
    color: #555;
    margin: 2px 0 4px;
}

.profile-link {
    font-size: 0.65rem;
    color: var(--bistro-primary);
    font-weight: 700;
}

.insta-posts-demo {
    display: flex;
    gap: 0.6rem;
}

.insta-post-card {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fdfdfd;
}

.post-img {
    height: 60px;
    background-color: #f5f5f5;
    font-size: 0.55rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.insta-post-card.pinned .post-img {
    background-color: var(--color-accent-light);
    color: var(--bistro-accent);
}

.post-caption {
    padding: 6px;
    font-size: 0.55rem;
    color: #666;
    line-height: 1.4;
}

.package-content .note {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    text-align: center;
}

/* Footer */
.demo-footer {
    padding: 1.5rem 1.2rem;
    text-align: center;
    font-size: 0.65rem;
    color: var(--bistro-text-muted);
}

/* ==========================================================================
   Responsive Overrides (When directly loaded on phone)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        background-color: var(--bistro-bg-warm);
    }
    
    .demo-wrapper {
        padding: 0;
    }
    
    .smartphone-frame {
        width: 100%;
        height: auto;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background-color: var(--bistro-bg-warm);
    }
    
    .phone-bar {
        display: none; /* Hide device simulator status bar on real mobile */
    }
    
    .home-indicator {
        display: none;
    }
    
    .layout-toggle-container {
        display: none;
    }
    
    .phone-scrollable-content {
        height: auto;
        overflow-y: visible;
    }
}
