/**
 * Digimenu Landing Pages CSS
 * Version: 1.0
 */

:root {
    --primary: #29c7ac;
    --primary-dark: #1fa88f;
    --secondary: #6366f1;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
    padding: 1rem 0;
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: white;
    position: fixed;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
}

.navbar-brand span {
    color: var(--dark);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfeff 50%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(41,199,172,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* ============================================
   SECTIONS
============================================ */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

/* ============================================
   FEATURE CARDS
============================================ */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    margin: 0;
}

/* ============================================
   RESTAURANT CARDS
============================================ */
.restaurant-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(41,199,172,0.2);
}

.restaurant-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.restaurant-card .card-logo {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    border: 4px solid white;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

.restaurant-card .card-logo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, #f0fdf9, #ecfeff);
}

.restaurant-card .card-body {
    padding: 45px 24px 24px;
}

.restaurant-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.restaurant-card .card-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Info in Restaurant Cards */
.restaurant-card .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.restaurant-card .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.restaurant-card .contact-item:hover {
    color: var(--primary);
}

.restaurant-card .contact-item i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Action Buttons for Mobile */
.restaurant-card .action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.restaurant-card .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.restaurant-card .action-btn.call {
    background: var(--primary);
    color: white;
}

.restaurant-card .action-btn.call:hover {
    background: var(--primary-dark);
}

.restaurant-card .action-btn.directions {
    background: #4285F4;
    color: white;
}

.restaurant-card .action-btn.directions:hover {
    background: #3574e2;
}

.restaurant-card .action-btn.whatsapp {
    background: #25D366;
    color: white;
}

.restaurant-card .action-btn.whatsapp:hover {
    background: #1fb855;
}

/* View Menu Button */
.restaurant-card .view-menu-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.restaurant-card .view-menu-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(41,199,172,0.3);
}

/* ============================================
   STATS SECTION
============================================ */
.stats-section {
    background: var(--dark);
    color: white;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item p {
    color: #94a3b8;
    margin: 0;
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    margin-top: 3rem;
}

/* ============================================
   FILTER PILLS
============================================ */
.filter-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-pill {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-pill:hover,
.filter-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* ============================================
   SEARCH BOX
============================================ */
.search-box-landing {
    max-width: 400px;
    margin: 0 auto 40px;
}

.search-box-landing input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box-landing input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(41,199,172,0.1);
}

.search-box-landing .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* ============================================
   ANIMATIONS
============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .restaurant-card .action-buttons {
        flex-wrap: wrap;
    }
    
    .restaurant-card .action-btn {
        flex: 1 1 calc(50% - 5px);
    }
    
    section {
        padding: 60px 0;
    }
}
