/* ===========================
   Marcelo S. - Telas, Blanco y Cortinas
   Refined Design with Textile Character
   =========================== */

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

:root {
    /* Warm textile palette */
    --primary-color: #8B7355;
    --primary-light: #A89078;
    --primary-dark: #6B5344;
    --accent-gold: #C9A87C;
    --accent-cream: #E8DFD4;

    /* Warm blacks and grays */
    --bg-black: #0D0C0B;
    --bg-dark: #141312;
    --bg-darker: #0A0908;
    --bg-card: #1A1918;

    /* Text colors */
    --text-white: #FAF8F5;
    --text-gray: #B8B0A8;
    --text-light-gray: #888078;
    --border-color: #2A2725;
    --border-light: #3A3735;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

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

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 12, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(13, 12, 11, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 26px;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    display: flex;
    flex-direction: column;
    list-style: none;
    background: rgba(13, 12, 11, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    padding: 40px 30px;
    gap: 25px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-gray);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-black);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-image.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

/* Fabric texture overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(13,12,11,0.3) 0%, rgba(13,12,11,0.6) 50%, rgba(13,12,11,0.95) 100%);
    z-index: 2;
}

/* Noise texture for fabric feel */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 4;
    padding: 0 20px;
    width: 100%;
    max-width: 900px;
}

.hero-logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 52px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 0 60px rgba(201, 168, 124, 0.3);
    animation: fadeInDown 1s ease;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: fadeInDown 1s ease 0.2s both;
}

.hero-description {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInDown 1s ease 0.4s both;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
    z-index: 4;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 38px;
    border: 1px solid var(--text-light-gray);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===========================
   Section Styles
   =========================== */
section {
    padding: 80px 0;
    position: relative;
}

/* Subtle texture on alternating sections */
section:nth-of-type(odd)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

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

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* Stitch-style divider */
.divider {
    width: 100px;
    height: 1px;
    margin: 0 auto;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-gold) 0px,
        var(--accent-gold) 8px,
        transparent 8px,
        transparent 14px
    );
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.divider::before {
    left: -12px;
}

.divider::after {
    right: -12px;
}

/* ===========================
   Hours Section
   =========================== */
.hours {
    background: var(--bg-black);
}

.hours-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.hours-table {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.hours-row:hover {
    background: rgba(201, 168, 124, 0.05);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row.closed {
    background: var(--bg-darker);
}

.hours-row .day {
    font-weight: 500;
    color: var(--text-white);
    font-size: 15px;
}

.hours-row .time {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 300;
}

.hours-row.closed .time {
    color: var(--text-light-gray);
    font-style: italic;
}

.pickup-info {
    background: var(--bg-card);
    padding: 45px 35px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.pickup-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold), var(--primary-color));
}

.pickup-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.pickup-info p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 28px;
    font-weight: 300;
}

.pickup-button {
    display: inline-block;
    padding: 16px 45px;
    background: #25D366;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.pickup-button:hover {
    background: #20BA5A;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

/* ===========================
   Products/Menu Section
   =========================== */
.menu {
    background: var(--bg-dark);
}

.menu-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.menu-category {
    background: var(--bg-card);
    padding: 40px 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-gold);
    transition: height 0.4s ease;
}

.menu-category:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.menu-category:hover::before {
    height: 100%;
}

.menu-category h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    transition: color 0.3s ease;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.menu-item {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item h4 {
    font-size: 17px;
    color: var(--text-white);
    margin-bottom: 6px;
    font-weight: 500;
}

.menu-item p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
    font-weight: 300;
    line-height: 1.6;
}

/* Staggered animation for product cards */
.menu-category:nth-child(1) { transition-delay: 0s; }
.menu-category:nth-child(2) { transition-delay: 0.1s; }
.menu-category:nth-child(3) { transition-delay: 0.2s; }
.menu-category:nth-child(4) { transition-delay: 0.3s; }

/* ===========================
   Gallery Section
   =========================== */
.gallery {
    background: var(--bg-black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

/* Make first item larger on mobile */
.gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: brightness(0.9);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 12, 11, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
    background: var(--bg-dark);
}

.faq-grid {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.faq-item[open] {
    border-color: var(--accent-gold);
    background: var(--bg-darker);
}

.faq-item summary {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
    cursor: pointer;
    list-style: none;
    padding-right: 35px;
    position: relative;
    line-height: 1.5;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 22px;
    color: var(--accent-gold);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
    font-weight: 300;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    background: var(--bg-black);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    color: var(--accent-gold);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-details p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 300;
}

.contact-details a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-gold);
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-gold) !important;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.contact-map::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 8px solid var(--bg-card);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    filter: grayscale(30%) contrast(1.1);
}

/* ===========================
   Footer
   =========================== */
footer {
    background: var(--bg-darker);
    padding: 60px 0 35px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
}

/* Decorative top border */
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

footer .logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 40px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

footer .content p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 0.15em;
    font-size: 13px;
    text-transform: uppercase;
}

footer .bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light-gray);
}

footer .copyright {
    font-weight: 300;
}

footer .version {
    font-size: 11px;
    color: var(--text-light-gray);
    font-weight: 300;
}

footer small,
.pensanta-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-gray);
    transition: all 0.3s ease;
    white-space: nowrap;
}

footer small:hover,
.pensanta-credit:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

footer small svg,
.pensanta-credit svg {
    flex-shrink: 0;
    opacity: 0.7;
}

footer small a,
.pensanta-credit a {
    color: var(--accent-cream);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer small a:hover,
.pensanta-credit a:hover {
    color: var(--accent-gold);
}

/* ===========================
   Floating WhatsApp Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-ring 2s ease-out infinite;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: pulse-border 2s ease-out infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover::before {
    animation: none;
    opacity: 0;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
}

/* ===========================
   Responsive Design
   =========================== */

/* Small phones */
@media (max-width: 380px) {
    .hero-logo {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 0.15em;
    }

    .hero-description {
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .menu-category {
        padding: 30px 25px;
    }

    .menu-category h3 {
        font-size: 24px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Tablets and up */
@media (min-width: 769px) {
    .nav-links {
        position: static;
        flex-direction: row;
        background: transparent;
        width: auto;
        padding: 0;
        gap: 45px;
        border-top: none;
    }

    .mobile-menu-btn {
        display: none;
    }

    .logo {
        font-size: 30px;
    }

    .hero-logo {
        font-size: 90px;
    }

    .hero-subtitle {
        font-size: 22px;
        letter-spacing: 0.35em;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 70px;
    }

    .section-header h2 {
        font-size: 52px;
    }

    section {
        padding: 120px 0;
    }

    .hours-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 50px;
    }

    .menu-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: 1;
    }

    .contact-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 50px;
    }

    footer .bottom-bar {
        flex-direction: row;
        justify-content: space-between;
    }

    .whatsapp-float {
        width: 64px;
        height: 64px;
        bottom: 35px;
        right: 35px;
    }

    .whatsapp-icon {
        width: 32px;
        height: 32px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .hero-content {
        text-align: center;
        max-width: 900px;
    }
}
