/*
 * ndertimi.al — redesign layer v2.8.0
 * Loaded after theme.css. Identity taken from the new logo:
 *   orange roof gradient #ff6a00 → #ff8c00, white wordmark.
 * Signature device: the roof pitch (24% rise over half the width) is reused
 * for the hero frame and for the edges of the light sections.
 */

:root {
    --nd-orange: #ff7a00;
    --nd-orange-deep: #e86400;
    --nd-orange-text: #c2410c;          /* orange that passes contrast on light bg */
    --nd-paper: #f6f4f0;
    --nd-paper-line: #e7e2d9;
    --nd-ink-text: #0b1627;
    --nd-pitch: 48px;                   /* height of the roof-shaped section edge */
}

/* ---------- Typography ---------- */
body.ndertimi-pro { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.font-space, .nd-display, .nd-section-title, h1, h2, h3 { font-family: "Outfit", "Plus Jakarta Sans", sans-serif; }
.nd-display { letter-spacing: -.045em; line-height: 1.02; }
.nd-section-title { letter-spacing: -.03em; font-weight: 700; }

/* Section labels: sentence case with a short roof-orange bar instead of tracked caps */
section span.uppercase.tracking-widest {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: none !important;
    letter-spacing: .01em !important;
    font-size: 13px !important;
}
section span.uppercase.tracking-widest::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff6a00, #ff9a1f);
}

/* ---------- Keyboard focus ---------- */
:focus-visible { outline: 2px solid #ff9a3d; outline-offset: 3px; border-radius: 6px; }

/* ---------- Scroll progress ---------- */
.nd-progress { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 3px; pointer-events: none; }
.nd-progress span {
    display: block; height: 100%; width: 100%;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, #ff6a00, #ff9a1f);
}

/* ---------- Top bar + header ---------- */
.nd-topbar { background: #040b15 !important; border-color: rgba(255,255,255,.06) !important; }
.nd-license { text-transform: none !important; letter-spacing: 0 !important; font-size: 11px !important; }

.nd-header {
    background: rgba(7,17,31,.84) !important;
    border-color: rgba(255,255,255,.07) !important;
    transition: box-shadow .3s ease, background .3s ease;
}
.nd-header .h-20 { height: 82px; transition: height .3s ease; }
.nd-header.is-scrolled { box-shadow: 0 14px 44px rgba(0,0,0,.38); }
.nd-header.is-scrolled .h-20 { height: 64px; }

.nd-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nd-logo img { display: block; width: auto; height: 44px; transition: height .3s ease, transform .3s ease; }
.nd-header.is-scrolled .nd-logo img { height: 36px; }
.nd-logo:hover img { transform: translateY(-1px); }
.nd-logo--footer img { height: 48px; }

.nd-nav-link { font-size: 14px !important; }

/* ---------- Hero ---------- */
.nd-hero {
    min-height: 780px;
    background:
        radial-gradient(820px 460px at 88% 6%, rgba(255,106,0,.18), transparent 62%),
        linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.94) 52%, rgba(7,17,31,.76) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=88&w=2000&auto=format&fit=crop') center right / cover no-repeat !important;
}
.nd-hero-kicker { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; }

.nd-display-accent { color: #ff8a1f !important; }
.nd-display-accent::after { background: linear-gradient(90deg, #ff6a00, rgba(255,138,31,.15)); height: .07em; }

/* Gable-shaped project frame: same pitch as the logo roof */
.nd-hero-visual { min-height: 560px; --roof: 24%; }
.nd-project-frame {
    inset: 0;
    border: 0;
    border-radius: 0;
    background: #0b1828;
    box-shadow: none;
    clip-path: polygon(0 var(--roof), 50% 0, 100% var(--roof), 100% 100%, 0 100%);
}
.nd-project-frame img {
    transform: scale(1.08) translate(var(--px, 0px), var(--py, 0px));
    transition: transform .25s ease-out;
    filter: saturate(.82) contrast(1.04);
}
.nd-roofline {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 4; pointer-events: none; overflow: visible;
    filter: drop-shadow(0 10px 22px rgba(255,106,0,.28));
    animation: ndRoofIn 1.1s cubic-bezier(.65,0,.2,1) .15s both;
}
.nd-chimney {
    position: absolute; z-index: 4; pointer-events: none;
    left: 66%; top: -1%; width: 9%; height: 13.5%;
    background: linear-gradient(160deg, #ff8c00, #ff6a00);
    border-radius: 2px 2px 0 0;
    transform-origin: 50% 100%;
    animation: ndChimneyIn .5s cubic-bezier(.2,.8,.2,1) 1.1s both;
}
@keyframes ndRoofIn { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% -5%); } }
@keyframes ndChimneyIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.nd-project-caption { left: 28px; right: 28px; bottom: 26px; z-index: 5; }
.nd-project-caption span { text-transform: none !important; letter-spacing: .02em !important; font-size: 12px !important; }
.nd-floating-card--top { top: 31%; right: -14px; }
.nd-floating-card--bottom { bottom: 86px; left: -14px; }
.nd-floating-card { z-index: 6; border-radius: 12px !important; }

.nd-primary-button {
    background: linear-gradient(135deg, #ff6a00, #ff8a00) !important;
    color: #0b1220 !important;
    box-shadow: 0 16px 36px rgba(255,106,0,.26) !important;
}
.nd-primary-button:hover { background: linear-gradient(135deg, #ff7a00, #ff9a1f) !important; box-shadow: 0 20px 44px rgba(255,106,0,.36) !important; }

/* Trust strip becomes a light panel that bridges hero and the light services section */
.nd-trust-panel {
    background: #fff !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.45) !important;
}
.nd-trust-panel .text-white { color: var(--nd-ink-text) !important; }
.nd-trust-panel .text-slate-400 { color: #5a6878 !important; }
.nd-trust-item + .nd-trust-item { border-color: #ece7df !important; }
.nd-trust-panel i.text-construction-500 { color: #ff6a00 !important; }

/* ---------- Roof-pitch section edges ---------- */
#sherbimet, #projekte {
    position: relative;
    padding-top: calc(6rem + var(--nd-pitch)) !important;
    clip-path: polygon(0 var(--nd-pitch), 50% 0, 100% var(--nd-pitch), 100% 100%, 0 100%);
}

/* ---------- Services (light) ---------- */
#sherbimet {
    background: var(--nd-paper) !important;
    margin-top: -36px;             /* tuck under the trust panel */
    padding-top: calc(6rem + var(--nd-pitch) + 36px) !important;
}
#sherbimet .nd-section-title,
#sherbimet .text-white { color: var(--nd-ink-text) !important; }
#sherbimet .text-slate-400,
#sherbimet .text-slate-300 { color: #4a5a6c !important; }
#sherbimet .text-slate-500 { color: #5d6b7c !important; }
#sherbimet span.text-construction-500 { color: var(--nd-orange-text) !important; }
#sherbimet span.uppercase.tracking-widest::before { background: var(--nd-orange-text); }

#sherbimet .service-card {
    background: #fff !important;
    border: 1px solid var(--nd-paper-line) !important;
    box-shadow: 0 1px 2px rgba(11,22,39,.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
#sherbimet .service-card:hover {
    border-color: rgba(255,106,0,.45) !important;
    box-shadow: 0 30px 60px -28px rgba(11,22,39,.35);
}
#sherbimet .service-card::after {   /* cursor spotlight */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255,106,0,.10), transparent 62%);
    opacity: 0; transition: opacity .3s ease;
}
#sherbimet .service-card:hover::after { opacity: 1; }
#sherbimet .service-card .border-t { border-color: #eee9e0 !important; }
#sherbimet .service-card a { color: var(--nd-orange-text) !important; }
#sherbimet .service-card a:hover { color: var(--nd-ink-text) !important; }
#sherbimet .service-card li i { filter: saturate(1.2) brightness(.82); }
#sherbimet .service-icon { border-color: rgba(11,22,39,.06); }

/* ---------- Planner / calculator / contact polish ---------- */
.nd-planner-section { background: linear-gradient(180deg, #07111f 0%, #0a1727 100%) !important; }
.nd-calculator-card, .nd-contact-card { border-top: 3px solid var(--nd-orange) !important; }
#llogarit { background: radial-gradient(circle at 12% 12%, rgba(255,106,0,.09), transparent 34%), #060e1a !important; }

/* ---------- Projects (light, same edge) ---------- */
#projekte { background: var(--nd-paper) !important; }
#projekte span.text-construction-500 { color: var(--nd-orange-text) !important; }
#projekte span.uppercase.tracking-widest::before { background: var(--nd-orange-text); }
#projekte .nd-compare-copy h3 { color: var(--nd-ink-text) !important; }
#projekte .nd-compare-copy p { color: #5a6878 !important; }

/* ---------- Footer ---------- */
.nd-footer { background: #040b15 !important; }
.nd-footer h4 { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; }

/* ---------- Back to top ---------- */
.nd-to-top {
    position: fixed; right: 18px; bottom: 24px; z-index: 45;
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
    color: #fff; background: rgba(7,17,31,.9); backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgba(0,0,0,.35); cursor: pointer;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.nd-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.nd-to-top:hover { background: var(--nd-orange); color: #0b1220; }
.nd-to-top[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .nd-hero-visual { min-height: 440px; margin-top: 8px; }
    .nd-floating-card--top { right: 6px; }
    .nd-floating-card--bottom { left: 6px; }
}
@media (max-width: 767px) {
    :root { --nd-pitch: 28px; }
    .nd-header .h-20 { height: 66px; }
    .nd-header.is-scrolled .h-20 { height: 56px; }
    .nd-logo img { height: 34px; }
    .nd-header.is-scrolled .nd-logo img { height: 30px; }
    .nd-hero { min-height: 0; }
    .nd-to-top { bottom: calc(92px + env(safe-area-inset-bottom)); right: 12px; width: 42px; height: 42px; }
    #sherbimet { margin-top: -20px; padding-top: calc(4.5rem + var(--nd-pitch) + 20px) !important; }
    #projekte { padding-top: calc(4.5rem + var(--nd-pitch)) !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .nd-roofline, .nd-chimney { animation: none !important; }
    .nd-project-frame img { transition: none; transform: scale(1.04); }
    .nd-header, .nd-header .h-20, .nd-logo img, .nd-to-top { transition: none; }
}

/* ---------- Standalone SEO pages ---------- */
.nd-seo-logo { display: block; height: 40px; width: auto; }
.nd-seo-brand { gap: 0; }
@media (max-width: 600px) { .nd-seo-logo { height: 32px; } }
