/*
Theme Name: Razh Fadak Mehrshahr - Mushroom Company
Theme URI: https://razh-fadak-mehrshahr.ir
Author: Razh Fadak Mehrshahr
Author URI: https://razh-fadak-mehrshahr.ir
Description: Premium bilingual (Persian/English) WordPress theme for Razh Fadak Mehrshahr organic mushroom production company. Brand color #176534. Features sections for about, products, production process, gallery, certifications and contact form. Modern design with real images and custom SVG icons.
Version: 2.0.0
Requires at least: 5.5
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: razh-fadak
Tags: bilingual, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, food-and-drink, business
*/

/* ============================================
   RAZ FADA MEHRSHAHR - Premium Theme v2.0
   Brand color: #176534 (Deep Forest Green)
   ============================================ */

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

:root {
    --brand: #176534;
    --brand-dark: #0a3d1f;
    --brand-deeper: #052812;
    --brand-light: #2d8a4f;
    --brand-glow: #4ade80;
    --brand-tint: #dcfce7;
    --brand-mist: #f0fdf4;
    --cream: #fef9e7;
    --warm: #fef3c7;
    --gold: #d97706;
    --earth: #78350f;
    --text: #0f1f17;
    --text-muted: #5a6b65;
    --text-soft: #94a3a0;
    --bg: #ffffff;
    --bg-soft: #f7faf8;
    --bg-dark: #0a1f17;
    --border: #e6ede9;
    --shadow-xs: 0 1px 2px rgba(15, 31, 23, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 31, 23, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 31, 23, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 31, 23, 0.12);
    --shadow-green: 0 20px 60px rgba(23, 101, 52, 0.25);
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 999px;
    --font: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    --container: 1280px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Backward-compatible aliases */
    --color-primary: var(--brand);
    --color-primary-dark: var(--brand-dark);
    --color-primary-light: var(--brand-tint);
    --color-accent: var(--brand-light);
    --color-text: var(--text);
    --color-text-muted: var(--text-muted);
    --color-bg-soft: var(--bg-soft);
    --color-bg-blue: var(--brand-mist);
    --color-border: var(--border);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-dark); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ===== HEADER ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand-logo, .site-logo {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    padding: 10px 18px 10px 14px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(23, 101, 52, 0.25);
    transition: var(--transition);
}
.brand-logo:hover, .site-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 101, 52, 0.35);
}
.brand-logo img, .site-logo img {
    height: 32px; width: auto;
    filter: brightness(0) invert(1);
}
.brand-logo .brand-name, .site-logo .site-name {
    font-size: 1rem; font-weight: 700; color: white;
    letter-spacing: 0.5px;
}

.main-navigation { display: flex; align-items: center; gap: 32px; }
.nav-menu, #primary-menu {
    display: flex; align-items: center; gap: 4px;
    list-style: none; padding: 0; margin: 0;
}
.nav-menu a, #primary-menu a {
    color: var(--text); font-weight: 500; font-size: 0.95rem;
    text-decoration: none; padding: 10px 16px;
    border-radius: var(--r-full); transition: var(--transition);
    display: inline-block;
}
.nav-menu a:hover, #primary-menu a:hover {
    color: var(--brand);
    background: var(--brand-mist);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switcher {
    display: flex; align-items: center; gap: 2px;
    background: var(--bg-soft);
    padding: 4px; border-radius: var(--r-full);
    border: 1px solid var(--border);
}
.lang-switcher a {
    padding: 6px 12px; border-radius: var(--r-full);
    font-size: 0.75rem; font-weight: 700; color: var(--text-soft);
    text-decoration: none; direction: ltr; transition: var(--transition);
}
.lang-switcher a.active {
    background: var(--brand); color: white;
    box-shadow: 0 2px 8px rgba(23, 101, 52, 0.3);
}

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; flex-direction: column; gap: 5px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(74, 222, 128, 0.15), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(23, 101, 52, 0.12), transparent 50%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px; align-items: center;
    z-index: 1;
}
.hero-content { max-width: 600px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: white;
    padding: 8px 18px;
    border-radius: var(--r-full);
    font-size: 0.85rem; font-weight: 600;
    color: var(--brand);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-tint);
}
.hero-badge .pulse-dot {
    width: 8px; height: 8px;
    background: var(--brand-glow);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero h1 {
    font-size: 4rem; line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.hero h1 .accent, .hero h1 .highlight {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 520px;
}
.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 60px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    border-radius: var(--r-full);
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none; cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn-primary, .btn-accent {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    box-shadow: 0 12px 32px rgba(23, 101, 52, 0.35);
}
.btn-primary:hover, .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(23, 101, 52, 0.45);
    color: white;
}
.btn-ghost, .btn-outline {
    background: rgba(255, 255, 255, 0.6);
    color: var(--brand);
    border: 2px solid var(--brand-tint);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover, .btn-outline:hover {
    background: white;
    border-color: var(--brand);
    transform: translateY(-3px);
    color: var(--brand);
}

.hero-stats {
    display: flex; gap: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(23, 101, 52, 0.15);
}
.hero-stat .value, .hero-stat .stat-value {
    font-size: 2.5rem; font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat .label, .hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* Hero visual */
.hero-visual, .hero-image {
    position: relative;
    height: 580px;
}
.hero-img-main {
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-green);
    transform: rotate(-2deg);
    transition: var(--transition);
}
.hero-img-main:hover { transform: rotate(0); }
.hero-img-main img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-img-main::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 31, 23, 0.5));
    pointer-events: none;
}
.floating-card, .floating-badge {
    position: absolute;
    background: white;
    border-radius: var(--r-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 14px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}
.floating-card.tl, .floating-badge.top { top: 30px; right: -40px; animation-delay: 0s; }
.floating-card.bl, .floating-badge.bottom { bottom: 80px; left: -40px; animation-delay: 2s; }
.floating-card.bc { bottom: 30px; right: 30px; animation-delay: 1s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.fc-icon, .badge-icon {
    width: 48px; height: 48px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fc-icon.green, .badge-icon {
    background: linear-gradient(135deg, var(--brand-tint), var(--brand-mist));
    color: var(--brand);
}
.fc-icon.gold {
    background: linear-gradient(135deg, var(--warm), var(--cream));
    color: var(--gold);
}
.fc-text strong, .badge-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
}
.fc-text span, .badge-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== SECTIONS ===== */
section { position: relative; }
.section { padding: 120px 0; }
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 70px;
}
.section-tag, .section-subtitle {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    padding: 8px 18px;
    background: var(--brand-mist);
    border-radius: var(--r-full);
    border: 1px solid var(--brand-tint);
}
.section-tag::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--brand);
    border-radius: 50%;
}
.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== ABOUT ===== */
.about { padding: 120px 0; background: var(--bg); position: relative; }
.about-inner, .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.about-visual, .about-image { position: relative; }
.about-visual .img-wrap, .about-image img {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/5;
    width: 100%;
}
.about-visual .img-wrap img, .about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.about-visual:hover .img-wrap img { transform: scale(1.05); }
.about-visual::before, .about-image::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 200px; height: 200px;
    background: linear-gradient(135deg, var(--brand-tint), var(--brand-mist));
    border-radius: var(--r-xl);
    z-index: -1;
}
.about-visual::after, .about-image::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 120px; height: 120px;
    background: linear-gradient(135deg, var(--warm), var(--cream));
    border-radius: var(--r-lg);
    z-index: -1;
}
.exp-badge {
    position: absolute;
    bottom: 40px; left: -50px;
    background: white;
    padding: 28px 32px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 18px;
    z-index: 2;
}
.exp-badge .num, .exp-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.exp-badge .text, .exp-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.exp-badge .text strong, .exp-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.about-content h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin: 18px 0 24px; color: var(--text); letter-spacing: -0.02em; }
.about-content p, .about-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 36px 0;
}
.about-feature {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--r-md);
    transition: var(--transition);
    border: 1px solid transparent;
}
.about-feature:hover {
    background: white;
    border-color: var(--brand-tint);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}
.about-feature .feat-icon, .feature-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.about-feature strong, .feature-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.95rem;
}
.about-feature span, .feature-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== PRODUCTS ===== */
.products { padding: 120px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.product-card {
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-tint);
}
.product-card .img-wrap, .product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--bg-soft);
}
.product-card .img-wrap img, .product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .img-wrap img, .product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-card .img-wrap::after, .product-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 31, 23, 0.4));
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .img-wrap::after, .product-card:hover .product-image::after {
    opacity: 1;
}
.product-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(23, 101, 52, 0.3);
    z-index: 1;
}
.product-info { padding: 28px; }
.product-info h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.product-info p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; line-height: 1.6; }
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 5px 0;
}
.product-features li::before {
    content: '✓';
    color: var(--brand);
    font-weight: 700;
    margin-left: 0;
    margin-right: -4px;
}
.btn-product, .product-info .btn-outline {
    width: 100%;
    padding: 12px;
    background: var(--bg-soft);
    color: var(--brand);
    border: 1px solid var(--brand-tint);
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
    text-decoration: none;
}
.btn-product:hover, .product-info .btn-outline:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* ===== PRODUCTION ===== */
.production { padding: 120px 0; background: var(--brand-deeper); color: white; position: relative; overflow: hidden; }
.production::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1), transparent 70%);
    border-radius: 50%;
}
.production::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(23, 101, 52, 0.4), transparent 70%);
    border-radius: 50%;
}
.production .section-tag, .production .section-subtitle {
    background: rgba(74, 222, 128, 0.1);
    color: var(--brand-glow);
    border-color: rgba(74, 222, 128, 0.2);
}
.production .section-tag::before { background: var(--brand-glow); }
.production .section-header h2 { color: white; }
.production .section-header p { color: rgba(255, 255, 255, 0.7); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}
.process-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-lg);
    padding: 36px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
    border-color: rgba(74, 222, 128, 0.3);
}
.process-step .step-number, .process-step .num {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--brand-glow), var(--brand-light));
    color: var(--brand-deeper);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border: 3px solid var(--brand-deeper);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.process-step .step-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(23, 101, 52, 0.2));
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    margin: 12px auto 20px;
    font-size: 2rem;
}
.process-step h3 { font-size: 1.1rem; color: white; margin-bottom: 10px; }
.process-step p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; margin: 0; }

/* ===== GALLERY ===== */
.gallery { padding: 120px 0; background: var(--bg); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--bg-soft);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 31, 23, 0.85));
    display: flex; align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span, .gallery-overlay .label {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== CERTIFICATIONS ===== */
.certifications { padding: 120px 0; background: var(--bg-soft); }
.cert-grid, .certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}
.cert-card {
    background: white;
    padding: 36px 24px;
    border-radius: var(--r-lg);
    text-align: center;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}
.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-tint);
}
.cert-card:hover::before { transform: scaleX(1); }
.cert-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--brand-mist), var(--brand-tint));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    color: var(--brand);
    transition: var(--transition);
    font-size: 1.75rem;
}
.cert-card:hover .cert-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    transform: rotate(8deg);
}
.cert-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.cert-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ===== CONTACT ===== */
.contact { padding: 120px 0; background: var(--brand-deeper); color: white; position: relative; overflow: hidden; }
.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
}
.contact .section-tag, .contact .section-subtitle {
    background: rgba(74, 222, 128, 0.1);
    color: var(--brand-glow);
    border-color: rgba(74, 222, 128, 0.2);
}
.contact .section-tag::before { background: var(--brand-glow); }
.contact .section-header h2 { color: white; }
.contact .section-header p { color: rgba(255, 255, 255, 0.7); }

.contact-inner, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2, .contact-info h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    font-size: 1rem;
    line-height: 1.7;
}

.contact-details, .contact-list { list-style: none; padding: 0; margin: 0; }
.contact-details li, .contact-list li {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-details li:last-child, .contact-list li:last-child { border-bottom: none; }
.contact-icon, .ci-icon {
    width: 48px; height: 48px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--brand-glow);
}
.contact-info-text strong, .ci-text strong {
    display: block;
    color: white;
    font-size: 0.8rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}
.contact-info-text a, .contact-info-text span,
.ci-text a, .ci-text span {
    color: white;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
}
.contact-info-text a:hover, .ci-text a:hover { color: var(--brand-glow); }

.contact-form {
    background: white;
    padding: 48px;
    border-radius: var(--r-xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.contact-form h3 { font-size: 1.6rem; margin-bottom: 8px; color: var(--text); font-weight: 700; }
.contact-form .form-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-soft);
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--brand);
    background: white;
    box-shadow: 0 0 0 4px rgba(23, 101, 52, 0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.site-footer { background: var(--brand-deeper); color: rgba(255, 255, 255, 0.7); padding: 80px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-brand, .footer-logo {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    padding: 10px 18px;
    border-radius: 14px;
    display: inline-flex;
}
.footer-brand img, .footer-logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}
.footer-brand .name, .footer-logo .footer-name {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}
.footer-col p { font-size: 0.9rem; margin-bottom: 20px; line-height: 1.8; color: rgba(255, 255, 255, 0.6); }
.footer-col h4 { color: white; font-size: 1.05rem; margin-bottom: 24px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-col ul a:hover {
    color: var(--brand-glow);
    transform: translateX(-4px);
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p { margin: 0; }

/* ===== PAGE HEADER (Inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--brand-mist) 0%, var(--brand-tint) 100%);
    padding: 160px 0 60px;
    text-align: center;
}
.page-header h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 12px; }
.page-header .breadcrumb { color: var(--text-muted); font-size: 0.95rem; }
.page-header .breadcrumb a { color: var(--brand); }

/* ===== SINGLE POST ===== */
.content-area { padding: 80px 0; }
.content-area .post-content {
    max-width: 800px;
    margin: 0 auto;
}
.post-content h2, .post-content h3, .post-content h4 { margin-top: 1.5em; }
.post-content img { border-radius: var(--r-md); margin: 24px 0; }
.post-content blockquote {
    border-inline-start: 4px solid var(--brand);
    padding-inline-start: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 200px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-404 h1 {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    line-height: 1;
}
.error-404 h2 { font-size: 1.5rem; margin-bottom: 16px; }
.error-404 p { color: var(--text-muted); margin-bottom: 32px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll, .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.in-view, .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner, .about-inner, .about-grid, .contact-inner, .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-visual, .hero-image { height: 500px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-navigation .nav-menu, .main-navigation #primary-menu {
        position: fixed;
        top: 80px; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
        align-items: stretch;
    }
    .main-navigation .nav-menu.active, .main-navigation #primary-menu.active {
        transform: translateY(0);
    }
    .nav-menu a, #primary-menu a { padding: 14px 20px; }
    .hero { padding: 110px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2.4rem; }
    .section { padding: 70px 0; }
    .section-header h2 { font-size: 1.85rem; }
    .about, .products, .production, .gallery, .certifications, .contact { padding: 70px 0; }
    .about-features { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
    .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
    .hero-stats { gap: 24px; }
    .hero-stat .value, .hero-stat .stat-value { font-size: 1.7rem; }
    .floating-card, .floating-badge { padding: 12px 16px; }
    .floating-card.tl, .floating-badge.top { right: 0; top: 16px; }
    .floating-card.bl, .floating-badge.bottom { left: 0; bottom: 60px; }
    .exp-badge { left: 0; padding: 16px 20px; }
    .exp-badge .num, .exp-num { font-size: 2.5rem; }
    .container { padding: 0 20px; }
}
