/* ============================================================
   Nanak Nam Machinery — Main Stylesheet
   ============================================================ */

:root {
    --nnm-dark: #0A2540;
    --nnm-dark-hover: #0f365c;
    --nnm-orange: #FF6B00;
    --nnm-orange-hover: #e66000;
    --nnm-light: #F5F5F5;
    --nnm-white: #ffffff;
    --nnm-muted: #64748B;
    --nnm-border: rgba(10, 37, 64, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    color: var(--nnm-dark);
    background: var(--nnm-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--nnm-orange); color: #fff; }

/* Typography */
.nnm-h1, .nnm-h2, .nnm-h3, .nnm-h4, .nnm-h5, h1, h2, h3, h4, h5, h6 {
    font-family: 'Chivo', sans-serif;
    letter-spacing: -0.02em;
    color: var(--nnm-dark);
    line-height: 1.1;
    margin: 0 0 .5em;
}
.nnm-h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; }
.nnm-h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.nnm-h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.nnm-h4 { font-size: 1.25rem; font-weight: 700; }
.nnm-h5 { font-size: 1rem; font-weight: 700; }

.nnm-lead { font-size: 1.125rem; color: rgba(10, 37, 64, 0.8); margin-bottom: 1rem; }
.nnm-body { font-size: 1rem; color: rgba(10, 37, 64, 0.75); margin-bottom: 1rem; }

.nnm-overline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--nnm-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.nnm-text-white { color: #fff !important; }
.nnm-text-dark { color: var(--nnm-dark) !important; }
.nnm-text-orange { color: var(--nnm-orange) !important; }
.nnm-text-muted-light { color: rgba(255, 255, 255, 0.7); }
.nnm-text-center { text-align: center; }

/* Layout */
.nnm-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.nnm-section { padding: 96px 0; position: relative; }
.nnm-section-tight { padding: 32px 0 96px; }
.nnm-bg-dark { background: var(--nnm-dark); color: #fff; }
.nnm-bg-dark .nnm-h1, .nnm-bg-dark .nnm-h2, .nnm-bg-dark .nnm-h3 { color: #fff; }
.nnm-bg-light { background: var(--nnm-light); }
.nnm-bg-white { background: #fff; }

.nnm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nnm-grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: start; }
.nnm-col-5 { grid-column: span 5; }
.nnm-col-7 { grid-column: span 7; }

@media (max-width: 900px) {
    .nnm-grid-2, .nnm-grid-12 { grid-template-columns: 1fr; gap: 32px; }
    .nnm-col-5, .nnm-col-7 { grid-column: span 1; }
    .nnm-section { padding: 64px 0; }
}

.nnm-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.nnm-section-head-light .nnm-h2 { color: #fff; }
.nnm-section-head.nnm-text-center { justify-content: center; text-align: center; }

/* Industrial grid background */
.nnm-hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: .5;
}

/* Skip link */
.nnm-skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--nnm-orange); color: #fff;
    padding: 8px 16px; z-index: 100;
}
.nnm-skip-link:focus { top: 0; }

/* HEADER */
.nnm-header {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--nnm-border);
}
.nnm-header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nnm-logo { display: flex; align-items: center; gap: 12px; }
.nnm-logo-mark {
    width: 44px; height: 44px; background: var(--nnm-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Chivo', sans-serif; font-weight: 900;
    color: var(--nnm-orange); font-size: 1rem; letter-spacing: -.05em;
}
.nnm-logo-mark-orange { background: var(--nnm-orange); color: #fff; }
.nnm-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nnm-logo-name { font-family: 'Chivo', sans-serif; font-weight: 700; font-size: .9rem; }
.nnm-logo-city { font-family: 'IBM Plex Mono', monospace; font-size: .65rem; text-transform: uppercase; letter-spacing: .18em; color: var(--nnm-muted); }

.nnm-nav { display: flex; }
.nnm-menu { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nnm-menu li a {
    padding: 8px 16px; font-size: .875rem; font-weight: 600;
    color: var(--nnm-dark);
}
.nnm-menu li a:hover, .nnm-menu li.current-menu-item a { color: var(--nnm-orange); }

.nnm-header-cta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end;
}
.nnm-header-phone {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .82rem; font-weight: 600; color: var(--nnm-dark);
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-shrink: 0;
}
.nnm-header-phone span,
.nnm-header-phone * {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
.nnm-header-phone i { color: var(--nnm-orange); font-size: .8rem; }
.nnm-header-phone:hover { color: var(--nnm-orange); }
/* On medium screens, hide 2nd/3rd numbers to save space */
@media (max-width: 1280px) {
    .nnm-header-phone-extra { display: none; }
}

.nnm-menu-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nnm-menu-toggle span { display: block; width: 26px; height: 2px; background: var(--nnm-dark); margin: 5px 0; transition: .3s; }
.nnm-menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 7px); }
.nnm-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.nnm-menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

.nnm-mobile-nav { display: none; padding: 16px 24px 24px; border-top: 1px solid var(--nnm-border); }
.nnm-mobile-nav.is-open { display: block; }
.nnm-menu-mobile { list-style: none; padding: 0; margin: 0 0 16px; }
.nnm-menu-mobile li a { display: block; padding: 12px 16px; font-weight: 600; color: var(--nnm-dark); border-radius: 2px; }
.nnm-menu-mobile li a:hover { background: var(--nnm-light); color: var(--nnm-orange); }

/* Mobile phones drawer block (shown when the mobile menu is open) */
.nnm-mobile-phones {
    background: var(--nnm-light);
    padding: 14px 16px;
    margin: 0 0 16px;
    border-left: 3px solid var(--nnm-orange);
}
.nnm-mobile-phones-label {
    font-size: .75rem; font-weight: 700; color: var(--nnm-orange);
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.nnm-mobile-phones-label i { margin-right: 6px; }
.nnm-mobile-phone {
    display: block;
    padding: 10px 0;
    color: var(--nnm-dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nnm-mobile-phone:last-child { border-bottom: 0; }
.nnm-mobile-phone i { color: var(--nnm-orange); margin-right: 8px; }
.nnm-mobile-whatsapp { color: #25d366 !important; }
.nnm-mobile-whatsapp i { color: #25d366 !important; font-size: 1.1rem; }

@media (max-width: 1024px) {
    .nnm-nav, .nnm-header-quote-btn { display: none; }
    /* Keep the FIRST phone visible on the right of the header */
    .nnm-header-cta { gap: 8px; }
    .nnm-header-phone-extra { display: none; }
    .nnm-header-phone { font-size: .8rem; }
    .nnm-header-phone span { display: inline; }
    .nnm-menu-toggle { display: block; }
}
@media (max-width: 480px) {
    /* Compress: show only the phone icon (number is still tap-to-call) */
    .nnm-header-phone span { display: none; }
    .nnm-header-phone {
        width: 38px; height: 38px;
        justify-content: center;
        background: var(--nnm-orange);
        color: #fff !important;
        border-radius: 50%;
    }
    .nnm-header-phone i { color: #fff !important; font-size: .95rem; }
}

/* BUTTONS */
.nnm-btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 14px 28px; font-size: .875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    border: 0; cursor: pointer; transition: all .2s;
    border-radius: 2px; text-decoration: none;
}
.nnm-btn-orange { background: var(--nnm-orange); color: #fff; }
.nnm-btn-orange:hover { background: var(--nnm-orange-hover); }
.nnm-btn-dark { background: var(--nnm-dark); color: #fff; }
.nnm-btn-white { background: #fff; color: var(--nnm-dark); }
.nnm-btn-white:hover { background: rgba(255, 255, 255, 0.9); }
.nnm-btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.nnm-btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); }
.nnm-btn-outline-dark { background: transparent; color: var(--nnm-dark); border: 2px solid var(--nnm-dark); }
.nnm-btn-outline-dark:hover { background: var(--nnm-dark); color: #fff; }
.nnm-btn-whatsapp { background: #25D366; color: #fff; }
.nnm-btn-whatsapp:hover { background: #1ebe57; }
.nnm-btn-block { width: 100%; }

/* HERO */
.nnm-hero {
    position: relative; overflow: hidden;
    background-color: var(--nnm-dark);
    background-size: cover; background-position: center;
    color: #fff;
}
.nnm-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(10, 37, 64, .95), rgba(10, 37, 64, .8), rgba(10, 37, 64, .3));
}
.nnm-hero-inner { position: relative; padding: 100px 24px 140px; max-width: 1240px; }
.nnm-hero-inner .nnm-overline, .nnm-hero-inner .nnm-badge { z-index: 2; }
.nnm-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.4);
    font-family: 'IBM Plex Mono', monospace; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .2em;
    color: var(--nnm-orange); margin-bottom: 28px;
}
.nnm-badge-dot {
    width: 8px; height: 8px; background: var(--nnm-orange);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .5; } }

.nnm-hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
    margin: 0 0 24px; max-width: 900px; color: #fff;
}
.nnm-hero-sub {
    font-size: 1.125rem; color: rgba(255, 255, 255, .75);
    max-width: 700px; margin: 0 0 40px;
}
.nnm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.nnm-hero-strip {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 37, 64, 0.5);
    backdrop-filter: blur(8px);
}
.nnm-hero-strip .nnm-container {
    padding: 18px 24px;
    display: flex; flex-wrap: wrap; gap: 24px;
    font-family: 'IBM Plex Mono', monospace; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .25em;
    color: rgba(255, 255, 255, 0.6);
}
.nnm-strip-label { color: var(--nnm-orange); }
.nnm-strip-sep { color: rgba(255, 255, 255, 0.3); }

/* STATS */
.nnm-stats { background: #fff; border-bottom: 1px solid var(--nnm-border); }
.nnm-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.nnm-stat { padding: 40px 24px; text-align: center; border-right: 1px solid var(--nnm-border); }
.nnm-stat:last-child { border-right: 0; }
.nnm-stat-value {
    font-family: 'Chivo', sans-serif; font-weight: 900;
    font-size: 3rem; letter-spacing: -0.04em; color: var(--nnm-dark);
}
.nnm-stat-label {
    font-family: 'IBM Plex Mono', monospace; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .2em;
    color: var(--nnm-orange); font-weight: 600; margin-top: 8px;
}
@media (max-width: 700px) { .nnm-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ABOUT TEASER */
.nnm-about-images {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.nnm-img-big { grid-column: span 2; height: 380px; object-fit: cover; }
.nnm-about-images img:not(.nnm-img-big) { height: 220px; object-fit: cover; }

.nnm-link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--nnm-orange); transition: gap .2s;
}
.nnm-link-arrow:hover { gap: 12px; }

/* PRODUCTS */
.nnm-products-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.nnm-products-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .nnm-products-grid, .nnm-products-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nnm-products-grid, .nnm-products-grid-3 { grid-template-columns: 1fr; } }

.nnm-product-card {
    background: #fff; border: 1px solid var(--nnm-border);
    display: flex; flex-direction: column;
    transition: all .3s; overflow: hidden;
}
.nnm-product-card:hover { border-color: var(--nnm-orange); transform: translateY(-4px); }
.nnm-product-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--nnm-light); }
.nnm-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nnm-product-card:hover .nnm-product-img img { transform: scale(1.05); }
.nnm-product-tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--nnm-dark); color: #fff;
    padding: 4px 8px; font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem; text-transform: uppercase; letter-spacing: .1em;
}
.nnm-product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.nnm-product-title { font-family: 'Chivo', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0 0 8px; color: var(--nnm-dark); }
.nnm-product-excerpt { font-size: .8rem; color: var(--nnm-muted); margin: 0 0 16px; flex: 1; line-height: 1.5; }
.nnm-product-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--nnm-border); }
.nnm-product-cta { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; font-weight: 700; color: var(--nnm-orange); text-transform: uppercase; letter-spacing: .08em; }
.nnm-product-variants { font-size: .7rem; color: var(--nnm-muted); font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }

/* WHY US */
.nnm-why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) { .nnm-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nnm-why-grid { grid-template-columns: 1fr; } }
.nnm-why-card { background: var(--nnm-dark); padding: 36px; transition: background .3s; }
.nnm-why-card:hover { background: var(--nnm-dark-hover); }
.nnm-why-icon {
    width: 56px; height: 56px;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.4);
    display: flex; align-items: center; justify-content: center;
    color: var(--nnm-orange); font-size: 1.25rem;
    margin-bottom: 20px; transition: all .3s;
}
.nnm-why-card:hover .nnm-why-icon { background: var(--nnm-orange); color: #fff; }
.nnm-why-title { font-family: 'Chivo', sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 12px; }
.nnm-why-desc { font-size: .9rem; color: rgba(255, 255, 255, 0.65); margin: 0; line-height: 1.6; }

/* PROCESS */
.nnm-process-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .nnm-process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nnm-process-grid { grid-template-columns: 1fr; } }
.nnm-process-card {
    background: var(--nnm-light); border-left: 4px solid var(--nnm-orange);
    padding: 28px; transition: transform .3s;
}
.nnm-process-card:hover { transform: translateY(-4px); }
.nnm-process-step { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; font-weight: 700; color: var(--nnm-orange); margin-bottom: 8px; letter-spacing: .1em; }
.nnm-process-title { font-family: 'Chivo', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--nnm-dark); margin: 0 0 12px; }
.nnm-process-desc { font-size: .9rem; color: rgba(10, 37, 64, 0.7); margin: 0; }

/* MARQUEE */
.nnm-marquee { background: var(--nnm-orange); color: #fff; padding: 24px 0; overflow: hidden; }
.nnm-marquee-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: marquee 40s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.nnm-marquee-item {
    font-family: 'Chivo', sans-serif; font-weight: 700;
    font-size: 1.75rem; text-transform: uppercase; letter-spacing: -.01em;
    display: inline-flex; align-items: center; gap: 48px;
}
.nnm-marquee-sep { color: rgba(255, 255, 255, 0.4); font-size: 1.75rem; }

/* GALLERY */
.nnm-gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.nnm-gallery-grid-tour { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .nnm-gallery-grid, .nnm-gallery-grid-tour { grid-template-columns: repeat(2, 1fr); } }

.nnm-gallery-item {
    position: relative; aspect-ratio: 1; overflow: hidden;
    background: var(--nnm-light); border: 0; padding: 0; cursor: pointer;
}
.nnm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nnm-gallery-item:hover img { transform: scale(1.05); }
.nnm-gallery-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* TESTIMONIALS */
.nnm-testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .nnm-testimonial-grid { grid-template-columns: 1fr; } }
.nnm-testimonial {
    border: 2px solid var(--nnm-border); padding: 36px;
    transition: border-color .3s;
}
.nnm-testimonial:hover { border-color: var(--nnm-orange); }
.nnm-quote-icon { color: var(--nnm-orange); font-size: 1.75rem; margin-bottom: 16px; }
.nnm-testimonial-text {
    font-family: 'Chivo', sans-serif; font-size: 1.125rem;
    color: var(--nnm-dark); line-height: 1.5; margin: 0 0 28px;
}
.nnm-testimonial-meta { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--nnm-border); }
.nnm-testimonial-name { font-weight: 700; color: var(--nnm-dark); }
.nnm-testimonial-role { font-size: .75rem; color: var(--nnm-muted); margin-top: 4px; }
.nnm-testimonial-loc { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nnm-orange); }

/* BLOG */
.nnm-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .nnm-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nnm-blog-grid { grid-template-columns: 1fr; } }
.nnm-blog-card { background: #fff; overflow: hidden; transition: transform .3s; }
.nnm-blog-card:hover { transform: translateY(-4px); }
.nnm-blog-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.nnm-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nnm-blog-card:hover .nnm-blog-img img { transform: scale(1.05); }
.nnm-blog-body { padding: 24px; }
.nnm-blog-meta { display: flex; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: var(--nnm-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.nnm-blog-meta .nnm-text-orange { font-weight: 700; }
.nnm-blog-title { font-family: 'Chivo', sans-serif; font-size: 1.125rem; font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
.nnm-blog-excerpt { font-size: .85rem; color: var(--nnm-muted); margin: 0; }

/* CONTACT INFO */
.nnm-contact-info { margin-top: 32px; }
.nnm-contact-info div { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: rgba(255, 255, 255, 0.85); font-size: .9rem; }
.nnm-contact-info i { color: var(--nnm-orange); margin-top: 4px; }
.nnm-contact-info a { color: rgba(255, 255, 255, 0.85); }
.nnm-contact-info a:hover { color: var(--nnm-orange); }

/* FORMS */
.nnm-form {
    background: #fff; padding: 36px;
}
.nnm-form-light { background: var(--nnm-dark); color: #fff; }
.nnm-form-light input, .nnm-form-light textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}
.nnm-form-light input::placeholder, .nnm-form-light textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.nnm-form-title { font-family: 'Chivo', sans-serif; font-size: 1.75rem; font-weight: 700; margin: 0 0 20px; }
.nnm-form-light .nnm-form-title { color: #fff; }
.nnm-form input, .nnm-form textarea {
    width: 100%; border: 1px solid var(--nnm-border);
    padding: 12px 16px; font-size: .9rem; font-family: inherit;
    background: #fff; color: var(--nnm-dark);
    margin-bottom: 12px; transition: border-color .2s; border-radius: 2px;
}
.nnm-form input:focus, .nnm-form textarea:focus { outline: 0; border-color: var(--nnm-orange); }
.nnm-form textarea { resize: vertical; }
.nnm-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .nnm-form-row-2 { grid-template-columns: 1fr; } }
.nnm-form-loader { display: none; }
.nnm-form.is-loading .nnm-form-label { display: none; }
.nnm-form.is-loading .nnm-form-loader { display: inline; }

/* FOOTER */
.nnm-footer {
    background: var(--nnm-dark); color: #fff;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}
.nnm-footer-newsletter { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 48px 0; }
.nnm-newsletter-form { display: flex; gap: 8px; }
.nnm-newsletter-form input {
    flex: 1; background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
    padding: 14px 16px; border-radius: 2px;
}
.nnm-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.nnm-newsletter-form input:focus { outline: 0; border-color: var(--nnm-orange); }

.nnm-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px; padding: 64px 24px;
}
@media (max-width: 900px) { .nnm-footer-grid { grid-template-columns: 1fr; } }

.nnm-footer-tagline { color: rgba(255, 255, 255, 0.7); font-size: .9rem; margin: 20px 0; }
.nnm-footer-contact { list-style: none; padding: 0; margin: 0; }
.nnm-footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: .875rem; color: rgba(255, 255, 255, 0.8); }
.nnm-footer-contact i { color: var(--nnm-orange); margin-top: 4px; }
.nnm-footer-contact a { color: inherit; }
.nnm-footer-contact a:hover { color: var(--nnm-orange); }

.nnm-footer-title {
    font-family: 'IBM Plex Mono', monospace; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .2em;
    color: var(--nnm-orange); margin: 0 0 20px;
}
.nnm-footer-links { list-style: none; padding: 0; margin: 0; }
.nnm-footer-links li a {
    display: inline-flex; gap: 8px; align-items: center;
    color: rgba(255, 255, 255, 0.7); font-size: .85rem;
    padding: 4px 0;
}
.nnm-footer-links li a:hover { color: var(--nnm-orange); }
.nnm-footer-links i { font-size: .65rem; }

.nnm-footer-categories .nnm-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }

.nnm-footer-socials {
    border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0;
}
.nnm-footer-socials .nnm-container { display: flex; gap: 16px; }
.nnm-footer-socials a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: all .2s;
}
.nnm-footer-socials a:hover { background: var(--nnm-orange); }

.nnm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.nnm-footer-bottom .nnm-container {
    padding: 16px 24px; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; font-size: .75rem; color: rgba(255, 255, 255, 0.5);
}
.nnm-footer-bottom p { margin: 0; }

/* WHATSAPP FLOATING */
.nnm-whatsapp {
    position: fixed; bottom: 24px; right: 24px; z-index: 70;
    background: #25D366; color: #fff;
    padding: 16px; border-radius: 50%;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform .3s, border-radius .3s, padding .3s;
}
.nnm-whatsapp:hover { transform: translateY(-4px); padding: 16px 20px; border-radius: 40px; }
.nnm-whatsapp i { font-size: 1.5rem; position: relative; z-index: 1; }
.nnm-whatsapp-label { display: none; font-weight: 700; font-size: .875rem; padding-right: 4px; }
.nnm-whatsapp:hover .nnm-whatsapp-label { display: inline; }

/* Animated pulse halo — draws attention without being annoying */
.nnm-whatsapp-pulse {
    position: absolute; inset: 0;
    border-radius: inherit;
    background: #25D366;
    opacity: .55;
    animation: nnmWaPulse 2.4s cubic-bezier(.22,.61,.36,1) infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes nnmWaPulse {
    0%   { transform: scale(.95); opacity: .55; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .nnm-whatsapp-pulse { animation: none; }
}

/* Product-page variant: shows the "Ask about [Product]" label permanently
   on desktop so visitors instantly know they can inquire about THIS machine. */
.nnm-whatsapp-product {
    border-radius: 40px;
    padding: 14px 20px 14px 18px;
    bottom: 28px;
    box-shadow: 0 16px 40px rgba(37, 211, 102, .55);
}
.nnm-whatsapp-product .nnm-whatsapp-label {
    display: inline-block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nnm-whatsapp-product i { font-size: 1.6rem; }
@media (max-width: 640px) {
    /* On mobile collapse to a circle to save screen space */
    .nnm-whatsapp-product { border-radius: 50%; padding: 16px; }
    .nnm-whatsapp-product .nnm-whatsapp-label { display: none; }
    .nnm-whatsapp-product:hover .nnm-whatsapp-label { display: none; }
}

/* TOAST */
.nnm-toast {
    position: fixed; top: 24px; right: 24px; z-index: 100;
    background: var(--nnm-dark); color: #fff;
    padding: 14px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px); opacity: 0; pointer-events: none;
    transition: all .3s; max-width: 360px; font-size: .9rem;
    border-left: 4px solid var(--nnm-orange);
}
.nnm-toast.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nnm-toast.is-error { border-left-color: #ef4444; }
.nnm-toast.is-success { border-left-color: #22c55e; }

/* PAGE HEROES */
.nnm-page-hero {
    background: var(--nnm-dark); color: #fff; position: relative; overflow: hidden;
}
.nnm-page-hero-sm { padding: 80px 0; }
.nnm-page-hero-inner {
    padding: 100px 24px; background-size: cover; background-position: center;
    position: relative; max-width: 100%;
}
.nnm-page-hero-inner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(10, 37, 64, .95), rgba(10, 37, 64, .8), rgba(10, 37, 64, .3));
}
.nnm-page-hero-inner > * { position: relative; z-index: 2; }
.nnm-page-hero-inner .nnm-overline,
.nnm-page-hero-inner .nnm-page-hero-title,
.nnm-page-hero-inner .nnm-page-hero-sub { max-width: 1240px; margin-left: auto; margin-right: auto; }
.nnm-page-hero-title {
    font-family: 'Chivo', sans-serif; font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em;
    line-height: 1.05; margin: 0 0 20px; color: #fff;
}
.nnm-page-hero-sub { font-size: 1.125rem; color: rgba(255, 255, 255, 0.75); max-width: 700px; }

.nnm-back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'IBM Plex Mono', monospace; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255, 255, 255, 0.7); margin-bottom: 16px;
}
.nnm-back-link:hover { color: var(--nnm-orange); }

/* ARCHIVE */
.nnm-archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
@media (max-width: 900px) { .nnm-archive-layout { grid-template-columns: 1fr; } }
.nnm-sidebar-title { font-family: 'Chivo', sans-serif; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--nnm-dark); margin: 0 0 16px; }
.nnm-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nnm-cat-list a {
    display: block; padding: 10px 16px;
    font-size: .85rem; font-weight: 600; color: var(--nnm-dark);
}
.nnm-cat-list a:hover { background: #fff; }
.nnm-cat-list a.is-active { background: var(--nnm-orange); color: #fff; }
.nnm-cat-list a.is-active-dark { background: var(--nnm-dark); color: #fff; }
.nnm-cat-list a small { display: block; font-size: .65rem; opacity: .7; font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }

/* SINGLE PRODUCT */
.nnm-product-detail-img { aspect-ratio: 4/3; background: var(--nnm-light); overflow: hidden; margin-bottom: 16px; }
.nnm-product-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.nnm-thumb { aspect-ratio: 1; overflow: hidden; background: var(--nnm-light); }
.nnm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nnm-product-block { margin-bottom: 32px; }
.nnm-prose { color: rgba(10, 37, 64, 0.8); line-height: 1.7; }
.nnm-prose p { margin: 0 0 1em; }
.nnm-feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .nnm-feature-list { grid-template-columns: 1fr; } }
.nnm-feature-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: rgba(10, 37, 64, 0.8); }
.nnm-feature-list i { color: var(--nnm-orange); margin-top: 4px; flex-shrink: 0; }
.nnm-specs-table { border: 1px solid var(--nnm-border); }
.nnm-spec-row { display: grid; grid-template-columns: 1fr 1fr; }
.nnm-spec-row.is-alt { background: var(--nnm-light); }
.nnm-spec-label { padding: 14px 16px; font-weight: 700; color: var(--nnm-dark); border-right: 1px solid var(--nnm-border); font-size: .9rem; }
.nnm-spec-value { padding: 14px 16px; color: rgba(10, 37, 64, 0.8); font-size: .9rem; }
.nnm-app-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nnm-app-tag { padding: 6px 12px; border: 1px solid var(--nnm-border); font-size: .85rem; font-weight: 500; }
.nnm-video { aspect-ratio: 16/9; background: var(--nnm-dark); }
.nnm-video iframe { width: 100%; height: 100%; border: 0; }

.nnm-product-sidebar { position: sticky; top: 100px; }
.nnm-sidebar-card { padding: 28px; margin-bottom: 16px; }
.nnm-sidebar-card .nnm-h3 { color: #fff; margin-top: 20px; }
.nnm-variant-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.nnm-variant-tag { padding: 6px 12px; background: rgba(255, 107, 0, 0.15); border: 1px solid rgba(255, 107, 0, 0.4); color: var(--nnm-orange); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.nnm-contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.nnm-contact-icon { width: 40px; height: 40px; background: var(--nnm-dark); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.nnm-contact-row:hover .nnm-contact-icon { background: var(--nnm-orange); }
.nnm-contact-name { font-weight: 700; color: var(--nnm-dark); font-size: .85rem; }
.nnm-contact-phone { font-size: .75rem; color: var(--nnm-muted); }

/* PAGES */
.nnm-prose-section { max-width: 760px; margin: 0 auto; }
.nnm-prose-section p { font-size: 1.05rem; line-height: 1.8; color: rgba(10, 37, 64, 0.8); }

/* About M&V cards */
.nnm-mv-card { background: #fff; padding: 40px; border-top: 4px solid var(--nnm-orange); }
.nnm-mv-card.nnm-mv-dark { border-top-color: var(--nnm-dark); }
.nnm-mv-icon { color: var(--nnm-orange); font-size: 2rem; margin-bottom: 20px; }
.nnm-mv-dark .nnm-mv-icon { color: var(--nnm-dark); }

.nnm-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
@media (max-width: 900px) { .nnm-cap-grid { grid-template-columns: 1fr; } }
.nnm-cap-card { border: 2px solid var(--nnm-border); padding: 32px; transition: border-color .2s; }
.nnm-cap-card:hover { border-color: var(--nnm-orange); }
.nnm-cap-icon { color: var(--nnm-orange); font-size: 2rem; margin-bottom: 20px; }

.nnm-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .nnm-team-grid { grid-template-columns: 1fr; } }
.nnm-team-card { background: #fff; padding: 32px; border-left: 4px solid var(--nnm-orange); }
.nnm-team-avatar {
    width: 64px; height: 64px; background: var(--nnm-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Chivo', sans-serif; font-weight: 900;
    color: var(--nnm-orange); font-size: 1.5rem; margin-bottom: 20px;
}
.nnm-team-role { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nnm-orange); font-weight: 700; margin: 4px 0 12px; font-family: 'IBM Plex Mono', monospace; }

.nnm-facilities-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--nnm-border);
}
@media (max-width: 900px) { .nnm-facilities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nnm-facilities-grid { grid-template-columns: 1fr; } }
.nnm-facility-card { background: #fff; padding: 32px; transition: background .2s; }
.nnm-facility-card:hover { background: var(--nnm-light); }
.nnm-facility-icon {
    width: 56px; height: 56px; background: var(--nnm-dark);
    color: var(--nnm-orange); display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 20px; transition: all .2s;
}
.nnm-facility-card:hover .nnm-facility-icon { background: var(--nnm-orange); color: #fff; }

/* Contact page */
.nnm-contact-card { border: 2px solid var(--nnm-border); padding: 24px; margin: 24px 0; }
.nnm-contact-block { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.nnm-contact-block:last-child { margin-bottom: 0; }
.nnm-contact-icon-lg { width: 44px; height: 44px; background: var(--nnm-orange); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nnm-contact-block-label { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--nnm-dark); }
.nnm-contact-block p { margin: 4px 0 0; color: rgba(10, 37, 64, 0.8); font-size: .9rem; }

.nnm-direct-call { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.nnm-direct-row {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; background: var(--nnm-light);
    border-left: 4px solid var(--nnm-orange); transition: background .2s;
}
.nnm-direct-row:hover { background: rgba(255, 107, 0, 0.1); }
.nnm-direct-row > i { color: var(--nnm-orange); font-size: 1.25rem; }
.nnm-direct-meta { flex: 1; }
.nnm-direct-name { font-weight: 700; color: var(--nnm-dark); }
.nnm-direct-role { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nnm-muted); }

.nnm-map { background: #fff; padding: 8px; }
.nnm-map iframe { display: block; }

/* MODAL & LIGHTBOX */
.nnm-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.nnm-modal[hidden] { display: none; }
.nnm-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 37, 64, 0.7); backdrop-filter: blur(4px); }
.nnm-modal-body { position: relative; background: #fff; max-width: 560px; width: 100%; padding: 8px; max-height: 90vh; overflow-y: auto; border: 2px solid var(--nnm-dark); }
.nnm-modal-close {
    position: absolute; top: 12px; right: 12px;
    background: var(--nnm-dark); color: #fff; border: 0;
    width: 36px; height: 36px; font-size: 1.5rem; cursor: pointer; z-index: 1;
}

.nnm-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 37, 64, 0.95); display: flex; align-items: center; justify-content: center; padding: 24px; }
.nnm-lightbox[hidden] { display: none; }
.nnm-lightbox img { max-width: 90vw; max-height: 90vh; }
.nnm-lightbox-close { position: absolute; top: 20px; right: 20px; background: var(--nnm-orange); color: #fff; border: 0; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; }

/* PAGINATION */
.nnm-pagination { margin-top: 48px; display: flex; justify-content: center; }
.nnm-pagination .nav-links { display: flex; gap: 8px; }
.nnm-pagination a, .nnm-pagination span {
    padding: 10px 16px; font-weight: 700;
    background: #fff; color: var(--nnm-dark); border: 1px solid var(--nnm-border);
}
.nnm-pagination .current { background: var(--nnm-orange); color: #fff; border-color: var(--nnm-orange); }
.nnm-pagination a:hover { background: var(--nnm-dark); color: #fff; border-color: var(--nnm-dark); }

/* SEARCH */
.nnm-search-form { display: flex; gap: 8px; max-width: 480px; }
.nnm-search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--nnm-border); }
.nnm-search-form button { padding: 12px 20px; background: var(--nnm-orange); color: #fff; border: 0; }

/* 404 */
.nnm-section-404 { padding: 120px 0; }
.nnm-section-404 .nnm-btn { margin: 8px 6px; }

/* Empty state */
.nnm-empty { background: #fff; padding: 64px; text-align: center; color: var(--nnm-muted); }
.nnm-empty code { background: var(--nnm-light); padding: 2px 8px; font-family: 'IBM Plex Mono', monospace; font-size: .85rem; }

/* Single thumbnail */
.nnm-single-thumb { margin-bottom: 32px; }
.nnm-single-thumb img { width: 100%; height: auto; }

/* Screen reader only */
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Sidebar widget basics */
.nnm-widget { margin-bottom: 24px; }
.nnm-widget-title { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--nnm-orange); margin: 0 0 16px; }

/* ============================================================
   BROCHURE — Gated lead capture
   ============================================================ */
.nnm-brochure-card {
    background: #fff;
    border: 2px dashed var(--nnm-orange);
    padding: 24px;
    text-align: center;
    position: relative;
}
.nnm-brochure-card::before {
    content: 'FREE';
    position: absolute; top: -10px; right: 16px;
    background: var(--nnm-orange); color: #fff;
    padding: 3px 10px; font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem; font-weight: 700; letter-spacing: .15em;
}
.nnm-brochure-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--nnm-orange);
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.nnm-brochure-card .nnm-h5 {
    font-size: 1.05rem;
    color: var(--nnm-dark);
    margin: 0 0 8px;
}
.nnm-brochure-desc {
    font-size: .85rem;
    color: rgba(10, 37, 64, 0.7);
    margin: 0 0 18px;
    line-height: 1.5;
}
.nnm-brochure-trust {
    margin-top: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--nnm-muted);
}
.nnm-brochure-trust i {
    color: #22c55e;
    margin-right: 4px;
}

/* Brochure modal */
.nnm-brochure-modal-body {
    max-width: 480px;
    border: 2px solid var(--nnm-orange) !important;
}
.nnm-brochure-modal-content {
    padding: 32px 28px 28px;
    text-align: center;
}
.nnm-brochure-pdf-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: var(--nnm-orange);
    color: #fff;
    font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px;
}
.nnm-brochure-modal-content .nnm-h3 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: var(--nnm-dark);
}
.nnm-brochure-modal-content .nnm-body {
    font-size: .9rem;
    color: rgba(10, 37, 64, 0.7);
    margin: 0 0 24px;
    line-height: 1.5;
}
.nnm-brochure-form {
    padding: 0;
    text-align: left;
}
.nnm-brochure-fine {
    margin: 12px 0 0;
    font-size: .75rem;
    color: var(--nnm-muted);
    text-align: center;
}
.nnm-brochure-fine i {
    color: #22c55e;
    margin-right: 4px;
}

/* ============================================================
   COMPARE MACHINES
   ============================================================ */
.nnm-product-card-wrap {
    position: relative;
}
.nnm-compare-add {
    position: absolute; top: 12px; right: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--nnm-dark);
    border: 1px solid var(--nnm-border);
    padding: 6px 12px; border-radius: 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .2s;
}
.nnm-compare-add:hover {
    background: var(--nnm-orange); color: #fff; border-color: var(--nnm-orange);
}
.nnm-compare-add.is-added {
    background: var(--nnm-orange); color: #fff; border-color: var(--nnm-orange);
}

/* Compare Drawer */
.nnm-compare-drawer {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--nnm-dark); color: #fff;
    z-index: 65;
    border-top: 3px solid var(--nnm-orange);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(0); transition: transform .3s;
}
.nnm-compare-drawer[hidden] { display: none; }
.nnm-compare-drawer-inner {
    max-width: 1240px; margin: 0 auto;
    padding: 16px 24px;
    display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
    align-items: center;
}
@media (max-width: 900px) {
    .nnm-compare-drawer-inner { grid-template-columns: 1fr; gap: 12px; padding: 12px 16px; }
}
.nnm-compare-drawer-head {
    display: flex; align-items: center; gap: 12px;
}
.nnm-compare-drawer-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Chivo', sans-serif; font-weight: 700;
    font-size: .9rem; text-transform: uppercase; letter-spacing: .08em;
}
.nnm-compare-drawer-title i { color: var(--nnm-orange); font-size: 1.1rem; }
.nnm-compare-counter {
    background: var(--nnm-orange); color: #fff;
    padding: 2px 10px; font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem; font-weight: 700;
}
.nnm-compare-drawer-close {
    background: transparent; color: rgba(255, 255, 255, 0.6);
    border: 0; font-size: 1.5rem; cursor: pointer;
}
.nnm-compare-drawer-close:hover { color: #fff; }

.nnm-compare-drawer-items {
    display: flex; gap: 8px; overflow-x: auto;
}
.nnm-compare-drawer-item {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 10px 6px 6px;
    flex-shrink: 0;
    max-width: 240px;
}
.nnm-compare-drawer-item img {
    width: 32px; height: 32px; object-fit: cover; flex-shrink: 0;
}
.nnm-compare-drawer-itemname {
    font-size: .75rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 160px;
}
.nnm-compare-drawer-remove {
    background: transparent; border: 0; color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.nnm-compare-drawer-remove:hover { color: var(--nnm-orange); }

.nnm-compare-drawer-actions {
    display: flex; gap: 12px; align-items: center;
}
.nnm-compare-clear-link {
    background: transparent; border: 0; color: rgba(255, 255, 255, 0.5);
    font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
    cursor: pointer; font-family: 'IBM Plex Mono', monospace;
}
.nnm-compare-clear-link:hover { color: #fff; }

/* Compare Table Page */
.nnm-compare-wrap {
    overflow-x: auto;
    background: #fff;
}
.nnm-compare-table {
    width: 100%; border-collapse: collapse; min-width: 720px;
}
.nnm-compare-table th, .nnm-compare-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--nnm-border);
    vertical-align: top;
    text-align: left;
}
.nnm-compare-table thead th {
    background: var(--nnm-dark); color: #fff;
    vertical-align: top;
    position: relative; padding: 24px 20px;
    text-align: center;
}
.nnm-compare-label-col {
    width: 200px;
    background: var(--nnm-light) !important;
    color: var(--nnm-dark) !important;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
}
.nnm-compare-product-col {
    width: 280px;
}
.nnm-compare-thumb {
    width: 120px; height: 90px; margin: 0 auto 12px;
    overflow: hidden; background: rgba(255, 255, 255, 0.05);
}
.nnm-compare-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nnm-compare-cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem; text-transform: uppercase; letter-spacing: .15em;
    color: var(--nnm-orange); margin-bottom: 6px;
}
.nnm-compare-title {
    display: block; font-family: 'Chivo', sans-serif;
    font-weight: 700; font-size: 1rem; color: #fff;
    line-height: 1.3;
}
.nnm-compare-title:hover { color: var(--nnm-orange); }
.nnm-compare-remove {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; line-height: 1; border-radius: 50%;
    transition: background .2s;
}
.nnm-compare-remove:hover { background: var(--nnm-orange); }

.nnm-compare-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
    font-weight: 700; color: var(--nnm-dark);
    background: var(--nnm-light);
    border-right: 1px solid var(--nnm-border);
}
.nnm-compare-value {
    font-size: .9rem; color: rgba(10, 37, 64, 0.85);
    line-height: 1.5;
}
.nnm-compare-feat-list { list-style: none; padding: 0; margin: 0; }
.nnm-compare-feat-list li {
    display: flex; gap: 8px; align-items: flex-start;
    font-size: .8rem; margin-bottom: 6px;
}
.nnm-compare-feat-list i { color: var(--nnm-orange); margin-top: 4px; font-size: .7rem; }
.nnm-compare-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nnm-compare-tag {
    padding: 3px 8px; background: var(--nnm-light);
    border: 1px solid var(--nnm-border); font-size: .75rem;
}
.nnm-compare-cta-row td { background: rgba(255, 107, 0, 0.05) !important; }

.nnm-compare-actions {
    display: flex; justify-content: center; gap: 12px;
    margin-top: 32px; flex-wrap: wrap;
}

@media (max-width: 700px) {
    .nnm-compare-table th, .nnm-compare-table td { padding: 12px; font-size: .85rem; }
    .nnm-compare-thumb { width: 80px; height: 60px; }
}

/* =====================================================
   Featured Categories Grid (homepage)
   ===================================================== */
.nnm-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.nnm-cat-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .35s ease;
}
.nnm-cat-card:hover { transform: translateY(-4px); }
.nnm-cat-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0) 35%, rgba(10, 37, 64, .92) 100%);
}
.nnm-cat-card-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px;
    z-index: 2;
}
.nnm-cat-card-count {
    display: inline-block;
    padding: 4px 10px;
    background: var(--nnm-orange);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.nnm-cat-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 8px;
}
.nnm-cat-card-cta {
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    opacity: .85;
    letter-spacing: .03em;
}
.nnm-cat-card-cta i { margin-left: 6px; transition: transform .25s ease; }
.nnm-cat-card:hover .nnm-cat-card-cta i { transform: translateX(4px); }

@media (max-width: 1024px) {
    .nnm-cats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .nnm-cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .nnm-cats-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   Hero Slider v2.3 — vertical centering & breathing room
   The slide content is ALWAYS vertically centered. The saved Y position
   from the visual editor is ignored — the user's saved X position and
   width are still respected.
   ===================================================== */
.nnm-slider {
    position: relative;
    overflow: hidden;
    padding: 56px 0;            /* breathing room ABOVE and BELOW the slide */
    background: #0A2540;        /* fallback so the padding region looks intentional */
}
.nnm-slider-track { position: relative; z-index: 2; }
.nnm-slider-track::before { content: ''; display: block; height: 1px; }

.nnm-slide {
    display: none;
    position: absolute;
    inset: 0;
    color: #fff;
    overflow: hidden;
    animation: nnmSlideIn .6s cubic-bezier(.22, .61, .36, 1) both;
}
.nnm-slide.is-active { display: block; }
@keyframes nnmSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Background color themes ---------- */
.nnm-slide.nnm-bg-navy-orange { background: linear-gradient(135deg, #0A2540 0%, #102e4d 45%, #FF6B00 130%); }
/* Light-orange theme: white left half + orange diagonal shape on the right (matches the sample design) */
.nnm-slide.nnm-bg-light-orange { background: #ffffff; }
.nnm-slide.nnm-bg-light-orange::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #FF6B00;
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 35% 100%);
    z-index: 0;
}
.nnm-slide.nnm-bg-light-orange .nnm-slide-title,
.nnm-slide.nnm-bg-light-orange .nnm-slide-text { color: #0A2540 !important; }
.nnm-slide.nnm-bg-light-orange .nnm-slide-title { text-shadow: none; }
.nnm-slide.nnm-bg-light-orange .nnm-slide-overline { color: #0A2540; background: rgba(10,37,64,.08); border-color: rgba(10,37,64,.25); }
.nnm-slide.nnm-bg-sunset      { background: linear-gradient(135deg, #ff6a00 0%, #ee0979 60%, #6a0572 100%); }
.nnm-slide.nnm-bg-ocean       { background: linear-gradient(135deg, #0f2027 0%, #203a43 45%, #2c5364 100%); }
.nnm-slide.nnm-bg-forest      { background: linear-gradient(135deg, #134e5e 0%, #1e8449 60%, #71b280 100%); }
.nnm-slide.nnm-bg-royal       { background: linear-gradient(135deg, #43006e 0%, #8e2de2 60%, #f72585 100%); }
.nnm-slide.nnm-bg-graphite    { background: linear-gradient(135deg, #1a1a1a 0%, #434343 60%, #8e8e8e 100%); }
.nnm-slide.nnm-bg-fire        { background: linear-gradient(135deg, #b91d1d 0%, #ff6b00 50%, #ffc000 100%); }
.nnm-slide.nnm-bg-midnight    { background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
.nnm-slide.nnm-bg-gold        { background: linear-gradient(135deg, #804a00 0%, #ffba00 50%, #ffd700 100%); }
.nnm-slide.nnm-bg-mint        { background: linear-gradient(135deg, #0f5b5b 0%, #1abc9c 60%, #84e9d4 100%); }

/* ---------- Pattern overlays ---------- */
.nnm-slide-pattern-overlay {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: .25;
    mix-blend-mode: overlay;
}
.nnm-pattern-grid .nnm-slide-pattern-overlay {
    background-image:
      linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: .14;
}
.nnm-pattern-dots .nnm-slide-pattern-overlay {
    background-image: radial-gradient(rgba(255,255,255,.9) 1.5px, transparent 2px);
    background-size: 28px 28px;
    opacity: .22;
}
.nnm-pattern-diagonal .nnm-slide-pattern-overlay {
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px);
}
.nnm-pattern-hexagon .nnm-slide-pattern-overlay {
    background-image:
      radial-gradient(circle at 25% 25%, rgba(255,255,255,.15) 1px, transparent 2px),
      radial-gradient(circle at 75% 75%, rgba(255,255,255,.15) 1px, transparent 2px);
    background-size: 40px 70px;
    background-position: 0 0, 20px 35px;
}
.nnm-pattern-blueprint .nnm-slide-pattern-overlay {
    background:
      linear-gradient(rgba(255,255,255,.12) 2px, transparent 2px) 0 0 / 100% 60px,
      linear-gradient(90deg, rgba(255,255,255,.12) 2px, transparent 2px) 0 0 / 60px 100%,
      linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 15px,
      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 15px 100%;
}
.nnm-pattern-waves .nnm-slide-pattern-overlay {
    background: repeating-radial-gradient(circle at center, rgba(255,255,255,.08) 0 2px, transparent 2px 60px);
}
.nnm-pattern-circuit .nnm-slide-pattern-overlay {
    background:
      linear-gradient(0deg, transparent 49.5%, rgba(255,255,255,.18) 49.5% 50.5%, transparent 50.5%) 0 0 / 60px 60px,
      linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.18) 49.5% 50.5%, transparent 50.5%) 0 0 / 60px 60px,
      radial-gradient(rgba(255,255,255,.4) 2px, transparent 3px) 0 0 / 60px 60px;
}
.nnm-pattern-none .nnm-slide-pattern-overlay { display: none; }

/* ---------- Decorative glows ---------- */
.nnm-slide-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    pointer-events: none;
}
.nnm-slide-glow-1 { width: 380px; height: 380px; right: -80px; top: -80px;    background: rgba(255, 255, 255, .35); }
.nnm-slide-glow-2 { width: 260px; height: 260px; left: -60px;  bottom: -60px; background: rgba(255, 107, 0, .45); }

/* ---------- Orange shape on right (clip-path) ---------- */
.nnm-slide-shape {
    position: absolute;
    top: 0; bottom: 0;
    right: -3%;
    width: 58%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(0, 0, 0, .25) 100%);
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
    backdrop-filter: blur(8px);
}

/* ---------- Layout: text and photo are vertically centered ---------- */
.nnm-slide-inner {
    position: relative;
    z-index: 3;
    height: 100%;
}
.nnm-slide-text-abs {
    position: absolute !important;
    z-index: 4;
    container-type: inline-size;
    container-name: nnmtext;
    /* left, top, width are set inline from the visual editor — full X+Y drag */
}
.nnm-slide-text {
    color: #fff;
}

/* ---------- Photo (full X+Y drag, height-capped to never overflow) ---------- */
.nnm-slide-image-abs {
    position: absolute !important;
    aspect-ratio: 4 / 3;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Hard cap so the photo can never overflow the slide vertically. */
    max-height: 86%;
}
.nnm-slide-image-halo {
    position: absolute;
    inset: 5%;
    background: radial-gradient(circle, rgba(255, 255, 255, .28) 0%, transparent 65%);
    filter: blur(28px);
    z-index: -1;
}
.nnm-slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 32px 60px rgba(0, 0, 0, .45));
    transform: rotate(-1.5deg) scale(.94);
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.nnm-slide.is-active .nnm-slide-image { transform: rotate(0) scale(1); }

.nnm-slide-overline {
    display: inline-block;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.nnm-slide-title {
    color: #fff;
    line-height: 1.02;
    font-weight: 900;
    margin: 0 0 36px;
    text-transform: uppercase;
    letter-spacing: -.015em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
    word-break: break-word;
}

/* Title size variants — uses container-query inline-size (cqi) so the text always
   scales with the text BOX width, never the viewport. This prevents letter-by-letter
   wrapping like "MACHIN E" when the user drags the text box to a narrow width. */
.nnm-tsize-sm  .nnm-slide-title { font-size: clamp(1.1rem,  7cqi, 2.4rem); }
.nnm-tsize-md  .nnm-slide-title { font-size: clamp(1.2rem,  8cqi, 3.2rem); }
.nnm-tsize-lg  .nnm-slide-title { font-size: clamp(1.3rem,  9cqi, 4rem); }
.nnm-tsize-xl  .nnm-slide-title { font-size: clamp(1.4rem, 10cqi, 4.8rem); }
.nnm-tsize-xxl .nnm-slide-title { font-size: clamp(1.5rem, 11cqi, 5.6rem); }

/* Photo size variants — cap the photo HEIGHT per preset so it always fits the slide.
   Combined with aspect-ratio:4/3 the WIDTH naturally shrinks to keep the ratio,
   meaning the photo is ALWAYS fully visible no matter what the user drags. */
.nnm-psize-sm  .nnm-slide-image-abs { max-height: 55%; }
.nnm-psize-md  .nnm-slide-image-abs { max-height: 68%; }
.nnm-psize-lg  .nnm-slide-image-abs { max-height: 80%; }
.nnm-psize-xl  .nnm-slide-image-abs { max-height: 90%; }
.nnm-psize-xxl .nnm-slide-image-abs { max-height: 96%; }

.nnm-slide-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Photo area ---------- */
/* (legacy block kept for reference — image now uses .nnm-slide-image-abs) */

/* ---------- Arrows ---------- */
.nnm-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px; height: 60px;
    background: rgba(255, 255, 255, .15);
    border: 1.5px solid rgba(255, 255, 255, .35);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s ease, transform .25s ease, border-color .25s ease;
    backdrop-filter: blur(10px);
    border-radius: 50%;
}
.nnm-slider-arrow:hover { background: #FF6B00; border-color: #FF6B00; transform: translateY(-50%) scale(1.08); }
.nnm-slider-prev { left: 28px; }
.nnm-slider-next { right: 28px; }

/* ---------- Dots ---------- */
.nnm-slider-dots {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px;
    z-index: 10;
}
.nnm-slider-dot {
    width: 36px; height: 4px;
    background: rgba(255, 255, 255, .3);
    border: none; cursor: pointer; padding: 0;
    transition: background .25s ease, width .25s ease;
    border-radius: 4px;
}
.nnm-slider-dot.is-active { background: #fff; width: 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nnm-slider, .nnm-slider-track { min-height: auto; height: auto; }
    .nnm-slider { padding: 30px 0 40px; }
    .nnm-slide { position: relative; padding: 50px 24px 80px; }
    .nnm-slide-inner { height: auto; }
    .nnm-slide-text-abs {
        position: relative !important;
        left: auto !important; top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-bottom: 30px;
        padding-right: 0;
    }
    .nnm-slide-image-abs {
        position: relative !important;
        left: auto !important; top: auto !important;
        transform: none !important;
        width: 88% !important; max-width: 560px;
        max-height: none !important;
        margin: 0 auto;
    }
    .nnm-slider-arrow { width: 46px; height: 46px; }
    .nnm-slider-prev { left: 10px; }
    .nnm-slider-next { right: 10px; }
}
@media (max-width: 640px) {
    .nnm-tsize-sm .nnm-slide-title,
    .nnm-tsize-md .nnm-slide-title,
    .nnm-tsize-lg .nnm-slide-title,
    .nnm-tsize-xl .nnm-slide-title,
    .nnm-tsize-xxl .nnm-slide-title { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 22px; }
    .nnm-slide-cta .nnm-btn { padding: 11px 14px; font-size: .78rem; }
    .nnm-slider-dots { bottom: 30px; }
    .nnm-slider-dot { width: 24px; }
    .nnm-slider-dot.is-active { width: 40px; }
}

/* =====================================================
   Featured Categories Grid v1.8 — large card style with photos
   ===================================================== */
.nnm-cats-grid-big {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.nnm-cat-card-big {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .4s ease;
}
.nnm-cat-card-big:hover { transform: translateY(-6px); }
.nnm-cat-card-big::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0) 30%, rgba(10, 37, 64, .85) 75%, rgba(10, 37, 64, .96) 100%);
    transition: opacity .35s ease;
}
.nnm-cat-card-big:hover::before { background: linear-gradient(180deg, rgba(255, 107, 0, .15) 0%, rgba(10, 37, 64, .92) 75%, rgba(10, 37, 64, .98) 100%); }
.nnm-cat-card-big-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px 28px;
    z-index: 2;
}
.nnm-cat-card-big-count {
    display: inline-block;
    padding: 5px 11px;
    background: var(--nnm-orange);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.nnm-cat-card-big-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 10px;
}
.nnm-cat-card-big-cta {
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    opacity: .9;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nnm-cat-card-big-cta i { transition: transform .25s ease; }
.nnm-cat-card-big:hover .nnm-cat-card-big-cta i { transform: translateX(4px); }

@media (max-width: 980px)  { .nnm-cats-grid-big { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .nnm-cats-grid-big { grid-template-columns: 1fr; gap: 14px; } }
