/* Global Reset & Variables */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-glow: rgba(234, 88, 12, 0.2);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f9fafb;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --bg-grey: #f3f4f6;
    --border: #e5e7eb;
    --gradient-hero: linear-gradient(to bottom, #eff6ff 0%, #ffffff 100%);
    --gradient-accent: linear-gradient(90deg, #ea580c, #f97316);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 12px var(--accent-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.site-header {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--border);
    padding: 16px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--accent);
}

.main-nav .nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-item:hover .nav-title,
.nav-item.active .nav-title {
    color: var(--accent);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-body);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary-dark);
}

.text-gradient {
    color: var(--primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 500;
}

.btn-hero-cta {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.3);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.trust-item:hover {
    background: white;
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.trust-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* Filter Pillars */
.controls-wrapper {
    margin-bottom: 40px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.filter-count {
    opacity: 0.6;
    margin-left: 4px;
    font-size: 0.75rem;
}

/* Product Grid System */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Remove special sizing - all cards same size */
.listing-item:nth-child(1),
.listing-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.listing-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.listing-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.listing-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
    /* Dark background for info cards */
}

/* All images same height */
.listing-item:nth-child(1) .listing-image {
    height: 200px;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.img-placeholder::before {
    content: "\f275";
    /* fa-industry */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 3rem;
    opacity: 0.2;
}

.thumbnail .img-placeholder::before {
    font-size: 1.5rem;
}

/* Watermark Overlay System */
.listing-image,
.main-image-container {
    position: relative;
    overflow: hidden;
}

.listing-image::after,
.main-image-container::after {
    content: "YB CHEMICAL | MATERIAL SOLUTIONS";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 4px;
    width: 150%;
    text-align: center;
}

/* Detail Page specific container adjustment */
.main-image-container {
    width: 100%;
    height: 500px;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0f172a;
    /* Consistent background for detail page */
}

/* Branded Corner Badge */
.thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary);
}

.brand-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.brand-badge i {
    color: var(--accent);
}

.listing-image .tag {
    z-index: 4;
}

.tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-details {
    padding: 24px;
}

.listing-details .category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.listing-details h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.listing-details .model {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.meta i {
    margin-right: 6px;
    color: #94A3B8;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94A3B8;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Technical Data Page Styles */
.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.tds-table-container {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.tds-table {
    width: 100%;
    border-collapse: collapse;
}

.tds-table th {
    background: #F8FAFC;
    color: var(--primary);
    font-weight: 700;
    text-align: left;
    padding: 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.tds-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.tds-table tr:last-child td {
    border-bottom: none;
}

.download-btn {
    background: #F1F5F9;
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Page Header */
.plants-hero {
    min-height: 300px;
    padding: 60px 0;
}