/* 
   Comestibles Paco - Styles
   Warm, Friendly, Trusted Neighborhood Aesthetic
*/

:root {
    --primary: #C73E2C;
    /* Tomato Red */
    --primary-dark: #9E2F22;
    --secondary: #4E7E4E;
    /* Leaf Green */
    --accent: #F2C24B;
    /* Mustard */
    --text-dark: #2C241D;
    --text-muted: #6B5B4B;
    --white: #FFFFFF;
    --bg-soft: #FFF6EB;
    --bg-paper: #FBF5E9;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow: 0 12px 30px rgba(44, 36, 29, 0.08);
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-paper);
    background-image: radial-gradient(circle at 10% 20%, rgba(199, 62, 44, 0.08), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(78, 126, 78, 0.1), transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(242, 194, 75, 0.12), transparent 40%);
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Fredoka', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Top Bar */
.top-bar {
    background: #232f23;
    color: white;
    padding: 12px 0;
    font-weight: 700;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    font-size: 0.85rem;
}

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

.status-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Navbar */
.navbar {
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 20px rgba(44, 36, 29, 0.08);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(44, 36, 29, 0.12);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--accent);
    color: #3a2b16;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8), transparent 45%),
        repeating-linear-gradient(45deg, rgba(44, 36, 29, 0.04) 0 2px, transparent 2px 6px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-actions .btn {
    padding: 18px 34px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
}

.hero-img-container {
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    transform: rotate(2deg);
    box-shadow: 18px 18px 0 rgba(242, 194, 75, 0.6);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: var(--shadow);
    z-index: 10;
    font-family: 'Fredoka';
    animation: float 4s ease-in-out infinite;
}

.c-1 {
    top: 20%;
    left: -30px;
    color: var(--primary);
}

.c-2 {
    bottom: 20%;
    right: -20px;
    color: var(--secondary);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Services */
.services {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: #fff9f1;
    transition: 0.3s;
    border: 1px solid rgba(44, 36, 29, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    background: #fff2df;
}

.s-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Sections Grid */
.sections {
    padding: 100px 0;
    background: var(--white);
}

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

.sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.section-item {
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.section-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.section-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 29, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Fredoka';
    font-size: 1.3rem;
    font-weight: 600;
    z-index: 5;
    text-align: center;
    padding: 20px;
}

.item-placeholder {
    height: 100%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-family: 'Fredoka';
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

/* Delivery Card */
.delivery {
    padding: 80px 0;
}

.delivery-card {
    background: linear-gradient(135deg, #4e7e4e 0%, #3e6a42 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 80px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.delivery-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.delivery-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.payment-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 0.9rem;
}

.delivery-visual {
    font-size: 10rem;
    text-align: center;
    opacity: 0.2;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.test-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(44, 36, 29, 0.08);
    text-align: center;
}

.t-text {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.t-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.a-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.a-info strong {
    display: block;
    font-size: 1.1rem;
}

.a-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Location */
.location {
    padding: 100px 0;
    background: var(--bg-soft);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.loc-details {
    margin: 30px 0;
    font-weight: 600;
}

.map-mockup {
    height: 350px;
    background: #1f2a20;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #e6f2e6;
    border: 4px solid white;
}

/* Final CTA */
.final-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #c73e2c 0%, #9e2f22 100%);
    color: white;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #2b241c;
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 2rem;
}

.footer-brand .logo-text span {
    color: var(--accent);
}

.footer-brand p {
    opacity: 0.6;
    margin-top: 20px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-links a {
    display: block;
    opacity: 0.7;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.social-flex {
    display: flex;
    gap: 20px;
    font-weight: 800;
    color: var(--accent);
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Popups */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-box {
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    border-bottom: 10px solid var(--accent);
}

.close-p {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}

.p-visual {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.popup-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.popup-box p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

#leadCapture input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
}

/* Scroll Promo */
.scroll-promo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    display: none;
    max-width: 300px;
    animation: slideIn 0.5s ease;
    border-left: 5px solid var(--secondary);
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.s-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.s-icon {
    font-size: 2.5rem;
}

.s-text strong {
    display: block;
    font-size: 0.9rem;
}

.s-text p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.s-text a {
    font-weight: 800;
    color: var(--secondary);
    font-size: 0.8rem;
}

.close-s {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
}

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

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

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

    .hero-visual {
        margin-top: 60px;
    }

    .hero-img-container {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .delivery-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px;
    }

    .delivery-visual {
        display: none;
    }

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

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