/* ========================================
   Chelloyd Chemical - Landing Page Styles
   EU-compliant, professional B2B design
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0f4c75;
    --primary-dark: #0a3550;
    --primary-light: #1b6fa0;
    --accent: #00b4d8;
    --accent-light: #48cae4;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #94a3b8;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 0 0 1px var(--border), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 0 0 1px var(--primary), 0 8px 24px rgba(15, 76, 117, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1200px;
    --section-padding: 100px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(15, 76, 117, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title.text-left {
    text-align: left;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: #fff;
    padding: 16px 24px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    font-size: 13px;
    padding: 8px 18px;
}

.btn-lg {
    font-size: 16px;
    padding: 16px 36px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 76, 117, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(15, 76, 117, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-loading .btn-text { display: none; }
.btn-loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.btn .btn-loading { display: none; }

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition);
}

.navbar.scrolled .nav-logo img {
    filter: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
    background: rgba(15, 76, 117, 0.06);
}

.nav-link-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
}

.nav-link-cta:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.navbar.scrolled .nav-link-cta {
    background: var(--primary) !important;
    color: #fff !important;
}

.navbar.scrolled .nav-link-cta:hover {
    background: var(--primary-dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-primary);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 30, 60, 0.85) 0%, rgba(15, 76, 117, 0.7) 50%, rgba(0, 180, 216, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 160px 0 100px;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.hero-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce-down 2s infinite;
}

.hero-scroll-indicator a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.hero-scroll-indicator a:hover {
    color: #fff;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(8px); }
    60% { transform: translateX(-50%) translateY(4px); }
}

/* ========================================
   Trusted By Section
   ======================================== */
.section-trusted {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    filter: grayscale(100%) opacity(0.5);
}

.partner-logo-item:hover {
    filter: grayscale(0%) opacity(1);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.partner-logo-item img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.trusted-cta {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    color: var(--text-secondary);
}

/* ========================================
   Products Section
   ======================================== */
.section-products {
    background: var(--bg-primary);
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.category-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(15, 76, 117, 0.04);
}

.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.product-card.hidden {
    display: none;
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.product-cas {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.product-link:hover {
    gap: 8px;
    color: var(--primary-dark);
}

.products-cta {
    text-align: center;
    margin-top: 48px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.products-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========================================
   Application Areas
   ======================================== */
.section-applications {
    background: var(--bg-secondary);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.application-card {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.application-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.application-card:hover img {
    transform: scale(1.08);
}

.application-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 30, 60, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: background var(--transition);
}

.application-card:hover .application-card-overlay {
    background: linear-gradient(180deg, rgba(10, 30, 60, 0.2) 0%, rgba(10, 30, 60, 0.95) 100%);
}

.application-card-overlay h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.application-card-overlay p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}

.application-card:hover .application-card-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   About Section
   ======================================== */
.section-about {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-primary);
}

.about-img-secondary img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.about-img-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 76, 117, 0.3);
    border: 4px solid var(--bg-primary);
}

.about-badge-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-top: 2px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(15, 76, 117, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Factory Gallery
   ======================================== */
.section-factory {
    background: var(--bg-secondary);
}

.factory-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.factory-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.factory-item-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.factory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.factory-item:hover img {
    transform: scale(1.05);
}

.factory-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 30, 60, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.factory-item:hover .factory-item-overlay {
    opacity: 1;
}

.factory-item-overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.factory-item-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.factory-item-large .factory-item-overlay {
    opacity: 1;
}

/* ========================================
   Certifications
   ======================================== */
.section-certifications {
    background: var(--bg-primary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cert-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.cert-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cert-card img {
    height: 56px;
    width: auto;
    margin: 0 auto 12px;
    object-fit: contain;
}

.cert-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cert-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Contact Section
   ======================================== */
.section-contact {
    background: var(--bg-tertiary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.contact-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-benefit svg {
    flex-shrink: 0;
    color: var(--success);
}

.contact-exhibition {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.contact-exhibition h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.exhibition-photos {
    display: flex;
    gap: 8px;
}

.exhibition-photos img {
    flex: 1;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.exhibition-photos img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
    background: var(--bg-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-consent {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
    margin-top: 1px;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-success.visible {
    display: block;
}

.form-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-success p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ========================================
   Contact Info Bar (WhatsApp / Phone / Email)
   ======================================== */
.section-contact-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 48px 0;
}

.contact-bar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 40px;
    justify-content: center;
    align-items: stretch;
}

.contact-bar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 200px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: all var(--transition);
    text-decoration: none;
    color: #fff;
}

.contact-bar-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
}

.contact-bar-whatsapp .contact-bar-icon {
    background: #25D366;
}

.contact-bar-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-bar-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
}

.contact-bar-value {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    word-break: break-word;
    transition: opacity var(--transition-fast);
}

a.contact-bar-value:hover {
    opacity: 0.85;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-bar-grid {
        flex-direction: column;
        gap: 12px;
    }
    .contact-bar-item {
        width: 100%;
        min-width: unset;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   CAS Search Modal
   ======================================== */
.cas-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cas-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container - centered floating card */
.cas-modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cas-modal-overlay.show .cas-modal {
    transform: translateY(0) scale(1);
}

/* Header */
.cas-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    gap: 16px;
}
.cas-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cas-modal-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.cas-modal-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.cas-modal-title p {
    margin: 2px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Close button - prominent circular */
.cas-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
}
.cas-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: rotate(90deg);
}

/* Body */
.cas-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

/* Custom scrollbar for modal */
.cas-modal-body::-webkit-scrollbar {
    width: 6px;
}
.cas-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.cas-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.cas-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Search box */
.cas-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.cas-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.cas-search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    pointer-events: none;
}
.cas-search-box input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.2s;
    outline: none;
}
.cas-search-box input::placeholder {
    color: var(--text-light);
}
.cas-search-box input:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(15, 76, 117, 0.08);
}
.cas-search-box .btn {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Loading state */
.cas-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.cas-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: cas-spin 0.7s linear infinite;
}
@keyframes cas-spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.cas-empty-state {
    text-align: center;
    padding: 48px 24px;
}
.cas-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.cas-empty-error {
    background: #fef2f2;
    color: var(--danger);
}
.cas-empty-state h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.cas-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Results count */
.cas-results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.cas-results-count svg {
    color: var(--primary);
    flex-shrink: 0;
}
.cas-results-count strong {
    color: var(--primary);
    font-weight: 700;
}

/* Results list */
.cas-results-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Product card - professional layout */
.cas-result-card {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
}
.cas-result-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* Product image */
.cas-result-image {
    width: 140px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cas-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.cas-result-card:hover .cas-result-image img {
    transform: scale(1.06);
}
.cas-result-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Card body */
.cas-result-body {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cas-result-body h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Specs table - professional look */
.cas-result-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 8px;
}
.cas-spec-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.cas-spec-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.cas-spec-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
}

.cas-result-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer with quote button */
.cas-result-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-left: 1px solid var(--border-light);
    background: var(--bg-secondary);
}
.cas-btn-quote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.cas-btn-quote:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cas-modal-overlay {
        padding: 12px;
    }
    .cas-modal {
        max-height: calc(100vh - 32px);
        border-radius: var(--radius-lg);
    }
    .cas-modal-header {
        padding: 20px;
    }
    .cas-modal-body {
        padding: 20px;
    }
    .cas-search-box {
        flex-direction: column;
    }
    .cas-result-card {
        flex-direction: column;
    }
    .cas-result-image {
        width: 100%;
        height: 140px;
    }
    .cas-result-footer {
        border-left: none;
        border-top: 1px solid var(--border-light);
        justify-content: center;
        padding: 14px 20px;
    }
    .cas-result-specs {
        gap: 4px 12px;
    }
}

@media (max-width: 480px) {
    .cas-modal-title p {
        display: none;
    }
    .cas-result-body {
        padding: 14px 16px;
    }
    .cas-result-footer {
        padding: 12px 16px;
    }
}

/* ========================================
   Animations
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 72px;
    }

    .about-grid {
        gap: 48px;
    }

    .cert-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .factory-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .factory-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 56px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-secondary) !important;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 15px;
    }

    .nav-link:hover {
        background: var(--bg-secondary) !important;
        color: var(--primary) !important;
    }

    .nav-link-cta {
        background: var(--primary) !important;
        color: #fff !important;
        text-align: center;
        margin-top: 8px;
    }

    .hero-content {
        padding: 120px 0 80px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        text-align: center;
    }

    .partner-logos {
        gap: 24px;
    }

    .partner-logo-item img {
        height: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-secondary {
        right: 16px;
        bottom: -24px;
        width: 160px;
    }

    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .factory-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .factory-item-large {
        grid-column: span 2;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .factory-gallery {
        grid-template-columns: 1fr;
    }

    .factory-item-large {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 24px;
    }

    .exhibition-photos {
        flex-wrap: wrap;
    }

    .exhibition-photos img {
        flex: 1 1 calc(50% - 4px);
    }
}
