/* ==========================================================================
   premium-theme.css
   Style: Minimalist, Swiss/Scandinavian
   Palette: Deep Forest Green, Warm Wood, White/Gray
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary: #0a3323;
    /* Deep Forest Green */
    --color-primary-light: #164a35;
    --color-accent: #cfaa82;
    /* Warm Wood */
    --color-accent-dark: #b08d66;

    --color-surface: #ffffff;
    --color-surface-alt: #f4f6f5;
    /* Soft Gray/Green Tint */
    --color-surface-museum: #f2f2f0;
    /* Stone Gray for Art */
    --color-border: #e0e5e3;

    --color-text-main: #1a1e1c;
    --color-text-muted: #646b67;
    --color-text-light: #9fa6a2;
    --color-text-inverse: #ffffff;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;

    /* Spacing (Swiss Grid) */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Layout */
    --container-width: 1360px;
    /* Wider for gallery feel */
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

/* Typography Utilities */
.text-hero {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.text-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.text-h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.text-body {
    font-size: 1rem;
}

.text-small {
    font-size: 0.875rem;
}

/* Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-alt {
    background-color: var(--color-surface-alt);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
    color: var(--color-text-muted);
}

.nav-link.active,
.nav-link:hover {
    color: var(--color-primary);
}

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

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    left: 0;
    transition: 0.3s;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        transition: 0.3s ease;
        z-index: -1;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 51, 35, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + var(--spacing-lg)) 0 var(--spacing-xl);
    background-color: var(--color-surface-alt);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 800px;
}

.hero-subtitle {
    color: var(--color-accent-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.hero-actions {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Product Cards */
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    background-color: #eee;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.product-specs {
    list-style: none;
    margin: var(--spacing-sm) 0;
    flex-grow: 1;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
}

.product-specs li:last-child {
    border-bottom: none;
}

/* Art Section Components */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.art-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-card:hover .art-image {
    transform: scale(1.05);
}

.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: 0.3s ease;
}

.art-card:hover .art-overlay {
    opacity: 1;
}

/* Contact Block */
.contact-block {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.contact-block h2 {
    color: var(--color-text-inverse);
}

.contact-block p {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.site-footer {
    background-color: var(--color-surface-alt);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-col h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--color-primary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}



/* Language Switcher */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-pill, 20px);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: var(--color-surface-alt);
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 380px;
    /* Wide dropdown for grid */
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: none;
    /* Hidden by default */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    z-index: 1100;
}

.lang-dropdown.active {
    display: grid;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.lang-option:hover {
    background-color: var(--color-surface-alt);
    color: var(--color-primary);
}

.lang-option span.fi {
    font-size: 1.2em;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav-link {
    letter-spacing: 0;
}

html[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* RTL Grid Mirrors if needed */
/* Technical Specs Table (SyPly Style) */
/* Technical Specs Table (SyPly Style) */
.spec-table {
    width: 100%;
    margin: var(--spacing-sm) 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.spec-table th,
.spec-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.spec-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    width: 35%;
    background-color: var(--color-surface-alt);
    border-right: 1px solid var(--color-border);
}

.spec-table td {
    font-weight: 500;
    color: var(--color-text-main);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, 0.01);
}

.spec-table tr:hover th,
.spec-table tr:hover td {
    background-color: #f0f2f1;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon-svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-icon-svg {
        width: 28px;
        height: 28px;
    }
}

/* Global Stats Bar */
.section-stats {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    fill: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon svg {
    transform: scale(1.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: white;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}