/* ═══════════════════════════════════════════════
   ABBATI.NG — Global Design System
   Plus Jakarta Sans + DM Sans
   Deep Green / Cream / Amber palette
   ═══════════════════════════════════════════════ */

:root {
    --ink: #0a3d33;
    --ink-soft: #2e4f46;
    --ink-muted: #5e6f69;
    --ink-faint: #8b9a92;
    --paper: #f5f2e9;
    --paper-dark: #ece7d8;
    --paper-darker: #e2dcc9;
    --white: #ffffff;
    --cream: #f5f2e9;
    --accent: #ba7517;
    --accent-deep: #96590e;
    --accent-pale: #f8edd9;
    --amber: #ef9f27;
    --amber-soft: #f3b65c;
    --amber-pale: #f6cf95;
    --success: #0d9160;
    --warning: #e8830a;
    --danger: #dc2626;
    --border: rgba(10, 61, 51, 0.12);
    --border-strong: rgba(10, 61, 51, 0.25);
    --shadow-xs: 0 1px 3px rgba(10, 61, 51, 0.07);
    --shadow-sm: 0 2px 8px rgba(10, 61, 51, 0.08);
    --shadow-md: 0 8px 32px rgba(10, 61, 51, 0.11);
    --shadow-lg: 0 24px 64px rgba(10, 61, 51, 0.15);
    --nav-height: 64px;
    --topbar-height: 36px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    padding-top: calc(var(--nav-height) + var(--topbar-height));
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-3,
.display-4,
.display-5,
.display-6,
.fw-bold,
.fw-semibold,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

p {
    font-family: 'DM Sans', sans-serif;
}

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

a:hover {
    color: var(--accent-deep);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── TOPBAR ── */
.abbati-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--topbar-height);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
}

.abbati-topbar .container-xl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.abbati-topbar a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.abbati-topbar a:hover {
    color: white;
}

.topbar-right {
    font-weight: 500;
}

/* ── NAV ── */
.abbati-nav {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 199;
    height: var(--nav-height);
    background: rgba(245, 242, 233, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.abbati-nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}

.brand-logo-footer {
    height: 44px;
}

.brand-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    color: var(--ink-faint);
    font-weight: 400;
    margin-top: 2px;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-links .nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-links .nav-link:hover {
    color: var(--ink);
    background: var(--paper-dark);
}

.nav-links .nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 260px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    transform: translateX(-50%) translateY(4px);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    transition: background 0.15s;
    position: relative;
}

.dropdown-link:hover {
    background: var(--paper);
    color: var(--ink);
}

.dropdown-link strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.dropdown-link small {
    display: block;
    font-size: 0.72rem;
    color: var(--ink-muted);
    margin-top: 1px;
}

.dropdown-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nasr-icon {
    background: var(--accent-pale);
    color: var(--accent);
}

.lisafi-icon {
    background: rgba(0, 200, 120, 0.1);
    color: #00a86b;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.4rem 0.75rem;
}

.dropdown-proof {
    padding-right: 2rem;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    animation: livepulse 2s infinite;
}

@keyframes livepulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(13, 145, 96, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(13, 145, 96, 0);
    }
}

/* Nav CTA */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-cta {
    background: var(--ink);
    color: white !important;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 90vw);
    background: white;
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 61, 51, 0.5);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--ink);
}

.drawer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

.drawer-close:hover {
    color: white;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.15s;
}

.drawer-link:hover {
    color: var(--accent);
}

.drawer-link small {
    display: block;
    font-size: 0.72rem;
    color: var(--ink-muted);
    font-weight: 400;
}

.drawer-product {
    padding: 0.6rem 0.5rem;
}

.dp-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.drawer-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    padding: 1rem 0.5rem 0.4rem;
}

.drawer-cta {
    display: block;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1.25rem;
    text-decoration: none;
    transition: background 0.15s;
}

.drawer-cta:hover {
    background: var(--accent-deep);
    color: white;
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .brand-tag {
        display: none;
    }
}

/* ── SECTION UTILITIES ── */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.6rem;
    font-family: 'DM Sans', sans-serif;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--ink-soft);
    font-weight: 300;
    line-height: 1.7;
    max-width: 560px;
}

/* ── BUTTONS ── */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}

.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

.btn-primary:hover {
    background: var(--accent-deep) !important;
    border-color: var(--accent-deep) !important;
}

.btn-dark {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
}

.btn-dark:hover {
    background: #1a1a1a !important;
}

.btn-outline-primary {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.btn-outline-primary:hover {
    background: var(--accent) !important;
    color: white !important;
}

/* ── CARDS ── */
.card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-xs) !important;
    background: white !important;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-body {
    padding: 1.75rem;
}

/* ── HERO SECTIONS ── */
.hero-section {
    background: var(--ink) !important;
    min-height: 55vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(239, 159, 39, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(239, 159, 39, 0.07) 0%, transparent 60%);
}

.hero-section .container,
.hero-section .container-xl {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    letter-spacing: -0.03em !important;
    line-height: 1.08 !important;
}

/* ── TYPOGRAPHY OVERRIDES ── */
.text-primary {
    color: var(--accent) !important;
}

.bg-primary {
    background: var(--accent) !important;
}

.border-primary {
    border-color: var(--accent) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
}

.bg-light {
    background: white !important;
}

.bg-dark {
    background: var(--ink) !important;
}

section.py-5:nth-child(even) {
    background: var(--paper) !important;
}

section.py-5:nth-child(odd) {
    background: white !important;
}

/* ── ALERTS ── */
.alert {
    border-radius: var(--radius-sm) !important;
    font-family: 'DM Sans', sans-serif;
}

/* ── FORMS ── */
.form-control,
.form-select {
    font-family: 'DM Sans', sans-serif !important;
    border-radius: var(--radius-sm) !important;
    border-color: var(--border-strong) !important;
    background: white !important;
    color: var(--ink) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(186, 117, 23, 0.15) !important;
}

.form-label {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

/* ── ACCORDION ── */
.accordion-button {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
}

.accordion-item {
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    border-color: var(--border) !important;
}

/* ── FOOTER ── */
.abbati-footer {
    background: var(--ink);
    color: white;
    padding: 5rem 2rem 2rem;
    margin-top: 0;
}

.abbati-footer .container-xl {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-width: 280px;
}

.footer-company {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.footer-col h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.1rem;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.15s;
}

.footer-col a i {
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
    opacity: 0.6;
}

.footer-col a:hover {
    color: white;
}

.footer-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(239, 159, 39, 0.25);
    color: var(--amber-soft);
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-badge.waitlist {
    background: rgba(232, 131, 10, 0.2);
    color: #fbbf24;
}

.footer-live {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.72rem;
    color: rgba(13, 145, 96, 0.9);
}

.footer-live .live-dot {
    position: static;
    transform: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* ── TIMELINE (about page) ── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 0 0 2.5rem 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 36px;
    height: 36px;
    background: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    transform: translateX(-50%);
    margin-left: 1px;
    border: 3px solid var(--paper);
}

.timeline-date {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.4rem;
    display: block;
}

.timeline-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ── STAT CARDS ── */
.stat-card {
    padding: 1.5rem;
}

.stat-card i {
    opacity: 0.6;
}

/* ── UTILITY ── */
.text-muted {
    color: var(--ink-muted) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-3 {
    border-radius: var(--radius-md) !important;
}

.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

.hover-lift {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── NAVBAR OVERRIDE (Bootstrap compat) ── */
.navbar {
    display: none !important;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .abbati-topbar .topbar-right {
        display: none;
    }
}

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