/* =====================================================
   Peperina - Casa de Té & Café
   Colors: Olive green (#5B7553), Cream (#FDF8F3), Gold (#D4A574)
   ===================================================== */

:root {
    --primary: #5B7553;
    --primary-dark: #4A6344;
    --secondary: #D4A574;
    --cream: #FDF8F3;
    --cream-dark: #F5EDE4;
    --text: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   Header
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

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

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow);
    }

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

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

/* =====================================================
   Hero
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 100px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-rating .stars {
    font-size: 1.2rem;
}

.hero-rating .rating-text {
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

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

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

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

.btn-secondary:hover {
    background: var(--cream-dark);
}

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

/* =====================================================
   About Section
   ===================================================== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

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

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.image-placeholder span {
    font-size: 4rem;
    margin-bottom: 16px;
}

.image-placeholder p {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =====================================================
   Menu Section
   ===================================================== */
.menu-section {
    padding: 100px 0;
    background: var(--cream);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.menu-category {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.menu-category h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream);
}

.menu-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--cream);
}

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

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.item-name {
    font-weight: 600;
    color: var(--text);
}

.item-badge {
    background: var(--secondary);
    color: var(--white);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.item-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.big-rating {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-details .stars {
    font-size: 1.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--cream);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-card p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.7;
}

/* =====================================================
   Gallery Section
   ===================================================== */
.gallery-section {
    padding: 100px 0;
    background: var(--cream);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item-large {
        grid-column: span 1;
    }
}

/* =====================================================
   Info Section
   ===================================================== */
.info-section {
    padding: 80px 0;
    background: var(--cream);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hours {
    text-align: left;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--cream);
    font-size: 0.95rem;
}

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

.hour-row span:first-child {
    font-weight: 500;
}

.address {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-card a:not(.btn) {
    color: var(--primary);
    font-weight: 500;
}

.info-card p {
    margin-bottom: 12px;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.contact-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-credit a {
    color: var(--secondary);
}

/* =====================================================
   WhatsApp Button
   ===================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
}

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

.hero-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   Language Switcher
   ===================================================== */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: var(--cream-dark);
    color: var(--primary);
}

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

/* Mobile language switcher */
@media (max-width: 768px) {
    .lang-switcher {
        position: absolute;
        top: 20px;
        right: 70px;
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
