/* ============================================
   Sandwich Delivery Website - Main Stylesheet
   Theme: Timeline Flow
   Colors: White background, Orange accents, Dark text
   ============================================ */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --light-orange: #FF8C5A;
    --dark-orange: #E55A2B;
    --dark-text: #2D3436;
    --medium-text: #636E72;
    --light-text: #B2BEC3;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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;
}

h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
}

h2 {
    font-size: 2rem;
    color: var(--dark-text);
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
}

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

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-orange);
}

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

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-orange);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

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

nav ul li a {
    padding: 10px 15px;
    color: var(--medium-text);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--light-bg);
    color: var(--primary-orange);
}

/* 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: 3px;
    transition: var(--transition);
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

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

/* Timeline Component */
.timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 60px auto;
    max-width: 1000px;
    position: relative;
    flex-wrap: wrap;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--light-orange));
    border-radius: 2px;
    z-index: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    position: relative;
    z-index: 1;
}

.timeline-step {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: var(--shadow-hover);
    border: 4px solid var(--white);
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--medium-text);
}

/* Step Indicators */
.step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--medium-text);
    margin-bottom: 1rem;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Horizontal Timeline Blocks */
.timeline-block {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 40px 0;
    position: relative;
}

.timeline-block-item {
    flex: 1;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.timeline-block-item:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.timeline-block-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--primary-orange);
}

.timeline-block-item:last-child::after {
    display: none;
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-light {
    background-color: var(--light-bg);
}

.section-white {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

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

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-card h3 {
    margin-bottom: 15px;
}

.info-card p {
    color: var(--medium-text);
    line-height: 1.8;
}

/* Process Steps */
.process-section {
    background: var(--light-bg);
    padding: 80px 20px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid var(--white);
}

.process-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    margin-top: 10px;
}

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

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 25px 30px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-orange);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    color: var(--medium-text);
    line-height: 1.8;
}

/* Disclaimer Box */
.disclaimer {
    background: linear-gradient(135deg, #FFF5F0, var(--light-bg));
    border-left: 4px solid var(--primary-orange);
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.disclaimer h4 {
    color: var(--primary-orange);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer p {
    color: var(--medium-text);
    margin: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--dark-text);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--medium-text);
    margin: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

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

/* Content Page Styles */
.content-section {
    padding: 60px 20px;
}

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

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-block h2::before {
    content: '';
    width: 5px;
    height: 30px;
    background: var(--primary-orange);
    border-radius: 3px;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: var(--white);
}

.about-image-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

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

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

.footer-section h4 {
    color: var(--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: var(--light-text);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: var(--light-text);
}

.footer-bottom p {
    color: var(--light-text);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .timeline {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        top: 0;
        left: 40px;
        width: 4px;
        height: 100%;
    }
    
    .timeline-item {
        flex-direction: row;
        text-align: left;
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .timeline-step {
        margin-right: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .timeline-block {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-block-item::after {
        display: none;
    }
    
    section {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 15px;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .contact-info {
        padding: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.highlight {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}