/* assets/css/pages.css */

/* ==========================================
   1. INDEX / HOMEPAGE SPECIFIC
   ========================================== */

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    background: linear-gradient(180deg, rgba(15, 58, 32, 0.08) 0%, rgba(252, 249, 242, 0) 100%);
    overflow: hidden;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, rgba(15, 58, 32, 0.15) 0%, rgba(10, 15, 12, 0) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(197, 168, 92, 0.15);
    color: var(--brand-green);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .hero-badge {
    color: var(--brand-gold-light);
    background-color: rgba(197, 168, 92, 0.1);
}

.hero-title {
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.75vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 991px) {
    .hero-ctas {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-ctas .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Statistics Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

@media (max-width: 575px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.stat-item h3 {
    font-size: 1.73rem;
    font-weight: 800;
    color: var(--brand-green);
}

[data-theme="dark"] .stat-item h3 {
    color: var(--brand-gold);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Floating Media */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-main-img {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--brand-white);
    width: 90%;
    aspect-ratio: 1/1;
}

[data-theme="dark"] .hero-main-img {
    border-color: rgba(197, 168, 92, 0.2);
}

.hero-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.floating-badge-1 {
    top: 15%;
    left: -5%;
}

.floating-badge-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

@media (max-width: 991px) {
    .floating-badge-1 { left: 5%; }
    .floating-badge-2 { right: 5%; }
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(197, 168, 92, 0.15);
    color: var(--brand-gold-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.badge-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Delivery Process Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    margin-top: 50px;
}

@media (max-width: 991px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .timeline {
        grid-template-columns: 1fr;
    }
}

.timeline-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.68rem;
    font-weight: 800;
    margin: 0 auto 24px auto;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .step-number {
    color: var(--brand-gold);
}

.timeline-step:hover .step-number {
    transform: scale(1.1);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

[data-theme="dark"] .timeline-step:hover .step-number {
    color: var(--brand-white);
    border-color: var(--brand-white);
}

.timeline-step h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

/* ==========================================
   REDESIGNED SAFETY FIRST SECTION
   ========================================== */
.safety-section-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 991px) {
    .safety-section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.safety-media-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.safety-kitchen-img {
    width: 90%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--bg-card);
    transition: transform var(--transition-normal);
}

.safety-media-wrapper:hover .safety-kitchen-img {
    transform: scale(1.02);
}

/* Premium Glassmorphic FSSAI Certification Card */
.safety-fssai-card {
    position: absolute;
    bottom: -20px;
    right: 5%;
    width: 250px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(197, 168, 92, 0.4);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

[data-theme="dark"] .safety-fssai-card {
    background: rgba(22, 36, 29, 0.75);
    border-color: rgba(197, 168, 92, 0.2);
}

.fssai-seal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--brand-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(197, 168, 92, 0.3);
}

.fssai-seal-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.safety-fssai-card h3 {
    font-size: 0.98rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.safety-fssai-card p {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-gold-hover);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .safety-media-wrapper {
        flex-direction: column;
    }
    .safety-fssai-card {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        margin-top: 20px;
        animation: none;
        box-sizing: border-box;
    }
    .safety-kitchen-img {
        width: 100%;
    }
}

/* Safety List Items */
.safety-checklist {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.safety-check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px 20px 0 20px;
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.safety-check-item:hover {
    transform: translateX(6px);
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-sm);
}

.safety-check-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-green-bg);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}

.safety-check-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.safety-check-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.safety-check-details p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Hygiene Statistics */
.safety-stats-row {
    display: flex;
    gap: 30px;
    border-top: 1px dashed var(--border-color);
    padding-top: 24px;
}

.safety-stat-box {
    flex: 1;
}

.safety-stat-box strong {
    display: block;
    font-size: 1.68rem;
    font-family: var(--font-heading);
    color: var(--brand-green);
    line-height: 1.2;
}

[data-theme="dark"] .safety-stat-box strong {
    color: var(--brand-gold);
}

.safety-stat-box span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* CTA Banner */
.cta-banner {
    background: var(--gradient-green);
    color: var(--brand-cream);
    border-radius: var(--border-radius-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner h2 {
    color: var(--brand-white);
    font-size: clamp(1.73rem, 3.46vw, 2.59rem);
    margin-bottom: 20px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 32px auto;
    font-size: 0.99rem;
}

.cta-banner-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 575px) {
    .cta-banner {
        padding: 36px 20px;
        border-radius: var(--border-radius-lg);
    }
    .cta-banner h2 {
        font-size: 1.55rem;
        margin-bottom: 14px;
    }
    .cta-banner p {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }
    .cta-banner-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Contact Grid */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--bg-secondary);
    background: var(--bg-secondary-grad);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(197, 168, 92, 0.15);
    color: var(--brand-gold-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.contact-details h4 {
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.contact-details p, .contact-details a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (max-width: 575px) {
    .contact-wrapper {
        padding: 20px 16px;
    }
    .contact-info-list {
        padding: 24px 20px;
        gap: 20px;
    }
    .contact-info-item {
        gap: 12px;
    }
    .contact-icon {
        width: 44px;
        height: 44px;
    }
    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
    .contact-details h4 {
        font-size: 0.9rem;
    }
    .contact-details p, .contact-details a {
        font-size: 0.9rem;
    }
}

/* ==========================================
   2. DELIVERY AREAS WIDGET & ZONES
   ========================================== */
.delivery-search-box {
    max-width: 600px;
    margin: 0 auto 50px auto;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
}

@media (max-width: 575px) {
    .search-input-wrapper {
        flex-direction: column;
    }
}

.delivery-search-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.delivery-search-result.available {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.delivery-search-result.unavailable {
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.delivery-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.zone-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.zone-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-4px);
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px;
}

.zone-header h3 {
    font-size: 0.98rem;
}

.zone-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
}

.zone-badge.available {
    background-color: var(--accent-green-bg);
    color: var(--accent-green);
}

.zone-badge.soon {
    background-color: rgba(197, 168, 92, 0.15);
    color: var(--brand-gold-hover);
}

.zone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.zone-list svg {
    width: 14px;
    height: 14px;
    fill: var(--brand-green);
}

[data-theme="dark"] .zone-list svg {
    fill: var(--brand-gold);
}

/* ==========================================
   3. GALLERY / THALI DISPLAY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 58, 32, 0.85);
    background: linear-gradient(135deg, rgba(15, 58, 32, 0.9) 0%, rgba(26, 82, 50, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    color: var(--brand-white);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    margin-bottom: 8px;
}

.gallery-overlay h3 {
    color: var(--brand-white);
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* ==========================================
   4. LEGAL / POLICY PAGES
   ========================================== */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    margin-top: 60px;
}

@media (max-width: 767px) {
    .legal-wrapper {
        padding: 30px;
        margin-top: 60px;

    }
}

.legal-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 32px;
}
