/* assets/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #1a1a1a;       /* Dark Neutral Text/Headings */
    --accent-color: #6b9e14;        /* Opalmotion Primary Green */
    --accent-green-dark: #4f7a0d;   /* Opalmotion Darker Green Header Card */
    --accent-red: #d98829;          /* Opalmotion Warm Orange/Gold Button */
    --text-dark: #333333;           /* Clean dark text */
    --text-muted: #666666;          /* Muted body text */
    --bg-light: #f9f9f9;            /* Soft light background */
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);

    --border-radius-soft: 8px;
    --border-radius-card: 12px;
    --border-radius-pill: 50px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Common Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #0087bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 162, 226, 0.3);
}

.btn-red {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-red:hover {
    background-color: #c2000c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

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

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

/* Top bar and Navigation */
.top-bar {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 101;
}

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

.top-bar-info {
    display: flex;
    gap: 1.5rem;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-lang {
    display: flex;
    gap: 1rem;
}

.top-bar-lang a {
    color: #64748b;
}

.top-bar-lang a.active, .top-bar-lang a:hover {
    color: var(--accent-color);
    font-weight: 600;
}

header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* When page has hero slider, header sits over it */
body.has-hero .top-bar {
    position: relative;
    background-color: #f8fafc;
}

body.has-hero header {
    position: sticky;
    top: 0;
}

/* Scrolled state */
header.scrolled {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

header .nav-links a {
    color: var(--text-dark);
}

header .logo img {
    filter: none;
}

header .menu-toggle {
    color: var(--text-dark);
}

/* Non-hero pages: solid header */
body:not(.has-hero) .top-bar {
    background-color: #f8fafc;
    position: relative;
}

body:not(.has-hero) header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--accent-color);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.has-hero header:not(.scrolled) .logo img {
    filter: none;
}

body:not(.has-hero) .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}

body:not(.has-hero) .menu-toggle {
    color: var(--primary-color);
}

/* Slider Section */
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
    background-color: var(--primary-color);
    margin-top: 0;
}

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

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 32, 56, 0.85) 0%, rgba(15, 32, 56, 0.4) 60%, rgba(15, 32, 56, 0.1) 100%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: var(--bg-white);
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.15;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active, .dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Feature/Highlights Section */
.highlights-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Highlights / Why Choose Nexa Section - Light Mode */
.highlights-section {
    padding: 5.5rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.highlights-section::before {
    display: none;
}

.highlights-section .section-header h2 {
    color: var(--primary-color);
    font-size: 2.4rem;
    font-weight: 700;
}

.highlights-section .section-header h2 span {
    color: var(--accent-color);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
}

.highlights-section .section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.highlight-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2.5rem 2rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.4s ease;
}

.highlight-card.card-blue::before {
    background: var(--accent-color);
}

.highlight-card.card-purple::before {
    background: #8b5cf6;
}

.highlight-card.card-gold::before {
    background: var(--accent-red);
}

.highlight-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-blue .card-badge {
    background: rgba(107, 158, 20, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(107, 158, 20, 0.3);
}

.card-purple .card-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-gold .card-badge {
    background: rgba(217, 136, 41, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(217, 136, 41, 0.3);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.icon-blue {
    background: var(--accent-color);
    color: #ffffff;
}

.icon-purple {
    background: #8b5cf6;
    color: #ffffff;
}

.icon-gold {
    background: var(--accent-red);
    color: #ffffff;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.05);
}

.highlight-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer-tag {
    font-size: 0.825rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.card-blue .card-footer-tag { color: var(--accent-color); }
.card-purple .card-footer-tag { color: #8b5cf6; }
.card-gold .card-footer-tag { color: var(--accent-red); }

/* Stats Counter Bar */
.stats-counter-bar {
    position: relative;
    z-index: 2;
    margin-top: 3.5rem;
    padding: 2rem 2.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

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

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* Product Catalog Layout */
.products-section {
    padding: 5rem 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.sidebar {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: block;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    color: var(--text-dark);
}

.category-list a:hover, .category-list a.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.search-box {
    margin-bottom: 2rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1.2rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 162, 226, 0.15);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.product-img {
    position: relative;
    padding-top: 75%;
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Product Detail Page */
.product-detail {
    padding: 5rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-gallery {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-specs-tabs {
    margin-top: 3rem;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.tab-content {
    display: none;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
}

.tab-content.active {
    display: block;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.spec-table th, .spec-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.spec-table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 700;
    width: 30%;
}

/* Interactive Forms styling (Contact & Quote) */
.inquiry-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-red);
    box-shadow: var(--shadow-lg);
}

.inquiry-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-soft);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 162, 226, 0.15);
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius-soft);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Contact page specifics */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 0;
}

.contact-info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 24px;
}

.contact-info-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.contact-info-text p {
    color: var(--text-muted);
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 300px;
    background: #e2e8f0;
}

/* Footer Section */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col p {
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-details li {
    display: flex;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .products-layout, .product-detail-grid, .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--border-color);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
