/* ===== Aesop-Inspired Design System ===== */
:root {
    --bg-primary: #F5F2ED;
    --bg-secondary: #EDE7DF;
    --bg-dark: #2B2B2B;
    --bg-footer: #1A1A1A;
    --text-primary: #2B2B2B;
    --text-secondary: #5C5C5C;
    --text-muted: #8A8A8A;
    --text-light: #F5F2ED;
    --accent: #B8956A;
    --accent-dark: #8B7355;
    --border: #D5CFC5;
    --border-light: #E2DDD5;
    --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 242, 237, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: block;
    height: 46px;
    width: auto;
    mix-blend-mode: multiply;
}

.brand-text {
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
    font-weight: 400;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.lang-current {
    font-weight: 400;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent);
    font-weight: 500;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    position: relative;
    z-index: 10;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle span {
    position: relative;
}

.nav-toggle.open::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span {
    opacity: 0;
}

.nav-toggle.open::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(170deg, #F5F2ED 0%, #EDE7DF 50%, #E8E0D5 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(184, 149, 106, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184, 149, 106, 0.04) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    color: var(--text-primary);
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.hero-title .italic {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-dark);
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-link {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 16px 10px;
    gap: 8px;
}

.btn-link .arrow {
    transition: transform 0.3s ease;
}

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

.btn-link:hover .arrow {
    transform: translateX(5px);
}

/* ===== Stats Bar ===== */
.stats-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-num {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 12px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

/* ===== Section Base ===== */
.section {
    padding: 120px 40px;
}

.section-intro,
.patents-intro,
.about-text-col,
.contact-intro {
    max-width: 720px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-tag {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 400;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.section-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== Products Section ===== */
.products {
    background: var(--bg-secondary);
}

.products-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-body {
    padding: 36px 32px;
}

.product-en {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.product-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

.product-features {
    list-style: none;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.product-features li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-weight: 300;
}

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

/* ===== Patents Section ===== */
.patents {
    background: var(--bg-primary);
}

.patents-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.patent-item {
    padding: 40px 32px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    transition: all 0.4s ease;
    background: var(--bg-primary);
}

.patent-item:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.patent-num {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.patent-item h4 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.patent-item p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
}

.patent-item.trademark {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-light);
}

.patent-item.trademark .patent-badge {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    margin-bottom: 20px;
}

.patent-item.trademark h4 {
    color: var(--text-light);
}

.patent-item.trademark p {
    color: rgba(245, 242, 237, 0.7);
}

/* ===== About Section ===== */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text-col {
    margin: 0;
    text-align: left;
}

.about-text-col .section-tag {
    margin-bottom: 24px;
}

.about-text-col .section-title {
    margin-bottom: 32px;
}

.about-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.about-features-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-item {
    padding: 32px 24px;
    background: var(--bg-primary);
    border-radius: 2px;
    text-align: left;
}

.feature-item h5 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.contact-item {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.contact-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 400;
}

.contact-value {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
}

.contact-value a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--accent);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 80px 40px 40px;
}

.footer-top {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(245, 242, 237, 0.1);
}

.footer-brand {
    text-align: left;
}

.footer-mark {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--text-light);
    display: block;
    margin-bottom: 20px;
}

.footer-slogan {
    font-size: 14px;
    color: rgba(245, 242, 237, 0.6);
    font-weight: 300;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(245, 242, 237, 0.6);
    padding: 8px 0;
    font-weight: 300;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(245, 242, 237, 0.4);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== RTL Support ===== */
html[dir="rtl"] .nav-links,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .about-text-col,
html[dir="rtl"] .contact-item,
html[dir="rtl"] .footer-brand {
    text-align: right;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

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

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-cols {
    text-align: right;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 16px 20px;
    }

    .brand-mark {
        height: 38px;
    }

    .brand-text {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .nav-links {
        position: fixed;
        top: 71px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 80px;
    }

    .hero-title {
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .hero-actions {
        gap: 20px;
    }

    .stats-bar {
        padding: 60px 20px;
        gap: 40px;
    }

    .stat-num {
        font-size: 42px;
    }

    .stat-divider {
        display: none;
    }

    .section {
        padding: 80px 20px;
    }

    .products-grid,
    .patents-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-body {
        padding: 28px 24px;
    }

    .patent-item {
        padding: 32px 24px;
    }

    .about-features-col {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer {
        padding: 60px 20px 30px;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .section-title {
        font-size: 28px;
    }
}