/* ==============================
    DESIGN TOKENS & VARIABLES
============================== */
:root {
    --primary-bg: #fffbf7;
    --accent-color: #4a3728; /* Mocha Brown */
    --accent-secondary: #c29b6b; /* Golden Tan */
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border-color: #e9e3dc;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(74, 55, 40, 0.05);
    --shadow-medium: 0 20px 40px rgba(74, 55, 40, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

.body-theme {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

.hidden-body {
    overflow: hidden !important;
}

.serif-text {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
}

.base-link {
    text-decoration: none;
    color: inherit;
}

.base-img {
    max-width: 100%;
    display: block;
    height: auto;
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fade-in {
    animation: fadeInUp var(--transition-slow) forwards;
}

/* ==============================
    ADVERTISEMENT TOP BAR
============================== */
.top-advertisement-bar {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    text-align: center;
    padding: 10px 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==============================
    NAVIGATION
============================== */
.navbar {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(60px, 10vh, 80px);
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.nav-link-item {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
}

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

.nav-link-item:hover {
    color: var(--accent-color);
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(74, 55, 40, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 155, 107, 0.3);
}

.btn-block {
    width: 100%;
    margin-top: 15px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    box-shadow: -15px 0 40px rgba(74, 55, 40, 0.2);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
}

.menu-active {
    right: 0;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--accent-color);
    transition: var(--transition-fast);
}

.close-menu-btn:hover {
    color: var(--accent-secondary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-link-item {
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    transition: var(--transition-fast);
}

.mobile-nav-link-item:hover {
    color: var(--accent-secondary);
    padding-left: 10px;
}

.mobile-nav-link-item.btn-primary {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-top: 10px;
}

/* ==============================
    BANNER
============================== */
.banner {
    background-color: var(--accent-secondary);
    color: var(--accent-color);
    padding: 14px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 2px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.banner-link {
    text-decoration: underline;
    font-weight: 800;
    color: var(--accent-color);
    transition: opacity var(--transition-fast);
}

.banner-link:hover {
    opacity: 0.7;
}

/* ==============================
    MAIN CONTENT GRID
============================== */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-top: clamp(2rem, 6vw, 4rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
    align-items: start;
}

/* Articles Area */
.articles-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.card {
    background-color: var(--white);
    border-radius: clamp(12px, 3vw, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-hover-wrapper:hover .article-img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    z-index: 10;
}

.card-body {
    padding: 40px;
}

.article-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.prose {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
}

.prose-p {
    margin-bottom: 2rem;
}

.highlight-box {
    background-color: #fcf8f4;
    border-left: 6px solid var(--accent-secondary);
    padding: 35px;
    margin: 40px 0;
    border-radius: 4px;
}

.highlight-title {
    margin-bottom: 12px;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.btn-dark {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

@media (max-width: 480px) {
    .btn-dark {
        width: 100%;
        text-align: center;
    }
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.widget-dark {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
}

.badge-hot {
    display: inline-block;
    background-color: var(--accent-secondary);
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.widget-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.widget-dark .widget-title {
    color: var(--white);
}

.product-img {
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-list {
    margin-bottom: 24px;
    list-style: none;
}

.feature-list-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list-item::before {
    content: '→';
    color: var(--accent-secondary);
    font-weight: bold;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    font-family: inherit;
    font-size: 16px; /* Prevents auto-zoom on iOS */
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

/* Sections Styling */
.page-section {
    background-color: var(--white);
    border-radius: clamp(12px, 3vw, 20px);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-top: clamp(2rem, 5vw, 3rem);
}

.section-header {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
    padding-bottom: 20px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid var(--accent-color);
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-8px);
    background-color: var(--white);
    box-shadow: var(--shadow-medium);
}

.feature-title-text {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 2rem);
}

.testimonial-item {
    background-color: #f7f2ed;
    padding: 35px;
    border-radius: 12px;
    font-style: italic;
    position: relative;
}

.testimonial-item::before {
    content: '“';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--accent-secondary);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-author {
    margin-top: 20px;
    font-weight: 800;
    font-style: normal;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.faq-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--primary-bg);
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-question {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* ==============================
    FOOTER
============================== */
.footer {
    background-color: var(--accent-color);
    padding: 100px 0 60px;
    margin-top: 100px;
    color: var(--white);
}

.footer-clean-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(2rem, 6vw, 5rem);
}

.footer-left {
    flex: 1;
}

.footer-logo {
    margin-bottom: 25px;
    font-size: 2.2rem;
    color: var(--accent-secondary) !important;
}

.footer-copyright {
    color: rgba(255, 251, 247, 0.6);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.footer-links-inline {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 25px;
}

.footer-link-item {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.footer-link-item:hover {
    color: var(--accent-secondary);
    transform: translateY(-2px);
}

.footer-right {
    flex: 1;
    max-width: 550px;
}

.footer-disclosure-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 4px;
    color: rgba(255, 251, 247, 0.7);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-strong {
    color: var(--accent-secondary);
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 16px 0;
}

.specs-table td:first-child {
    font-weight: 700;
    color: var(--accent-color);
    width: 35%;
}

/* ==============================
    MODALS & COOKIES
============================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 55, 40, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    padding: 1rem;
    transition: opacity var(--transition-fast);
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    padding: clamp(1.5rem, 8vw, 3.5rem);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--accent-color);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-secondary);
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: rgba(30, 20, 10, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 10001;
    max-width: 450px;
    width: calc(100% - 4rem);
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 251, 247, 0.9);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.cookie-accept {
    background-color: var(--accent-secondary);
    color: var(--accent-color);
}

.cookie-accept:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

.cookie-reject {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==============================
    PAGE LOADER
============================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-brand {
    color: var(--white);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-secondary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================
    RESPONSIVE
============================== */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        width: 100%;
        margin-top: 2rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .desktop-only {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .features-grid, .testimonials-list {
        grid-template-columns: 1fr;
    }
    .footer-clean-content {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links-inline {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-advertisement-bar {
        font-size: 0.65rem;
    }
    .banner-inner {
        gap: 10px;
        text-align: center;
    }
    .banner-text {
        font-size: 14px;
    }
    .specs-table td:first-child {
        width: 45%;
    }
    .specs-table-container {
        overflow-x: auto;
    }
    .cookie-banner {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        padding: 2.5rem 1.5rem;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    }
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .cookie-btn {
        width: 100%;
    }
    .logo {
        font-size: 1.4rem;
    }
    .footer-clean-content {
        text-align: center;
        align-items: center;
    }
    .footer-disclosure-box {
        padding: 20px;
        font-size: 0.8rem;
    }
}
