/* ==========================================================================
   RoamEats - Main Stylesheet
   Modern, responsive design with orange brand colors
   ========================================================================== */

/* CSS Variables */
:root {
    /* Brand Colors - Based on app icon */
    --primary: #F26419;
    --primary-light: #FF7A33;
    --primary-dark: #D45510;
    --primary-gradient: linear-gradient(135deg, #FF7A33 0%, #F26419 50%, #D45510 100%);

    /* Secondary Colors */
    --secondary: #2D3047;
    --secondary-light: #3D4060;
    --accent: #FFB627;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Typography */
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(242, 100, 25, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 100, 25, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition-fast);
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

.nav-links a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-primary {
    color: var(--white) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--gray-800);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--primary-gradient);
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-pattern.svg') repeat;
    opacity: 0.1;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    min-height: calc(100vh - 14rem);
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero-title .highlight {
    display: block;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.store-badge img {
    height: 52px;
    width: auto;
    transition: transform var(--transition-fast);
}

.store-badge:hover img {
    transform: scale(1.05);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.phone-mockup img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: var(--shadow-2xl);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(242, 100, 25, 0.1) 0%, rgba(242, 100, 25, 0.2) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works {
    background: var(--white);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.step-reverse {
    direction: rtl;
}

.step-reverse > * {
    direction: ltr;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--gray-600);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.step-image {
    display: flex;
    justify-content: center;
}

.step-image img {
    max-width: 280px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Cuisines Section
   ========================================================================== */

.cuisines {
    background: var(--primary-gradient);
    color: var(--white);
}

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

.cuisines .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cuisine-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.cuisine-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.cuisine-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* ==========================================================================
   For Owners Section
   ========================================================================== */

.for-owners {
    background: var(--gray-50);
}

.owner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(242, 100, 25, 0.1) 0%, rgba(242, 100, 25, 0.2) 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.owner-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: var(--space-lg);
}

.owner-intro {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.owner-benefits {
    margin-bottom: var(--space-xl);
}

.owner-benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.owner-benefits svg {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.owner-benefits span {
    color: var(--gray-700);
}

.owner-pricing {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border: 2px solid var(--gray-100);
}

.price {
    font-family: var(--font-display);
    margin-bottom: var(--space-xs);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-note {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.owner-image {
    display: flex;
    justify-content: center;
}

.owner-image img {
    max-width: 350px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-location {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
    background: var(--gray-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: transform var(--transition-base);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   Download CTA Section
   ========================================================================== */

.download-cta {
    background: var(--secondary);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.download-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: var(--space-md);
}

.download-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step {
        grid-template-columns: auto 1fr;
    }

    .step-image {
        display: none;
    }

    .owner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .owner-benefits li {
        justify-content: center;
        text-align: left;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--gray-700) !important;
        font-size: 1.125rem;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-container {
        min-height: auto;
    }

    .phone-mockup {
        max-width: 280px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        margin: 0 auto var(--space-md);
    }

    .download-badges {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: var(--space-lg);
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .store-badge img {
        height: 48px;
    }
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.phone-mockup {
    animation: float 4s ease-in-out infinite;
}
