/* PROJECT: VitaPiena
    THEME: Dark Urban Luxury
    ROLE: Senior Frontend Dev
*/

:root {
    /* --- COLOR PALETTE --- */
    --bg-color: #0a0a0a;        /* Absolute Dark */
    --surface-color: #141414;   /* Card Background */
    --surface-hover: #1f1f1f;   /* Card Hover */
    
    --text-main: #f0f0f0;       /* Off-White for readability */
    --text-muted: #a0a0a0;      /* Elegant Grey */
    
    --primary: #D4AF37;         /* Metallic Gold */
    --primary-hover: #F9D86C;   /* Light Gold */
    --accent-dark: #1E1E1E;     
    
    --border-color: #333333;    /* Subtle borders */
    
    /* --- TYPOGRAPHY --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* --- SPACING & UI --- */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 2px;              /* Sharp, premium edges */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* --- SHADOWS --- */
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.5);
    --glow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    font-family: var(--font-body);
}

.divider-gold {
    width: 60px;
    height: 2px;
    background-color: var(--primary);
    margin: 20px 0;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    border-radius: var(--radius);
}

.btn-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary);
    color: var(--bg-color);
    box-shadow: var(--glow);
}

.save-cookies-btn {
    background-color: var(--primary);
    color: var(--bg-color);
    width: 100%;
    margin-top: 20px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
    font-style: italic;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION (CSS ART)
   ========================================= */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 80px;
}

/* Abstract Night Atmosphere Pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%), /* Gold street light */
        radial-gradient(circle at 20% 80%, rgba(20, 20, 20, 1) 0%, transparent 60%), /* Shadow */
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 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.03'%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-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-overline {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: slideUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 1.2s ease-out;
}

/* =========================================
   INTRO & MISSION
   ========================================= */
.intro-section {
    padding: 60px 0 120px;
}

.intro-text-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.intro-paragraph {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.text-link:hover {
    border-bottom-color: var(--primary);
}

/* =========================================
   CARDS & GRIDS (Filosofia)
   ========================================= */
.page-hero {
    padding: 100px 0 60px;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.philo-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.philo-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.card-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.philo-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content h3 i {
    color: var(--primary);
    font-size: 1rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CURIOSITY BOX */
.curiosity-section {
    padding: 80px 0;
}

.fact-box {
    background: linear-gradient(135deg, #121212, #1a1a1a);
    padding: 60px;
    border-left: 3px solid var(--primary);
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.fact-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.fact-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

/* =========================================
   INSPIRATION (Levels & Spices)
   ========================================= */
.levels-section {
    padding: 40px 0 100px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.level-card {
    background-color: var(--surface-color);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.level-featured {
    border-color: var(--primary);
    transform: scale(1.02);
    background-color: #161616;
}

.level-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.level-featured .level-icon {
    color: var(--primary);
}

.level-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.level-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.level-list {
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.level-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.level-list i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Spices Guide */
.spices-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

.align-center { align-items: center; }

.spices-image-wrapper {
    position: relative;
    padding: 20px;
}

.framed-image {
    border: 1px solid var(--border-color);
    padding: 10px;
}

.spice-item {
    margin-bottom: 30px;
}

.spice-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.spice-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   COMMUNITY & FAQ
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.review-card {
    background-color: var(--surface-color);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.review-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.review-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-icon {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.review-author {
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-location {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
}

/* FAQ Accordion */
.faq-section {
    max-width: 800px;
    margin: 0 auto 100px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 10px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 10px;
}

.accordion-body p {
    padding-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.accordion-item.active .accordion-body {
    max-height: 200px; /* Approximate max height */
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.arrow {
    transition: transform 0.3s;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: #050505;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: block;
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 25px;
}

.footer-col p, .footer-col a, .footer-col button {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: color 0.3s;
}

.footer-col a:hover, .footer-col button:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a i {
    font-size: 1.2rem;
}

/* =========================================
   MODALS & COOKIE BANNER
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover { color: var(--primary); }

.cookie-options {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Cookie Banner (Bottom) */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background-color: var(--surface-color);
    border-top: 1px solid var(--primary);
    padding: 20px;
    z-index: 1500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-main);
}

.underline-btn {
    text-decoration: underline;
    background: none; border: none; padding: 0;
    color: var(--primary); cursor: pointer;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--text-muted); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 900px) {
    .grid-2x2, .levels-grid, .testimonials-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .fact-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .desktop-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; width: 100%;
        background-color: var(--bg-color);
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    
    .desktop-nav.active { display: flex; }
    
    .desktop-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}