/* ═══════════════════════════════════════════
   InnPlate — Core Styles
   ═══════════════════════════════════════════ */

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5e;
    --secondary: #1a1a2e;
    --accent: #16213e;
    --bg: #f8f9fb;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
.gradient-text { background: linear-gradient(135deg, var(--primary), #e040fb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: var(--radius); font-weight: 600;
    font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none; gap: 8px;
    font-family: var(--font);
}
.btn-sm { padding: 6px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); padding: 0 0;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; color: var(--secondary); }
.navbar-brand:hover { color: var(--secondary); }
.brand-logo { border-radius: 8px; object-fit: contain; }
.brand-icon { font-size: 1.5rem; }
.navbar-links { display: flex; align-items: center; gap: 24px; }
.navbar-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
.navbar-links a:hover { color: var(--primary); }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 20px;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    }
    .navbar-links.open { display: flex; }
}

/* ── Hero ── */
.hero {
    padding: 120px 0 80px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 16px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }

.hero-mockup { perspective: 1000px; }
.mockup-screen {
    background: var(--secondary); border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-lg); transform: rotateY(-5deg) rotateX(2deg);
}
.mockup-header { display: flex; gap: 6px; padding: 12px 16px; background: #0f0f23; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27ca40; }
.mockup-body { display: flex; min-height: 250px; }
.mockup-sidebar { width: 60px; background: #16213e; }
.mockup-content { flex: 1; padding: 20px; background: #1a1a2e; }
.mockup-stat-row { display: flex; gap: 16px; height: 100%; align-items: flex-end; }
.mockup-stat { flex: 1; text-align: center; }
.stat-bar { background: linear-gradient(180deg, var(--primary), var(--primary-light)); border-radius: 4px 4px 0 0; min-height: 40px; margin-bottom: 8px; }
.mockup-stat span { color: #9ca3af; font-size: 0.75rem; }

@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-visual { display: none; }
}

/* ── Features ── */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px;
    box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Steps ── */
.how-it-works { padding: 80px 0; background: var(--secondary); color: #fff; }
.how-it-works .section-title { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.step { text-align: center; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
    color: #fff; font-size: 1.5rem; font-weight: 700; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: #9ca3af; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* ── CTA ── */
.cta-section { padding: 80px 0; }
.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #e040fb 100%);
    border-radius: var(--radius-lg); padding: 60px; text-align: center; color: #fff;
}
.cta-card h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-card p { opacity: 0.9; margin-bottom: 24px; }
.cta-card .btn { background: #fff; color: var(--primary); border-color: #fff; }
.cta-card .btn:hover { background: rgba(255,255,255,0.9); }
.cta-note { font-size: 0.85rem; opacity: 0.8; margin-top: 12px; }

/* ── Footer ── */
.site-footer { background: var(--secondary); color: #c9c9c9; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: #9ca3af; margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #2a2a4a; padding-top: 20px; text-align: center; font-size: 0.85rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Auth Pages ── */
.auth-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 20px 40px; background: var(--bg);
}
.auth-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-lg); width: 100%; max-width: 480px;
}
.auth-card-wide { max-width: 680px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 1.75rem; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); }
.auth-form .form-group { margin-bottom: 20px; }
.auth-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.auth-form input, .auth-form select, .auth-form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font);
    transition: border-color var(--transition);
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-error { background: #fef2f2; color: var(--danger); padding: 12px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.form-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-form .btn { margin-top: 8px; }

/* ── Modal ── */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content {
    position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px;
    max-width: 500px; width: 90%; text-align: center; z-index: 1;
}
.wizard-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.wizard-option {
    background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius);
    padding: 24px; cursor: pointer; transition: all var(--transition); text-align: center;
    font-family: var(--font);
}
.wizard-option:hover { border-color: var(--primary); background: #fff8f5; }
.option-icon { font-size: 2rem; margin-bottom: 8px; }

/* ── Pricing ── */
.pricing-section { padding: 120px 0 80px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 60px; }
.pricing-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px;
    border: 2px solid var(--border); text-align: center; position: relative;
    transition: transform var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card-featured { border-color: var(--primary); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.pricing-amount { margin-bottom: 24px; }
.pricing-amount .price { font-size: 2.5rem; font-weight: 800; color: var(--text); }
.pricing-amount .period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-secondary); }
.pricing-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

.pricing-faq { max-width: 700px; margin: 0 auto; }
.pricing-faq h2 { text-align: center; margin-bottom: 32px; }
.faq-item { margin-bottom: 24px; }
.faq-item h4 { margin-bottom: 8px; }
.faq-item p { color: var(--text-secondary); }

/* ── Restaurant Landing ── */
.landing-hero { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg-video, .hero-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg-image { background-size: cover; background-position: center; }
.hero-bg-default { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.hero-overlay {
    position: relative; z-index: 1; width: 100%; padding: 80px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    color: #fff; text-align: center;
}
.hero-overlay h1 { font-size: 3rem; margin-bottom: 12px; }
.hero-caption { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; }

.landing-about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media img, .about-media video { width: 100%; border-radius: var(--radius-lg); }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--text-secondary); line-height: 1.8; }

.landing-menu { padding: 80px 0; background: var(--bg); }
.menu-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.menu-tab {
    padding: 8px 20px; border: 2px solid var(--border); border-radius: 24px;
    background: #fff; cursor: pointer; font-family: var(--font); font-weight: 500;
    transition: all var(--transition);
}
.menu-tab.active, .menu-tab:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.menu-category { display: none; }
.menu-category.active { display: block; }
.menu-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.menu-item-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform var(--transition);
}
.menu-item-card:hover { transform: translateY(-2px); }
.menu-item-img { width: 100%; height: 180px; object-fit: cover; }
.menu-item-info { padding: 16px; }
.menu-item-info h4 { margin-bottom: 6px; }
.menu-item-info p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 8px; }
.menu-item-variants { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-tag { background: #fff8f5; color: var(--primary); padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }

.landing-gallery { padding: 80px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item img, .gallery-item video { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff;
    font-size: 0.85rem;
}

.landing-promos { padding: 60px 0; background: var(--bg); }
.promos-carousel { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.promo-slide { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.promo-slide img, .promo-slide video { width: 100%; height: 250px; object-fit: cover; }
.promo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff;
}

.landing-footer { background: var(--secondary); color: #c9c9c9; padding: 40px 0; }
.landing-footer-inner { display: flex; justify-content: space-between; align-items: center; }
.landing-footer h3 { color: #fff; margin-bottom: 8px; }
.landing-footer-powered { font-size: 0.85rem; }
.landing-footer-powered a { color: var(--primary); }

/* ── Lightbox ── */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 300;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
    position: absolute; top: -40px; right: 0; background: none; border: none;
    color: #fff; font-size: 2rem; cursor: pointer;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero-overlay h1 { font-size: 2rem; }
    .landing-footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}

/* ── Policy Pages ── */
.policy-page {
    padding: 100px 0 60px;
    min-height: 100vh;
}
.policy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.policy-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}
.policy-content {
    max-width: 800px;
    line-height: 1.8;
}
.policy-content h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--text);
}
.policy-content h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.policy-content p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}
.policy-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}
.policy-content ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.policy-content a {
    color: var(--primary);
    text-decoration: underline;
}

.contact-info-block {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
    border-left: 4px solid var(--primary);
}
.contact-info-block p {
    margin-bottom: 4px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
}
.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.contact-card h3 {
    margin-bottom: 12px;
}
.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
    margin-top: 8px !important;
}

/* ── Checkbox / Policy Agree ── */
.policy-agree {
    margin-top: 8px;
    margin-bottom: 16px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

/* ── Utilities ── */
.alert { padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; background: var(--bg); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
