/* ============================================================
   MAIN.CSS — EazyPCB Theme
   Global reset, layout, typography, components, utilities
   ============================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--color-brand-dark);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-primary);
}

/* Screen Reader */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================================
   LAYOUT
   ============================================================ */

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

.section {
    padding-block: var(--space-20);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: #fff;
}

.section--light {
    background-color: var(--color-bg-light);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section__header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--space-16);
}

.section__eyebrow {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: var(--space-3);
}

.section__eyebrow--light {
    color: var(--color-accent);
}

.section__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.section__title--light {
    color: #fff;
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

.section__subtitle--light {
    color: rgba(255, 255, 255, 0.7);
}

.section__header--light {
    color: #fff;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 2px;
}

/* Primary */
.btn--primary {
    background-color: var(--color-brand);
    color: #fff;
    border-color: var(--color-brand);
}

.btn--primary:hover {
    background-color: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Ghost */
.btn--ghost {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border-dark);
}

.btn--ghost:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

/* Outline */
.btn--outline {
    background-color: transparent;
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.btn--outline:hover {
    background-color: var(--color-brand);
    color: #fff;
}

/* White (for dark backgrounds) */
.btn--white {
    background-color: #fff;
    color: var(--color-brand);
    border-color: #fff;
}

.btn--white:hover {
    background-color: var(--color-brand-light);
    border-color: var(--color-brand-light);
    color: var(--color-brand-dark);
}

/* Sizes */
.btn--sm {
    padding: 0.4rem 0.875rem;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-medium);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    height: var(--header-height);
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo-link {
    display: flex;
    align-items: center;
}

.site-header__logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Nav */
.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-nav__menu li a {
    display: block;
    padding: var(--space-2) calc(var(--space-3) * 0.75);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.site-nav__menu li a:hover,
.site-nav__menu li.current-menu-item > a,
.site-nav__menu li.current_page_item > a {
    color: var(--color-brand);
    background-color: var(--color-brand-light);
}

/* ---- Dropdown (sub-menu) ---- */
.site-nav__menu li {
    position: relative;
}

/* Parent item with children gets a caret */
.site-nav__menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.6;
    transition: transform 0.2s;
}

.site-nav__menu li.menu-item-has-children:hover > a::after,
.site-nav__menu li.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
}

/* The dropdown panel */
.site-nav__menu .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.375rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 500;
    pointer-events: none;
}

/* Show on hover (desktop) */
.site-nav__menu li.menu-item-has-children:hover > .sub-menu,
.site-nav__menu li.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Sub-menu links */
.site-nav__menu .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 7px;
    transition: all 0.12s;
    white-space: nowrap;
}

.site-nav__menu .sub-menu li a:hover {
    color: var(--color-brand);
    background: var(--color-brand-light);
}

/* Arrow connector so mouse can move to dropdown without it closing */
.site-nav__menu li.menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

/* Header Actions */
.site-header__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Mobile Toggle */
.site-header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
}

.site-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-medium);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.75);
}

/* Footer Logo */
.footer-logo img {
    /* Green logo on dark bg — invert to white then tint green */
    filter: brightness(0) saturate(100%) invert(1);
    opacity: 0.9;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo:hover img {
    opacity: 1;
}

/* Footer Top */
.footer-top {
    padding-block: var(--space-16) var(--space-12);
}

.footer-top__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: var(--space-12);
}

.footer-col--brand {
    padding-right: var(--space-8);
}

.footer-col__desc {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.6);
}

.footer-col__title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--space-4);
}

.footer-col__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col__list li a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.footer-col__list li a:hover {
    color: #fff;
}

.footer-col__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
}

.footer-col__list--contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-col__list--contact a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-col__list--contact a:hover {
    color: #fff;
}

/* Social */
.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition);
}

.footer-social__link:hover {
    background-color: var(--color-brand);
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: var(--space-5);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-bottom__copy {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom__menu {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom__menu li a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.footer-bottom__menu li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
    background-color: var(--color-primary);
    padding-block: var(--space-10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stats-bar__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stats-bar__number {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stats-bar__plus,
.stats-bar__unit {
    font-size: 0.65em;
    color: var(--color-accent);
    font-weight: var(--weight-bold);
}

.stats-bar__label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    font-weight: var(--weight-medium);
    letter-spacing: 0.01em;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.feature-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-medium);
}

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

.feature-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-5);
}

.feature-card__icon svg {
    width: 100%;
    height: 100%;
}

.feature-card__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.feature-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.service-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-medium);
    overflow: hidden;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.service-card__number {
    position: absolute;
    top: var(--space-6);
    right: var(--space-8);
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    letter-spacing: -0.04em;
    user-select: none;
}

.service-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-5);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: #fff;
    margin-bottom: var(--space-3);
}

.service-card__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}

.service-card__specs {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.service-card__specs li {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    padding-left: var(--space-4);
    position: relative;
}

.service-card__specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-brand);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-accent);
    transition: all var(--transition);
}

.service-card__link:hover {
    color: #fff;
    gap: var(--space-2);
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    background: linear-gradient(135deg, var(--color-brand-light) 0%, #CCFBF1 100%);
}

.cta-section__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-16);
    align-items: center;
}

.cta-section__title {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    max-width: 560px;
}

.cta-section__desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    max-width: 520px;
    margin-bottom: var(--space-8);
}

.cta-section__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cta-section__badges {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-sm);
    min-width: 220px;
}

.cert-badge__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.cert-badge__icon svg {
    width: 100%;
    height: 100%;
}

.cert-badge strong {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

.cert-badge span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================================
   PAGE CONTENT (generic pages)
   ============================================================ */

.page-content {
    padding-block: var(--space-16);
    min-height: 60vh;
}

.page-content--center {
    display: flex;
    align-items: center;
}

.page-article {
    max-width: 800px;
    margin-inline: auto;
}

.page-article__header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.page-article__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.02em;
}

.page-article__body {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.entry-content p {
    margin-bottom: var(--space-4);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
    padding-block: var(--space-3);
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.breadcrumb__link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.breadcrumb__link:hover {
    color: var(--color-brand);
}

.breadcrumb__separator {
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.breadcrumb__current {
    font-size: var(--text-sm);
    color: var(--color-text);
    font-weight: var(--weight-medium);
}

/* ============================================================
   BLOG / POSTS GRID
   ============================================================ */

.archive-header {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.archive-header__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.02em;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.post-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-medium);
}

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

.post-card__thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card__body {
    padding: var(--space-6);
}

.post-card__date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-2);
}

.post-card__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

.post-card__title a {
    color: var(--color-primary);
}

.post-card__title a:hover {
    color: var(--color-brand);
}

.post-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
    line-height: var(--leading-relaxed);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}

/* ============================================================
   404 PAGE
   ============================================================ */

.error-404 {
    text-align: center;
    padding-block: var(--space-20);
    max-width: 560px;
    margin-inline: auto;
}

.error-404__svg {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

.error-404__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.error-404__desc {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.error-404__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   NO RESULTS
   ============================================================ */

.no-results {
    text-align: center;
    padding-block: var(--space-16);
}

.no-results__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.no-results__desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

/* ============================================================
   RESPONSIVE — TABLET ( ≤ 1024px )
   ============================================================ */

@media (max-width: 1024px) {
    .footer-top__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

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

    .cta-section__inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .cta-section__badges {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cert-badge {
        min-width: 180px;
    }
}

@media (max-width: 900px) {
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

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

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

/* ============================================================
   RESPONSIVE — MOBILE ( ≤ 768px )
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }

    .section {
        padding-block: var(--space-12);
    }

    /* Header */
    .site-header__actions {
        display: none;
    }

    .site-header__toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
        z-index: 99;
        justify-content: flex-start;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav__menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: var(--space-1);
    }

    .site-nav__menu li a {
        padding: var(--space-3) var(--space-4);
    }

    /* Mobile dropdown */
    .site-nav__menu li.menu-item-has-children > a::after {
        float: right;
        margin-top: 4px;
    }

    .site-nav__menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--color-gray-50);
        border-left: 3px solid var(--color-brand-light);
        margin: 0.25rem 0 0.25rem 1rem;
        padding: 0.25rem 0;
        pointer-events: auto;
        /* Hidden by default on mobile, shown when .is-open */
        display: none;
    }

    .site-nav__menu li.menu-item-has-children.is-open > .sub-menu {
        display: flex;
    }

    .site-nav__menu .sub-menu li a {
        font-size: 0.875rem;
        padding: 0.4rem 0.875rem;
        color: var(--color-text-muted);
    }

    /* Stats */
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Features */
    .features__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-col--brand {
        padding-right: 0;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

    /* CTA */
    .cta-section__badges {
        flex-direction: column;
    }

    .cert-badge {
        min-width: auto;
    }

    /* Posts */
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-bar__grid {
        grid-template-columns: 1fr 1fr;
    }

    .error-404__actions,
    .cta-section__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-404__actions .btn,
    .cta-section__actions .btn {
        text-align: center;
        justify-content: center;
    }
}

/* ============================================================
   QUOTE MODAL
   ============================================================ */

/* ---- Keyframes ---- */

/* Overlay fade in/out */
@keyframes overlayIn {
    from { opacity: 0; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
    to   { opacity: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
@keyframes overlayOut {
    from { opacity: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    to   { opacity: 0; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
}

/* Modal spring-zoom in — scales from trigger origin, bounces */
@keyframes modalSpringIn {
    0%   { opacity: 0;    transform: scale(0.4)  translateY(0); filter: blur(8px);  }
    40%  { opacity: 1;    transform: scale(1.04) translateY(-4px); filter: blur(0); }
    65%  {               transform: scale(0.98) translateY(2px);  }
    82%  {               transform: scale(1.01) translateY(-1px); }
    100% { opacity: 1;    transform: scale(1)    translateY(0);   filter: blur(0);  }
}

/* Modal collapse-zoom out — shrinks back to trigger origin */
@keyframes modalSpringOut {
    0%   { opacity: 1; transform: scale(1)    translateY(0);    filter: blur(0);   }
    20%  {             transform: scale(1.03) translateY(-3px); }
    100% { opacity: 0; transform: scale(0.35) translateY(8px);  filter: blur(6px); }
}

/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    /* hidden by default — JS toggles is-open / is-closing */
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    animation: overlayIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-overlay.is-closing {
    animation: overlayOut 0.28s cubic-bezier(0.55, 0, 1, 0.45) forwards;
    pointer-events: none;
}

/* Dialog box */
.modal {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.12),
        0 32px 80px rgba(0,0,0,0.28);
    width: 100%;
    max-width: 640px;
    padding: 2rem 2rem 2.5rem;
    max-height: 90vh;
    overflow-y: auto;
    color: #0F172A;
    /* transform-origin is set dynamically by JS to match trigger position */
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.modal-overlay.is-open .modal {
    animation: modalSpringIn 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-overlay.is-closing .modal {
    animation: modalSpringOut 0.28s cubic-bezier(0.55, 0, 0.9, 0.45) forwards;
}

/* Close button */
.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.modal__close:hover {
    background: var(--color-gray-200);
    color: var(--color-primary);
}

/* Modal header */
.modal__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.modal__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
    margin: 0 0 0.25rem;
}

.modal__subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0;
}

/* ---- Step indicator ---- */
.quote-form__steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.quote-form__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-400);
}

.quote-form__step.is-active {
    color: var(--color-brand);
}

.quote-form__step.is-done {
    color: var(--color-brand-dark);
}

.quote-form__step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-gray-100);
    color: var(--color-gray-400);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.quote-form__step.is-active .quote-form__step-num {
    background: var(--color-brand);
    color: #fff;
}

.quote-form__step.is-done .quote-form__step-num {
    background: var(--color-brand-dark);
    color: #fff;
}

.quote-form__step-line {
    flex: 1;
    height: 2px;
    background: var(--color-gray-200);
    margin: 0 0.625rem;
}

/* ---- Panels ---- */
.quote-form__panel {
    display: none;
}

.quote-form__panel.is-active {
    display: block;
    animation: panelSlideIn 0.25s ease;
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- Form layout ---- */
.quote-form__row {
    margin-bottom: 1rem;
}

.quote-form__row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quote-form__row--3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* ---- Form groups ---- */
.form-group {
    margin-bottom: 1.125rem;
}

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

.form-required {
    color: #ef4444;
    margin-left: 2px;
}

/* ---- Inputs ---- */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--color-primary);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

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

/* ---- Layer selector (radio buttons as chips) ---- */
.form-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-option {
    cursor: pointer;
}

.form-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.4375rem 0.875rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-500);
    background: #fff;
    transition: all 0.15s;
    user-select: none;
}

.form-option input[type="radio"]:checked + span {
    border-color: var(--color-brand);
    background: var(--color-brand-light);
    color: var(--color-brand-dark);
}

.form-option:hover span {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

/* ---- File upload ---- */
.form-upload {
    position: relative;
    border: 2px dashed var(--color-gray-200);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.form-upload:hover,
.form-upload.is-dragging {
    border-color: var(--color-brand);
    background: var(--color-brand-light);
}

.form-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-upload__ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-gray-400);
    pointer-events: none;
}

.form-upload__ui svg {
    color: var(--color-brand);
    opacity: 0.7;
}

.form-upload__text {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.form-upload__text strong {
    color: var(--color-brand);
}

.form-upload__text span {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

.form-upload__filename {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-brand-dark);
    font-weight: 500;
}

/* ---- Privacy note ---- */
.quote-form__privacy {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.quote-form__privacy a {
    color: var(--color-brand);
    text-decoration: underline;
}

/* ---- Actions ---- */
.quote-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.quote-form__actions--split {
    justify-content: space-between;
}

/* ---- Success state ---- */
.quote-form__success {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.quote-form__success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
}

.quote-form__success-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.quote-form__success-desc {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    max-width: 420px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

/* ---- Spinner animation ---- */
.spinner-icon {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Responsive modal ---- */
@keyframes sheetIn {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes sheetOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(100%); }
}

@media (max-width: 640px) {
    .modal {
        padding: 1.5rem 1.25rem 2rem;
        border-radius: 12px 12px 0 0;
        max-height: 92vh;
        margin-top: auto;
        /* Override spring animation with a sheet slide on mobile */
        transform-origin: bottom center !important;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    /* Replace spring with bottom-sheet slide on mobile */
    .modal-overlay.is-open .modal {
        animation: sheetIn 0.38s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    .modal-overlay.is-closing .modal {
        animation: sheetOut 0.26s cubic-bezier(0.32, 0, 0.67, 0) forwards;
    }

    .quote-form__row--2col,
    .quote-form__row--3col {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 5rem 0 4rem;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.page-hero--dark {
    background: var(--color-primary);
    border-bottom: none;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(22,163,74,.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero--dark { position: relative; overflow: hidden; }

.page-hero__content {
    max-width: 700px;
}

.page-hero__content--center {
    margin: 0 auto;
    text-align: center;
}

.page-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-hero--dark .page-hero__title {
    color: #fff;
}

.page-hero--dark .section__eyebrow {
    color: var(--color-brand);
}

.page-hero__desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.7;
}

.page-hero--dark .page-hero__desc {
    color: var(--color-gray-400);
}

/* ============================================================
   CAPABILITIES PAGE
   ============================================================ */

/* Overview cards */
.cap-overview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cap-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cap-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cap-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--color-brand);
}

.cap-card__icon svg {
    width: 100%;
    height: 100%;
}

.cap-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.cap-card__unit {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.25rem 0 0.75rem;
}

.cap-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Spec tables */
.spec-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.spec-table-wrap {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.spec-table__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-gray-50);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.spec-table th {
    padding: 0.625rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-table td {
    padding: 0.625rem 1.25rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: top;
}

.spec-table td:first-child {
    font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-table tbody tr:hover {
    background: var(--color-gray-50);
}

/* Material cards */
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.material-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.material-card:hover {
    box-shadow: var(--shadow-md);
}

.material-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.material-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.material-card__badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    white-space: nowrap;
}

.material-card__badge--green  { background: var(--color-brand-light); color: var(--color-brand-dark); }
.material-card__badge--teal   { background: #CCFBF1; color: #0F766E; }
.material-card__badge--blue   { background: #DBEAFE; color: #1D4ED8; }
.material-card__badge--orange { background: #FEF3C7; color: #B45309; }
.material-card__badge--purple { background: #EDE9FE; color: #6D28D9; }
.material-card__badge--gray   { background: var(--color-gray-100); color: var(--color-gray-600); }

.material-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

.material-card__tg {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-brand);
    font-family: var(--font-mono);
}

/* Quality section */
.cap-quality {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.cap-quality__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.cap-quality__item {
    display: flex;
    gap: 0.875rem;
}

.cap-quality__check {
    width: 28px;
    height: 28px;
    background: var(--color-brand-light);
    color: var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cap-quality__item strong {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.cap-quality__item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.cap-quality__badge-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cap-cert-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--color-brand);
}

.cap-cert-badge strong {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9375rem;
}

.cap-cert-badge span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
    padding-top: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* Form card */
.contact-form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.375rem;
}

.contact-form-card__sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}

.contact-form__row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form__textarea {
    min-height: 140px;
}

.contact-form__submit {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-form__status {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-form__status--success {
    background: var(--color-brand-light);
    color: var(--color-brand-dark);
    border: 1px solid rgba(22,163,74,.25);
}

.contact-form__status--error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid rgba(239,68,68,.25);
}

/* Contact info sidebar */
.contact-info__block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

.contact-info__item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-info__item:last-child { margin-bottom: 0; }

.contact-info__icon {
    width: 40px;
    height: 40px;
    background: var(--color-brand-light);
    color: var(--color-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.contact-info__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

a.contact-info__value:hover { color: var(--color-brand); }

.contact-info__value--text { font-weight: 500; }

.contact-info__note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

/* Promise box */
.contact-promise {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--color-brand-light);
    border: 1px solid rgba(22,163,74,.2);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--color-brand-dark);
    margin-bottom: 1rem;
}

.contact-promise strong { display: block; font-weight: 700; margin-bottom: 0.3rem; color: var(--color-primary); }
.contact-promise p { font-size: 0.875rem; line-height: 1.6; }

/* FAQ accordion */
.contact-faq {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.contact-faq__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.875rem;
}

.contact-faq__item {
    border-bottom: 1px solid var(--color-gray-100);
    padding: 0.75rem 0;
}

.contact-faq__item:last-child { border-bottom: none; }

.contact-faq__q {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.contact-faq__q::-webkit-details-marker { display: none; }

.contact-faq__q::after {
    content: '+';
    font-size: 1.125rem;
    color: var(--color-brand);
    flex-shrink: 0;
    transition: transform 0.2s;
}

details[open] .contact-faq__q::after {
    transform: rotate(45deg);
}

.contact-faq__a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    padding-top: 0.5rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Story section */
.about-story__grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: start;
}

.about-story__text {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.about-story__text strong {
    color: var(--color-primary);
    font-weight: 600;
}

.about-story__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-stat {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.about-stat:hover { box-shadow: var(--shadow-md); }

.about-stat__value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-brand);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.about-stat__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.about-stat__desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.value-card__icon {
    width: 44px;
    height: 44px;
    background: var(--color-brand-light);
    color: var(--color-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 10px;
}

.value-card__icon svg {
    width: 100%;
    height: 100%;
}

.value-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.value-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-brand-light), var(--color-brand), var(--color-brand-light));
    transform: translateX(-50%);
    z-index: 0;
}

.timeline__item {
    position: relative;
    display: flex;
    width: 50%;
    padding-bottom: 2rem;
}

.timeline__item--left {
    justify-content: flex-end;
    padding-right: 2.5rem;
    align-self: flex-start;
}

.timeline__item--right {
    justify-content: flex-start;
    padding-left: 2.5rem;
    margin-left: 50%;
}

.timeline__dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--color-brand);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color-brand);
    border-radius: 50%;
    top: 1.25rem;
    z-index: 1;
}

.timeline__item--left  .timeline__dot { right: -7px; }
.timeline__item--right .timeline__dot { left: -7px; }

.timeline__card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    max-width: 340px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.timeline__card:hover { box-shadow: var(--shadow-md); }

.timeline__year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-brand);
    background: var(--color-brand-light);
    padding: 0.15rem 0.625rem;
    border-radius: 99px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.timeline__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.timeline__desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Cert grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cert-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.cert-card:hover { box-shadow: var(--shadow-md); }

.cert-card__top {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.cert-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.cert-card--green  .cert-card__icon { background: var(--color-brand-light);  color: var(--color-brand); }
.cert-card--blue   .cert-card__icon { background: #DBEAFE; color: #1D4ED8; }
.cert-card--teal   .cert-card__icon { background: #CCFBF1; color: #0F766E; }
.cert-card--purple .cert-card__icon { background: #EDE9FE; color: #6D28D9; }
.cert-card--orange .cert-card__icon { background: #FEF3C7; color: #B45309; }
.cert-card--red    .cert-card__icon { background: #FEE2E2; color: #B91C1C; }

.cert-card__icon svg { width: 100%; height: 100%; }

.cert-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.15rem;
}

.cert-card__scope {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.cert-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ============================================================
   RESPONSIVE — inner pages
   ============================================================ */
/* ============================================================
   SERVICE PAGES (shared)
   ============================================================ */

/* Page hero actions */
.page-hero__actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn--ghost-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
}

.btn--ghost-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* Highlights bar */
.service-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.service-highlight {
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.service-highlight__value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-brand);
    line-height: 1;
}

.service-highlight__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.25rem 0 0.3rem;
}

.service-highlight__sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Service types grid */
.service-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-type-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
    position: relative;
    padding-top: 1.25rem;
}

.service-type-card:hover { box-shadow: var(--shadow-md); }

.service-type-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.service-type-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.625rem;
    padding-right: 1.25rem;
}

.service-type-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.service-type-card__lead {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-gray-100);
    padding-top: 0.625rem;
    margin-top: auto;
}

.service-type-card__lead strong {
    color: var(--color-brand-dark);
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(12.5% + 1rem);
    right: calc(12.5% + 1rem);
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand-light), var(--color-brand), var(--color-brand-light));
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step__num {
    width: 56px;
    height: 56px;
    background: var(--color-brand);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 0 6px var(--color-brand-light);
    position: relative;
    z-index: 1;
}

.process-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.process-step__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Lead time cards (prototyping page) */
.lead-time-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.lead-time-card {
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s;
}

.lead-time-card:hover { box-shadow: var(--shadow-md); }

.lead-time-card--featured {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px var(--color-brand-light);
}

.lead-time-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 99px;
    white-space: nowrap;
}

.lead-time-card__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.lead-time-card__time {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.875rem;
}

.lead-time-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Proto features */
.proto-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.proto-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.proto-feature__check {
    width: 28px;
    height: 28px;
    background: var(--color-brand-light);
    color: var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.proto-feature__title {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.proto-feature__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Volume tiers */
.volume-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.volume-tier {
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.volume-tier--featured {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px var(--color-brand-light);
}

.volume-tier__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 99px;
    white-space: nowrap;
}

.volume-tier__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
}

.volume-tier__qty {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-brand);
    line-height: 1;
}

.volume-tier__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}

.volume-tier__cta { width: 100%; justify-content: center; }

/* ============================================================
   RESPONSIVE — about page
   ============================================================ */
@media (max-width: 1024px) {
    .about-story__grid   { grid-template-columns: 1fr; }
    .about-story__stats  { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .cap-overview__grid  { grid-template-columns: repeat(2, 1fr); }
    .spec-tables         { grid-template-columns: 1fr; }
    .material-grid       { grid-template-columns: repeat(2, 1fr); }
    .cap-quality         { grid-template-columns: 1fr; }
    .cap-quality__visual { order: -1; }
    .cap-quality__badge-stack { flex-direction: row; flex-wrap: wrap; }
    .contact-layout      { grid-template-columns: 1fr; }
    .values-grid         { grid-template-columns: repeat(2, 1fr); }
    .cert-grid           { grid-template-columns: repeat(2, 1fr); }

    /* Timeline: collapse to single column on mobile */
    .timeline__line      { left: 20px; }
    .timeline__item      { width: 100%; padding-left: 3rem; padding-right: 0; margin-left: 0; justify-content: flex-start; }
    .timeline__item--left { padding-right: 0; justify-content: flex-start; }
    .timeline__item--left  .timeline__dot,
    .timeline__item--right .timeline__dot { left: 14px; right: auto; }
    .timeline__card      { max-width: 100%; }
}

/* ============================================================
   QUALITY PAGE
   ============================================================ */

.quality-policy {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}

.quality-policy__text {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.quality-policy__promise {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.quality-policy__promise-item {
    display: flex;
    flex-direction: column;
    padding: 0.875rem 1rem;
    background: var(--color-brand-light);
    border-left: 3px solid var(--color-brand);
    border-radius: 0 8px 8px 0;
}

.quality-policy__promise-item strong {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.quality-policy__promise-item span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* KPI score card */
.quality-score-card {
    background: var(--color-primary);
    border-radius: 16px;
    padding: 1.75rem;
    color: #fff;
}

.quality-score-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-400);
    margin-bottom: 1.25rem;
}

.quality-kpi {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.quality-kpi__label {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    width: 130px;
    flex-shrink: 0;
}

.quality-kpi__bar-wrap {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 99px;
    overflow: hidden;
}

.quality-kpi__bar {
    height: 100%;
    background: var(--color-brand);
    border-radius: 99px;
    transition: width 1s ease;
}

.quality-kpi__value {
    font-size: 0.875rem;
    font-weight: 700;
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.quality-kpi__value--green { color: var(--color-success); }

/* Inspection steps */
.inspection-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inspection-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.inspection-step:hover { box-shadow: var(--shadow-md); }

.inspection-step__icon {
    width: 52px;
    height: 52px;
    background: var(--color-brand-light);
    color: var(--color-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px;
}

.inspection-step__icon svg { width: 100%; height: 100%; }

.inspection-step__num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.inspection-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.inspection-step__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Cert detail grid */
.cert-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cert-detail-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
}

.cert-detail-card__head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.cert-detail-card__head--green  { background: var(--color-brand-light); }
.cert-detail-card__head--blue   { background: #DBEAFE; }
.cert-detail-card__head--teal   { background: #CCFBF1; }
.cert-detail-card__head--purple { background: #EDE9FE; }

.cert-detail-card__name {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.375rem;
}

.cert-detail-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.cert-detail-card__body {
    padding: 1.25rem 1.5rem;
}

.cert-detail-card__scope {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.cert-detail-card__scope strong { color: var(--color-primary); }

.cert-detail-card__detail {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================================
   LEGAL PAGES (Privacy Policy, Terms)
   ============================================================ */

.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar TOC */
.legal-toc {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.legal-toc__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-gray-400);
    margin-bottom: 0.75rem;
}

.legal-toc__list {
    list-style: none;
    counter-reset: toc;
    padding: 0;
}

.legal-toc__list li {
    counter-increment: toc;
    margin-bottom: 0.3rem;
}

.legal-toc__list a {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s;
    display: block;
    padding: 0.2rem 0;
}

.legal-toc__list a:hover { color: var(--color-brand); }

/* Legal content */
.legal-content {
    max-width: 740px;
}

.legal-intro {
    background: var(--color-bg-light);
    border-left: 3px solid var(--color-brand);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.legal-section-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-section-item:last-of-type { border-bottom: none; }

.legal-section-item h2 {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.875rem;
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.legal-section-item h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1rem 0 0.5rem;
}

.legal-section-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section-item ul,
.legal-section-item ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section-item li {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 0.375rem;
}

.legal-section-item li strong,
.legal-section-item p strong { color: var(--color-primary); }

.legal-section-item a { color: var(--color-brand); }

/* Legal table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 0.75rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.legal-table th {
    background: var(--color-gray-50);
    padding: 0.625rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-table td {
    padding: 0.625rem 1rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: top;
}

.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table tbody tr:hover { background: var(--color-gray-50); }

/* Contact box */
.legal-contact-box {
    background: var(--color-brand-light);
    border: 1px solid rgba(22,163,74,.2);
    border-radius: 10px;
    padding: 1.25rem;
}

.legal-contact-box p {
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.legal-contact-box a { color: var(--color-brand); font-weight: 600; }

/* ============================================================
   RESPONSIVE — service pages
   ============================================================ */
@media (max-width: 900px) {
    .service-highlights  { grid-template-columns: repeat(2, 1fr); }
    .service-types-grid  { grid-template-columns: repeat(2, 1fr); }
    .process-steps       { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .lead-time-cards     { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .volume-tiers        { grid-template-columns: repeat(2, 1fr); }
    .proto-features      { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .quality-policy      { grid-template-columns: 1fr; }
    .quality-policy__visual { order: -1; }
    .cert-detail-grid    { grid-template-columns: 1fr; }
    .legal-layout        { grid-template-columns: 1fr; }
    .legal-toc           { position: static; }
}

@media (max-width: 600px) {
    .cap-overview__grid  { grid-template-columns: 1fr 1fr; }
    .material-grid       { grid-template-columns: 1fr; }
    .contact-form__row--2col { grid-template-columns: 1fr; }
    .contact-form-card   { padding: 1.5rem 1.25rem; }
    .page-hero           { padding: 3rem 0 2.5rem; }
    .values-grid         { grid-template-columns: 1fr; }
    .cert-grid           { grid-template-columns: 1fr; }
    .about-story__stats  { grid-template-columns: 1fr 1fr; }
    .service-highlights  { grid-template-columns: 1fr 1fr; }
    .service-types-grid  { grid-template-columns: 1fr; }
    .process-steps       { grid-template-columns: 1fr; }
    .volume-tiers        { grid-template-columns: 1fr; }
    .inspection-step     { flex-direction: column; }
}

/* ============================================================
   NEWS — Blog list (home.php)
   ============================================================ */
.news-section { padding-top: 2rem; }

/* Category filter tabs */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.news-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}
.news-filter__btn:hover,
.news-filter__btn.is-active {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}
.news-filter__count {
    font-size: 0.75rem;
    opacity: .7;
}

/* Filter animation */
@keyframes newsItemIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.news-item { animation: newsItemIn .3s ease both; }

/* When featured post is hidden by filter, grid fills full width */
.news-grid--no-featured {
    grid-template-columns: repeat(3, 1fr);
}

/* Archive back link */
.archive-back-link {
    color: var(--color-brand);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}
.archive-back-link:hover { text-decoration: underline; }

/* Featured post */
.news-featured {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: box-shadow .25s;
}
.news-featured:hover { box-shadow: 0 8px 40px rgba(0,0,0,.12); }
.news-featured__link {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.news-featured__body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.news-featured__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.news-featured__title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}
.news-featured__title a {
    color: var(--color-primary);
    text-decoration: none;
}
.news-featured__title a:hover { color: var(--color-brand); }
.news-featured__excerpt {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}
.news-featured__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--color-brand);
    text-decoration: none;
}
.news-featured__read-more:hover { gap: 0.6rem; }
.news-featured__visual {
    min-height: 360px;
    overflow: hidden;
    background: var(--color-gray-100);
}
.news-featured__img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-featured__placeholder { width: 100%; height: 100%; }
.news-featured__placeholder svg { width: 100%; height: 100%; object-fit: cover; }

/* Post grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.news-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .2s;
}
.news-card:hover { box-shadow: 0 6px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.news-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-gray-100);
}
.news-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card:hover .news-card__img { transform: scale(1.04); }
.news-card__placeholder { width: 100%; height: 100%; }
.news-card__placeholder svg { width: 100%; height: 100%; }
.news-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}
.news-card__cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-brand);
    background: var(--color-brand-light);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
}
.news-card__cat:hover { background: var(--color-brand); color: #fff; }
.news-card__date {
    font-size: 0.8rem;
    color: var(--color-secondary);
}
.news-card__title {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.6rem;
}
.news-card__title a { color: var(--color-primary); text-decoration: none; }
.news-card__title a:hover { color: var(--color-brand); }
.news-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
    margin-top: auto;
}
.news-card__read-more:hover { gap: 0.5rem; }

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
}
.news-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-secondary);
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}
.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}

/* Empty state */
.news-empty { text-align: center; padding: 4rem 1rem; color: var(--color-secondary); }

/* ============================================================
   ARTICLE — Single post (single.php)
   ============================================================ */
.article-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0 3rem;
}
.article-hero__inner { max-width: 760px; }

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.825rem;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
}
.article-breadcrumb a { color: var(--color-secondary); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--color-brand); }
.article-breadcrumb span[aria-hidden] { opacity: .45; }

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.article-cat { /* same as news-card__cat */ }
.article-hero__date,
.article-hero__read {
    font-size: 0.825rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.article-hero__title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.article-hero__excerpt {
    font-size: 1.05rem;
    color: var(--color-secondary);
    line-height: 1.65;
    max-width: 680px;
}

/* Layout */
.article-body-wrap { padding: 3rem 0 4rem; }
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* Featured image */
.article-featured-img {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16/7;
    background: var(--color-gray-100);
}
.article-featured-img--placeholder { padding: 0; }
.article-featured-img__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-featured-img svg { width: 100%; height: 100%; }

/* Article prose */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-primary);
}
.article-content h2 {
    font-size: 1.4rem;
    margin: 2.25rem 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-brand-light);
    color: var(--color-primary);
}
.article-content h3 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.6rem;
    color: var(--color-primary);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content ul,
.article-content ol {
    margin: 0 0 1.25rem 1.5rem;
}
.article-content li { margin-bottom: 0.45rem; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.article-content th {
    background: var(--color-gray-100);
    padding: 0.65rem 0.9rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--color-border);
}
.article-content td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--color-gray-50); }
.article-content strong { font-weight: 600; }
.article-content a { color: var(--color-brand); }
.article-content a:hover { text-decoration: underline; }
.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-brand);
    background: var(--color-brand-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-secondary);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.article-tags__label { font-size: 0.85rem; color: var(--color-secondary); font-weight: 500; }
.article-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.article-tag:hover { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

/* Author card */
.article-author {
    display: flex;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    align-items: flex-start;
}
.article-author__img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.article-author__name { font-weight: 700; margin-bottom: 0.25rem; }
.article-author__bio { font-size: 0.875rem; color: var(--color-secondary); line-height: 1.55; margin: 0; }

/* Post navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.article-nav__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.article-nav__item:hover { border-color: var(--color-brand); background: var(--color-brand-light); }
.article-nav__item--next { text-align: right; }
.article-nav__dir {
    font-size: 0.775rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}
.article-nav__item--next .article-nav__dir { justify-content: flex-end; }
.article-nav__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.25rem; }

/* ToC card */
.article-toc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
}
.article-toc-card__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}
.article-toc-list { list-style: none; margin: 0; padding: 0; }
.article-toc-link {
    display: block;
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-decoration: none;
    padding: 0.3rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: color .15s, border-color .15s;
    line-height: 1.4;
}
.article-toc-link--sub { padding-left: 1.5rem; font-size: 0.8rem; }
.article-toc-link:hover,
.article-toc-link.is-active { color: var(--color-brand); border-left-color: var(--color-brand); }

/* CTA card */
.article-cta-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.article-cta-card__icon { margin-bottom: 0.85rem; }
.article-cta-card__icon svg { width: 48px; height: 48px; }
.article-cta-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.article-cta-card__desc { font-size: 0.85rem; color: var(--color-secondary); margin-bottom: 1rem; }

/* Related posts */
.article-related {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
}
.article-related__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-secondary);
    margin-bottom: 0.9rem;
}
.article-related__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-top: 1px solid var(--color-border);
    text-decoration: none;
    transition: opacity .15s;
}
.article-related__item:first-of-type { border-top: none; }
.article-related__item:hover { opacity: .8; }
.article-related__img {
    width: 60px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-gray-100);
}
.article-related__img img { width: 100%; height: 100%; object-fit: cover; }
.article-related__img svg { width: 100%; height: 100%; }
.article-related__rel-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.2rem;
}
.article-related__rel-date { font-size: 0.75rem; color: var(--color-secondary); }

/* ============================================================
   RESPONSIVE — News & Article
   ============================================================ */
@media (max-width: 1100px) {
    .article-layout { grid-template-columns: 1fr 260px; gap: 2rem; }
}
@media (max-width: 900px) {
    .news-featured   { grid-template-columns: 1fr; }
    .news-featured__visual { min-height: 240px; }
    .news-grid       { grid-template-columns: repeat(2, 1fr); }
    .article-layout  { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .article-toc-card { display: none; }
}
@media (max-width: 600px) {
    .news-grid       { grid-template-columns: 1fr; }
    .article-nav     { grid-template-columns: 1fr; }
    .article-hero    { padding: 1.5rem 0 2rem; }
    .news-featured__body { padding: 1.5rem; }
}

/* ============================================================
   HERO SLIDER — Full-screen carousel
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 480px;
    max-height: 680px;
    background: #0a1628;
    overflow: hidden;
}

/* Track fills the entire hero */
.hero-slider__track {
    position: absolute;
    inset: 0;
}

/* Individual slide — absolutely stacked inside the track */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Video background */
.hero-slide__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark gradient overlay */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 14, 30, .72) 0%,
        rgba(5, 14, 30, .45) 50%,
        rgba(5, 14, 30, .3) 100%
    );
    z-index: 1;
}

/* Slide content */
.hero-slide__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;        /* vertically centre in the slide */
    padding: 80px 5vw 2rem;         /* 80px clears fixed header */
}

/* Constrain the text block width, not the whole content area */
.hero-slide__badge,
.hero-slide__title,
.hero-slide__subtitle {
    max-width: 660px;
    width: 100%;
}

.hero-slide__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    width: fit-content;
}
.hero-slide__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-brand);
    animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
    0%,100% { transform: scale(1); opacity:1; }
    50%      { transform: scale(1.4); opacity:.7; }
}

.hero-slide__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-slide__subtitle {
    font-size: clamp(.9rem, 1.3vw, 1.1rem);
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero-slide__subtitle strong { color: #fff; }

/* ---- Navigation arrows — positioned inside the track ---- */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.hero-slider__arrow:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.7);
    transform: translateY(-50%) scale(1.08);
}
.hero-slider__arrow--prev { left: 1.5rem; }
.hero-slider__arrow--next { right: 1.5rem; }

/* ---- Dot indicators ---- */
.hero-slider__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: flex;
    gap: .45rem;
}
.hero-slider__dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    transition: background .25s, width .25s;
    padding: 0;
}
.hero-slider__dot.is-active {
    background: var(--color-brand);
    width: 44px;
}

/* ---- Quick-quote bar — in-flow below slide text ---- */
.hero-qb {
    display: inline-flex;
    align-items: stretch;
    height: 54px;
    margin-top: 1.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    overflow: visible;              /* don't clip the button */
    flex-shrink: 0;
    width: fit-content;             /* size to content, no width limit */
}

.hero-qb__icon-wrap {
    display: flex;
    align-items: center;
    padding: 0 .75rem 0 1rem;
    color: #999;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;    /* left corners of the bar */
    background: #fff;
}

/* Each selectable section */
.hero-qb__item {
    display: flex;
    align-items: center;
    padding: 0 .25rem;
    position: relative;         /* anchor for the dropdown panel */
}

/* ---- Custom dropdown trigger button ---- */
.hero-qb__trigger {
    display: flex;
    align-items: center;
    gap: .4rem;
    height: 54px;
    padding: 0 .75rem 0 .75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    transition: color .15s;
    line-height: 1;
}
.hero-qb__trigger:hover { color: var(--color-brand); }
.hero-qb__trigger[aria-expanded="true"] { color: var(--color-brand); }
.hero-qb__trigger[aria-expanded="true"] .qb-dd__chevron {
    transform: rotate(180deg);
}

.qb-dd__label { pointer-events: none; }
.qb-dd__chevron {
    flex-shrink: 0;
    color: #999;
    transition: transform .18s ease;
}

/* ---- Dropdown panel (shared) ---- */
.qb-dd__panel {
    position: fixed;            /* escape overflow:hidden of hero */
    z-index: 9999;
    display: block;             /* never display:none — use visibility/opacity for hiding */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    padding: .5rem;
    min-width: 180px;
    /* transition — closed state */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.qb-dd__panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
/* hidden attr is no longer used; keep rule as safety net */
.qb-dd__panel[hidden] { display: none; }

.qb-dd__panel-header {
    font-size: .75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .25rem .25rem .5rem;
}

/* ---- Layers grid panel ---- */
.qb-dd__panel--grid { min-width: 220px; }
.qb-dd__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.qb-dd__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: .875rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color .12s, color .12s, background .12s;
}
.qb-dd__cell:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}
.qb-dd__cell.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: #fff;
}

/* ---- Qty list panel ---- */
.qb-dd__panel--list {
    padding: .35rem;
    min-width: 150px;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.qb-dd__panel--list::-webkit-scrollbar { width: 4px; }
.qb-dd__panel--list::-webkit-scrollbar-track { background: transparent; }
.qb-dd__panel--list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.qb-dd__option {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: .45rem .75rem;
    border: 1.5px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: .875rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color .12s, color .12s, background .12s;
    white-space: nowrap;
    box-sizing: border-box;
}
.qb-dd__option:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}
.qb-dd__option.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: #fff;
}

/* Vertical divider */
.hero-qb__sep {
    width: 1px;
    height: 60%;
    background: #e2e8f0;
    align-self: center;
    flex-shrink: 0;
}

/* Size pill — gray background */
.hero-qb__size-pill {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #f1f3f6;
    border-radius: 4px;
    padding: 0 .75rem;
    margin: .5rem .5rem;
    height: calc(100% - 1rem);
}
.hero-qb__num {
    width: 46px;
    border: none;
    background: transparent;
    font-size: .875rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    padding: 0;
}
.hero-qb__num:focus { outline: none; color: var(--color-brand); }
.hero-qb__num::-webkit-inner-spin-button,
.hero-qb__num::-webkit-outer-spin-button { -webkit-appearance: none; }
.hero-qb__x   { font-size: .8rem; color: #999; font-weight: 500; }
.hero-qb__unit { font-size: .8rem; color: #999; font-weight: 500; }

/* CTA button — fills right side, full height */
.hero-qb__btn {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background: var(--color-brand);
    color: #fff;
    border: none;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
    height: 100%;
    border-radius: 0 8px 8px 0;    /* right corners of the bar */
}
.hero-qb__btn:hover { background: var(--color-brand-dark); }

/* No-video placeholder: gradient background */
.hero-slide:not([style*="background-image"]) {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0f3460 100%);
}

/* ============================================================
   RESPONSIVE — Hero Slider
   ============================================================ */
@media (max-width: 900px) {
    .hero-slider         { height: auto; min-height: 420px; max-height: none; }
    .hero-slide__content { padding: 74px 1.5rem 2.5rem; }
    .hero-slider__arrow  { display: none; }
}
@media (max-width: 640px) {
    .hero-slider         { height: auto; min-height: 380px; }
    .hero-slide__content { padding: 74px 1.25rem 2rem; }
    .hero-slide__title   { font-size: 1.6rem; }
    .hero-qb             { height: auto; flex-wrap: wrap; border-radius: 8px; width: 100%; }
    .hero-qb__btn        { width: 100%; justify-content: center; height: 44px; border-radius: 0 0 8px 8px; }
}

/* ============================================================
   NEWS / FAQs / BLOG — Tabbed section
   ============================================================ */
.nfb-section {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}
.nfb-section__title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1.5rem;
}

/* ── Tabs ── */
.nfb-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8edf3;
    margin-bottom: 2rem;
}
.nfb-tab {
    padding: .6rem 1.25rem;
    border: none;
    background: transparent;
    font-size: .95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color .15s;
}
.nfb-tab::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: transparent;
    transition: background .15s;
}
.nfb-tab.is-active { color: #0f172a; }
.nfb-tab.is-active::after { background: var(--color-brand); }
.nfb-tab:hover:not(.is-active) { color: #334155; }

/* ── Panels ── */
.nfb-panel { display: none; }
.nfb-panel.is-active { display: block; }

/* ── NEWS layout ── */
.nfb-news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.nfb-featured {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b center/cover no-repeat;
    aspect-ratio: 16/10;
    text-decoration: none;
}
.nfb-featured__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.nfb-featured__meta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem 1.25rem 1.1rem;
    color: #fff;
}
.nfb-featured__date {
    font-size: .78rem;
    opacity: .8;
    display: block;
    margin-bottom: .35rem;
}
.nfb-featured__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

.nfb-news-list { list-style: none; margin: 0; padding: 0; }
.nfb-news-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.nfb-news-item:first-child { border-top: 1px solid #f1f5f9; }
.nfb-news-item__link {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    text-decoration: none;
    color: #1e293b;
    font-size: .875rem;
    font-weight: 500;
    flex: 1;
    transition: color .15s;
}
.nfb-news-item__link:hover { color: var(--color-brand); }
.nfb-news-item__bullet { color: var(--color-brand); font-size: .7rem; flex-shrink: 0; }
.nfb-news-item__date  { font-size: .78rem; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }

.nfb-view-all {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
    transition: opacity .15s;
}
.nfb-view-all:hover { opacity: .75; }

/* ── FAQs accordion ── */
.nfb-faq-list { border-top: 1px solid #e8edf3; }
.nfb-faq-item { border-bottom: 1px solid #e8edf3; }
.nfb-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    color: #1e293b;
    text-align: left;
    gap: 1rem;
    transition: color .15s;
}
.nfb-faq-q:hover { color: var(--color-brand); }
.nfb-faq-icon {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform .2s;
}
.nfb-faq-item.is-open .nfb-faq-icon { transform: rotate(45deg); color: var(--color-brand); }
.nfb-faq-item.is-open .nfb-faq-q { color: var(--color-brand); }

.nfb-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.nfb-faq-item.is-open .nfb-faq-a {
    max-height: 400px;
    padding-bottom: 1rem;
}
.nfb-faq-a p {
    margin: 0;
    font-size: .875rem;
    color: #475569;
    line-height: 1.7;
}

/* ── Blog grid ── */
.nfb-blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}
.nfb-blog-card {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: .75rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
    transition: opacity .15s;
}
.nfb-blog-card:hover { opacity: .8; }
.nfb-blog-card__thumb {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nfb-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nfb-blog-card__no-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.nfb-blog-card__body { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.nfb-blog-card__cat  { font-size: .72rem; font-weight: 700; color: var(--color-brand); text-transform: uppercase; letter-spacing: .05em; }
.nfb-blog-card__title { font-size: .875rem; font-weight: 600; color: #1e293b; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nfb-blog-card__date { font-size: .75rem; color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nfb-news-layout { grid-template-columns: 1fr; }
    .nfb-blog-grid   { grid-template-columns: 1fr; }
}

/* ============================================================
   TRUSTED PARTNERS — Horizontal card slider
   ============================================================ */
.partners-section {
    padding: 4rem 0 3rem;
    background: #fff;
}
.partners-section__title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2rem;
}

/* Wrapper holds arrows + overflow-hidden track */
.partners-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 max(1rem, 4vw);
}

/* Arrows */
.partners-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #334155;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
    z-index: 2;
    position: relative;
}
.partners-arrow:hover:not(:disabled) {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}
.partners-arrow:disabled { opacity: .35; cursor: default; }

/* Outer clip */
.partners-track-outer {
    overflow: hidden;
    flex: 1;
    margin: 0 .75rem;
}

/* Sliding track */
.partners-track {
    display: flex;
    align-items: stretch;
    will-change: transform;
}

/* Individual card — width controlled by CSS, not JS inline style */
.partner-card {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 .5rem;
    width: 25%;                 /* 4 visible on desktop */
    display: flex;
    flex-direction: column;
    min-height: 420px;
}
@media (max-width: 960px)  { .partner-card { width: 33.333%; } }   /* 3 visible */
@media (max-width: 640px)  { .partner-card { width: 50%; } }        /* 2 visible */
@media (max-width: 400px)  { .partner-card { width: 100%; } }       /* 1 visible */
.partner-card__img-wrap {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    height: 260px;
    background: #f1f5f9;
    flex-shrink: 0;
}
.partner-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.partner-card:hover .partner-card__img { transform: scale(1.04); }

.partner-card__body {
    border: 1px solid #e8edf3;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .75rem;
}
.partner-card__desc {
    font-size: .875rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.partner-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: auto;
}
.partner-card__logo {
    max-height: 42px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .2s, opacity .2s;
}
.partner-card:hover .partner-card__logo { filter: none; opacity: 1; }

/* Dots */
.partners-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.25rem;
}
.partners-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.partners-dot.is-active {
    background: var(--color-brand);
    transform: scale(1.3);
}

/* ============================================================
   CUSTOMER REVIEWS — Infinite scroll wall
   ============================================================ */
.reviews-section {
    padding: 5rem 0 0;
    background: #f8fafc;
    overflow: hidden;
}
.reviews-section .section-label {
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--color-brand);
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.reviews-section .section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2.5rem;
}

/* ---- The scrolling wall ---- */
.rv-wall {
    position: relative;
    height: 560px;               /* visible window height */
    overflow: hidden;
}
.rv-wall__fade {
    position: absolute;
    left: 0; right: 0;
    z-index: 2;
    pointer-events: none;
}
.rv-wall__fade--top {
    top: 0;
    height: 80px;
    background: linear-gradient(to bottom, #f8fafc, transparent);
}
.rv-wall__fade--bottom {
    bottom: 0;
    height: 80px;
    background: linear-gradient(to top, #f8fafc, transparent);
}

/* ---- Three-column layout ---- */
.rv-wall__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 max(1rem, 4vw);
    height: 100%;
}

/* ---- Single column ---- */
.rv-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* pause animation on hover */
}
.rv-col:hover .rv-col__track { animation-play-state: paused; }

/* ---- Scrolling track (original + clone stacked) ---- */
.rv-col__track {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-bottom: .75rem;     /* gap between original and clone */
    flex-shrink: 0;
}

/* Up scroll: col 0 and col 2 */
.rv-col--up .rv-col__track {
    animation: rvScrollUp var(--rv-dur, 30s) linear infinite;
}
/* Down scroll: col 1 */
.rv-col--down .rv-col__track {
    animation: rvScrollDown var(--rv-dur, 34s) linear infinite;
}

@keyframes rvScrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
@keyframes rvScrollDown {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* ---- Review card ---- */
.rv-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8edf3;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s;
    flex-shrink: 0;
}
.rv-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }

.rv-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}
.rv-card__customer {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.rv-card__flag { font-size: 1.1rem; line-height: 1; }
.rv-card__name {
    font-size: .875rem;
    font-weight: 700;
    color: #1e293b;
}
.rv-card__stars {
    display: flex;
    gap: 1px;
}
.rv-card__product {
    font-size: .72rem;
    color: #94a3b8;
    margin-bottom: .5rem;
    letter-spacing: .01em;
}
.rv-card__text {
    font-size: .83rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .rv-wall { height: 480px; }
    .rv-wall__columns { grid-template-columns: repeat(2, 1fr); }
    .rv-col:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
    .rv-wall { height: 420px; }
    .rv-wall__columns { grid-template-columns: 1fr; }
    .rv-col:nth-child(2) { display: none; }
}

/* ============================================================
   RTL (Arabic) Layout
   ============================================================ */
body.lang-ar {
    direction: rtl;
}

body.lang-ar .site-header__inner {
    flex-direction: row-reverse;
}

body.lang-ar .site-nav__menu li.menu-item-has-children > a::after {
    margin-left: 0;
    margin-right: 5px;
}

body.lang-ar .site-nav__menu .sub-menu {
    left: auto;
    right: 0;
    text-align: right;
}

body.lang-ar .hero-slide__content,
body.lang-ar .hero-slide__title,
body.lang-ar .hero-slide__subtitle {
    text-align: right;
}

body.lang-ar .hero-slide__badge,
body.lang-ar .hero-qb {
    margin-left: 0;
    margin-right: 0;
}

body.lang-ar .hero-qb__icon-wrap {
    border-radius: 0 8px 8px 0;
    padding: 0 1rem 0 .75rem;
}

body.lang-ar .hero-slider__arrow--prev {
    left: auto;
    right: 1.5rem;
}

body.lang-ar .hero-slider__arrow--next {
    right: auto;
    left: 1.5rem;
}

body.lang-ar .footer-col--brand {
    padding-right: 0;
    padding-left: var(--space-8);
}

body.lang-ar .footer-col__desc,
body.lang-ar .footer-col__title,
body.lang-ar .footer-col__list,
body.lang-ar .footer-col__list--contact {
    text-align: right;
}

body.lang-ar .footer-social {
    justify-content: flex-start;
}

body.lang-ar .footer-bottom__inner {
    flex-direction: row-reverse;
}

body.lang-ar .footer-bottom__menu {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    body.lang-ar .site-header__inner {
        flex-direction: row;
    }

    body.lang-ar .site-nav__menu li.menu-item-has-children > a::after {
        float: left;
        margin-right: 0;
        margin-left: 0;
    }

    body.lang-ar .site-nav__menu .sub-menu {
        border-left: none;
        border-right: 3px solid var(--color-brand-light);
        margin: 0.25rem 1rem 0.25rem 0;
    }
}
