/* homepage.css - Professional Business Design */

/* Inherits variables from newSite.css */

/* =========================================
   Global/Reset Overrides for Homepage
   ========================================= */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.mainSection {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Highlight Text */
.highlight {
    color: var(--primary);
}

/* =========================================
   HERO SECTION - Premium Dark Theme
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--business-primary) 0%, #2d2d4a 100%);
    padding: 120px 20px 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--business-accent);
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--business-text);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--business-text);
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* =========================================
   SEARCH BAR - High Usability
   ========================================= */
.search-container {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-container:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.location-btn {
    background: transparent;
    border: none;
    padding: 0 20px;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    border-right: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.location-btn:hover {
    color: var(--primary-dark);
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    background: transparent;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Search Dropdown Results */
.results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    display: none;
    text-align: left;
}

.results.active {
    display: block;
}

.results div {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.results div:hover {
    background-color: var(--bg-tertiary);
}

.results div:last-child {
    border-bottom: none;
}

/* =========================================
   FEATURED ADS SHOWCASE SECTION
   ========================================= */
.ads-showcase-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   PYRAMID GRID LAYOUT FOR ADS
   ========================================= */
.ads-pyramid-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ads-row {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* Row with 3 cards */
.ads-row-3 .ad-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: 380px;
}

/* Row with 2 cards - centered with gap */
.ads-row-2 .ad-card {
    flex: 0 0 calc(40% - 12px);
    max-width: 420px;
}

/* Row with 1 card - centered and larger */
.ads-row-1 .ad-card {
    flex: 0 0 50%;
    max-width: 480px;
}

/* Featured card in center gets special treatment */
.ads-row-1 .ad-card,
.ad-card.featured {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary);
}

.ads-row-1 .ad-card:hover,
.ad-card.featured:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 56, 93, 0.2);
}

/* Ad Card */
.ad-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.ad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.ad-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-card:hover .ad-image {
    transform: scale(1.08);
}

.ad-plan-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 56, 93, 0.4);
}

.ad-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    opacity: 0;
    transition: var(--transition-base);
}

.ad-card:hover .ad-overlay {
    opacity: 1;
}

.view-deal {
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(10px);
    transition: var(--transition-spring);
}

.ad-card:hover .view-deal {
    transform: translateY(0);
}

.ad-content {
    padding: 20px;
}

.ad-restaurant {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.restaurant-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.restaurant-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.restaurant-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ad-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* =========================================
   QUICK ORDER SECTION
   ========================================= */
.quick-order-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.quick-order-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.quick-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    text-decoration: none;
    transition: var(--transition-base);
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.quick-card.food-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.quick-card.cuisine-card {
    background: linear-gradient(135deg, var(--business-primary) 0%, #3d3d5c 100%);
}

.quick-card-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.quick-card-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.quick-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.quick-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: var(--transition-fast);
}

.quick-card:hover .quick-link {
    gap: 12px;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section {
    padding: 100px 20px;
    background: white;
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.feature-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-4px);
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition-base);
}

.feature-item:hover .feature-icon-circle {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   PARTNER SECTION
   ========================================= */
.partner-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.partner-cta-section {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    border: 1px solid var(--border-light);
}

.partner-content-box {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.partner-content-box h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.partner-content-box > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.partner-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.partner-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 8px 0;
}

.partner-benefits li i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.btn-partner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--business-primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-base);
    width: fit-content;
}

.btn-partner:hover {
    background: #2d2d4a;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.partner-bg-image {
    flex: 1;
    background-image: url('/images/landing/pexels-brettjordan-825661.jpg');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    position: relative;
}

.partner-stats-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    box-shadow: var(--shadow-md);
}

.partner-stat {
    text-align: center;
}

.partner-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.partner-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1200px) {
    .ads-row-3 .ad-card {
        flex: 0 0 calc(33.333% - 16px);
        max-width: 320px;
    }
    
    .ads-row-2 .ad-card {
        flex: 0 0 calc(45% - 12px);
        max-width: 380px;
    }
    
    .ads-row-1 .ad-card {
        flex: 0 0 55%;
        max-width: 420px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quick-order-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .partner-cta-section {
        flex-direction: column;
    }
    
    .partner-bg-image {
        min-height: 300px;
    }
    
    /* Pyramid becomes 2-1 pattern on tablets */
    .ads-row {
        flex-wrap: wrap;
    }
    
    .ads-row-3 .ad-card,
    .ads-row-2 .ad-card {
        flex: 0 0 calc(50% - 12px);
        max-width: 100%;
    }
    
    .ads-row-1 .ad-card {
        flex: 0 0 70%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 120px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .search-container {
        flex-direction: column;
        padding: 12px;
    }
    
    .location-btn {
        width: 100%;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 12px;
    }
    
    .search-btn {
        width: 100%;
        padding: 14px;
        justify-content: center;
    }
    
    .ads-showcase-section,
    .quick-order-section,
    .partner-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Stack all cards vertically on mobile */
    .ads-row {
        flex-direction: column;
        align-items: center;
    }
    
    .ads-row-3 .ad-card,
    .ads-row-2 .ad-card,
    .ads-row-1 .ad-card {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .ads-row-1 .ad-card,
    .ad-card.featured {
        transform: none;
    }
    
    .partner-content-box {
        padding: 40px 24px;
    }
    
    .partner-content-box h2 {
        font-size: 1.75rem;
    }
    
    .features-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-card-content {
        padding: 30px;
    }
    
    .quick-card h3 {
        font-size: 1.4rem;
    }
    
    .ad-image-wrapper {
        height: 180px;
    }
}