/* =====================================================================
   Allied Tajar — Professional Design System (at-pro.css)
   Used by every public page. All classes are prefixed with .at-
   ===================================================================== */

:root {
    --at-green: #00a157;
    --at-green-dark: #007a42;
    --at-green-soft: rgba(0, 161, 87, .10);
    --at-green-line: rgba(0, 161, 87, .35);
    --at-ink: #0f1720;
    --at-ink-2: #1b2530;
    --at-body: #44505c;
    --at-muted: #6b7785;
    --at-line: #e6eaee;
    --at-bg: #f5f7f9;
    --at-radius: 16px;
    --at-radius-lg: 22px;
    --at-shadow: 0 10px 40px rgba(15, 23, 32, .07);
    --at-shadow-lg: 0 24px 60px rgba(15, 23, 32, .14);
}

/* ---------- Typography helpers ---------- */
.at-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--at-green); margin-bottom: 14px;
}
.at-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--at-green); }
.at-center .at-eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--at-green); }

.at-title { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--at-ink); line-height: 1.2; margin-bottom: 14px; }
.at-title span, .at-h1 span { color: var(--at-green); }
.at-sub { color: var(--at-muted); font-size: 1.05rem; max-width: 680px; }
.at-center { text-align: center; }
.at-center .at-sub { margin-left: auto; margin-right: auto; }
.at-text { color: var(--at-body); line-height: 1.85; }

/* ---------- Sections ---------- */
.at-section { padding: 90px 0; }
.at-section-sm { padding: 60px 0; }
.at-soft { background: var(--at-bg); }
.at-white { background: #fff; }
.at-dark { background: linear-gradient(135deg, var(--at-ink) 0%, var(--at-ink-2) 100%); color: #fff; }
.at-dark .at-title { color: #fff; }
.at-dark .at-sub { color: rgba(255, 255, 255, .7); }
.at-section-head { margin-bottom: 50px; }

/* ---------- HERO ---------- */
.at-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 420px at 85% 5%, rgba(0, 161, 87, .28), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(0, 161, 87, .14), transparent 60%),
        linear-gradient(135deg, var(--at-ink) 0%, var(--at-ink-2) 100%);
    padding: 90px 0 110px;
}
.at-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
            mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.at-hero > .container { position: relative; z-index: 1; }
.at-hero-sm { padding: 70px 0 80px; }
.at-breadcrumb { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.at-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.at-breadcrumb a:hover { color: var(--at-green); }
.at-h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; color: #fff; }
.at-hero .at-lead { color: rgba(255,255,255,.8); font-size: 1.12rem; line-height: 1.7; margin-top: 18px; }
.at-hero .at-muted-text { color: rgba(255,255,255,.62); }

.at-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.at-checks.one { grid-template-columns: 1fr; }
.at-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.at-checks i { color: var(--at-green); margin-top: 4px; }
.at-hero .at-checks li { color: rgba(255,255,255,.88); }
.at-white .at-checks li, .at-soft .at-checks li { color: var(--at-body); }

.at-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Buttons ---------- */
.at-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: .95rem; border-radius: 10px; padding: 13px 24px;
    text-decoration: none; border: 2px solid transparent; transition: all .2s ease; cursor: pointer; line-height: 1.2;
}
.at-btn-primary { background: var(--at-green); color: #fff; border-color: var(--at-green); }
.at-btn-primary:hover { background: var(--at-green-dark); border-color: var(--at-green-dark); color: #fff; transform: translateY(-1px); }
.at-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.at-btn-ghost:hover { background: #fff; color: var(--at-ink); border-color: #fff; }
.at-btn-outline { background: transparent; color: var(--at-green-dark); border-color: var(--at-green); }
.at-btn-outline:hover { background: var(--at-green); color: #fff; }
.at-btn-light { background: #fff; color: var(--at-green-dark); border-color: #fff; }
.at-btn-light:hover { background: var(--at-ink); color: #fff; border-color: var(--at-ink); }
.at-btn-dark { background: var(--at-ink); color: #fff; border-color: var(--at-ink); }
.at-btn-dark:hover { background: var(--at-ink-2); color: #fff; }
.at-btn-block { width: 100%; }
.at-btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Screenshot frame (browser mockup) ---------- */
.at-frame {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
}
.at-frame-bar { height: 34px; background: #eef1f4; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--at-line); }
.at-frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d4d9de; }
.at-frame-bar span:nth-child(1) { background: #ff5f57; }
.at-frame-bar span:nth-child(2) { background: #febc2e; }
.at-frame-bar span:nth-child(3) { background: #28c840; }
.at-frame-bar em { margin-left: 12px; font-style: normal; font-size: .75rem; color: var(--at-muted); background: #fff; border-radius: 6px; padding: 3px 12px; flex: 1; max-width: 260px; }
.at-frame img { display: block; width: 100%; height: auto; }
.at-soft .at-frame, .at-white .at-frame { box-shadow: var(--at-shadow-lg); border-color: var(--at-line); }

.at-hero-media { position: relative; }
.at-hero-media > img { width: 100%; border-radius: var(--at-radius-lg); display: block; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }
.at-float {
    position: absolute; left: -22px; bottom: 26px; z-index: 2;
    background: #fff; color: var(--at-ink); border-radius: 14px; padding: 14px 18px;
    display: flex; align-items: center; gap: 12px; box-shadow: 0 15px 35px rgba(0,0,0,.25);
}
.at-float.right { left: auto; right: -22px; top: 26px; bottom: auto; }
.at-float strong { display: block; font-size: 1rem; line-height: 1.2; }
.at-float small { color: var(--at-muted); }

/* ---------- Icons ---------- */
.at-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--at-green-soft); color: var(--at-green); font-size: 1.45rem;
}
.at-icon.sm { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; }
.at-dark .at-icon { background: rgba(0,161,87,.18); }

/* ---------- Stats strip ---------- */
.at-stats-wrap { margin-top: -56px; position: relative; z-index: 3; }
.at-stats { background: #fff; border-radius: var(--at-radius); box-shadow: var(--at-shadow-lg); border: 1px solid var(--at-line); }
.at-stat { padding: 28px 18px; text-align: center; }
.at-stat + .at-stat { border-left: 1px solid var(--at-line); }
.at-stat .num { font-size: 1.9rem; font-weight: 800; color: var(--at-ink); line-height: 1; }
.at-stat .num span { color: var(--at-green); }
.at-stat .lbl { color: var(--at-muted); font-size: .88rem; margin-top: 8px; }

/* ---------- Cards ---------- */
.at-card {
    background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius);
    padding: 30px 26px; height: 100%; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.at-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--at-green);
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.at-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,23,32,.10); border-color: transparent; }
.at-card:hover::before { transform: scaleX(1); }
.at-card h5, .at-card h4 { font-weight: 700; color: var(--at-ink); margin: 18px 0 8px; }
.at-card p { color: var(--at-muted); font-size: .94rem; margin: 0; line-height: 1.7; }
.at-card .at-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--at-green-dark); text-decoration: none; }
.at-card .at-link:hover { gap: 10px; }
.at-card.feature-lg { padding: 38px 34px; }
.at-card.feature-lg h4 { font-size: 1.35rem; }

.at-dark .at-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.at-dark .at-card h5, .at-dark .at-card h4 { color: #fff; }
.at-dark .at-card p { color: rgba(255,255,255,.65); }

/* Module list (two-column with check icons) */
.at-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.at-module { display: flex; gap: 14px; background: #fff; border: 1px solid var(--at-line); border-radius: 12px; padding: 16px 18px; }
.at-module i { color: var(--at-green); font-size: 1.15rem; margin-top: 2px; }
.at-module strong { display: block; color: var(--at-ink); font-size: .98rem; }
.at-module span { color: var(--at-muted); font-size: .88rem; line-height: 1.6; }

/* Split feature row */
.at-split-img { border-radius: var(--at-radius-lg); box-shadow: var(--at-shadow-lg); width: 100%; }

/* ---------- Sidebar ---------- */
.at-sticky { position: sticky; top: 100px; }
.at-side-card { background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 26px; margin-bottom: 22px; box-shadow: var(--at-shadow); }
.at-side-card h6 { font-weight: 800; color: var(--at-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 16px; }
.at-side-nav { list-style: none; padding: 0; margin: 0; }
.at-side-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; border-radius: 10px; color: var(--at-body); text-decoration: none; font-weight: 600; font-size: .93rem; transition: .2s;
}
.at-side-nav a i.lead-ico { color: var(--at-green); width: 20px; }
.at-side-nav a:hover { background: var(--at-bg); color: var(--at-green-dark); }
.at-side-nav a.active { background: var(--at-green); color: #fff; }
.at-side-nav a.active i { color: #fff; }
.at-side-contact { background: linear-gradient(150deg, var(--at-ink), var(--at-ink-2)); color: #fff; border: 0; }
.at-side-contact h6 { color: var(--at-green); }
.at-side-contact p { color: rgba(255,255,255,.7); font-size: .92rem; }
.at-side-contact a.line {
    display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 12px 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; margin-bottom: 10px; font-weight: 600; font-size: .92rem; transition: .2s; word-break: break-all;
}
.at-side-contact a.line:hover { background: var(--at-green); border-color: var(--at-green); }
.at-side-contact a.line i { color: var(--at-green); }
.at-side-contact a.line:hover i { color: #fff; }

/* ---------- CTA band ---------- */
.at-cta {
    border-radius: 24px; padding: 54px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--at-green-dark), var(--at-green));
}
.at-cta::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -130px; top: -170px; background: rgba(255,255,255,.09); }
.at-cta::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; left: -80px; bottom: -140px; background: rgba(255,255,255,.06); }
.at-cta > * { position: relative; z-index: 1; }
.at-cta h3 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.at-cta p { color: rgba(255,255,255,.88); margin: 0; }

/* ---------- Logos / clients ---------- */
.at-logo-card {
    background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 26px 18px 20px;
    text-align: center; height: 100%; transition: .25s;
}
.at-logo-card:hover { box-shadow: var(--at-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.at-logo-card .logo-box { height: 96px; display: grid; place-items: center; margin-bottom: 14px; }
.at-logo-card img { max-height: 96px; max-width: 100%; object-fit: contain; filter: grayscale(25%); transition: .25s; }
.at-logo-card:hover img { filter: none; }
.at-logo-card h6 { font-weight: 700; color: var(--at-ink); margin-bottom: 6px; }
.at-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--at-green-dark); background: var(--at-green-soft); border-radius: 6px; padding: 4px 10px; }

.at-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.at-marquee-track { display: flex; gap: 22px; width: max-content; animation: at-scroll 45s linear infinite; }
.at-marquee:hover .at-marquee-track { animation-play-state: paused; }
.at-marquee-item { width: 170px; height: 100px; background: #fff; border: 1px solid var(--at-line); border-radius: 14px; display: grid; place-items: center; padding: 14px; }
.at-marquee-item img { max-width: 100%; max-height: 70px; object-fit: contain; }
@keyframes at-scroll { to { transform: translateX(-50%); } }

/* ---------- Filter tabs ---------- */
.at-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #fff; padding: 6px; border-radius: 50px; border: 1px solid var(--at-line); }
.at-tabs button { border: 0; background: transparent; padding: 9px 20px; border-radius: 50px; font-weight: 600; font-size: .9rem; color: var(--at-muted); transition: .2s; }
.at-tabs button.active, .at-tabs button:hover { background: var(--at-green); color: #fff; }
.at-hide { display: none !important; }

/* ---------- Forms ---------- */
.at-form-card { background: #fff; border-radius: var(--at-radius-lg); padding: 40px; box-shadow: var(--at-shadow-lg); border: 1px solid var(--at-line); }
.at-label { display: block; font-weight: 600; font-size: .88rem; color: var(--at-ink); margin-bottom: 7px; }
.at-input {
    width: 100%; border: 1px solid #d5dbe1; border-radius: 10px; padding: 12px 14px; font-size: .95rem; background: #fff; color: var(--at-ink);
    transition: border-color .2s, box-shadow .2s;
}
.at-input:focus { outline: 0; border-color: var(--at-green); box-shadow: 0 0 0 4px var(--at-green-soft); }
textarea.at-input { min-height: 130px; resize: vertical; }
.at-dark .at-input, .at-input.dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
.at-input.dark::placeholder { color: rgba(255,255,255,.5); }
.at-input.dark option { color: var(--at-ink); }

/* ---------- Policy / document layout ---------- */
.at-doc-toc a { font-weight: 600; }
.at-doc { background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 34px 38px; margin-bottom: 22px; scroll-margin-top: 110px; }
.at-doc h2 { font-size: 1.3rem; font-weight: 800; color: var(--at-ink); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.at-doc h2 .n { width: 34px; height: 34px; border-radius: 10px; background: var(--at-green-soft); color: var(--at-green); display: grid; place-items: center; font-size: .9rem; flex-shrink: 0; }
.at-doc h3 { font-size: 1.02rem; font-weight: 700; color: var(--at-ink); margin: 22px 0 8px; }
.at-doc p, .at-doc li { color: var(--at-body); line-height: 1.85; }
.at-doc ul { padding-left: 1.2rem; }
.at-doc li::marker { color: var(--at-green); }
.at-doc a { color: var(--at-green-dark); font-weight: 600; }
.at-note { background: var(--at-green-soft); border-left: 4px solid var(--at-green); border-radius: 10px; padding: 16px 20px; color: var(--at-ink); }
.at-meta { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 6px 14px; border-radius: 50px; margin-top: 20px; }

/* ---------- Contact / office cards ---------- */
.at-office { background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 30px; height: 100%; transition: .25s; }
.at-office:hover { box-shadow: var(--at-shadow-lg); border-color: transparent; }
.at-office .flag { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--at-line); }
.at-office h5 { font-weight: 800; color: var(--at-ink); margin: 0; }
.at-office p { color: var(--at-muted); margin: 14px 0; line-height: 1.7; }
.at-office a { color: var(--at-green-dark); font-weight: 700; text-decoration: none; }

/* ---------- Testimonials ---------- */
.at-quote { background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 28px; height: 100%; }
.at-quote .stars { color: #f5a623; letter-spacing: 2px; font-size: .9rem; }
.at-quote p { color: var(--at-body); font-size: 1rem; margin: 14px 0 20px; line-height: 1.7; }
.at-quote .who { display: flex; align-items: center; gap: 12px; }
.at-quote .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--at-green-line); }
.at-quote .who strong { display: block; color: var(--at-ink); font-size: .95rem; }
.at-quote .who small { color: var(--at-muted); }

/* ---------- Steps ---------- */
.at-step { position: relative; padding-left: 64px; margin-bottom: 30px; }
.at-step .no { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--at-green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.at-step h5 { font-weight: 700; color: var(--at-ink); margin-bottom: 4px; }
.at-step p { color: var(--at-muted); margin: 0; }
.at-dark .at-step h5 { color: #fff; }
.at-dark .at-step p { color: rgba(255,255,255,.65); }

/* ---------- Accordion (FAQ) ---------- */
.at-faq .accordion-item { border: 1px solid var(--at-line); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.at-faq .accordion-button { font-weight: 700; color: var(--at-ink); padding: 18px 22px; }
.at-faq .accordion-button:not(.collapsed) { background: var(--at-green-soft); color: var(--at-green-dark); box-shadow: none; }
.at-faq .accordion-button:focus { box-shadow: 0 0 0 4px var(--at-green-soft); }
.at-faq .accordion-body { color: var(--at-body); line-height: 1.8; }

/* ---------- Reveal on scroll ---------- */
.at-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.at-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .at-reveal { opacity: 1; transform: none; transition: none; } .at-marquee-track { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .at-section { padding: 70px 0; }
    .at-hero { padding: 64px 0 90px; }
    .at-float { left: 12px; }
    .at-float.right { right: 12px; }
    .at-stat:nth-child(3) { border-left: 0; }
    .at-stat:nth-child(n+3) { border-top: 1px solid var(--at-line); }
    .at-sticky { position: static; }
    .at-cta { padding: 38px 30px; }
}
@media (max-width: 767px) {
    .at-modules { grid-template-columns: 1fr; }
    .at-doc { padding: 26px 22px; }
    .at-form-card { padding: 28px 22px; }
}
@media (max-width: 575px) {
    .at-checks { grid-template-columns: 1fr; }
    .at-section { padding: 56px 0; }
    .at-hero-actions .at-btn { width: 100%; }
}

/* ---------- Client initials fallback (when logo file missing) ---------- */
.at-initials {
    width: 84px; height: 84px; border-radius: 18px; display: inline-grid; place-items: center;
    background: linear-gradient(135deg, var(--at-green), var(--at-green-dark)); color: #fff;
    font-weight: 800; font-size: 1.6rem; letter-spacing: .04em;
}
.at-marquee-item .at-initials { width: 64px; height: 64px; font-size: 1.2rem; }
.at-new { display: inline-block; background: #f5a623; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: 3px 9px; border-radius: 6px; text-transform: uppercase; vertical-align: middle; }

/* =====================================================================
   HEADER
   ===================================================================== */
.at-topbar { background: #0a1016; color: rgba(255,255,255,.65); font-size: .8rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.at-topbar a, .at-topbar span { color: rgba(255,255,255,.65); text-decoration: none; }
.at-topbar a:hover { color: var(--at-green); }
.at-topbar i { color: var(--at-green); margin-right: 6px; }
.at-topbar .d-flex.gap-3 a i { color: inherit; margin: 0; }
.at-topbar-regions { padding-right: 14px; margin-right: 4px; border-right: 1px solid rgba(255,255,255,.12); }

.at-nav { background: rgba(15, 23, 32, .97); padding: 14px 0; transition: padding .25s, box-shadow .25s; backdrop-filter: blur(8px); }
.at-nav.scrolled { padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.at-brand-text { color: #fff; font-size: 1.25rem; font-weight: 500; letter-spacing: .01em; }
.at-brand-text b { color: var(--at-green); font-weight: 800; }
.at-nav .navbar-toggler { border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 12px; }
.at-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--at-green-soft); }
.at-nav .nav-link { color: rgba(255,255,255,.82) !important; font-weight: 600; font-size: .95rem; padding: 10px 16px !important; position: relative; border: 0 !important; }
.at-nav .nav-link:hover, .at-nav .nav-link.show { color: #fff !important; }
.at-nav .nav-link.active { color: #fff !important; }
.at-nav .nav-link.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--at-green); border-radius: 2px; }
.at-nav .dropdown-toggle.active::after { right: 28px; }

.at-drop, .at-mega-menu { border: 1px solid var(--at-line); border-radius: 14px; box-shadow: 0 25px 60px rgba(15,23,32,.22); padding: 8px; margin-top: 10px !important; }
.at-drop .dropdown-item { border-radius: 8px; padding: 10px 14px; font-weight: 600; color: var(--at-ink); font-size: .92rem; }
.at-drop .dropdown-item i { color: var(--at-green); width: 22px; }
.at-drop .dropdown-item:hover, .at-drop .dropdown-item.active { background: var(--at-green-soft); color: var(--at-green-dark); }

.at-mega { position: static; }
.at-mega-menu { width: 100%; max-width: 920px; left: 50% !important; transform: translateX(-50%); padding: 0; overflow: hidden; }
.at-mega-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--at-muted); padding: 6px 12px 10px; }
.at-mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; transition: .2s; }
.at-mega-item .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--at-green-soft); color: var(--at-green); flex-shrink: 0; transition: .2s; }
.at-mega-item strong { display: block; color: var(--at-ink); font-size: .93rem; }
.at-mega-item small { color: var(--at-muted); font-size: .8rem; }
.at-mega-item em.at-new { font-style: normal; margin-left: 4px; font-size: .58rem; padding: 2px 6px; }
.at-mega-item:hover, .at-mega-item.current { background: var(--at-bg); }
.at-mega-item:hover .ico, .at-mega-item.current .ico { background: var(--at-green); color: #fff; }
.at-mega-side { background: linear-gradient(160deg, var(--at-ink), var(--at-ink-2)); padding: 24px; color: #fff; }
.at-mega-side h6 { font-weight: 800; color: #fff; }
.at-mega-side p { color: rgba(255,255,255,.65); font-size: .88rem; }

@media (min-width: 992px) {
    .at-nav .dropdown:hover > .dropdown-menu { display: block; }
    .at-nav .dropdown > .dropdown-menu { margin-top: 0 !important; }
    .at-nav .dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
    .at-nav .dropdown > .dropdown-menu { top: calc(100% + 8px); }
    .at-nav .container { position: relative; }
}
@media (max-width: 991px) {
    .at-nav .navbar-collapse { background: var(--at-ink-2); margin: 12px -12px -8px; padding: 12px; border-radius: 0 0 14px 14px; max-height: 80vh; overflow-y: auto; }
    .at-mega-menu { transform: none; max-width: none; }
    .at-nav .nav-link.active::after { display: none; }
    .at-nav-actions { padding: 10px 6px 6px; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.at-footer { background: #0a1016; color: rgba(255,255,255,.65); padding-top: 70px; margin-top: 0; }
.at-footer-top { background: linear-gradient(120deg, rgba(0,161,87,.16), rgba(0,161,87,.04)); border: 1px solid rgba(0,161,87,.25); border-radius: 20px; padding: 34px 38px; margin-bottom: 60px; }
.at-footer-top h3 { color: #fff; font-weight: 800; font-size: clamp(1.3rem, 2.3vw, 1.7rem); margin-bottom: 6px; }
.at-footer-top h3 span { color: var(--at-green); }
.at-footer-top p { margin: 0; }
.at-footer-form { display: flex; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 7px; border-radius: 12px; }
.at-footer-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 10px 14px; }
.at-footer-form input::placeholder { color: rgba(255,255,255,.45); }
.at-footer-form input:focus { outline: 0; }
.at-footer h6 { color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.at-footer ul { list-style: none; padding: 0; margin: 0; }
.at-footer ul li { margin-bottom: 10px; }
.at-footer a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.at-footer a:hover { color: var(--at-green); }
.at-footer-about { line-height: 1.8; font-size: .93rem; }
.at-footer-contact li { display: flex; gap: 12px; }
.at-footer-contact i { color: var(--at-green); margin-top: 4px; width: 16px; }
.at-social { display: flex; gap: 10px; margin-top: 18px; }
.at-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.at-social a:hover { background: var(--at-green); color: #fff; border-color: var(--at-green); }
.at-flags { display: flex; gap: 8px; margin-top: 16px; }
.at-flags img { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; opacity: .85; }
.at-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .86rem; }
.at-footer-bottom p { margin: 0; }
.at-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.at-footer-bottom ul li { margin: 0; }
.at-scrolltop { position: fixed; right: 22px; bottom: 90px; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--at-green); color: #fff; box-shadow: 0 10px 25px rgba(0,161,87,.35); z-index: 1000; }
.at-scrolltop:hover { background: var(--at-green-dark); }
@media (max-width: 575px) {
    .at-footer-top { padding: 26px 22px; }
    .at-footer-form { flex-direction: column; }
    .at-footer-bottom { justify-content: center; text-align: center; }
}

/* Keep large gutters from causing sideways scroll on phones */
@media (max-width: 991px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* =====================================================================
   PHONE MOCKUP (Owner App)
   ===================================================================== */
.at-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding: 10px 0 30px; }
.at-phone {
    width: 270px; flex-shrink: 0; background: #0b0f14; border-radius: 42px; padding: 11px;
    box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2a333d; position: relative;
}
.at-phone.back { transform: translateY(46px) rotate(4deg); margin-left: -40px; z-index: 1; }
.at-phone.front { z-index: 2; transform: rotate(-3deg); }
.at-phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #0b0f14; border-radius: 20px; z-index: 3; }
.at-screen { background: #f3f6f8; border-radius: 32px; overflow: hidden; height: 560px; display: flex; flex-direction: column; font-size: 11px; color: var(--at-ink); }
.at-sb { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-weight: 700; font-size: 10px; }
.at-app-head { padding: 8px 16px 12px; display: flex; justify-content: space-between; align-items: center; }
.at-app-head small { color: var(--at-muted); display: block; font-size: 10px; }
.at-app-head strong { font-size: 14px; }
.at-app-head .bell { width: 32px; height: 32px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--at-ink); position: relative; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.at-app-head .bell::after { content: ""; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; }
.at-app-body { flex: 1; padding: 0 14px; overflow: hidden; }
.at-hero-tile { background: linear-gradient(135deg, var(--at-green), var(--at-green-dark)); color: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.at-hero-tile small { opacity: .85; font-size: 10px; }
.at-hero-tile .big { font-size: 22px; font-weight: 800; line-height: 1.2; margin: 2px 0 4px; }
.at-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.2); }
.at-chip.up { background: #e5f7ee; color: #0a8a4c; }
.at-chip.down { background: #fdecec; color: #c4363b; }
.at-hero-tile .at-chip { background: rgba(255,255,255,.22); color: #fff; }
.at-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.at-tile { background: #fff; border-radius: 13px; padding: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.at-tile small { color: var(--at-muted); font-size: 9.5px; display: block; }
.at-tile b { display: block; font-size: 14px; margin: 3px 0; }
.at-tile i.ti { color: var(--at-green); font-size: 11px; margin-bottom: 4px; display: block; }
.at-chart { background: #fff; border-radius: 13px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.at-chart-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 10.5px; margin-bottom: 8px; }
.at-chart-head span { color: var(--at-muted); font-weight: 600; }
.at-bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; }
.at-bars div { flex: 1; background: #cfeedd; border-radius: 5px 5px 2px 2px; position: relative; }
.at-bars div.hi { background: var(--at-green); }
.at-bar-labels { display: flex; gap: 7px; margin-top: 4px; }
.at-bar-labels span { flex: 1; text-align: center; font-size: 8.5px; color: var(--at-muted); }
.at-tabbar { display: flex; justify-content: space-around; background: #fff; padding: 10px 6px 16px; border-top: 1px solid var(--at-line); }
.at-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; color: var(--at-muted); }
.at-tabbar span.on { color: var(--at-green); font-weight: 700; }
.at-tabbar i { font-size: 13px; }
.at-feed { background: #fff; border-radius: 13px; padding: 4px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 10px; }
.at-feed-item { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid #eef1f4; }
.at-feed-item:last-child { border-bottom: 0; }
.at-feed-item .fi { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; background: var(--at-green-soft); color: var(--at-green); }
.at-feed-item .fi.warn { background: #fff4e0; color: #d98a00; }
.at-feed-item .fi.blue { background: #e8f0fe; color: #2f6fde; }
.at-feed-item strong { display: block; font-size: 10.5px; }
.at-feed-item small { color: var(--at-muted); font-size: 9.5px; }
.at-feed-item .amt { margin-left: auto; font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.at-approve { display: flex; justify-content: space-between; align-items: center; background: var(--at-ink); color: #fff; border-radius: 13px; padding: 10px 12px; margin-bottom: 10px; }
.at-approve small { color: rgba(255,255,255,.65); display: block; font-size: 9.5px; }
.at-approve b { font-size: 11.5px; }
.at-approve .btnx { background: var(--at-green); border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 10px; }
.at-line-chart svg { width: 100%; height: 64px; display: block; }
.at-sample-note { text-align: center; color: rgba(255,255,255,.5); font-size: .8rem; margin-top: 18px; }

.at-compare { border-radius: var(--at-radius); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.at-compare > div { padding: 22px 24px; }
.at-compare .old { background: rgba(255,255,255,.03); }
.at-compare .new { background: rgba(0,161,87,.14); border-top: 1px solid rgba(0,161,87,.3); }
.at-compare h6 { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.at-compare .old h6 { color: rgba(255,255,255,.5); }
.at-compare .new h6 { color: #7ff0bb; }
.at-compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.at-compare li { color: rgba(255,255,255,.8); font-size: .93rem; display: flex; gap: 10px; }
.at-compare .old li i { color: #e5484d; margin-top: 4px; }
.at-compare .new li i { color: var(--at-green); margin-top: 4px; }

@media (max-width: 575px) {
    .at-phone { width: 240px; }
    .at-screen { height: 500px; }
    .at-phone.back { display: none; }
    .at-phone.front { transform: none; }
}

.at-btn-wa { background: #25d366; color: #fff; border-color: #25d366; }
.at-btn-wa:hover { background: #1da851; border-color: #1da851; color: #fff; }

/* ---------- Image sizing: keep hero / split images at a consistent, tidy size ---------- */
.at-hero-media > img {
    aspect-ratio: 4 / 3; height: auto; max-height: 440px;
    object-fit: cover; object-position: center;
}
.at-hero-media.contain > img { object-fit: contain; background: transparent; box-shadow: none; border: 0; }
.at-split-img { aspect-ratio: 4 / 3; max-height: 420px; object-fit: cover; }
.at-frame img { max-height: 520px; object-fit: cover; object-position: top center; }
.at-hero-sm .at-hero-media > img { max-height: 340px; }
@media (max-width: 991px) {
    .at-hero-media > img { max-height: 340px; }
}
