/* ============================================
   Lunoled - Dark Theme Stylesheet
   ============================================ */

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

:root {
    --green: #00d667;
    --green-dark: #00a851;
    --green-light: rgba(0, 214, 103, 0.12);
    --green-glow: rgba(0, 214, 103, 0.2);
    --green-border: rgba(0, 214, 103, 0.3);
    --black: #0a0a0a;
    --black-1: #111111;
    --black-2: #161616;
    --black-3: #1c1c1c;
    --black-4: #222222;
    --black-5: #2a2a2a;
    --gray-text: #a0a0a0;
    --gray-muted: #707070;
    --white: #ffffff;
    --text: #e8e8e8;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-green: 0 4px 24px rgba(0, 214, 103, 0.25);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-green-outline {
    background: transparent;
    color: var(--green);
    border-color: var(--green-border);
}

.btn-green-outline:hover {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}

.btn-full { width: 100%; }

/* --- Section Headers --- */
.section-tag {
    display: inline-block;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-text);
    max-width: 640px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* --- Top Bar --- */
.top-bar {
    background: var(--black-1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--black-3);
}

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

.top-bar-left { display: flex; gap: 24px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 6px; }

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--black-3);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 300;
    color: var(--white);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--green);
    border-radius: 50%;
    color: var(--black);
}

.logo-icon svg { width: 20px; height: 20px; }
.logo-text strong { font-weight: 700; color: var(--green); }

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item.nav-dropdown > .nav-link::after {
    display: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after,
.current-menu-item > .nav-link::after { width: 100%; }

.nav-link:hover,
.nav-link.active,
.current-menu-item > .nav-link { color: var(--green); }

.menu-item-has-children > .nav-link .icon-xs { transition: var(--transition); }
.menu-item-has-children:hover > .nav-link .icon-xs { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown,
.menu-item-has-children { position: relative; }

.dropdown-menu,
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--black-2);
    min-width: 280px;
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--black-4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 12px;
}

.nav-dropdown:hover .dropdown-menu,
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a,
.sub-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text);
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu a:hover,
.sub-menu a:hover {
    background: var(--black-4);
    color: var(--green);
}

.menu-toggle,
.nav-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
}

.menu-toggle svg,
.nav-close svg { width: 28px; height: 28px; }

/* --- Page Banner (Inner Pages) --- */
.page-banner {
    position: relative;
    padding: 140px 0 60px;
    background: var(--black-1);
    border-bottom: 1px solid var(--black-3);
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, var(--green-light) 0%, transparent 60%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-muted);
}

.breadcrumb a { color: var(--gray-text); transition: var(--transition); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--green); }

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 720px;
}

.hero-tag {
    display: inline-block;
    background: var(--green-light);
    border: 1px solid var(--green-border);
    color: var(--green);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    width: fit-content;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--white);
}

.hero-title span { color: var(--green); }

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    max-width: 560px;
}

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

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover { background: var(--green); border-color: var(--green); color: var(--black); }
.hero-arrow svg { width: 24px; height: 24px; }
.hero-prev { left: 32px; }
.hero-next { right: 32px; }

/* --- Stats Bar --- */
.stats {
    background: var(--black-1);
    padding: 48px 0;
    border-top: 1px solid var(--black-3);
    border-bottom: 1px solid var(--black-3);
}

.stats-grid {
    display: grid;
    /* auto-fit so the row stays balanced whatever number of stats is rendered */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: var(--black-4);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- About Section --- */
.about { background: var(--black); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image { position: relative; overflow: hidden; }

.about-image > img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.about-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--green);
    color: var(--black);
    padding: 20px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-green);
    text-align: center;
}

.about-badge-number { font-size: 42px; font-weight: 800; line-height: 1; }
/* the badge normally holds a short number; shrink it when it holds words instead */
.about-badge-word { font-size: 24px; letter-spacing: 0.5px; }
.about-badge-text { font-size: 13px; margin-top: 4px; opacity: 0.8; }

.about-content .section-title { margin-bottom: 20px; }

.about-text {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature { display: flex; align-items: flex-start; gap: 16px; }

.about-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--green-light);
    border: 1px solid var(--green-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.about-feature-icon svg { width: 22px; height: 22px; }
.about-feature h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: var(--white); }
.about-feature p { font-size: 13px; color: var(--gray-text); }

/* --- Products Section --- */
.products { background: var(--black-1); }

.product-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    background: var(--black-3);
    border: 1px solid var(--black-5);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover { border-color: var(--green-border); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--black); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-border);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--black-3);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 214, 103, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-inquire {
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid var(--black);
    border-radius: 50px;
    transition: var(--transition);
}

.product-inquire:hover { background: var(--black); color: var(--green); }

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin: 6px 0 8px;
    color: var(--white);
}

.product-desc {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.product-specs { display: flex; gap: 8px; flex-wrap: wrap; }

.product-specs span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    background: var(--black-4);
    padding: 4px 10px;
    border-radius: 4px;
}

.products-cta { text-align: center; margin-top: 48px; }

/* --- Projects Section --- */
.projects { background: var(--black); }

.projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid var(--black-4);
}

.project-card-large { grid-row: span 2; aspect-ratio: 4/5; }

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.06); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
}

.project-location {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.project-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.project-card-large .project-title { font-size: 24px; }
.project-desc { font-size: 13px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.project-card-large .project-desc { font-size: 14px; }

/* --- News Section --- */
.news { background: var(--black-1); }

.news-grid {
    display: grid;
    /* Three across, not four: at four the cards were ~290px and the thumbnail
       read as a stamp above a block of text. Three gives each card ~395px, and
       with the taller image ratio below the picture now carries the card. */
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-border);
}

/* 3/2 rather than 16/9 - the wider ratio left the image shorter than the text
   block underneath it, which is what made the cards feel thin. */
.news-image { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--black-3); }

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--green);
    color: var(--black);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--white);
}

/* Held to two lines: a long excerpt used to push the card taller than the
   image again, and uneven excerpt lengths left the "Read More" links ragged. */
.news-excerpt {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    transition: var(--transition);
}

.news-link:hover { color: var(--green-dark); }

/* --- Contact Section --- */
.contact { background: var(--black); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-desc { font-size: 15px; color: var(--gray-text); line-height: 1.8; margin: 16px 0 32px; }

.contact-items { display: flex; flex-direction: column; gap: 24px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--green-light);
    border: 1px solid var(--green-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.contact-icon svg { width: 24px; height: 24px; }
.contact-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: var(--white); }
.contact-item p { font-size: 14px; color: var(--gray-text); }

.contact-form-wrap {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font);
    border: 1px solid var(--black-5);
    border-radius: var(--radius);
    background: var(--black-3);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-muted); }

.form-group input[readonly] {
    background: var(--black-2);
    color: var(--gray-text);
    cursor: default;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    min-height: 20px;
}

/* --- Product Detail Page --- */
.product-detail-hero {
    background: var(--black-1);
    padding: 40px 0;
    border-bottom: 1px solid var(--black-3);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Square stage: the image is never cropped, non-square shots are letterboxed */
.product-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--black-4);
    aspect-ratio: 1/1;
    background: var(--black-3);
    padding: 24px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--black-5);
    background: var(--black-3);
    padding: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--green); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-detail-info .product-category { font-size: 13px; margin-bottom: 8px; }
.product-detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.product-detail-desc {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Inquiry card (right column) */
.inquiry-card {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.inquiry-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.inquiry-text {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.inquiry-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.inquiry-actions .btn { width: 100%; }

.inquiry-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--black-4);
}

.inquiry-social-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-muted);
}

/* Product Features */
.product-features {
    background: var(--black);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    /* 4 across: the only set using this class (Our Values on the About page) has
       exactly 4 items, and 3 columns left a ragged 3+1. Revisit if the count changes. */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover { border-color: var(--green-border); transform: translateY(-4px); }

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--green-light);
    border: 1px solid var(--green-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.feature-icon svg { width: 28px; height: 28px; }
.feature-item h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.feature-item p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }

/* Related Products */
.related-products { background: var(--black-1); padding: 60px 0; }
.related-products .product-grid { grid-template-columns: repeat(4, 1fr); }

/* --- About Page --- */
.about-page { background: var(--black); }
.about-page-content { max-width: 800px; margin: 0 auto; }
.about-page-content p { font-size: 16px; color: var(--gray-text); line-height: 1.8; margin-bottom: 20px; }

.timeline {
    position: relative;
    margin: 48px 0;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--black-5);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--black);
}

.timeline-year { font-size: 18px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.timeline-text { font-size: 14px; color: var(--gray-text); line-height: 1.7; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
}

.value-card:hover { border-color: var(--green-border); transform: translateY(-4px); }
.value-card .feature-icon { margin-bottom: 20px; }
.value-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--gray-text); line-height: 1.7; }

/* --- Certifications (About Page) --- */
.cert-grid {
    display: grid;
    /* Fixed 5 across on desktop: the 10 scans land as two even rows of five.
       auto-fit was giving 6 columns here, which read as a ragged 6+4. */
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* A short last row is re-centred rather than left ragged, so adding a
   certificate that does not make a full row of five still looks deliberate.
   Scoped to the 5-column range: in the 2-column tablet layout these would
   push a phantom third track into the grid. Rows of three or four are left
   alone - they cannot be centred across five columns without an odd gap. */
@media (min-width: 993px) {
    .cert-item:nth-child(5n + 1):last-child { grid-column-start: 3; }
    .cert-item:nth-child(5n + 1):nth-last-child(2) { grid-column-start: 2; }
}

.cert-item {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: var(--radius);
    /* tight padding so the scan itself gets as much of the cell as possible */
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.cert-item:hover { border-color: var(--green-border); transform: translateY(-4px); }

/* The scans are white documents, so they read as paper against the dark theme */
.cert-item img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--white);
    border-radius: 4px;
}

.cert-name {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    /* captions differ in length; reserve two lines so the rows stay aligned */
    min-height: 40px;
}

/* --- Projects Page --- */
.projects-page { background: var(--black); }
.projects-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projects-page-grid .project-card { aspect-ratio: 4/3; }
.projects-page-grid .project-card.large { grid-column: span 2; aspect-ratio: 16/9; }

/* --- News Page --- */
.news-page { background: var(--black); }
.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-page-grid .news-card { grid-column: span 1; }

/* The newest article leads the page at double width, so the listing opens on a
   large image instead of a row of equal thumbnails. */
.news-page-grid .news-card.featured { grid-column: span 2; }
.news-page-grid .news-card.featured .news-image { aspect-ratio: 21/9; }
.news-page-grid .news-card.featured .news-title { font-size: 24px; }
.news-page-grid .news-card.featured .news-excerpt { font-size: 15px; -webkit-line-clamp: 3; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--black-5);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-text);
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--black);
}

/* --- Contact Page --- */
.contact-page { background: var(--black); }
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.map-wrap {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--black-4);
}

.map-wrap iframe { width: 100%; height: 400px; border: 0; filter: invert(0.9) hue-rotate(180deg); }

/* --- Footer --- */
.footer {
    background: var(--black-1);
    color: var(--gray-text);
    padding: 64px 0 24px;
    border-top: 1px solid var(--black-3);
}

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

.logo-footer { color: var(--white); margin-bottom: 16px; }

.footer-about { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }

.footer-social,
.product-social { display: flex; gap: 12px; }

.footer-social a,
.product-social a {
    width: 36px;
    height: 36px;
    background: var(--black-3);
    border: 1px solid var(--black-5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    transition: var(--transition);
}

.footer-social a:hover,
.product-social a:hover { background: var(--green); color: var(--black); border-color: var(--green); transform: translateY(-2px); }

.footer-social svg,
.product-social svg { width: 18px; height: 18px; }

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--gray-text); transition: var(--transition); }
.footer-links a:hover { color: var(--green); padding-left: 4px; }

.footer-contact li { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }

.footer-cert {
    /* 5 badges do not fit the ~297px contact column, and flex-wrap left ENEC
       stranded alone on line 2. A 3-column grid gives a deliberate 3+2:
       the three ISO systems, then the two product marks. */
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 8px;
    margin-top: 16px;
}

.cert-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--black-5);
    border-radius: 4px;
    color: var(--gray-muted);
}

.footer-bottom {
    border-top: 1px solid var(--black-3);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-muted);
}

.footer-bottom a { color: var(--gray-text); transition: var(--transition); }
.footer-bottom a:hover { color: var(--green); }

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--green);
    color: var(--black);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-green);
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-dark); color: var(--white); transform: translateY(-4px); }
.back-to-top svg { width: 24px; height: 24px; }

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-page-grid { grid-template-columns: repeat(2, 1fr); }
    .news-page-grid .news-card.featured { grid-column: span 2; }
    .hero-title { font-size: 52px; }
    .projects-page-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-page-grid .project-card.large { grid-column: span 2; }
}

@media (max-width: 992px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 32px; }
    .hero-title { font-size: 44px; }
    .hero-desc { font-size: 16px; }
    .page-banner h1 { font-size: 32px; }

    .about-grid,
    .contact-grid,
    .contact-page-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Stacked: keep the square stage from swallowing the viewport */
    .product-gallery-main { max-width: 520px; margin: 0 auto; }
    .product-gallery-thumbs { justify-content: center; }

    .about-badge { right: 12px; bottom: 12px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .stat-item:nth-child(2)::after { display: none; }

    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .related-products .product-grid { grid-template-columns: repeat(2, 1fr); }

    .projects-grid { grid-template-columns: 1fr 1fr; }
    .project-card-large { grid-row: span 1; aspect-ratio: 4/3; }

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

    /* 4 items: 2x2 reads better than one tall column of four */
    .features-grid { grid-template-columns: repeat(2, 1fr); }

    /* 10 scans: 2 columns keeps every row full, unlike 3 (which leaves a stray) */
    .cert-grid { grid-template-columns: repeat(2, 1fr); }

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

    /* Mobile Nav */
    .menu-toggle { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--black-2);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right 0.4s ease;
        z-index: 1001;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        border-left: 1px solid var(--black-4);
    }

    .nav.open { right: 0; }

    .nav-close { display: flex; position: absolute; top: 24px; right: 24px; }

    .nav-link { font-size: 16px; padding: 8px 0; width: 100%; justify-content: space-between; }
    .nav-dropdown { width: 100%; }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: transparent;
    }

    .nav-dropdown.open .dropdown-menu { max-height: 500px; }
    .hero-arrow { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .section-title { font-size: 26px; }
    .container { padding: 0 16px; }
    .top-bar { display: none; }

    .hero { height: 90vh; min-height: 520px; }
    .hero-title { font-size: 36px; }
    .hero-desc { font-size: 15px; }
    .hero-buttons { flex-direction: column; }
    .btn { padding: 12px 24px; font-size: 14px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stat-number { font-size: 36px; }
    .stat-item::after { display: none !important; }

    .about-features { gap: 16px; }
    .about-feature-icon { width: 40px; height: 40px; }

    .product-filter { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }

    .product-grid, .related-products .product-grid { grid-template-columns: 1fr; }
    .projects-grid, .projects-page-grid { grid-template-columns: 1fr; }
    .news-grid, .news-page-grid { grid-template-columns: 1fr; }
    .news-page-grid .news-card.featured { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .contact-form-wrap { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-tag { font-size: 11px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item::after { display: none !important; }
    .about-badge { right: 8px; bottom: 8px; padding: 14px 18px; }
    .about-badge-number { font-size: 32px; }
    .page-banner h1 { font-size: 26px; }
    /* too narrow for two cards side by side once the viewport is phone-sized */
    .features-grid, .cert-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Product Detail (.pro-main) - Black theme adapted
   ============================================ */
.pro-main {
    font-size: 16px;
    background: var(--black);
    color: var(--text);
    padding: 40px 0;
}
.pro-main *,
.pro-main *::before,
.pro-main *::after {
    box-sizing: border-box;
}
.pro-main .auto-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: hidden;
}
.pro-main .pd30 { height: 30px; clear: both; }
.pro-main .cl { clear: both; }
.pro-main .ce { float: left; padding-left: 0; padding-right: 0; }
.pro-main .ce li {
    list-style: none;
    float: left;
    margin-right: 3px;
    margin-bottom: 3px;
    border-radius: 6px;
    overflow: hidden;
}
.pro-main .ce li:hover { box-shadow: 0 4px 20px rgba(0, 214, 103, 0.2); }
.pro-main .ce li img { max-width: 100%; height: auto; border-radius: 6px; }
.pro-main .ce2 { width: 100%; float: left; }
.pro-main .ce2 li { list-style: none; float: left; margin-right: 0.5%; border-radius: 6px; overflow: hidden; }
.pro-main .ce2 li:hover { box-shadow: 0 4px 20px rgba(0, 214, 103, 0.2); }
.pro-main h1 { color: var(--white); margin: 30px auto; font-size: 1.75rem; font-weight: bold; }
.pro-main h2 { color: var(--green); margin: 30px auto; font-size: 1.5rem; font-weight: bold; }
.pro-main h3 { color: var(--green); margin: 30px auto; font-weight: bold; font-size: 1.2rem; }
.pro-main p { color: var(--gray-text); line-height: 1.8; }
.pro-main table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', Consolas, sans-serif;
    border-radius: 8px;
    overflow: hidden;
    float: none !important;
}
.pro-main tr td {
    line-height: 200%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 6px 10px;
}
.pro-main .table-title {
    background: var(--green-dark);
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
}
.pro-main .table-title .br { line-height: 100%; }
.pro-main .tr2 { background: var(--black-2); }
.pro-main tr:first-child td { border-top: none; }
.pro-main tr:last-child td { border-bottom: none; }
.pro-main table img { max-width: 100%; height: auto; }
.pro-main .details li {
    list-style: none;
    float: left;
    padding-right: 10px;
    padding-left: 10px;
}
.pro-main .details li p {
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.pro-main .details li img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 100%;
}
.pro-main .details li img:hover {
    border-color: var(--green-border);
    box-shadow: 0 4px 20px rgba(0, 214, 103, 0.2);
}
.pro-main img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}
.pro-main .col-lg-12,
.pro-main .col-md-12,
.pro-main .col-sm-12 {
    width: 100%;
    float: none;
    padding: 0;
    margin: 0;
}
.pro-main ul.list-paddingleft-2 { padding-left: 0; margin: 0; }
.pro-main > .auto-container > div[itemprop="description"] > *:last-child {
    margin-bottom: 0;
}
@media only screen and (max-width: 991px) {
    .pro-main .ce li { float: none; }
    .pro-main .details li { float: none; }
}
