/* =========================================================
   ABNG & Company — Components
   ========================================================= */

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--white);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-color);
}

.top-bar {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8125rem;
    padding: 0.45rem 0;
}

.top-bar-message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-link:hover {
    color: var(--accent-color);
}

.main-header {
    padding: 0.85rem 0;
    background: var(--white);
}

.brand-logo img {
    width: 180px;
    height: 48px;
    object-fit: contain;
}

.primary-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.55rem 0.9rem;
    border-radius: 0.4rem;
}

.primary-nav .nav-link:hover,
.primary-nav .nav-link:focus,
.primary-nav .nav-link.active {
    color: var(--accent-color);
    background: transparent;
}

.primary-nav .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    padding: 0.5rem;
    min-width: 15rem;
}

.primary-nav .dropdown-item {
    border-radius: 0.4rem;
    padding: 0.55rem 0.85rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.primary-nav .dropdown-item:hover,
.primary-nav .dropdown-item:focus,
.primary-nav .dropdown-item.active {
    background: var(--light-bg);
    color: var(--primary-color);
}

.header-cta {
    white-space: nowrap;
}

.mobile-menu-toggle {
    border-width: 1.5px;
    padding: 0.4rem 0.65rem;
    font-size: 1.35rem;
    line-height: 1;
}

.mobile-offcanvas .accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: none;
    padding: 1rem 0;
}

.mobile-offcanvas .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary-color);
}

.mobile-offcanvas .accordion-button::after {
    margin-left: auto;
}

.mobile-offcanvas .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-top-link,
.mobile-submenu-link {
    display: block;
    padding: 1rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-submenu-link {
    padding: 0.75rem 0 0.75rem 0.25rem;
    font-weight: 500;
    color: var(--text-dark);
}

.mobile-top-link.active,
.mobile-submenu-link.active {
    color: var(--accent-color);
}

.mobile-contact-strip a {
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(15, 39, 71, 0.92) 0%, rgba(30, 79, 122, 0.78) 55%, rgba(15, 39, 71, 0.55) 100%),
        url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
    color: var(--white);
    padding: 6.5rem 0 5.5rem;
}

.hero::after {
    content: "";
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    right: -8rem;
    top: -6rem;
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
    max-width: 18ch;
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-trust-item {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-trust-item strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
}

/* ---------- Cards ---------- */
.feature-card,
.service-card,
.team-card,
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover,
.service-card:hover,
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(199, 154, 59, 0.35);
}

.feature-card {
    padding: 1.75rem;
}

.feature-icon,
.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 79, 122, 0.08);
    color: var(--secondary-color);
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.service-card {
    padding: 1.75rem;
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.service-card .stretched-link {
    font-weight: 600;
    color: var(--primary-color);
}

.service-card .stretched-link:hover {
    color: var(--accent-color);
}

/* ---------- Intro / Expertise ---------- */
.intro-media,
.expertise-media {
    border-radius: calc(var(--radius) + 0.25rem);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.intro-media img,
.expertise-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.value-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.value-panel h2 {
    font-family: var(--font-display);
}

/* ---------- Team ---------- */
.team-card {
    overflow: hidden;
    text-align: center;
}

.team-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--soft-bg);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-body {
    padding: 1.35rem 1.25rem 1.6rem;
}

.team-card-body h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.team-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.65rem;
}

.team-expertise {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    padding: 1.75rem;
}

.testimonial-quote {
    color: var(--text-dark);
    font-size: 1.02rem;
    margin-bottom: 1.35rem;
}

.testimonial-meta strong {
    display: block;
    color: var(--primary-color);
}

.testimonial-meta span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-carousel .carousel-indicators {
    margin-bottom: 0;
    position: static;
    margin-top: 1.5rem;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

/* ---------- CTA band ---------- */
.cta-band {
    padding: 4rem 0;
}

.cta-band h2 {
    color: var(--white);
    font-family: var(--font-display);
    margin-bottom: 0.85rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.0625rem;
    max-width: 36rem;
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
}

.footer-intro {
    max-width: 28rem;
}

.footer-trust {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-links li + li {
    margin-top: 0.45rem;
}

.footer-office-title {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.footer-office p {
    font-size: 0.9375rem;
    line-height: 1.55;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.1rem 0;
    font-size: 0.875rem;
}

.footer-bottom-note {
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Page loader ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    background: rgba(15, 39, 71, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader[hidden] {
    display: none !important;
}

.page-loader.is-visible[hidden] {
    display: flex !important;
}

.page-loader-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--accent-color);
    animation: abng-spin 0.75s linear infinite;
}

.page-loader-text {
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@keyframes abng-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner {
        animation-duration: 1.5s;
    }
}
