/* CSS Variables */
:root {
    --color-bg: #FFFCF3;
    --color-primary: #FF6978;
    --color-secondary: #D7E54A;
    --color-accent: #D7E54A;
    --color-highlight: #FFEC7D;
    --text-dark: #4B2018;
    --text-medium: #7F5752;

    /* Responsive spacing */
    --container-padding: clamp(1rem, 4vw, 2rem);
    --section-padding: clamp(2rem, 6vw, 4rem);
    --card-padding: clamp(1.5rem, 3vw, 2rem);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #FFFCF3;
    color: var(--text-dark);
    font-family: 'Maxwell', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rubik', Arial, sans-serif;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem 0;
}

/* Navigation Bar */
.app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.3rem, 1.5vw, 0.6rem) var(--container-padding);
    background: #fff;
    box-shadow: 0 2px 8px rgba(79, 32, 24, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
}

.logo img {
    height: clamp(48px, 8vw, 64px);
    width: auto;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #FF6978;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    transition: color 0.2s;
    position: relative;
    font-family: 'MAXWELL-BOLD', 'Rubik', Arial, sans-serif;
    white-space: nowrap;
}

.nav-links a:not(:last-child)::after {
    content: '|';
    color: #FFFCF3;
    margin-left: clamp(1rem, 3vw, 2rem);
    font-weight: normal;
    font-size: 0.9em;
    line-height: 1.1;
}

.nav-links a:hover {
    color: #D7E54A;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Buttons */
.cta-btn {
    background: #FFEC7D;
    color: #FF6978;
    padding: clamp(0.6rem, 2vw, 0.7rem) clamp(1.2rem, 3vw, 1.5rem);
    border: none;
    border-radius: 32px;
    font-family: 'MAXWELL-BOLD', 'Rubik', Arial, sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 105, 120, 0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn.large {
    font-size: clamp(1rem, 3vw, 1.2rem);
    padding: clamp(0.8rem, 2.5vw, 1rem) clamp(2rem, 5vw, 2.5rem);
    margin-top: 1rem;
    background: #FF6978;
    color: #FFFCF3;
}

.cta-btn:hover {
    background: var(--color-accent);
    color: var(--text-dark);
    transform: translateY(-2px) scale(1.02);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Home Section */
.home-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 2rem);
    padding: var(--section-padding) 0;
    min-height: 80vh;
}

.home-content {
    flex: 1 1 50%;
    padding-left: clamp(1rem, 4vw, 3rem);
}

.home-content h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--color-primary);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-family: 'MAXWELL-BOLD', 'Rubik', Arial, sans-serif;
    line-height: 1.1;
}

.home-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-medium);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-family: 'MAXWELL-REGULAR', 'Rubik', Arial, sans-serif;
    line-height: 1.5;
}

.home-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-image img {
    max-width: 100%;
    height: auto;
    border-radius: clamp(16px, 4vw, 32px);
    box-shadow: 0 8px 32px rgba(255, 105, 120, 0.08);
    width: clamp(300px, 60vw, 520px);
}

/* Features Section */
.features-section {
    margin: var(--section-padding) 0;
    text-align: center;
}

.features-section h2 {
    color: var(--color-accent);
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    font-family: 'MAXWELL-BOLD', 'Rubik', Arial, sans-serif;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: clamp(16px, 4vw, 24px);
    box-shadow: 0 4px 24px rgba(215, 229, 74, 0.10);
    padding: var(--card-padding);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 236, 125, 0.25);
}

.feature-card img {
    height: clamp(48px, 8vw, 64px);
    width: auto;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    display: block;
}

.feature-card h3 {
    color: var(--color-primary);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-family: 'MAXWELL-BOLD', 'Rubik', Arial, sans-serif;
}

.feature-card p {
    color: var(--text-medium);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-family: 'MAXWELL-BOLD', 'Maxwell', 'Roboto', Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
}

/* Download Icon */
.download-icon {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    border-radius: clamp(12px, 3vw, 16px);
}

/* Content Sections */
.about-section,
.add-restaurant-section,
.contact-section,
.download-section {
    margin: var(--section-padding) 0;
    text-align: center;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.about-section h2,
.add-restaurant-section h2,
.contact-section h2,
.download-section h2 {
    color: var(--color-primary);
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-family: 'MAXWELL-BOLD', 'Rubik', Arial, sans-serif;
}

.about-section p,
.add-restaurant-section p,
.contact-section p,
.download-section p {
    color: var(--text-medium);
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-family: 'MAXWELL-BOLD', 'Maxwell', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.add-restaurant-section a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.add-restaurant-section a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    max-width: 500px;
    margin: 0 auto;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: clamp(0.8rem, 2.5vw, 1rem);
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-family: 'Maxwell', 'Roboto', Arial, sans-serif;
    background: #fff;
    color: var(--text-dark);
    resize: vertical;
    min-height: 44px;
    transition: border-color 0.2s;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-section button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: clamp(0.8rem, 2.5vw, 1rem) clamp(2rem, 5vw, 2.5rem);
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.contact-section button:hover {
    background: var(--color-accent);
    color: var(--text-dark);
    transform: translateY(-2px) scale(1.02);
}

/* Footer */
.footer {
    background: #FFEC7D;
    padding: clamp(0.1rem, 1vw, 0.5rem) var(--container-padding);
    text-align: center;
    border-top: 2px solid var(--color-highlight);
    margin-top: var(--section-padding);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(0.1rem, 0.5vw, 0.3rem);
}

.footer-logo img {
    height: clamp(60px, 12vw, 100px);
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.8rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(0.1rem, 0.8vw, 0.4rem);
    font-family: 'MAXWELL-BOLD', 'Maxwell', 'Roboto', Arial, sans-serif;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    transition: color 0.2s;
    font-family: 'MAXWELL-BOLD', 'Maxwell', 'Roboto', Arial, sans-serif;
    padding: 0.3rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.3);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: clamp(0.8rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(0.1rem, 0.5vw, 0.3rem);
}

.footer-social img {
    height: clamp(20px, 4vw, 28px);
    width: clamp(20px, 4vw, 28px);
    filter: grayscale(0.2) brightness(0.9);
    transition: all 0.2s ease;
    padding: 3px;
    border-radius: 6px;
}

.footer-social a:hover img {
    filter: none;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.footer-copy {
    color: var(--text-medium);
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-family: 'MAXWELL-BOLD', 'Maxwell', 'Roboto', Arial, sans-serif;
    text-align: center;
    margin: 0;
    margin-top: clamp(0.2rem, 1vw, 0.5rem);
}

.download-section h2 {
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

/* Responsive Design - Professional Breakpoints */
@media (max-width: 1200px) {
    main {
        max-width: 100%;
    }

    .features-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 991px) {
    .features-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .home-section {
        flex-direction: column;
        text-align: center;
        gap: clamp(2rem, 6vw, 3rem);
    }

    .home-content {
        padding-left: 0;
        order: 2;
    }

    .home-image {
        order: 1;
    }

    .features-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: clamp(1rem, 3vw, 1.5rem);
    }
}

@media (max-width: 768px) {
    .app-bar {
        padding: clamp(0.5rem, 2vw, 0.8rem) var(--container-padding);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: clamp(1.5rem, 4vw, 2rem);
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        padding: 1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-links a:not(:last-child)::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255, 105, 120, 0.1);
        transform: scale(1.05);
    }

    .hamburger {
        display: flex;
    }

    .features-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-card {
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .footer-links {
        flex-direction: column;
        gap: clamp(0.5rem, 2vw, 1rem);
    }
}

@media (max-width: 600px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2rem;
        --card-padding: 1.5rem;
    }

    .home-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .home-content p {
        font-size: clamp(1rem, 4vw, 1.1rem);
    }

    .features-section h2 {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    .about-section h2,
    .add-restaurant-section h2,
    .contact-section h2,
    .download-section h2 {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    .about-section p,
    .add-restaurant-section p,
    .contact-section p,
    .download-section p {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .cta-btn.large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .app-bar {
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 48px;
    }

    .home-section {
        padding: 1.5rem 0;
        min-height: auto;
    }

    .home-content h1 {
        font-size: clamp(1.6rem, 9vw, 2rem);
    }

    .feature-card {
        padding: 1.2rem;
    }

    .footer {
        padding: 1rem;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-social img {
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 375px) {
    .home-content h1 {
        font-size: 1.5rem;
    }

    .home-content p {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .cta-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .home-section {
        min-height: auto;
        padding: 1rem 0;
    }

    .app-bar {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .feature-card img,
    .footer-social img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cta-btn:hover,
    .feature-card:hover {
        transform: none;
    }
}
