/* PROJECT: SaluteNova
    THEME: Tuscan Earth / Soft Minimalism
    ROLE: Senior Frontend Dev & Art Director
*/

:root {
    /* --- COLOR PALETTE --- */
    --bg-color: #F9F7F2;        /* Кремовий папір (Carta a mano) */
    --surface-color: #FFFFFF;   /* Чистий білий */
    --text-main: #2C3026;       /* Глибокий оливковий/вугільний */
    --text-muted: #6B705C;      /* Приглушений зелений */
    --primary: #C05838;         /* Теракота */
    --primary-hover: #A04020;   /* Темна теракота */
    --secondary: #556B2F;       /* Оливковий */
    --accent-gold: #D4AF37;     /* Античне золото (для деталей) */
    --border-color: #E6E2D8;    /* Колір каменю */

    /* --- TYPOGRAPHY --- */
    --font-heading: "Georgia", "Times New Roman", serif;
    --font-body: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    
    /* --- SPACING & LAYOUT --- */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* --- SHADOWS --- */
    --shadow-soft: 0 4px 20px rgba(44, 48, 38, 0.05);
    --shadow-card: 0 10px 30px rgba(44, 48, 38, 0.08);
}

/* --- 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.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.center-text {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 88, 56, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* --- HEADER --- */
.global-header {
    height: var(--header-height);
    background-color: rgba(249, 247, 242, 0.95); /* Glass morphism effect base */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.2rem;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- HERO SECTION (CSS ART ONLY) --- */
.hero-section {
    position: relative;
    height: 85vh; /* Майже повний екран */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 60px;
}

/* Unique Abstract Gradient Pattern representing Tuscany Hills at Sunrise */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.4) 0%, transparent 50%), /* Sun glow */
        linear-gradient(135deg, #F9F7F2 0%, #F0E6D2 100%), /* Base paper */
        radial-gradient(ellipse at 80% 90%, rgba(85, 107, 47, 0.15) 0%, transparent 60%), /* Olive hill hint */
        radial-gradient(ellipse at 20% 90%, rgba(192, 88, 56, 0.1) 0%, transparent 60%); /* Terracotta hill hint */
    opacity: 0.8;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- INTRO & PAGE HEADERS --- */
.intro-section, .page-header {
    padding: 80px 0;
    text-align: center;
}

.intro-text-block {
    max-width: 700px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- FILOSOFIA (GRID) --- */
.philosophy-grid-section {
    padding: 60px 0 100px;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.philo-card {
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.philo-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    background-color: #E0DDD5; /* Placeholder color */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.philo-card:hover img {
    transform: scale(1.05);
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Curiosity Box */
.curiosity-section {
    padding: 60px 0;
    background-color: #F0EFE9;
}

.curiosity-box {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.curiosity-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.curiosity-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: bold;
}

/* --- ISPIRAZIONE (Levels) --- */
.levels-section {
    padding: 60px 0;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.level-card {
    background: var(--surface-color);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.level-featured {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: var(--shadow-card);
    position: relative;
}

.level-featured::before {
    content: 'Consigliato';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    border-radius: 20px;
}

.level-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.level-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.level-content {
    margin-top: 25px;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.level-content ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.level-content i {
    color: var(--primary);
    margin-right: 8px;
}

/* Spices Guide */
.spices-guide-section {
    padding: 80px 0;
}

.spices-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.spice-item {
    border-left: 2px solid var(--primary);
    padding-left: 20px;
}

.spice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.spice-header i {
    color: var(--secondary);
}

.region-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #EAE6DB;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-main);
}

.cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* --- COMUNITA (Stories & FAQ) --- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.story-card {
    background: #F4F1EA;
    padding: 30px;
    border-radius: var(--radius-md);
    position: relative;
}

.story-icon {
    font-size: 1.5rem;
    color: rgba(192, 88, 56, 0.2);
    margin-bottom: 15px;
}

.story-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
}

.author-name {
    font-weight: bold;
    display: block;
}

.author-loc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 40px auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default triangle */
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-muted);
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER --- */
.global-footer {
    background-color: #2C3026;
    color: #E6E2D8;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: var(--surface-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a, .footer-col button {
    color: #9CA090;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    padding: 0;
}

.footer-col a:hover, .footer-col button:hover {
    color: var(--surface-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.2rem;
}

/* --- MODALS --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(44, 48, 38, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--primary);
}

/* Cookie Form specific */
.cookie-form {
    margin-top: 20px;
}

.cookie-option {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-main);
    color: var(--surface-color);
    padding: 20px;
    display: none; /* Hidden until JS activates */
    justify-content: space-between;
    align-items: center;
    z-index: 1500;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.cookie-banner.visible {
    display: flex;
    animation: slideUpBanner 0.5s ease;
}

@keyframes slideUpBanner {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.underline-btn {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .grid-2x2, .levels-grid, .spices-layout, .footer-grid {
        grid-template-columns: 1fr; /* Stack everything */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .level-featured {
        transform: none;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Add JS toggle for real menu if needed, simplified here */
    }
    
    .mobile-nav-toggle {
        display: block;
    }

    .hero-section {
        height: 70vh;
    }
}