/* Porto Livraria - Fairy Tale Library Design */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary-color: #5d4037;
    --secondary-color: #8d6e63;
    --accent-color: #d4af37;
    --accent-gold: #f4d03f;
    --text-color: #3e2723;
    --text-light: #6d4c41;
    --bg-color: #faf6f0;
    --bg-light: #f5ebe0;
    --bg-parchment: #fef9e7;
    --border-color: #d7ccc8;
    --shadow: 0 4px 12px rgba(93, 64, 55, 0.15);
    --shadow-hover: 0 8px 24px rgba(93, 64, 55, 0.25);
    --glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 235, 224, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 248, 231, 0.4) 0%, transparent 50%);
    line-height: 1.8;
    font-size: 18px;
    letter-spacing: 0.3px;
}

/* Header */
header {
    background: linear-gradient(135deg, rgba(255, 248, 231, 0.98) 0%, rgba(250, 246, 240, 0.98) 100%);
    border-bottom: 2px solid var(--accent-gold);
    border-image: linear-gradient(90deg, transparent, var(--accent-gold), transparent) 1;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(93, 64, 55, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-container > nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
}


.logo:hover {
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.5);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.nav-menu a:hover::before {
    width: 80%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lang-switcher button {
    background: var(--bg-parchment);
    border: 2px solid var(--accent-gold);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.lang-switcher button:hover {
    background-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.lang-switcher button.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-gold));
    color: white;
    border-color: var(--accent-color);
    box-shadow: var(--glow);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(250, 246, 240, 0.65), rgba(255, 248, 231, 0.7)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(245, 235, 224, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-gold));
    color: white;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow), var(--glow);
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Section */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.section::before {
    content: '✨';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 2rem;
    opacity: 0.2;
    pointer-events: none;
}

.section::after {
    content: '📖';
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 2rem;
    opacity: 0.2;
    pointer-events: none;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(212, 175, 55, 0.3);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 2px;
}

/* Stores Grid - Horizontal Layout */
.stores-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.store-card {
    background: linear-gradient(135deg, var(--bg-parchment), var(--bg-light));
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.store-card:hover {
    box-shadow: var(--shadow-hover), var(--glow);
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.store-card img {
    width: 300px;
    min-width: 300px;
    height: auto;
    object-fit: cover;
    filter: sepia(10%) brightness(1.05);
    transition: all 0.3s ease;
}

.store-card:hover img {
    filter: sepia(20%) brightness(1.1);
}

.store-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.store-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
}

.store-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.store-card .store-address {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.store-card .store-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

/* Choose Store Grid - Horizontal Layout */
.choose-store-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.choose-store-card {
    background: linear-gradient(135deg, var(--bg-parchment), var(--bg-light));
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.choose-store-card:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 208, 63, 0.15));
    box-shadow: var(--shadow-hover), var(--glow);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.choose-store-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
    min-width: 250px;
}

.choose-store-info {
    flex: 1;
}

.choose-store-card .store-address {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.choose-store-card .store-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

/* Content */
.content {
    max-width: 800px;
    margin: 0 auto;
}

.content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
}

.content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--secondary-color);
}

.content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.content ul, .content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-parchment), var(--bg-light));
    padding: 3rem;
    border-radius: 12px;
    border: 3px solid var(--accent-gold);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(93, 64, 55, 0.3), var(--glow);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.modal-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.3);
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info strong {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-parchment));
    border-top: 3px solid var(--accent-gold);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
    box-shadow: 0 -2px 10px rgba(93, 64, 55, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--accent-gold);
    border-left: 4px solid var(--accent-gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05), transparent);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    box-shadow: var(--shadow);
}

.faq-item:last-child {
    border-bottom: 2px solid var(--accent-gold);
}

.faq-question {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-container > nav {
        order: 2;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .lang-switcher {
        order: 3;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .store-card {
        flex-direction: column;
    }
    
    .store-card img {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .choose-store-card {
        flex-direction: column;
        text-align: center;
    }
    
    .choose-store-card h3 {
        min-width: auto;
        width: 100%;
    }

    .modal-content {
        padding: 2rem;
    }
}

