/*
Theme Name: ESPO Global
Theme URI: https://espo-global.com
Author: ESPO Global
Author URI: https://espo-global.com
Description: A professional B2B industrial website theme for ESPO Global Industries. Features a modern homepage with solution-based navigation, industry showcase, product catalog, and corporate pages. Inspired by leading B2B manufacturer websites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: espo-global
Tags: b2b, industrial, manufacturing, responsive, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --espo-primary: #1a3a5c;
    --espo-primary-dark: #0f2540;
    --espo-primary-light: #2d5a87;
    --espo-accent: #d4a017;
    --espo-accent-dark: #b8860b;
    --espo-text: #333333;
    --espo-text-light: #666666;
    --espo-text-lighter: #999999;
    --espo-bg: #ffffff;
    --espo-bg-light: #f5f7fa;
    --espo-bg-dark: #1a1a2e;
    --espo-border: #e0e4e8;
    --espo-success: #28a745;
    --espo-white: #ffffff;
    --espo-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --espo-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --espo-radius: 6px;
    --espo-radius-lg: 12px;
    --espo-transition: all 0.3s ease;
    --espo-font: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --espo-container: 1280px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--espo-font);
    color: var(--espo-text);
    background: var(--espo-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--espo-primary);
    text-decoration: none;
    transition: var(--espo-transition);
}

a:hover {
    color: var(--espo-accent);
}

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

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--espo-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--espo-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--espo-text-light);
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--espo-accent);
    margin: 15px auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espo-shadow);
    transition: var(--espo-transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: var(--espo-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 6px 0;
}

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

.header-top-info {
    display: flex;
    gap: 24px;
}

.header-top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top-info a {
    color: rgba(255, 255, 255, 0.8);
}

.header-top-info a:hover {
    color: var(--espo-accent);
}

.header-main {
    padding: 12px 0;
}

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

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

.site-logo .logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--espo-primary);
    letter-spacing: -0.5px;
}

.site-logo .logo-text span {
    color: var(--espo-accent);
}

.site-logo .logo-sub {
    font-size: 0.7rem;
    color: var(--espo-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: 4px;
}

.main-nav > ul > li > a {
    display: block;
    padding: 14px 18px;
    color: var(--espo-text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--espo-accent);
    transition: var(--espo-transition);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after {
    width: 24px;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
    color: var(--espo-primary);
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--espo-white);
    box-shadow: var(--espo-shadow-hover);
    border-radius: var(--espo-radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--espo-transition);
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--espo-text);
    font-size: 0.9rem;
    transition: var(--espo-transition);
}

.main-nav .sub-menu a:hover {
    background: var(--espo-bg-light);
    color: var(--espo-primary);
    padding-left: 26px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--espo-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--espo-transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--espo-accent);
    color: var(--espo-white);
}

.btn-primary:hover {
    background: var(--espo-accent-dark);
    color: var(--espo-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--espo-primary);
    border: 2px solid var(--espo-primary);
}

.btn-outline:hover {
    background: var(--espo-primary);
    color: var(--espo-white);
}

.btn-white {
    background: var(--espo-white);
    color: var(--espo-primary);
}

.btn-white:hover {
    background: var(--espo-accent);
    color: var(--espo-white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--espo-primary);
    border-radius: 2px;
    transition: var(--espo-transition);
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 37, 64, 0.85), rgba(26, 58, 92, 0.7));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: var(--espo-white);
    max-width: 650px;
    padding: 0 20px;
}

.hero-slide-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-slide-content .hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider-dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--espo-transition);
}

.hero-slider-dot.active {
    background: var(--espo-accent);
    width: 60px;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--espo-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--espo-transition);
    z-index: 10;
}

.hero-slider-arrow:hover {
    background: var(--espo-accent);
    border-color: var(--espo-accent);
}

.hero-slider-arrow.prev {
    left: 30px;
}

.hero-slider-arrow.next {
    right: 30px;
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */
.solutions-section {
    background: var(--espo-bg-light);
}

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

.solution-card {
    background: var(--espo-white);
    border-radius: var(--espo-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--espo-shadow);
    transition: var(--espo-transition);
    cursor: pointer;
}

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

.solution-card .icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--espo-primary), var(--espo-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--espo-white);
}

.solution-card:hover .icon-wrap {
    background: linear-gradient(135deg, var(--espo-accent), var(--espo-accent-dark));
}

.solution-card h3 {
    font-size: 1.3rem;
    color: var(--espo-primary);
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--espo-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.solution-card .read-more {
    color: var(--espo-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.solution-card .read-more:hover {
    gap: 10px;
}

/* ==========================================================================
   Industries Section
   ========================================================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    position: relative;
    height: 280px;
    border-radius: var(--espo-radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--espo-primary);
}

.industry-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.industry-card:hover .industry-card-bg {
    transform: scale(1.1);
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 37, 64, 0.9), rgba(26, 58, 92, 0.4));
    z-index: 1;
}

.industry-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: var(--espo-white);
}

.industry-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.industry-card-content p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ==========================================================================
   Advantages Section
   ========================================================================== */
.advantages-section {
    background: var(--espo-primary-dark);
    color: var(--espo-white);
}

.advantages-section .section-title h2 {
    color: var(--espo-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.advantage-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--espo-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.advantage-item .number .unit {
    font-size: 1.5rem;
}

.advantage-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================================================
   Featured Products
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--espo-white);
    border-radius: var(--espo-radius-lg);
    overflow: hidden;
    box-shadow: var(--espo-shadow);
    transition: var(--espo-transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--espo-shadow-hover);
}

.product-card-img {
    height: 220px;
    background: var(--espo-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--espo-primary-light);
    overflow: hidden;
}

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

.product-card-body .product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--espo-bg-light);
    color: var(--espo-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-card-body h3 {
    font-size: 1.2rem;
    color: var(--espo-primary);
    margin-bottom: 10px;
}

.product-card-body p {
    font-size: 0.9rem;
    color: var(--espo-text-light);
    margin-bottom: 16px;
}

.product-card-body .product-features {
    margin-bottom: 16px;
}

.product-card-body .product-features li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--espo-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card-body .product-features li::before {
    content: '\2713';
    color: var(--espo-accent);
    font-weight: bold;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-section {
    background: var(--espo-bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--espo-white);
    border-radius: var(--espo-radius-lg);
    overflow: hidden;
    box-shadow: var(--espo-shadow);
    transition: var(--espo-transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--espo-shadow-hover);
}

.news-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--espo-primary), var(--espo-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--espo-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card-body h3 {
    font-size: 1.1rem;
    color: var(--espo-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-body p {
    font-size: 0.9rem;
    color: var(--espo-text-light);
    margin-bottom: 12px;
}

.news-card-body .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--espo-accent);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--espo-primary), var(--espo-primary-dark));
    color: var(--espo-white);
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('') center/cover;
    opacity: 0.1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--espo-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--espo-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--espo-accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-item .icon {
    color: var(--espo-accent);
    flex-shrink: 0;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--espo-white);
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--espo-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Page Header (Inner Pages)
   ========================================================================== */
.page-header {
    margin-top: 88px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--espo-primary), var(--espo-primary-dark));
    color: var(--espo-white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb a:hover {
    color: var(--espo-accent);
}

.page-header .breadcrumb span {
    margin: 0 8px;
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-intro-text h2 {
    font-size: 2rem;
    color: var(--espo-primary);
    margin-bottom: 20px;
}

.about-intro-text p {
    color: var(--espo-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-intro-img {
    height: 400px;
    background: linear-gradient(135deg, var(--espo-primary), var(--espo-primary-light));
    border-radius: var(--espo-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem;
}

.about-stats {
    background: var(--espo-bg-light);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.about-stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--espo-accent);
}

.about-stat-item .label {
    font-size: 1rem;
    color: var(--espo-text-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--espo-border);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item .timeline-content {
    width: 45%;
    padding: 24px;
    background: var(--espo-white);
    border-radius: var(--espo-radius);
    box-shadow: var(--espo-shadow);
}

.timeline-item .timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--espo-accent);
    margin-bottom: 8px;
}

.timeline-item .timeline-content h3 {
    font-size: 1.1rem;
    color: var(--espo-primary);
    margin-bottom: 8px;
}

.timeline-item .timeline-content p {
    font-size: 0.9rem;
    color: var(--espo-text-light);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--espo-accent);
    border: 3px solid var(--espo-white);
    box-shadow: 0 0 0 2px var(--espo-accent);
}

/* ==========================================================================
   Products Page
   ========================================================================== */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--espo-border);
    border-radius: 30px;
    background: var(--espo-white);
    color: var(--espo-text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--espo-transition);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--espo-primary);
    border-color: var(--espo-primary);
    color: var(--espo-white);
}

.product-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

.product-detail-section:nth-child(even) {
    direction: rtl;
}

.product-detail-section:nth-child(even) > * {
    direction: ltr;
}

.product-detail-img {
    height: 350px;
    background: var(--espo-bg-light);
    border-radius: var(--espo-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--espo-primary-light);
}

.product-detail-text h2 {
    font-size: 1.8rem;
    color: var(--espo-primary);
    margin-bottom: 16px;
}

.product-detail-text p {
    color: var(--espo-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.product-detail-text ul {
    margin-bottom: 24px;
}

.product-detail-text ul li {
    padding: 6px 0;
    color: var(--espo-text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail-text ul li::before {
    content: '\25B6';
    color: var(--espo-accent);
    font-size: 0.7rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--espo-white);
    padding: 40px;
    border-radius: var(--espo-radius-lg);
    box-shadow: var(--espo-shadow);
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--espo-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--espo-primary);
    flex-shrink: 0;
}

.contact-info-item h3 {
    font-size: 1rem;
    color: var(--espo-primary);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--espo-text-light);
    line-height: 1.6;
}

.contact-form-wrap {
    background: var(--espo-white);
    padding: 40px;
    border-radius: var(--espo-radius-lg);
    box-shadow: var(--espo-shadow);
}

.contact-form-wrap h2 {
    font-size: 1.5rem;
    color: var(--espo-primary);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--espo-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--espo-border);
    border-radius: var(--espo-radius);
    font-size: 0.95rem;
    font-family: var(--espo-font);
    transition: var(--espo-transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--espo-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.map-section {
    margin-top: 50px;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: var(--espo-radius-lg);
    box-shadow: var(--espo-shadow);
}

/* ==========================================================================
   Single Post / News
   ========================================================================== */
.single-post-wrap {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-post-wrap .post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--espo-text-lighter);
    margin-bottom: 16px;
}

.single-post-wrap h1 {
    font-size: 2.2rem;
    color: var(--espo-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-post-wrap .post-hero {
    height: 350px;
    background: linear-gradient(135deg, var(--espo-primary), var(--espo-primary-light));
    border-radius: var(--espo-radius-lg);
    margin-bottom: 30px;
}

.single-post-wrap .post-content p {
    font-size: 1.05rem;
    color: var(--espo-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.single-post-wrap .post-content h2 {
    font-size: 1.5rem;
    color: var(--espo-primary);
    margin: 30px 0 16px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error404-wrap {
    text-align: center;
    padding: 120px 20px;
}

.error404-wrap h1 {
    font-size: 6rem;
    color: var(--espo-accent);
    font-weight: 800;
}

.error404-wrap h2 {
    font-size: 1.8rem;
    color: var(--espo-primary);
    margin-bottom: 16px;
}

.error404-wrap p {
    color: var(--espo-text-light);
    margin-bottom: 30px;
}

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

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

/* ==========================================================================
   Responsive
   ========================================================================== */
/* ==========================================================================
   Form Alerts
   ========================================================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--espo-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--espo-border);
    border-radius: var(--espo-radius);
    color: var(--espo-text);
    font-size: 0.9rem;
    transition: var(--espo-transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--espo-primary);
    color: var(--espo-white);
    border-color: var(--espo-primary);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0;
}

.search-field {
    padding: 10px 16px;
    border: 1px solid var(--espo-border);
    border-radius: var(--espo-radius) 0 0 var(--espo-radius);
    font-size: 0.9rem;
    flex: 1;
}

.search-submit {
    padding: 10px 16px;
    background: var(--espo-primary);
    color: var(--espo-white);
    border: none;
    border-radius: 0 var(--espo-radius) var(--espo-radius) 0;
    cursor: pointer;
    transition: var(--espo-transition);
}

.search-submit:hover {
    background: var(--espo-primary-light);
}

/* Footer Social Links */
.footer-social a:hover {
    background: var(--espo-accent) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .solutions-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industries-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--espo-white);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav > ul > li > a {
        padding: 14px 0;
        border-bottom: 1px solid var(--espo-border);
    }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .main-nav li:hover > .sub-menu {
        display: block;
    }

    .header-cta .btn {
        display: none;
    }

    .hero-slider {
        height: 450px;
    }

    .hero-slide-content h1 {
        font-size: 2rem;
    }

    .hero-slide-content p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .solutions-grid,
    .industries-grid,
    .products-grid,
    .news-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .about-intro,
    .contact-grid,
    .product-detail-section {
        grid-template-columns: 1fr;
    }

    .product-detail-section:nth-child(even) {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }

    .timeline-item .timeline-content {
        width: 100%;
    }

    .timeline-item::after {
        left: 20px;
    }

    .hero-slider-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-slide-content h1 {
        font-size: 1.6rem;
    }

    .hero-slide-content .hero-buttons {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}
