/* Food Delivery Informational Website - Clean Knowledge Base Style */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #4A90D9;
    --light-blue: #E8F4FD;
    --medium-blue: #B8D4E8;
    --dark-text: #2C3E50;
    --grey-text: #5D6D7E;
    --light-grey: #F8F9FA;
    --card-grey: #F1F3F5;
    --border-grey: #DEE2E6;
    --white: #FFFFFF;
    --footer-dark: #343A40;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--grey-text);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-grey);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav ul li a {
    padding: 10px 15px;
    color: var(--grey-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    text-decoration: none;
}

nav ul li a.active {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--grey-text);
}

/* Disclaimer Banner */
.disclaimer {
    background-color: #FFF3CD;
    border: 1px solid #FFEEBA;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 900px;
    text-align: center;
}

.disclaimer p {
    color: #856404;
    margin: 0;
    font-size: 0.95rem;
}

/* Main Content */
main {
    padding: 40px 20px;
    min-height: calc(100vh - 400px);
}

.content-section {
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.info-card {
    background-color: var(--card-grey);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.info-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-blue);
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* Blue Section */
.blue-section {
    background-color: var(--light-blue);
    padding: 50px 20px;
    margin: 40px 0;
}

.blue-section .container {
    max-width: 900px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 5px;
}

.step-content p {
    margin: 0;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-grey);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--medium-blue);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--grey-text);
    margin: 0;
}

/* Diagram Container */
.diagram-container {
    background-color: var(--white);
    border: 2px solid var(--border-grey);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.diagram-box {
    background-color: var(--light-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 15px 25px;
    font-weight: 600;
    color: var(--primary-blue);
}

.diagram-arrow {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-table th,
.info-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-grey);
}

.info-table th {
    background-color: var(--light-blue);
    font-weight: 600;
    color: var(--dark-text);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background-color: var(--card-grey);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.contact-info {
    background-color: var(--card-grey);
    border-radius: 12px;
    padding: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: var(--light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-blue);
}

.contact-details h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-details p {
    margin: 0;
    font-size: 0.95rem;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-box {
    background-color: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.mission-box p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark-text);
    margin: 0;
}

/* Privacy Policy */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Page Header */
.page-header {
    background-color: var(--light-blue);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--footer-dark);
    color: white;
    padding: 50px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ADB5BD;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #495057;
    text-align: center;
}

.footer-bottom p {
    color: #ADB5BD;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .diagram-flow {
        flex-direction: column;
    }
    
    .diagram-arrow {
        transform: rotate(90deg);
    }
    
    .info-table {
        font-size: 0.9rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    main {
        padding: 30px 15px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }