/*
Theme Name: تکنو ژن (TechnoGene)
Theme URI: https://alitechnogene.com
Author: Mehdi Nikzad Semeskandi
Author URI: https://alitechnogene.com
Description: قالب اختصاصی تکنو ژن برای تجهیزات بیوتکنولوژی و ژنتیک مولکولی. طراحی شده با پشتیبانی کامل از زبان فارسی (RTL)، Elementor و WooCommerce. شامل بهینه‌سازی‌های SEO، Schema.org، عملکرد بالا و دسترسی‌پذیری.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technogene
Domain Path: /languages
Tags: rtl-language-support, e-commerce, elementor, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready

TechnoGene WordPress Theme, Copyright 2025
TechnoGene is distributed under the terms of the GNU GPL v2 or later.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a87;
    --accent-color: #4a90a4;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f5f5f5;
    --bg-card: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* WordPress Core Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: left;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: right;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: left;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: right;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

/* Header */
.main-header {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 1;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    padding: 5px;
    background: white;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.15);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    order: 2;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding-bottom: 150px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 150px);
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 150px);
    background: var(--overlay-dark);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-credibility {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.credibility-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.university-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.university-logos img {
    height: 60px;
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.university-logos img:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Key Values Section */
.key-values {
    position: relative;
    margin-top: -120px;
    padding: 120px 0 80px;
    background: linear-gradient(to bottom, #e8ecf1 0%, var(--bg-light) 20%);
    z-index: 10;
    overflow: visible;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.value-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 50px 40px 50px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    clip-path: polygon(50% 0%, 100% 15%, 100% 85%, 50% 100%, 0% 85%, 0% 15%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: perspective(1000px) translateZ(0) rotateX(2deg);
    box-shadow:
        0 20px 60px rgba(30, 58, 95, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            transparent 50%,
            rgba(30, 58, 95, 0.05) 100%);
    clip-path: polygon(50% 0%, 100% 15%, 100% 85%, 50% 100%, 0% 85%, 0% 15%);
    z-index: 1;
    pointer-events: none;
    border-radius: 0;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    clip-path: polygon(50% 0%, 100% 15%, 100% 85%, 50% 100%, 0% 85%, 0% 15%);
    z-index: -2;
    opacity: 0.15;
    filter: blur(10px);
    transform: translateZ(-20px);
}

.value-card:hover {
    transform: perspective(1000px) translateY(-20px) translateZ(30px) rotateX(-2deg) scale(1.03);
    box-shadow:
        0 30px 80px rgba(30, 58, 95, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 5px rgba(255, 255, 255, 0.95),
        inset 0 -2px 5px rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 50%, #ffffff 100%);
}

.value-card:hover::after {
    opacity: 0.25;
    filter: blur(15px);
    transform: translateZ(-30px);
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 95, 0.2));
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) translateY(-5px);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.value-card p {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.8;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.value-card .btn,
.value-card .btn.btn-small,
.value-card .btn.btn-primary {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    max-width: 75%;
    width: auto;
    display: inline-block;
    box-shadow: none;
    transform: translateZ(0);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.value-card .btn:hover,
.value-card .btn.btn-small:hover,
.value-card .btn.btn-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: none;
    transform: translateZ(0);
}

/* Solutions Section */
.solutions-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.solution-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
}

.solution-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.solution-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.solution-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.8;
}

.solution-card .btn {
    margin: 0 20px 20px;
}

/* Logos Carousel Section */
.logos-carousel-section {
    padding: 80px 0;
    background: var(--bg-card);
    overflow: hidden;
}

.logos-carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.logo-carousel-container {
    margin-bottom: 40px;
}

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.02) 0%, transparent 10%, transparent 90%, rgba(30, 58, 95, 0.02) 100%);
}

.logo-track {
    display: flex;
    gap: 60px;
    animation: scroll-logos 30s linear infinite;
    will-change: transform;
}

.logo-track-reverse {
    animation: scroll-logos-reverse 30s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(30, 58, 95, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(1000px) translateZ(20px) rotateX(2deg);
    position: relative;
}

.logo-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(74, 144, 164, 0.1));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.logo-item:hover {
    transform: perspective(1000px) translateY(-10px) translateZ(40px) rotateX(-2deg) scale(1.08);
    box-shadow:
        0 20px 50px rgba(30, 58, 95, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 2px 5px rgba(255, 255, 255, 0.95);
}

.logo-item:hover::before {
    opacity: 1;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.4s ease;
    filter: grayscale(30%) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
    border-radius: 10px;
}

.logo-item:hover img {
    filter: grayscale(0%) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-logos-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

.logo-carousel:hover .logo-track-reverse {
    animation-play-state: paused;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.trust-logos {
    text-align: center;
    margin-top: 60px;
}

.trust-logos h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logos-grid img {
    height: 80px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logos-grid img:hover {
    opacity: 1;
}

/* Educational Content Section */
.educational-content {
    padding: 80px 0;
    background: var(--bg-card);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.content-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.content-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.8;
}

.content-card .btn {
    margin: 0 20px 20px;
}

/* Interactive Tool Section */
.interactive-tool {
    padding: 80px 0;
    background: var(--bg-light);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.quiz-question select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.quiz-question select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quiz-form .btn-primary {
    width: 100%;
    margin-top: 20px;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta .btn-secondary {
    border-color: var(--text-light);
    color: var(--text-light);
}

.final-cta .btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-badges img {
    height: 50px;
    width: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TechnoGene: P0-1 — Hamburger Menu Button */
.tg-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
}

.tg-hamburger__bar {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}

/* Hamburger → X animation when menu is open */
.tg-menu-open .tg-hamburger__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.tg-menu-open .tg-hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.tg-menu-open .tg-hamburger__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* TechnoGene: P1-2 — WCAG 2.1 AA Focus Styles (3:1 contrast minimum) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #1a5276;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(26, 82, 118, 0.25);
}

/* Hamburger focus — high-visibility ring */
.tg-hamburger:focus-visible {
    outline: 3px solid #1a5276;
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(26, 82, 118, 0.3);
}

/* Navigation menu links focus */
.main-nav a:focus-visible {
    outline: 3px solid #1a5276;
    outline-offset: 2px;
    border-radius: 4px;
    background: rgba(26, 82, 118, 0.08);
}

/* Button/CTA focus — stronger ring */
.btn:focus-visible,
button[type="submit"]:focus-visible {
    outline: 3px solid #1a5276;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(26, 82, 118, 0.3);
}

/* Form input focus — colored border + ring */
.tg-form-group input:focus-visible,
.tg-form-group select:focus-visible,
.tg-form-group textarea:focus-visible {
    border-color: #1a5276;
    outline: 3px solid rgba(26, 82, 118, 0.4);
    outline-offset: 0;
    box-shadow: 0 0 0 4px rgba(26, 82, 118, 0.15);
}

/* Checkbox focus — visible ring around the label */
.tg-disclaimer-group input[type="checkbox"]:focus-visible {
    outline: 3px solid #1a5276;
    outline-offset: 2px;
}

/* Skip link focus — visible on screen */
.screen-reader-text:focus-visible {
    outline: 3px solid #1a5276;
    outline-offset: 2px;
}

/* TechnoGene: P0-2 — Consultation Form */
.tg-consultation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
}

.tg-safety-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tg-safety-warning__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tg-safety-warning__text {
    color: #856404;
    line-height: 1.8;
    font-size: 0.95rem;
}

.tg-consult-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.tg-form-group {
    margin-bottom: 20px;
}

.tg-form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tg-form-group input,
.tg-form-group select,
.tg-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.tg-form-group input:focus,
.tg-form-group select:focus,
.tg-form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.tg-disclaimer-group {
    background: #fef9e7;
    border: 1px solid #f0e68c;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.tg-disclaimer-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #856404;
    line-height: 1.6;
}

.tg-disclaimer-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.tg-form-error {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.tg-form-message {
    display: none;
    margin-top: 15px;
}

.tg-form-message .tg-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 18px;
    border-radius: 5px;
}

.tg-form-message .tg-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 18px;
    border-radius: 5px;
}

.tg-inventory-hint {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border-radius: 10px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* TechnoGene: P0-1 — Hamburger visible on mobile */
    .tg-hamburger {
        display: flex;
        order: 3;
    }

    /* Mobile slide-in nav panel */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        padding: 80px 30px 30px;
        overflow-y: auto;
        order: 3;
    }

    .tg-menu-open .main-nav {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 5px;
        font-size: 16px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
    }

    /* Overlay backdrop */
    .tg-menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Prevent scroll when menu open */
    .tg-menu-open {
        overflow: hidden;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .key-values {
        margin-top: -80px;
        padding: 100px 0 60px;
    }

    .logos-carousel-section {
        padding: 60px 0;
    }

    .logo-item {
        width: 140px;
        height: 90px;
        padding: 0;
        transform: perspective(800px) translateZ(15px) rotateX(1deg);
        box-shadow:
            0 8px 20px rgba(30, 58, 95, 0.2),
            0 4px 10px rgba(0, 0, 0, 0.12),
            0 2px 5px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .logo-item:hover {
        transform: perspective(800px) translateY(-8px) translateZ(30px) rotateX(-1deg) scale(1.06);
    }

    .logo-track {
        gap: 30px;
        animation-duration: 20s;
    }

    .logo-track-reverse {
        animation-duration: 20s;
    }

    .value-card {
        min-height: 350px;
        padding: 40px 30px 40px;
        transform: perspective(800px) translateZ(0) rotateX(1deg);
        box-shadow:
            0 15px 40px rgba(30, 58, 95, 0.25),
            0 8px 20px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .value-card .btn,
    .value-card .btn.btn-small {
        max-width: 80%;
    }

    .value-card:hover {
        transform: perspective(800px) translateY(-15px) translateZ(20px) rotateX(-1deg) scale(1.02);
    }

    .values-grid,
    .solutions-grid,
    .testimonials-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Consultation form mobile */
    .tg-consult-form {
        padding: 25px 20px;
    }

    .tg-safety-warning {
        flex-direction: column;
        text-align: center;
    }
}