/* ============================================================
   Nalubega Complex — main.css
   ============================================================ */

:root {
    --nc-dark:      #0B1120;
    --nc-dark-2:    #111827;
    --nc-border:    #1F2937;
    --nc-accent:    #3B82F6;
    --nc-accent-h:  #60A5FA;
    --nc-gold:      #F59E0B;
    --nc-gold-h:    #FBBF24;
    --nc-text:      #F3F4F6;
    --nc-muted:     #9CA3AF;
    --nc-white:     #FFFFFF;
    --nc-radius:    12px;
    --nc-radius-lg: 16px;
    --nc-font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --nc-max:       1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--nc-dark);
    color: var(--nc-text);
    font-family: var(--nc-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--nc-accent-h); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--nc-white); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.nc-container { max-width: var(--nc-max); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--nc-accent); color: #fff; padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

/* ============ Buttons ============ */
.nc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; border-radius: 12px; text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
    cursor: pointer; border: 0; font-family: inherit;
}
.nc-btn--primary {
    background: var(--nc-accent); color: #fff;
    padding: 12px 22px; font-size: .95rem;
    box-shadow: 0 10px 24px rgba(59,130,246,.25);
}
.nc-btn--primary:hover { background: var(--nc-accent-h); text-decoration: none; color: #fff; }
.nc-btn--gold { background: var(--nc-gold); color: #111827; padding: 12px 22px; font-size: .95rem; }
.nc-btn--gold:hover { background: var(--nc-gold-h); text-decoration: none; }
.nc-btn--ghost {
    background: transparent; color: var(--nc-text);
    border: 1px solid var(--nc-border); padding: 12px 22px;
}
.nc-btn--ghost:hover { border-color: #4B5563; text-decoration: none; color: #fff; }
.nc-btn--sm { padding: 9px 16px; font-size: .85rem; }
.nc-btn--lg { padding: 15px 28px; font-size: 1rem; }

/* ============ Header ============ */
.nc-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11,17,32,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--nc-border);
}
.nc-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 16px;
}
.nc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.nc-brand__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--nc-accent), var(--nc-gold));
    color: #fff; font-weight: 800; font-size: 16px;
}
.nc-brand__text { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; }

.nc-nav__list { display: none; gap: 28px; }
.nc-nav__list li a { color: var(--nc-muted); font-size: .92rem; font-weight: 500; }
.nc-nav__list li a:hover { color: #fff; text-decoration: none; }

.nc-header__cta { display: flex; align-items: center; gap: 10px; }
.nc-menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 4px; width: 40px; height: 40px; padding: 8px; flex: 0 0 40px;
    background: transparent; border: 1px solid var(--nc-border); border-radius: 8px; cursor: pointer;
}
.nc-menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

.nc-mobile { display: block; padding: 12px 20px 20px; border-top: 1px solid var(--nc-border); background: var(--nc-dark); }
.nc-mobile[hidden] { display: none !important; }
.nc-mobile__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.nc-mobile__list a { color: var(--nc-muted); font-weight: 500; }
.nc-mobile__cta { width: 100%; }

@media (min-width: 768px) {
    .nc-nav__list { display: flex; }
    .nc-menu-toggle { display: none; }
    .nc-mobile { display: none !important; }
}

/* ============ Hero ============ */
.nc-hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.nc-hero::before, .nc-hero::after {
    content: ""; position: absolute; pointer-events: none;
    width: 380px; height: 380px; border-radius: 50%; filter: blur(80px);
}
.nc-hero::before { background: rgba(59,130,246,.16); top: -80px; left: -80px; }
.nc-hero::after  { background: rgba(245,158,11,.10); bottom: -120px; right: -80px; }

.nc-hero__inner { position: relative; display: grid; gap: 48px; }
.nc-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; border: 1px solid;
}
.nc-pill--accent { color: var(--nc-accent-h); background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.25); }
.nc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nc-accent); }

.nc-hero__title { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin: 18px 0 18px; }
.nc-grad {
    background: linear-gradient(135deg, var(--nc-accent-h) 0%, var(--nc-accent) 50%, var(--nc-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.nc-hero__sub { color: var(--nc-muted); font-size: 1.1rem; max-width: 640px; margin: 0 0 28px; }
.nc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.nc-hero__trust {
    display: flex; flex-wrap: wrap; gap: 20px;
    color: var(--nc-muted); font-size: .82rem;
}
.nc-hero__trust li { color: #d1d5db; }

.nc-hero__visual { display: none; }
.nc-hero__card {
    position: relative; border-radius: var(--nc-radius-lg);
    overflow: hidden; border: 1px solid var(--nc-border);
    box-shadow: 0 25px 50px -12px rgba(59,130,246,.2);
}
.nc-hero__card img { width: 100%; height: 420px; object-fit: cover; }
.nc-hero__placeholder {
    height: 420px; background: linear-gradient(135deg, #1f2937, #111827);
}
.nc-hero__overlay {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px; border-radius: 12px;
    background: rgba(11,17,32,.85); border: 1px solid var(--nc-border);
    backdrop-filter: blur(8px);
}
.nc-hero__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nc-muted); }
.nc-hero__product { display: block; font-weight: 600; color: #fff; font-size: .9rem; }
.nc-hero__more { color: var(--nc-accent-h); font-size: .8rem; font-weight: 700; }

@media (min-width: 1024px) {
    .nc-hero { padding: 96px 0 112px; }
    .nc-hero__inner { grid-template-columns: 1.15fr 1fr; align-items: center; }
    .nc-hero__visual { display: block; }
}

/* ============ Sections ============ */
.nc-section { padding: 80px 0; }
.nc-section--alt { background: rgba(17,24,39,.55); border-top: 1px solid var(--nc-border); border-bottom: 1px solid var(--nc-border); }

.nc-section__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.nc-section__head--center { text-align: center; align-items: center; }
.nc-eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--nc-accent-h); margin-bottom: 6px;
}
.nc-eyebrow--gold { color: var(--nc-gold); }
.nc-section__title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.nc-section__lead { color: var(--nc-muted); margin: 8px 0 0; max-width: 620px; }
.nc-section__head--center .nc-section__lead { margin-left: auto; margin-right: auto; }
.nc-link { color: var(--nc-accent-h); font-weight: 600; font-size: .9rem; }
.nc-link--gold { color: var(--nc-gold); }
.nc-center { text-align: center; margin-top: 40px; }
.nc-note { text-align: center; color: var(--nc-muted); font-size: .85rem; margin-top: 32px; }
.nc-empty { color: var(--nc-muted); }

@media (min-width: 768px) {
    .nc-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .nc-section__head--center { flex-direction: column; align-items: center; justify-content: center; }
}

/* ============ Product grid & cards ============ */
.nc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .nc-grid--4, .nc-grid--3, .nc-grid--products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
    .nc-grid--4, .nc-grid--products { grid-template-columns: repeat(4, 1fr); }
    .nc-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.nc-card {
    position: relative;
    background: var(--nc-dark-2);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59,130,246,.35);
    box-shadow: 0 24px 48px -20px rgba(59,130,246,.35);
}
.nc-card__media { display: block; height: 180px; overflow: hidden; }
.nc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nc-card:hover .nc-card__media img { transform: scale(1.05); }
.nc-card__placeholder {
    display: block; height: 100%;
    background: linear-gradient(135deg, #1f2937, #0f172a);
}
.nc-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.nc-card__title { font-size: 1.05rem; font-weight: 700; margin: 8px 0 6px; }
.nc-card__title a { color: #fff; }
.nc-card__title a:hover { text-decoration: none; color: var(--nc-accent-h); }
.nc-card__specs { color: var(--nc-muted); font-size: .85rem; margin: 0 0 16px; }
.nc-card__footer {
    margin-top: auto; padding-top: 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(31,41,55,.6);
}
.nc-card__price { font-weight: 700; color: #fff; font-size: .95rem; }
.nc-card__cta { font-size: .8rem; font-weight: 700; color: var(--nc-accent-h); }

.nc-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: inline-block; font-size: .65rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 8px; border-radius: 6px; width: max-content;
}
.nc-tag--blue   { background: rgba(59,130,246,.12);  color: #60A5FA; }
.nc-tag--green  { background: rgba(16,185,129,.12);  color: #34D399; }
.nc-tag--amber  { background: rgba(245,158,11,.12);  color: #FBBF24; }
.nc-tag--purple { background: rgba(139,92,246,.12);  color: #A78BFA; }
.nc-tag--cyan   { background: rgba(6,182,212,.12);   color: #22D3EE; }

/* ============ Features ============ */
.nc-features { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .nc-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .nc-features { grid-template-columns: repeat(4, 1fr); } }

.nc-feature {
    background: var(--nc-dark-2); border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg); padding: 24px; text-align: center;
}
.nc-feature__icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.nc-feature__title { font-size: 1.05rem; margin: 0 0 8px; }
.nc-feature__text { font-size: .88rem; color: var(--nc-muted); margin: 0; }

/* ============ Location ============ */
.nc-location { display: grid; gap: 40px; }
.nc-location__info { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; font-size: .95rem; color: var(--nc-muted); }
.nc-location__info strong { color: #fff; }
.nc-location__map { border-radius: var(--nc-radius-lg); overflow: hidden; border: 1px solid var(--nc-border); }
.nc-location__map iframe { display: block; width: 100%; border: 0; }
.nc-location__map-placeholder {
    padding: 40px 24px; text-align: center; color: var(--nc-muted);
    background: var(--nc-dark-2); border: 1px dashed var(--nc-border);
}
@media (min-width: 992px) { .nc-location { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ============ Page / single ============ */
.nc-page { padding: 60px 20px; max-width: 880px; }
.nc-prose { color: #d1d5db; }
.nc-prose h2, .nc-prose h3 { margin-top: 2em; }
.nc-prose a { color: var(--nc-accent-h); }
.nc-price-tag { font-size: 1.6rem; font-weight: 800; color: var(--nc-gold); margin: 8px 0 16px; }
.nc-spec-list { padding-left: 20px; list-style: disc; color: var(--nc-muted); margin-bottom: 24px; }
.nc-spec-list li { margin-bottom: 6px; }
.nc-page__thumb { margin: 24px 0; border-radius: var(--nc-radius-lg); overflow: hidden; }
.nc-404 { text-align: center; padding-top: 80px; padding-bottom: 120px; }

/* ============ Footer ============ */
.nc-footer { padding: 64px 0 24px; background: var(--nc-dark-2); border-top: 1px solid var(--nc-border); }
.nc-footer__grid {
    display: grid; gap: 32px; grid-template-columns: 1fr;
    padding-bottom: 40px;
}
@media (min-width: 600px) { .nc-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .nc-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.nc-footer__tagline { color: var(--nc-muted); font-size: .9rem; margin: 12px 0 0; max-width: 320px; }
.nc-footer__title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--nc-muted); margin: 0 0 16px;
}
.nc-footer__links { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; color: var(--nc-muted); }
.nc-footer__links a { color: var(--nc-muted); }
.nc-footer__links a:hover { color: #fff; text-decoration: none; }
.nc-footer__bottom {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 24px; border-top: 1px solid var(--nc-border);
    font-size: .78rem; color: #6B7280;
}
@media (min-width: 600px) {
    .nc-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
}

/* ============ Focus visibility ============ */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--nc-accent-h);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   Breadcrumbs, FAQ and image fitting (added in 1.0.3)
   ============================================================ */

.nc-breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: .78rem; color: var(--nc-muted); margin: 0 0 22px;
}
.nc-breadcrumbs a { color: var(--nc-muted); }
.nc-breadcrumbs a:hover { color: #fff; text-decoration: none; }
.nc-breadcrumbs__sep { color: #4B5563; }
.nc-breadcrumbs [aria-current="page"] { color: #d1d5db; }

.nc-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.nc-faq__item {
    background: var(--nc-dark-2); border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius); overflow: hidden;
}
.nc-faq__summary {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 18px 20px; font-weight: 600; color: #fff; cursor: pointer;
    list-style: none;
}
.nc-faq__summary::-webkit-details-marker { display: none; }
.nc-faq__summary:hover { color: var(--nc-accent-h); }
.nc-faq__icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.nc-faq__icon::before,
.nc-faq__icon::after {
    content: ""; position: absolute; background: var(--nc-accent-h); border-radius: 2px;
}
.nc-faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.nc-faq__icon::after  { top: 0; left: 7px; width: 2px; height: 16px; transition: transform .2s ease; }
.nc-faq__item[open] .nc-faq__icon::after { transform: scaleY(0); }
.nc-faq__a { padding: 0 20px 18px; color: var(--nc-muted); font-size: .92rem; }
.nc-faq__a a { color: var(--nc-accent-h); }

.nc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-hero__card img { width: 100%; height: 420px; object-fit: cover; }
.nc-page__thumb img { width: 100%; height: auto; }

.nc-faq__summary:focus-visible { outline: 2px solid var(--nc-accent-h); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
    .nc-faq__icon::after { transition: none; }
}


/* ============================================================
   Small-screen header + mobile hero (added in 1.0.3)
   ============================================================ */

/* The header CTA duplicates the full-width button inside the mobile panel;
   hiding it below 480px stops the brand, CTA and menu button from colliding. */
@media (max-width: 479px) {
    .nc-header__cta .nc-btn--sm { display: none; }
    .nc-brand__text { font-size: .95rem; }
}

/* Show the hero photograph on tablets and phones instead of dropping it. */
@media (max-width: 1023px) {
    .nc-hero__visual { display: block; }
    .nc-hero__card img { height: 260px; }
    .nc-hero__placeholder { height: 260px; }
    .nc-hero__overlay { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; }
}

.nc-location__map-placeholder { text-align: center; padding: 48px 28px; }
.nc-location__pin { display: block; font-size: 2rem; color: var(--nc-accent-h); margin-bottom: 10px; }
.nc-location__map-address { color: #fff; font-weight: 600; margin: 0 0 8px; }
.nc-location__map-hint { color: var(--nc-muted); font-size: .88rem; margin: 0; max-width: 36ch; margin-inline: auto; }
