:root {
  --bg-main: #e7edf0; 
  --bg-white: #ffffff; 
  --bg-dark-grey: #c1c9d0;
  --text-h1: #231f20; 
  --text-h2-dark: #626a71; 
  --text-h2-light: #889097;
  --text-main: #231f20; 
  --text-muted: #626a71;
  --color-m3: #eea68a; 
  --color-n1: #88addb; 
  --color-e8: #f1becf;
  --color-c5: #a485bd; 
  --color-g1: #6dcad8; 
  --color-b5: #aec0c5;
  --color-r7: #9bce83; 
  --color-default: #889097;
  --glass-border: rgba(35, 31, 32, 0.1); 
  --container-width: 90%; 
  --max-width: 1400px; 
  --header-height: 80px;
}

::selection { background: var(--color-g1); color: #fff; }
::-moz-selection { background: var(--color-g1); color: #fff; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; outline: none; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: 'Tahoma', sans-serif; line-height: 1.6; font-weight: 300; overflow-x: hidden; }

#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader-svg {
    width: 48px; height: 48px;
    animation: preloaderSpin 2.4s linear infinite;
}
.preloader-text {
    font-family: 'Tahoma', sans-serif;
    font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-h2-light);
}
@keyframes preloaderSpin { to { transform: rotate(360deg); } }
h1, h2, h3, h4 { font-family: 'Tahoma', sans-serif; color: var(--text-h1); letter-spacing: -0.01em; }
h1 { font-weight: 600; font-size: 100px; line-height: 0.95; }
h2 { font-weight: 500; font-size: 65px; line-height: 1; }

/* --- GLOBAL BACKGROUND --- */
.bg-layer { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    z-index: -1; 
    background-color: var(--bg-main); 
    overflow: hidden; 
}
.bg-image {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    /*filter: grayscale(100%); */
    opacity: 0.4;
    /*mix-blend-mode: luminosity; */
    display: block;
}
.noise-overlay { 
    display: block; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(45deg, #e7edf0, #ffffff, #e7edf0);
    opacity: 0.02; 
    pointer-events: none; 
    z-index: 1; 
}
.vignette-overlay { display: none; }

.bg-image.mobile-only {
    display: none;
}


/* --- HEADER & HERO --- */
.main-header { position: fixed; top: 0; width: 100%; height: var(--header-height); z-index: 100; display: flex; align-items: center; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); transition: height 0.3s ease, background 0.3s ease, border-bottom-color 0.3s ease; }
.scroll-progress { 
    position: absolute; 
    bottom: -1px; 
    left: 0; 
    height: 2px; 
    width: 0%; 
    background: var(--color-b5); 
    transition: none; 
    z-index: 101; 
    pointer-events: none; 
}
.container { width: var(--container-width); max-width: var(--max-width); margin: 0 auto; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 44px; width: auto; transition: height 0.3s ease; }

/* UI Elements (Nav, Lang, Buttons) */
.nav-link { 
    text-decoration: none; 
    color: var(--text-h1); 
    font-family: 'Tahoma', sans-serif; 
    font-weight: 500; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    padding: 10px 15px; 
    transition: color 0.3s ease; 
}
.nav-link:hover { color: var(--text-h1); }
.lang-switcher { display: flex; gap: 8px; margin-left: 20px; border-left: 1px solid var(--glass-border); padding-left: 20px; }
.lang-btn { background: none; border: none; color: var(--text-h2-light); font-weight: 500; font-size: 0.75rem; cursor: pointer; text-transform: uppercase; padding: 0; transition: color 0.3s; }
.lang-btn.active, .lang-btn:hover { color: var(--text-h1); }

.hero-section { 
    height: 100dvh; 
    min-height: 700px;
    display: flex; 
    align-items: center; 
    padding-top: var(--header-height); 
    position: relative;
}
.hero-title { font-size: clamp(3rem, 8vw, 65px); line-height: 0.95; margin-bottom: 24px; }
.hero-title span {
    /*color: #35a8c3;*/
    font-weight: 400;
}
.italic-accent { font-weight: 400; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-h1); font-weight: 300; max-width: 500px; margin-bottom: 40px; }
.kicker { display: block; font-family: 'Tahoma', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-h1); margin-bottom: 16px; font-weight: 500; }

.hero-cta { display: flex; gap: 20px; margin-bottom: 40px; }
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 16px 32px 12px 32px; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    text-align: center; 
    border-radius: 8px; 
}
.btn-primary { 
    background: var(--text-h1); 
    color: var(--color-e8);
    border: 1px solid var(--text-h1); 
    color: #fff;
}
.btn-primary:hover { background: var(--text-h2-dark); border-color: var(--text-h2-dark); }
.btn-ghost { border: 1px solid var(--glass-border); color: var(--text-h1); background: transparent; }
.btn-ghost:hover { border-color: var(--text-h1); }

.scroll-indicator { display: flex; align-items: center; gap: 15px; opacity: 0.7; margin-top: 40px; }
.scroll-indicator .text { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-h1); }
.scroll-indicator .line { height: 1px; width: 40px; background: var(--text-h1); }

[id="research"], [id="evidence"], [id="quality"], [id="faq"], [id="contact"] { 
    scroll-margin-top: 80px; 
}

.intro-section { 
    padding: 40px 0; 
    border-top: 1px solid var(--glass-border); 
    margin-top: 60px; 
}
.intro-text { font-size: 1rem; color: var(--text-h2-dark); max-width: 800px; font-weight: 300; padding: 40px 0 80px 0px; }

/* --- PART 2: SLIDER & LAB CARDS --- */
.research-section { 
    background-color: var(--bg-main); 
    padding-bottom: 40px;
}
.section-title { 
    font-size: 65px; 
    font-weight: 500; 
    margin-bottom: 10px; 
    color: var(--text-h1); 
}
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(3rem, 8vw, 86px);
    }
}
.section-subtitle { display: block; font-family: 'Tahoma', sans-serif; font-size: 14px; color: var(--text-h2-dark); letter-spacing: 0.08em; margin-bottom: 40px; }

/* --- Fancyapps Carousel Overrides --- */
#researchCarousel { --f-carousel-gap: 20px; --f-carousel-slide-width: 440px; padding-bottom: 40px; }
#researchCarousel.has-arrows { --f-arrow-bg: var(--bg-white); --f-arrow-color: var(--text-h1); --f-arrow-hover-bg: var(--text-h1); --f-arrow-shadow: 0 5px 15px rgba(0,0,0,0.05); --f-arrow-width: 40px; --f-arrow-height: 40px; --f-arrow-border-radius: 50%; }
#researchCarousel .is-arrow:hover svg { stroke: var(--bg-white); }

.research-card {
    position: relative;
    width: 100%;
    cursor: pointer;
    padding: 15px;
    background: transparent;
    transition: transform 0.3s ease;
}
.research-card:hover {

}
.research-card:active { transform: scale(0.98); }
.research-card::before, .research-card::after { content: ''; position: absolute; width: 40px; height: 40px; pointer-events: none; z-index: 20; }
.research-card::before { top: 0; left: 0; border-top: 1px solid var(--text-h2-light); border-left: 1px solid var(--text-h2-light); }
.research-card::after { bottom: 0; right: 0; border-bottom: 1px solid var(--text-h2-light); border-right: 1px solid var(--text-h2-light); }

.card-glass { 
    background: var(--bg-white); 
    border: 1px solid var(--glass-border); 
    padding: 30px; 
    border-radius: 12px; 
    min-height: 540px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    position: relative; 
    overflow: hidden; 
    background: linear-gradient(135deg, #ffffff, rgb(193 201 208 / 20%));
    transition: box-shadow 300ms ease;
}
.research-card:hover .card-glass {
 
}
.card-image-wrap { 
    position: absolute; 
    top: 90%; 
    left: 102%; 
    transform: translate(-62%, -56%);
    width: 160%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 0; 
    pointer-events: none; 
}
.card-image-wrap img { 
    width: 70%;
    height: auto; 
    object-fit: contain; 
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); 
}

.card-title { 
    font-family: 'Tahoma', sans-serif; 
    font-size: 68px; 
    font-weight: 600;
    margin-bottom: 8px; 
    color: var(--text-h1); 
    max-width: 100%; 
    line-height: 1; 
    position: relative; 
    z-index: 10; 
    letter-spacing: 2px;
    padding-top: 14px;
    padding-bottom: 4px;
}
.card-subtitle {
    font-family: 'Tahoma', sans-serif; 
    font-size: 20px; 
    font-weight: 400;
    margin-bottom: 8px; 
    color: var(--text-h2-dark); 
    max-width: 100%; 
    line-height: 1.2; 
    position: relative; 
    z-index: 10; 
    letter-spacing: 1px;
}

.chem-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 5px; margin-bottom: 10px; padding-left: 35px; padding-right: 0; position: relative; z-index: 10; }
.chem-id { font-size: 0.75rem; color: var(--text-h2-dark); border: 1px solid var(--text-h2-light); padding: 4px 10px; border-radius: 4px; font-weight: 500; text-transform: uppercase; background: rgba(255,255,255,0.8); }
.evidence-tag { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 4px; font-weight: 600; background: rgba(255,255,255,0.8); border-radius: 2px;}
.evidence-tag.preclinical { color: var(--text-h2-light); }
.evidence-tag.experimental { color: var(--color-m3); }


.dec-platform { 
    font-size: 12px;
    color: var(--text-h2-light);
    text-transform: none;
    letter-spacing: 0.2px;
    opacity: 0.7;
    z-index: 50;
    text-align: left;
    font-weight: 300;
}
.dec-number { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    width: 24px; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    z-index: 50; 
    gap: 10px;
}
.dec-number svg {  margin-top: 13px; }
.dec-num-text { 
    font-family: 'Tahoma', sans-serif; 
    font-size: 18px; 
    color: var(--text-h2-light); 
    font-weight: 300; 
    line-height: 1; 
    text-align: right;
    letter-spacing: 0.5px;
}
.dec-scale { width: 8px; height: 30px; border-right: 1px solid rgba(136, 144, 151, 0.4); background: repeating-linear-gradient(to bottom, transparent, transparent 4px, rgba(136, 144, 151, 0.4) 4px, rgba(136, 144, 151, 0.4) 5px); margin-top: 6px; margin-right: 0; }
.dec-side-text { 
    position: absolute; 
    top: 50%; 
    left: 20px; 
    transform: translate(-50%, -50%) rotate(-90deg); 
    font-size: 10px; 
    color: var(--text-h1); 
    letter-spacing: 0.25em; 
    text-transform: uppercase; 
    opacity: 0.6; 
    white-space: nowrap; 
    z-index: 50; 
    display: none;
}
.dec-hex { 
    position: absolute; 
    bottom: 30px; 
    left: 30px; 
    width: 40px; 
    height: 40px; 
    opacity: 0.3; 
    z-index: 50; 
   
    color: #88addb;
}

@keyframes hexSpin {
    to { transform: rotate(360deg); }
}

/* Product Colors */
.card-n1 { border-top: 4px solid var(--color-n1); border-color: var(--color-n1); }
.card-m3 { border-top: 4px solid var(--color-m3); border-color: var(--color-m3); }
.card-g1 { border-top: 4px solid var(--color-g1); border-color: var(--color-g1); }
.card-b5 { border-top: 4px solid var(--color-b5); border-color: var(--color-b5); }
.card-e8 { border-top: 4px solid var(--color-e8); border-color: var(--color-e8); }
.card-r7 { border-top: 4px solid var(--color-r7); border-color: var(--color-r7); }
.card-c5 { border-top: 4px solid var(--color-c5); border-color: var(--color-c5); }

.btn-text { background: none; border: none; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 0; cursor: pointer; text-shadow: 0 0 10px #fff; margin-top: auto; align-self: flex-start; position: relative; z-index: 10; }
.research-card .card-desc { display: none; }

.info-section { padding: 80px 0; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
.info-item h4 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-h1); }
.info-item p { color: var(--text-h2-dark); font-size: 0.95rem; font-weight: 300; }

.quality-section { position: relative; padding: 100px 0; overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: var(--bg-white); }
.bg-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; max-width: 600px; opacity: 0.02; pointer-events: none; filter: invert(1); }
.relative-z { position: relative; z-index: 2; text-align: center; }
.quality-text { font-size: 1.2rem; color: var(--text-h2-dark); margin: 30px auto; max-width: 600px; font-weight: 300; }
.cert-badges { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.badge { color: var(--text-h2-dark); padding: 8px 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 4px; font-weight: 500; }

/* FAQ Section */
.faq-section { padding: 80px 0; }
.faq-list { margin-top: 40px; max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 20px 0; cursor: pointer; }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; color: var(--text-h1); font-weight: 500; font-family: 'Tahoma', sans-serif; }
.faq-question .plus { color: var(--text-h2-light); font-size: 1.5rem; font-weight: 300; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-top: 15px; color: var(--text-h1); font-size: 0.95rem; font-weight: 300; }
.faq-item.active .plus { transform: rotate(45deg); color: var(--text-h2-light); }
.faq-item.active .faq-answer { max-height: 200px; }

/* Footer */
footer { padding: 60px 0 40px; border-top: 1px solid var(--glass-border); background: var(--bg-white); }
.footer-content { display: flex; flex-direction: column; gap: 40px; margin-bottom: 30px; }
.logo-footer-lg { width: 180px; margin-bottom: 15px; }
.footer-links { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: var(--text-h2-dark); text-decoration: none; font-size: 0.8rem; font-weight: 500; font-family: 'Tahoma', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links a:hover {
    text-decoration: underline;
}
.copyright { color: var(--text-h2-light); font-size: 0.8rem; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; background: rgba(255,255,255,0.92); z-index: 1000; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-content { 
    width: 100%; 
    max-width: 600px; 
    background: var(--bg-white); 
    border-top: 1px solid var(--glass-border); 
    padding: 40px 30px; 
    border-radius: 20px 20px 0 0; 
    margin: 0 auto; 
    transform: translateY(100%); 
    transition: transform 0.4s; 
    max-height: 85vh; 
    overflow-y: auto; 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05); 
}
.modal-backdrop.active .modal-content { transform: translate3d(0, 0, 0); }

[dir="rtl"] .close-modal { right: auto; left: 20px; }
.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; z-index: 1000; padding: 10px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, opacity 0.2s ease; opacity: 0.5; }
.close-modal:hover { transform: scale(1.1); opacity: 1; }
.close-modal svg { width: 24px; height: 24px; stroke: var(--text-h1); stroke-width: 1.5px; }

.modal-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.modal-badge { font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--text-h2-light); }
.modal-body h2 { font-size: 2rem; color: var(--text-h1); margin-bottom: 5px; font-weight: 600; }
.modal-label { font-family: 'Tahoma', sans-serif; font-size: 0.85rem; text-transform: uppercase; color: var(--text-h1); margin-top: 25px; margin-bottom: 10px; letter-spacing: 0.05em; border-bottom: 1px solid var(--glass-border); padding-bottom: 5px; font-weight: 600; }
.modal-body p, .modal-body li { color: var(--text-h2-dark); font-size: 0.95rem; font-weight: 300; margin-bottom: 10px; }
.modal-list { padding-left: 20px; margin-bottom: 15px; }

/* Unknown Box & Citation */
.unknown-box { margin-top: 25px; padding: 15px 20px; background: #fafafa; border-left: 2px solid var(--text-h2-light); border-radius: 4px; }
.unknown-box h4 { font-size: 0.85rem; color: var(--text-h1); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.05em; font-weight: 600; }
.unknown-box ul { padding-left: 15px; margin: 0; }
.unknown-box li { color: var(--text-h2-dark); font-size: 0.85rem; margin-bottom: 5px; }
.citation-box { margin-top: 30px; border-top: 1px solid var(--glass-border); padding-top: 15px; }
.citation-text { font-size: 0.75rem; color: var(--text-h2-light); font-style: italic; margin-bottom: 5px; }
.doi-link { color: var(--text-h1); text-decoration: none; font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }
.disclaimer-box { margin-top: 20px; padding: 15px; background: var(--bg-main); border: 1px solid var(--glass-border); font-size: 0.8rem; color: var(--text-h2-dark); border-radius: 4px; }


.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.evidence-card, .info-card-styled { position: relative; background: var(--bg-white); 
    border: 1px solid var(--glass-border); 
    border-top: 3px solid var(--color-e8); 
    padding: 40px 30px 50px 30px; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 1; }

.evidence-card:hover, .info-card-styled:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }

.watermark-card::after { 
    content: ''; position: absolute; bottom: 20px; right: 10px; width: 200px; height: 200px; background-image: url('img/logo/Afira-02.png'); background-size: contain; background-repeat: no-repeat; background-position: bottom right; opacity: 0.04; z-index: 0; pointer-events: none; transform: rotate(-15deg); 
    display: none;
}
.evidence-content { position: relative; z-index: 10; }
.evidence-title { font-family: 'Tahoma', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--text-h1); margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--glass-border); }
.evidence-desc { font-size: 0.95rem; color: var(--text-h2-dark); font-weight: 300; line-height: 1.6; }
.evidence-desc strong { font-weight: 600; color: var(--text-h1); }

.ref-links-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.ref-link { 
    font-family: 'Tahoma', sans-serif; 
    font-size: 0.75rem; 
    color: var(--text-h2-dark); 
    border: 1px solid var(--glass-border); 
    padding: 8px 16px; 
    text-decoration: none; 
    border-radius: 8px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    transition: all 0.3s ease; 
    background-color: #fff;
    border-color: var(--color-g1);
    color: var(--text-h1);
    font-weight: 600;
}
.ref-link:hover { 
    box-shadow: 0 5px 10px rgba(0,0,0,0.04);
    color: var(--color-g1);
    border-color: var(--color-g1);
}

.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.info-card-title { font-family: 'Tahoma', sans-serif; font-size: 1.25rem; color: var(--text-h1); margin-bottom: 15px; font-weight: 600; }
.info-card-text { font-family: 'Tahoma', sans-serif; color: var(--text-h2-dark); font-size: 0.95rem; line-height: 1.6; font-weight: 300; }
.status-tag { font-size: 0.7rem; color: var(--text-h2-light); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; display: block; margin-top: auto; padding-top: 20px; }
.contact-link { color: var(--text-h1); text-decoration: none; border-bottom: 1px solid var(--text-h2-light); font-weight: 500; }

/* --- MOBILE MENU & MEDIA QUERIES --- */
.burger-btn { display: none; }
.mobile-menu-overlay { display: none; }

@media (max-width: 768px) {
    #researchCarousel {  --f-carousel-gap: 12px; }
    .desktop-nav { display: none !important; }
    .burger-btn { display: block; position: relative; z-index: 2000; width: 30px; height: 20px; background: none; border: none; cursor: pointer; }
    .burger-btn span { position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--text-h1); transition: all 0.3s; }
    .burger-btn span:nth-child(1) { top: 0; }
    .burger-btn span:nth-child(2) { top: 9px; width: 50%; opacity: 1; }
    .burger-btn span:nth-child(3) { bottom: 0; }
    .burger-btn.active span:nth-child(1) { transform: rotate(45deg); top: 9px; background-color: #fff; }
    .burger-btn.active span:nth-child(2) { opacity: 0; }
    .burger-btn.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; background-color: #fff; }
    
    .mobile-menu-overlay { display: flex; flex-direction: column; justify-content: center; align-items: center; position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(35, 31, 32, 0.98); backdrop-filter: blur(15px); z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
    .mobile-links { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .mobile-link { font-family: 'Tahoma', sans-serif; font-size: 2rem; color: #fff; text-decoration: none; margin-bottom: 20px; }
    .mobile-footer { display: flex; flex-direction: column; align-items: center; margin-top: 40px; }
}

@media (min-width: 768px) {
    .info-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .footer-links { flex-direction: row; gap: 30px; }
    .modal-backdrop { align-items: center; }
    .modal-content { border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
}



/* --- MODAL GALLERY & LIGHTBOX --- */
.modal-gallery-container { width: 100%; margin: 25px 0; position: relative; }
.modal-gallery-track { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-left: -30px; margin-right: -30px; padding-left: 30px; padding-right: 30px; scrollbar-width: none; }
.modal-gallery-track::-webkit-scrollbar { display: none; }
.modal-product-img { height: 180px; width: auto; border-radius: 4px; scroll-snap-align: center; flex-shrink: 0; border: 1px solid var(--glass-border); background: var(--bg-white); transition: border-color 0.3s; cursor: zoom-in; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.modal-product-img:hover { border-color: var(--text-h2-light); transform: scale(1.02); }

.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; animation: fadeIn 0.2s ease; backdrop-filter: blur(5px); }
.lightbox-img { max-width: 90%; max-height: 90%; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transform: scale(0.9); animation: zoomIn 0.3s forwards ease; }

@keyframes zoomIn { to { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-gallery-wrapper { position: relative; width: 100%; }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: var(--bg-white); border: 1px solid var(--text-h2-light); color: var(--text-h1); border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.gallery-nav-btn:hover { background: var(--text-h1); color: var(--bg-white); }
.gallery-prev { left: -10px; }
.gallery-next { right: -10px; }
@media (max-width: 768px) { .gallery-nav-btn { display: none; } }

:root {
    --font-safe-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body, h1, h2, h3, h4, .card-title, .modal-body, .verify-title, .kicker {
    font-family: 'Tahoma', var(--font-safe-fallback) !important;
}

html.translated-ltr font, 
html.translated-ltr span,
html.translated-ltr body {
    font-family: 'Tahoma', var(--font-safe-fallback) !important;
}


[dir="rtl"] body {
    font-family: 'Tahoma', 'Tajawal', var(--font-safe-fallback) !important;
}


.main-header:not(.sticky) {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
    transition: height 0.3s ease, background 0.3s ease, border-bottom-color 0.3s ease, backdrop-filter 0.3s ease;
    height: 160px;
}
.main-header:not(.sticky) .logo-img {
    height: 80px;
    transition: height 0.3s ease;
}

.evidence-section .container {
    padding-top: 80px;
}
.nav-link {
    position: relative;
}
.nav-link::before {
    height: 2px;
    background: var(--text-h1);
    content: "";
    display: block;
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 0;
    transition: all 300ms ease;
    max-width: calc(100% - 30px);
}
.nav-link:hover::before {
    width: 100%;
}

div#backToTop {
    width: 50px;
    height: 50px;
    background-color: #626a71;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9;
    transition: opacity 0.3s ease, bottom 0.3s ease, border-radius 0.3s ease;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}
div#backToTop.visible { opacity: 1; pointer-events: auto; }
div#backToTop:hover { border-radius: 0; }
@media (max-width: 768px) { div#backToTop { display: none !important; } }

/* --- LENIS SMOOTH SCROLL --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.section-title {
    font-weight: 600;
}
.section-title span {
    font-weight: 400;
}
.contact-section {
    background: #fff;
}
.contact-section .container {
    padding: 80px 0;
}

.logo-img.mobile-burger {
    display: none;
}
.main-header.menu-open .logo-img:not(.mobile-burger) {
    display: none;
}
.main-header.menu-open .logo-img.mobile-burger {
    display: block;
}
.main-header.menu-open {
    background: transparent;
}

.hex-deco {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    opacity: 0.3;
    animation: hexSpin 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.evidence-card:nth-child(2) .hex-deco { animation-delay: -7s; }
.evidence-card:nth-child(3) .hex-deco { animation-delay: -13s; }

@keyframes hexSpin {
    to { transform: rotate(360deg); }
}
.evidence-card:nth-child(1) {
    border-color: var(--color-n1);
}
.evidence-card:nth-child(2){
    border-color: var(--color-m3);
}
.evidence-card:nth-child(3){
    border-color: var(--color-g1);
}



.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 2.5rem;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    color: var(--text-h2-dark);
    font-size: .7rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    text-decoration: none;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: var(--text-h2-dark);
    animation: scrollPulse 2.2s ease-in-out infinite;
    transform-origin: top
}

@keyframes scrollPulse {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-scroll {
        display:none
    }

    .hero-inner {
        padding-top: 7rem;
        padding-bottom: 4rem
    }
}
.btn-text {
    display: none;
}
.card-image-wrap img {
    animation: moleculeSpin 150s linear infinite;
    transform-origin: center;
}
@keyframes moleculeSpin {
    to { transform: rotate(-360deg); }
}
.card-n1 .card-image-wrap img { animation-delay: -30s; }
.card-m3 .card-image-wrap img { animation-delay: -60s; width: 75%; }
.card-g1 .card-image-wrap img { animation-delay: -90s; }
.card-b5 .card-image-wrap img { animation-delay: -120s; width: 60%;}
.card-b5 .card-image-wrap {
    left: 98%; 
    top: 80%;
}
.card-e8 .card-image-wrap img { animation-delay: -150s; width: 58%; }
.card-e8 .card-image-wrap {
    left: 96%; 
    top: 86%;
}

.research-card .chem-meta, 
.research-card .chem-name {
    transition: all 300ms ease;
    transform: translateX(0%);
    position: relative;
}
@media(min-width: 768px) {
    /*
    .research-card:hover .chem-meta, 
    .research-card:hover .chem-name {
        transform: translateX(100%);
    }
    */
}
.research-card .chem-readmore {
    transition: all 300ms ease;
    transform: translateX(-100%);
    position: absolute;
    left: 0;
    transform: translateX(calc(-100px - 100%));
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    display: none;
}


.research-card::before {
    border-top-left-radius: 8px;
    transition: all 300ms ease;
}
.research-card:hover::before {
    left: 6px;
    top: 6px;
}
.research-card::after {
    border-bottom-right-radius: 8px;
    transition: all 300ms ease;
}
.research-card:hover::after {
    right: 6px;
    bottom: 6px;
}
.menu-open .scroll-progress {
    background: #231f20;
}
.quality-section .evidence-card {
    border-color: #c9e7ff;
}

.evidence-section {
    position: relative;
    clip-path: inset(0);
}
.evidence-section::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    background: url(img/bg/bg-molecules.png) center center / cover no-repeat;
    z-index: -2;
}
.evidence-section::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.75;
    background-color: #d4dbe0;
    z-index: -1;
}
.chem-meta {
    display: none;
}
.card-m3 .card-image-wrap img {

}

.research-card:hover {

}
.card-hover-over {
    position: relative;
}
.card-hover-over .card-learnmore {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: all 300ms ease;
    top: 100%;

    font-family: 'Tahoma', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-h2-dark);
}
.card-hover-over .card-subtitle {
    display: block;
    position: relative;
    opacity: 1;
    transition: opacity 300ms ease;
}

.research-card:hover .card-hover-over {

}
.research-card:hover .card-hover-over .card-learnmore {
    top: 0;
    opacity: 1;
}
.research-card:hover .card-hover-over .card-subtitle {
    opacity: 0;
}

.card-n1 .card-hover-over .card-learnmore { color: var(--color-n1); }
.card-m3 .card-hover-over .card-learnmore { color: var(--color-m3); }
.card-g1 .card-hover-over .card-learnmore { color: var(--color-g1); }
.card-b5 .card-hover-over .card-learnmore { color: var(--color-b5); }
.card-e8 .card-hover-over .card-learnmore { color: var(--color-e8); }

.footer-info {
    border-top: 1px solid var(--glass-border); 
    padding-top: 25px; 
    text-align: center;
}
.footer-info .warning {
    margin-bottom: 15px; 
    color: #d9534f; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    font-size: 0.75rem;
}
.footer-info .copy {
    font-size: 0.75rem; 
    color: var(--text-h2-light); 
    line-height: 1.6;
}

.f-carousel__slide {
    min-width: 380px;
}
@media (max-width: 768px) {
    .bg-layer {
        height: 100lvh;
    }
    .bg-image {
        height: 130% !important;
        max-width: none !important;
        object-position: center;
        left: 0;
        top: 0;
        will-change: transform;
        background-size: cover;
        transform: none !important;
        margin-top: -30%;
    }
    .hero-section {
        height: 100svh;
        align-items: flex-end;
    }
    .bg-image.mobile-only {
        display: block;
        opacity: 1;
    }
    .bg-image:not(.mobile-only) {
        display: none;
    }
    .noise-overlay {
        background: linear-gradient(0deg, #e7edf0, transparent);
        background: linear-gradient(0deg, #e7edf0, rgb(231 237 240 / 17%), #e7edf0);
        opacity: 1;
    }
    .faq-section {
        background: #f3f7f9;
    }
    .footer-links {
        flex-direction: row;
    }
    .footer-info {
        text-align: left;
    }
    .card-title {
        font-size: 52px;
        letter-spacing: 1.5px;
    }
    .evidence-card, .info-card-styled {
        border-top-width: 5px;
    }
    .modal-content {
        max-height: 100dvh;
    }
    .card-image-wrap img {
        filter: none !important;
    }
    .hex-deco {
        /*animation: none !important;*/
    }
    .main-header.sticky {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.97);
    }
    .main-header.menu-open.sticky {
        background: transparent;
    }
    .cert-badges {
        flex-direction: column;
        gap: 0;
    }
    .badge {
        font-size: 1.1rem;
        font-weight: 500;
    }
}
.f-button.is-arrow {
            --f-button-svg-width: 40px;
            --f-button-svg-height: 40px;
            --f-button-svg-stroke-width: 1.333;
            --f-button-bg: transparent;
            --f-button-hover-bg: transparent;
            --f-button-active-bg: transparent;
            --f-button-shadow: none;
            --f-button-color: var(--text-h1);
            --f-button-hover-color: var(--text-h1);
            --f-button-active-color: var(--text-h1);
        }
        .f-button:hover:not([aria-disabled]) {
            color: var(--text-h1);
            background-color: transparent;
        }
        #researchCarousel .is-arrow {
            transition: all 300ms ease;
        }
        #researchCarousel .is-arrow:hover svg {
            stroke: var(--text-h1) !important;
        }
        .is-horizontal.is-ltr .f-button.is-arrow.is-prev {
            left: 10px;
        }
        .is-horizontal.is-ltr .f-button.is-arrow.is-next {
            right: 10px;
        }
        @media (max-width: 768px) {
            .is-horizontal.is-ltr .f-button.is-arrow.is-prev {
                left: 24px;
            }
            .is-horizontal.is-ltr .f-button.is-arrow.is-next {
                right: 24px;
            }
        }
