/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Earthy Eco Theme */
    --bg: #faf8f2;
    --text: #1a1a2e;
    --text-muted: #5c5c4a;
    --accent: #4a6741; /* Organic Green */
    --accent-secondary: #8b5e34; /* Warm Brown */
    --accent-tertiary: #c05746; /* Terracotta */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(74, 103, 65, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glass: 0 8px 32px 0 rgba(26, 26, 46, 0.08);
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
    font-size: 18px;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* === BACKGROUND EFFECTS === */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(at 0% 0%, rgba(74, 103, 65, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 94, 52, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(192, 87, 70, 0.05) 0px, transparent 50%);
}

.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    animation: dotsPulse 10s infinite alternate ease-in-out;
}

@keyframes dotsPulse {
    0% { transform: scale(1); opacity: 0.03; }
    100% { transform: scale(1.1); opacity: 0.07; }
}

/* === LAYOUT COMPONENTS === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
    position: relative;
}

.section-divider {
    height: 1px;
    background: rgba(26, 26, 46, 0.05);
    width: 80%;
    margin: 0 auto;
}

/* === DUAL HEADER === */
.info-bar {
    height: 40px;
    background: var(--text);
    color: var(--bg);
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.info-bar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.info-contacts, .info-socials {
    display: flex;
    gap: 20px;
}

.main-nav {
    height: 90px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 40px;
    flex: 1;
}

.nav-links.left { justify-content: flex-end; padding-right: 40px; }
.nav-links.right { justify-content: flex-start; padding-left: 40px; }

.nav-link {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.logo {
    font-family: 'Clash Display';
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .info-bar { display: none; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-container { justify-content: space-between; }

    .mobile-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg);
        padding: 40px 20px;
        flex-direction: column;
        gap: 24px;
        display: none;
        border-bottom: 1px solid var(--glass-border);
        z-index: 999;
    }
    .mobile-menu.active { display: flex; }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 103, 65, 0.2);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(74, 103, 65, 0.3);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent);
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
    border-radius: 50px;
}

/* === TIMELINE ARCHETYPE === */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(74, 103, 65, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 80px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) { margin-left: 50%; padding-left: 50px; }
.timeline-item:nth-child(odd) { margin-right: 50%; padding-right: 50px; text-align: right; }

.timeline-node {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-node { left: -9px; }
.timeline-item:nth-child(odd) .timeline-node { right: -9px; }

@media (max-width: 768px) {
    .timeline-container::before { left: 20px; }
    .timeline-item { width: 100%; margin-left: 0 !important; padding-left: 50px !important; text-align: left !important; }
    .timeline-node { left: 11px !important; }
}

/* === SECTIONS === */

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 242, 0.85);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-testimonial {
    font-family: 'Clash Display';
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text);
}

.hero-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.hero-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-glass);
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Clash Display';
    font-size: 56px;
    color: var(--accent);
    display: block;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}

/* Features - Single Column Centered */
.editorial-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.editorial-section h2 { font-size: 42px; margin-bottom: 2rem; }
.editorial-section p { font-size: 20px; margin-bottom: 2rem; color: var(--text-muted); }

/* Gallery - Masonry */
.masonry-grid {
    columns: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.masonry-item img {
    transition: var(--transition);
}

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

@media (max-width: 1024px) { .masonry-grid { columns: 2; } }
@media (max-width: 600px) { .masonry-grid { columns: 1; } }

/* Pricing */
.pricing-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.popular { border: 2px solid var(--accent); transform: scale(1.05); }

.price { font-family: 'Clash Display'; font-size: 48px; display: block; margin: 20px 0; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0;
}
.faq-question {
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
}
.faq-item.active .faq-answer { max-height: 300px; margin-top: 15px; }

/* Configurator */
.configurator {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: var(--shadow-glass);
}

.config-options { display: flex; flex-direction: column; gap: 24px; }
.config-group label { display: block; font-weight: 700; margin-bottom: 10px; }
.config-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg);
}

.config-preview {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-summary { font-size: 24px; font-weight: 700; color: var(--accent); margin-top: 20px; }

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

/* Resource Section */
.resource-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    margin-bottom: 40px;
}

.resource-img { width: 40%; }
.resource-content { padding: 48px; width: 60%; }

@media (max-width: 768px) {
    .resource-card { flex-direction: column; }
    .resource-img, .resource-content { width: 100%; }
}

/* Blog Preview */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.blog-card:hover { transform: translateY(-5px); }
.blog-card-img { height: 240px; overflow: hidden; }
.blog-card-content { padding: 32px; }
.blog-date { font-size: 14px; color: var(--text-muted); text-transform: uppercase; }
.blog-card h3 { font-size: 22px; margin: 15px 0; }

/* Inner Page Sidebar */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.sidebar {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-widget { margin-bottom: 40px; }
.sidebar-widget h4 { font-size: 20px; margin-bottom: 20px; border-bottom: 2px solid var(--accent); display: inline-block; }
.sidebar-links li { margin-bottom: 12px; }

@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

/* Footer */
.cta-footer {
    background: var(--accent);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-footer h2 { font-size: 48px; margin-bottom: 24px; }

.main-footer {
    background: var(--bg);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 { margin-bottom: 24px; }
.footer-links a { display: block; margin-bottom: 12px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.newsletter-form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-legal { display: flex; gap: 24px; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumb-separator { margin: 0 10px; }

/* Testimonial Presentation */
.testimonial-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 80px;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    font-family: 'Clash Display';
}

.testimonial-text {
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    margin: 20px 0 40px;
}

.testimonial-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.testimonial-user img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
