/* Nuvia360 2026 (brand approved 29.10.2026, see BRAND.md).
   Port of homepage-reference.html: same structure, colours and fonts.
   Everything is scoped under .n3 so Odoo's own pages are not affected. */
:root {
    --n3-action: #0068D6;
    --n3-action-hover: #4B1FA0;
    --n3-eyebrow: #7A00C2;
    --n3-ink: #26282C;
    --n3-body: #3B3F48;
    --n3-muted: #5D6068;
    --n3-line: #E5E1EE;
    --n3-ground: #F7F5FC;
    --n3-grid: #ECE8F6;
    --n3-soft: #ECE6FB;
    --n3-soft-ink: #4B1FA0;
    --n3-dark: #1A1033;
    --n3-dark-line: #3A2C5C;
    --n3-dark-muted: #B9A8E0;
    --n3-dark-text: #EFEAFB;
    --n3-orange: #FF5500;
    --n3-field: #A79FBF;
    --n3-grad: linear-gradient(90deg, #0091FF, #9600E6 50%, #FF5500);
}

.n3, .n3-header, .n3-footer {
    font-family: Heebo, system-ui, sans-serif;
    color: var(--n3-ink);
    font-size: 17px;
    line-height: 1.6;
    direction: rtl;
}
.n3 { background: #FFFFFF; }  /* the reference page is white; the old theme paints the body #F5F0EB */
.n3 *, .n3-header *, .n3-footer * { box-sizing: border-box; }
.n3 a, .n3-footer a { color: var(--n3-action); }
.n3 a:hover, .n3-footer a:hover { color: var(--n3-action-hover); }
.n3 a:focus-visible, .n3 button:focus-visible, .n3 summary:focus-visible, .n3 input:focus-visible,
.n3 textarea:focus-visible, .n3 select:focus-visible, .n3-header a:focus-visible, .n3-footer a:focus-visible,
.n3-skip:focus-visible {
    outline: 3px solid var(--n3-orange);
    outline-offset: 2px;
}
.n3 summary::-webkit-details-marker { display: none; }
.n3 h1, .n3 h2, .n3 h3 { color: var(--n3-ink); letter-spacing: 0; font-weight: 700; }  /* the theme sets headings to normal weight */
.n3 p { margin: 0; }

/* skip link: hidden until focused (the reference kept it off-screen even on focus) */
.n3-skip {
    position: absolute; right: 16px; top: -64px; z-index: 1100;
    background: var(--n3-dark); color: #FFFFFF !important; padding: 8px 16px; border-radius: 8px;
    font-family: Heebo, sans-serif; text-decoration: none;
}
.n3-skip:focus { top: 8px; }

.n3-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.n3-narrow { max-width: 880px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.n3-sec { padding-top: 96px; padding-bottom: 96px; }
.n3-ground { background: var(--n3-ground); }
.n3-dark { background: var(--n3-dark); color: var(--n3-dark-text); }
.n3-dark h2, .n3-dark h3 { color: #FFFFFF; }
.n3-eyebrow { margin: 0 0 8px !important; font-weight: 700; color: var(--n3-action); }
.n3-dark .n3-eyebrow { color: var(--n3-orange); }
.n3-h2 { margin: 0 0 40px; font-family: Rubik, sans-serif; font-weight: 700; font-size: 38px; line-height: 1.2; }
.n3-lead { font-size: 20px; color: var(--n3-body); max-width: 640px; }
.n3-body { color: var(--n3-body); }
.n3-muted { color: var(--n3-muted); }
.n3-row { display: flex; flex-wrap: wrap; gap: 24px; }

/* buttons */
.n3-btn {
    display: inline-flex; align-items: center; min-height: 44px;
    background: var(--n3-action); color: #FFFFFF !important; text-decoration: none;
    padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 18px; border: 0; cursor: pointer;
    font-family: inherit;
}
.n3-btn:hover { background: var(--n3-action-hover); color: #FFFFFF !important; }
.n3-btn-sm { padding: 12px 20px; border-radius: 10px; font-size: 17px; }
.n3-btn-ghost {
    display: inline-flex; align-items: center; min-height: 44px;
    background: #FFFFFF; color: var(--n3-ink) !important; border: 2px solid var(--n3-ink); text-decoration: none;
    padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 18px;
}
.n3-btn-ghost:hover { background: var(--n3-ground); }
.n3-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.n3-more { color: var(--n3-action); font-weight: 700; }

/* header */
.n3-header { border-bottom: 1px solid var(--n3-line); background: #FFFFFF; position: relative; z-index: 10; }
.n3-header .n3-wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.n3-logo { display: flex; align-items: center; }
.n3-logo img { height: 44px; width: auto; display: block; }
.n3-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 500; }
.n3-nav a { color: var(--n3-ink); text-decoration: none; display: inline-block; padding: 10px 0; }
.n3-nav a:hover, .n3-nav a[aria-current="page"] { color: var(--n3-action); }
.n3-header-cta { display: flex; align-items: center; gap: 12px; }
.n3-tel { color: var(--n3-ink) !important; text-decoration: none; font-weight: 500; }

/* hero */
.n3-hero {
    background: var(--n3-ground);
    background-image: linear-gradient(var(--n3-grid) 1px, transparent 1px), linear-gradient(90deg, var(--n3-grid) 1px, transparent 1px);
    background-size: 32px 32px;
}
.n3-hero .n3-wrap { padding-top: 80px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.n3-hero-text { flex: 1 1 480px; min-width: 0; }
.n3-hero .n3-eyebrow { margin-bottom: 16px !important; letter-spacing: 0.5px; }
.n3-h1 { margin: 0 0 20px; font-family: Rubik, sans-serif; font-weight: 700; font-size: 54px; line-height: 1.15; }
.n3-hero .n3-lead { margin: 0 0 32px; max-width: 560px; }
.n3-checks { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--n3-body); font-size: 15px; }
.n3-checks li::before { content: "✓ "; }
.n3-diagram {
    flex: 1 1 440px; min-width: 0; background: #FFFFFF; border: 1px solid var(--n3-line); border-radius: 20px; padding: 28px;
    box-shadow: 0 12px 32px rgba(15, 27, 45, 0.08); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.n3-diagram-col { display: flex; flex-direction: column; gap: 10px; flex: 0 0 120px; }
.n3-chip-dashed { border: 1.5px dashed var(--n3-field); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--n3-body); text-align: center; }
.n3-chip-soft { background: var(--n3-soft); color: var(--n3-soft-ink); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; text-align: center; }
.n3-dash { flex: 1 1 auto; height: 2px; background: repeating-linear-gradient(90deg, var(--n3-field) 0 6px, transparent 6px 12px); }
.n3-solid { flex: 1 1 auto; height: 2px; background: var(--n3-action); }
.n3-core {
    flex: 0 0 132px; height: 132px; border-radius: 50%; background: var(--n3-dark); color: #FFFFFF;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 0 0 8px var(--n3-soft);
}
.n3-core img { width: 52px; height: 52px; display: block; }
.n3-core span { font-family: Rubik, sans-serif; font-weight: 700; }

/* cards */
.n3-card { flex: 1 1 300px; border: 1px solid var(--n3-line); border-radius: 16px; padding: 28px; background: #FFFFFF; }
.n3-card h3 { margin: 16px 0 8px; font-size: 21px; }
.n3-card p { color: var(--n3-body); }
.n3-svc {
    flex: 1 1 340px; text-decoration: none; color: var(--n3-ink) !important; border: 1px solid var(--n3-line); border-radius: 16px;
    padding: 28px; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF;
}
.n3-svc:hover { border-color: var(--n3-action); box-shadow: 0 8px 24px rgba(15, 27, 45, 0.06); }
.n3-svc-title { font-size: 21px; font-weight: 700; }
.n3-svc-text { color: var(--n3-body); }
.n3 svg.n3-ico { width: 32px; height: 32px; flex: 0 0 auto; }
.n3 .n3-svc svg.n3-ico { width: 28px; height: 28px; }

/* comparison (dark) */
.n3-compare { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.n3-compare-side { flex: 1 1 280px; border: 1px solid var(--n3-dark-line); border-radius: 16px; padding: 28px; }
.n3-compare-side h3 { margin: 0 0 16px; font-size: 20px; color: var(--n3-dark-muted); }
.n3-compare-side ul { margin: 0; padding-inline-start: 20px; color: var(--n3-dark-muted); display: flex; flex-direction: column; gap: 8px; }
.n3-compare-main { flex: 1.3 1 320px; background: #FFFFFF; color: var(--n3-ink); border-radius: 16px; padding: 32px; box-shadow: 0 0 0 4px var(--n3-orange); }
.n3-compare-main h3 { margin: 0 0 16px; font-size: 24px; font-family: Montserrat, sans-serif; font-weight: 600; letter-spacing: 0.02em; color: var(--n3-ink); }
.n3-compare-main ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }
.n3-wordmark-360 { background: var(--n3-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* process */
.n3-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.n3-steps li { flex: 1 1 200px; background: #FFFFFF; border-radius: 16px; padding: 24px; border-top: 4px solid var(--n3-ink); }
.n3-steps li.n3-last { border-top-color: var(--n3-orange); }
.n3-step-n { font-family: Rubik, sans-serif; font-weight: 700; font-size: 32px; color: var(--n3-action); }
.n3-steps h3 { margin: 4px 0 6px; font-size: 19px; }
.n3-steps p { margin: 0 0 12px; color: var(--n3-body); font-size: 15px; }
.n3-step-when { font-size: 14px; font-weight: 700; color: var(--n3-muted); }

/* industry pills */
.n3-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.n3-pills a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 1.5px solid var(--n3-ink);
    border-radius: 999px; color: var(--n3-ink) !important; text-decoration: none; font-weight: 500;
}
.n3-pills a:hover { background: var(--n3-ground); }

/* articles */
.n3-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.n3-head-row .n3-h2 { margin: 0; }
.n3-post { flex: 1 1 320px; border: 1px solid var(--n3-line); border-radius: 16px; overflow: hidden; background: #FFFFFF; }
.n3-post-img { height: 160px; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--n3-soft); color: var(--n3-soft-ink); overflow: hidden; }
.n3-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.n3-post-img.n3-tone-2 { background: #FFE6DA; color: #A33A00; }
.n3-post-img.n3-tone-3 { background: #F0EBFA; color: var(--n3-ink); }
.n3-post-body { padding: 24px; }
.n3-post-meta { margin: 0 0 8px !important; font-size: 14px; color: var(--n3-muted); }
.n3-post h3 { margin: 0 0 8px; font-size: 20px; }
.n3-post h3 a { color: var(--n3-ink); text-decoration: none; }
.n3-post h3 a:hover { color: var(--n3-action); }
.n3-post-body > p:last-child { color: var(--n3-body); font-size: 15px; }

/* team */
.n3-team .n3-wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.n3-team-photo {
    flex: 0 0 200px; height: 200px; border-radius: 50%; background: var(--n3-soft); color: var(--n3-soft-ink);
    display: flex; align-items: center; justify-content: center; font-weight: 700; text-align: center; padding: 16px;
}
.n3-team-text { flex: 1 1 420px; min-width: 0; }
.n3-team-text h2 { margin: 0 0 12px; font-family: Rubik, sans-serif; font-size: 34px; }
.n3-team-text > p { margin: 0 0 16px; font-size: 19px; color: var(--n3-body); }
.n3-team-text ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--n3-body); }

/* FAQ */
.n3-faq-h { text-align: center; margin-bottom: 32px; }
.n3-faq { display: flex; flex-direction: column; gap: 12px; }
.n3-faq details { border: 1px solid var(--n3-line); border-radius: 12px; padding: 4px 24px; background: #FFFFFF; }
.n3-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 18px; min-height: 44px; }
.n3-faq summary::after { content: "+"; float: left; color: var(--n3-action); font-weight: 700; }
.n3-faq details[open] summary::after { content: "−"; }
.n3-faq details p { margin: 0 0 16px; color: var(--n3-body); }

/* contact block */
.n3-contact .n3-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.n3-contact-text { flex: 1 1 380px; min-width: 0; }
.n3-contact-text h2 { margin: 0 0 16px; font-family: Rubik, sans-serif; font-size: 40px; line-height: 1.2; }
.n3-contact-text > p { margin: 0 0 24px; font-size: 19px; color: var(--n3-dark-muted); }
.n3-contact-tel { font-size: 22px; font-weight: 700; }
.n3-contact-tel a { color: #FFFFFF !important; }
.n3-form {
    flex: 1 1 440px; min-width: 0; background: #FFFFFF; color: var(--n3-ink); border-radius: 20px; padding: 32px;
    display: flex; flex-direction: column; gap: 16px;
}
.n3-form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.n3-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.n3-form-row label { flex: 1 1 180px; }  /* basis only in the row: in the column it would be a height */
.n3-form input, .n3-form textarea {
    font: inherit; padding: 12px; border: 1.5px solid var(--n3-field); border-radius: 10px; min-height: 44px; color: var(--n3-ink); background: #FFFFFF; width: 100%;
}
.n3-form textarea { resize: vertical; }
.n3-form .n3-btn { justify-content: center; min-height: 48px; padding: 14px; }
.n3-form-note { font-size: 14px; color: var(--n3-muted); }
.n3-form-error { background: #FDECEA; color: #8A1C12; border-radius: 10px; padding: 10px 14px; font-weight: 500; }
/* honeypot: visually hidden without an offset (a -9999px offset widens the page in RTL) */
.n3-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* inner pages */
.n3-page-hero {
    background: var(--n3-ground);
    background-image: linear-gradient(var(--n3-grid) 1px, transparent 1px), linear-gradient(90deg, var(--n3-grid) 1px, transparent 1px);
    background-size: 32px 32px;
}
.n3-page-hero .n3-wrap { padding-top: 56px; padding-bottom: 64px; }
.n3-crumbs { margin: 0 0 20px !important; font-size: 14px; color: var(--n3-muted); }
.n3-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.n3-crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--n3-muted); }
.n3-crumbs a { color: var(--n3-muted); }
.n3-page-hero .n3-h1 { font-size: 46px; }
.n3-page-hero .n3-lead { margin: 0 0 28px; }
.n3-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--n3-body); }
.n3-split { display: flex; flex-wrap: wrap; gap: 48px; }
.n3-split > * { flex: 1 1 400px; min-width: 0; }
.n3-split h2 { font-family: Rubik, sans-serif; font-size: 30px; line-height: 1.25; margin: 0 0 16px; }
.n3-split p + p { margin-top: 12px; }
.n3-related { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.n3-related a { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 18px; border-radius: 12px; background: var(--n3-ground); color: var(--n3-ink) !important; text-decoration: none; font-weight: 500; }
.n3-related a:hover { color: var(--n3-action) !important; }
.n3-cta-band .n3-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.n3-cta-band h2 { margin: 0 0 8px; font-family: Rubik, sans-serif; font-size: 32px; line-height: 1.2; }
.n3-cta-band p { color: var(--n3-dark-muted); font-size: 18px; }
.n3-prose { max-width: 760px; }
.n3-prose h2 { font-family: Rubik, sans-serif; font-size: 26px; margin: 40px 0 12px; }
.n3-prose p, .n3-prose li { color: var(--n3-body); }
.n3-prose ul { padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.n3-ph { }  /* placeholder highlight switched off for go-live (29/10/2026) */
.n3-draft-flag { background: #FFF4CC; color: #5C4400; text-align: center; padding: 8px 16px; font-weight: 700; font-family: Heebo, sans-serif; direction: rtl; }

/* footer */
.n3-footer { border-top: 1px solid var(--n3-line); background: #FFFFFF; }
.n3-footer .n3-wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.n3-footer-brand { flex: 1 1 260px; }
.n3-footer-brand img { height: 36px; width: auto; display: block; }
.n3-footer-brand p { margin: 8px 0 0; color: var(--n3-body); font-size: 15px; }
.n3-footer nav, .n3-footer-col { flex: 0 1 180px; font-size: 15px; }
.n3-footer h2 { margin: 0 0 12px; font-size: 16px; font-family: Heebo, sans-serif; font-weight: 700; color: var(--n3-ink); }
.n3-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.n3-footer ul a, .n3-footer-col a { color: var(--n3-body) !important; }
.n3-footer-col p { margin: 0 0 6px; }
.n3-copy { margin: 0; padding: 16px 24px 32px; text-align: center; color: var(--n3-muted); font-size: 14px; }

@media (max-width: 767px) {
    .n3-sec { padding-top: 64px; padding-bottom: 64px; }
    .n3-h1 { font-size: 38px; }
    .n3-page-hero .n3-h1 { font-size: 34px; }
    .n3-h2 { font-size: 30px; margin-bottom: 28px; }
    .n3-hero .n3-wrap { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
    .n3-diagram { padding: 18px; gap: 8px; }
    .n3-diagram-col { flex-basis: 96px; }
    .n3-core { flex-basis: 104px; height: 104px; }
    .n3-core img { width: 40px; height: 40px; }
    .n3-contact-text h2 { font-size: 32px; }
    .n3-team-photo { flex-basis: 160px; height: 160px; }
    .n3-header .n3-wrap { gap: 8px 16px; }
    .n3-nav { order: 3; flex: 1 1 100%; }
    .n3-nav ul { gap: 0 18px; }
    .n3-logo img { height: 40px; }
}
@media (max-width: 440px) {
    .n3-diagram { padding: 14px; gap: 6px; }
    .n3-diagram-col { flex-basis: 84px; gap: 8px; }
    .n3-chip-dashed, .n3-chip-soft { font-size: 13px; padding: 6px 6px; }
    .n3-core { flex-basis: 88px; height: 88px; box-shadow: 0 0 0 6px var(--n3-soft); }
    .n3-core img { width: 32px; height: 32px; }
    .n3-core span { font-size: 13px; }
    .n3-dash, .n3-solid { flex: 1 1 4px; }
}
@media (prefers-reduced-motion: reduce) { .n3 * { transition: none !important; } }
