/* ============================================================
   AR7 GROUP LIMITED — GLOBAL STYLES
   Standalone theme, no parent required.
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
    /* Brand palette — deep navy to teal */
    --ar7-navy-900: #041220;
    --ar7-navy-800: #071a30;
    --ar7-navy-700: #0c2440;
    --ar7-navy-600: #0f3058;
    --ar7-teal-500: #0d7377;
    --ar7-teal-400: #0ea5a0;
    --ar7-teal-300: #14b8a6;
    --ar7-sky-400: #38bdf8;
    --ar7-sky-300: #7dd3fc;
    --ar7-gold-400: #d4a843;
    --ar7-gold-300: #e6c36a;

    /* Neutral scale */
    --ar7-white: #ffffff;
    --ar7-gray-50: #f8fafc;
    --ar7-gray-100: #f1f5f9;
    --ar7-gray-200: #e2e8f0;
    --ar7-gray-300: #cbd5e1;
    --ar7-gray-400: #94a3b8;
    --ar7-gray-500: #64748b;
    --ar7-gray-600: #475569;

    /* Functional */
    --ar7-bg: var(--ar7-navy-900);
    --ar7-header-bg: rgba(4, 18, 32, 0.85);
    --ar7-header-bg-scrolled: rgba(4, 18, 32, 0.97);

    /* Spacing (8px base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--ar7-bg);
    color: var(--ar7-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── HEADER ─────────────────────────────────────────────── */
.ar7-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0D7377;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--transition-base), box-shadow var(--transition-base),
                backdrop-filter var(--transition-base);
}

.ar7-header.is-scrolled {
    background: rgba(13, 115, 119, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ar7-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    height: 72px;
    gap: var(--space-6);
}

/* ── LOGO ───────────────────────────────────────────────── */
.ar7-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    transition: opacity 200ms ease;
}
.ar7-logo:hover { opacity: 0.85; }

.ar7-logo__icon {
    flex-shrink: 0;
}

.ar7-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ar7-logo__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ar7-white);
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.ar7-logo__sub {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* ── DESKTOP NAV ────────────────────────────────────────── */
.ar7-nav {
    display: none;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
}

.ar7-nav__item {
    position: relative;
}

.ar7-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.ar7-nav__chevron {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform var(--transition-fast);
}

/* Animated underline */
.ar7-nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 20px);
    height: 1.5px;
    background: var(--ar7-teal-400);
    border-radius: 2px;
    transition: transform 200ms ease;
}

.ar7-nav__link:hover {
    color: var(--ar7-white);
    background: rgba(255, 255, 255, 0.06);
}
.ar7-nav__link:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.ar7-nav__link:hover .ar7-nav__chevron {
    transform: rotate(180deg);
}

.ar7-nav__link--active {
    color: var(--ar7-white);
}
.ar7-nav__link--active::after {
    transform: translateX(-50%) scaleX(1);
    background: var(--ar7-teal-300);
}

/* ── CTA BUTTON ─────────────────────────────────────────── */
.ar7-header__cta {
    display: none;
    align-items: center;
    flex-shrink: 0;
}

.ar7-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    color: var(--ar7-white);
    background: linear-gradient(135deg, var(--ar7-teal-500), var(--ar7-teal-400));
    border: 1px solid rgba(14, 165, 160, 0.4);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: background var(--transition-fast), transform var(--transition-fast),
                box-shadow var(--transition-fast);
}
.ar7-btn-primary:hover {
    background: linear-gradient(135deg, var(--ar7-teal-400), var(--ar7-teal-300));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(14, 165, 160, 0.35);
}
.ar7-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── HAMBURGER ──────────────────────────────────────────── */
.ar7-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    gap: 5px;
    z-index: 1001;
    flex-shrink: 0;
}
.ar7-hamburger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
    transform-origin: center;
}
.ar7-hamburger.is-active .ar7-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.ar7-hamburger.is-active .ar7-hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.ar7-hamburger.is-active .ar7-hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ────────────────────────────────────────── */
.ar7-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--ar7-navy-900);
    display: flex;
    flex-direction: column;
    padding: 96px var(--space-8) var(--space-10);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
.ar7-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.ar7-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.ar7-mobile-menu__link {
    font-weight: 700;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: -0.025em;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.ar7-mobile-menu__link:hover,
.ar7-mobile-menu__link--active {
    color: var(--ar7-white);
    padding-left: 0.875rem;
}

.ar7-mobile-menu__cta {
    margin-top: auto;
    padding-top: var(--space-8);
}
.ar7-mobile-menu__cta .ar7-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}

/* ── MAIN CONTENT WRAPPER ───────────────────────────────── */
.ar7-main {
    padding-top: 72px;
    min-height: 60vh;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (min-width: 1024px) {
    .ar7-nav         { display: flex; }
    .ar7-header__cta { display: flex; }
    .ar7-hamburger   { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ar7-footer {
    background: #f2f3ee;
    color: rgba(4, 18, 32, 0.5);
    position: relative;
}

/* Dot pattern — matching Who We Are / How It Works */
.ar7-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.035) 7px, transparent 7px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* Teal accent line at top */
.ar7-footer__accent {
    height: 3px;
    background: linear-gradient(90deg, var(--ar7-teal-500), var(--ar7-teal-400), var(--ar7-sky-400));
    position: relative;
    z-index: 1;
}

.ar7-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--space-8);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    position: relative;
    z-index: 1;
}

/* ── Logo + Description ────────────────────────────────── */
.ar7-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-5);
    transition: opacity 200ms ease;
}
.ar7-footer__logo:hover { opacity: 0.8; }

.ar7-footer__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.ar7-footer__logo-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--ar7-navy-900);
    letter-spacing: 0.06em;
}
.ar7-footer__logo-sub {
    font-size: 8px;
    font-weight: 600;
    color: rgba(4, 18, 32, 0.4);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ar7-footer__desc {
    font-size: 14px;
    font-weight: 500;
    color: rgba(4, 18, 32, 0.6);
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: var(--space-6);
}

/* CTA buttons under logo */
.ar7-footer__cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.ar7-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    color: var(--ar7-white);
    background: linear-gradient(135deg, var(--ar7-teal-500), var(--ar7-teal-400));
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(14, 165, 160, 0.3);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1),
                background 250ms ease;
}
.ar7-footer__cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 500ms ease;
}
.ar7-footer__cta-btn:hover::before { left: 100%; }
.ar7-footer__cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(135deg, var(--ar7-teal-400), var(--ar7-teal-300));
    box-shadow:
        0 10px 40px rgba(14, 165, 160, 0.45),
        0 0 20px rgba(14, 165, 160, 0.2),
        0 0 0 1px rgba(14, 165, 160, 0.3);
}
.ar7-footer__cta-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: none;
}

/* ── Column titles ─────────────────────────────────────── */
.ar7-footer__col-desc {
    font-size: 13px;
    color: rgba(4, 18, 32, 0.5);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.ar7-footer__col-title {
    text-align: left;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--ar7-navy-900);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-5);
}

/* ── Quick Links as button shapes ──────────────────────── */
.ar7-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
}

.ar7-footer__link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    color: rgba(4, 18, 32, 0.7);
    background: rgba(4, 18, 32, 0.05);
    border: 1px solid rgba(4, 18, 32, 0.12);
    padding: 9px 20px;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1),
                background 250ms ease,
                color 250ms ease,
                border-color 250ms ease;
}

/* Shine sweep on hover */
.ar7-footer__link-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 500ms ease;
}
.ar7-footer__link-btn:hover::before { left: 100%; }

.ar7-footer__link-btn:hover {
    color: var(--ar7-white);
    background: linear-gradient(135deg, var(--ar7-teal-500), var(--ar7-teal-400));
    border-color: rgba(14, 165, 160, 0.3);
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 10px 40px rgba(14, 165, 160, 0.45),
        0 0 20px rgba(14, 165, 160, 0.2),
        0 0 0 1px rgba(14, 165, 160, 0.3);
}
.ar7-footer__link-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: none;
}

/* ── Company Info ──────────────────────────────────────── */
.ar7-footer__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ar7-footer__info-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 14px;
    font-weight: 600;
    color: rgba(4, 18, 32, 0.6);
}
.ar7-footer__info-item svg {
    color: var(--ar7-teal-400);
    flex-shrink: 0;
}
.ar7-footer__info-item a {
    font-weight: 600;
    color: rgba(4, 18, 32, 0.7);
    transition: color var(--transition-fast);
}
.ar7-footer__info-item a:hover {
    color: var(--ar7-teal-300);
}

/* ── Bottom Bar ────────────────────────────────────────── */
.ar7-footer__bottom {
    border-top: 1px solid rgba(4, 18, 32, 0.08);
}

.ar7-footer__bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
    text-align: center;
    justify-content: center;
}

.ar7-footer__copy {
    font-size: 13px;
    font-weight: 500;
    color: rgba(4, 18, 32, 0.45);
}

.ar7-footer__legal {
    display: flex;
    gap: var(--space-5);
}
.ar7-footer__legal a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(4, 18, 32, 0.45);
    transition: color var(--transition-fast);
}
.ar7-footer__legal a:hover {
    color: var(--ar7-teal-300);
}

/* ── Footer Responsive ─────────────────────────────────── */
@media (min-width: 768px) {
    .ar7-footer__inner {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .ar7-footer__bottom-inner {
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .ar7-footer__links {
        flex-direction: column;
    }
    .ar7-footer__link-btn {
        width: 100%;
    }
}
/* Header logo */
.ar7-logo__img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 639px) {
    .ar7-logo__img { height: 48px !important; width: auto !important; }
}

.ar7-footer__logo-img {
    height: 80px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

@media (max-width: 639px) {
    .ar7-logo__img { height: 48px !important; width: auto !important; }
    .ar7-footer__logo-img { height: 70px !important; width: auto !important; }
}

/* ── FOOTER MOBILE ───────────────────────────────────────── */
@media (max-width: 767px) {

    /* Smaller footer logo on mobile */
    .ar7-footer__logo-img { height: 48px !important; }

    /* Reduce all gaps in footer on mobile */
    .ar7-footer__inner {
        gap: 16px !important;
        padding: 24px 20px !important;
    }
    .ar7-footer__brand {
        gap: 10px !important;
    }
    .ar7-footer__cta-btns {
        gap: 8px !important;
    }
    .ar7-footer__col {
        gap: 6px !important;
    }
    .ar7-footer__info {
        gap: 6px !important;
    }
    .ar7-footer__bottom-inner {
        padding: 12px 20px !important;
    }

    /* Centre ALL footer columns */
    .ar7-footer__brand,
    .ar7-footer__col {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .ar7-footer__logo { justify-content: center; }
    .ar7-footer__desc { text-align: center; }
    .ar7-footer__cta-btns { justify-content: center; }
    .ar7-footer__info { align-items: center; }
    .ar7-footer__info-item { justify-content: center; }

    /* Quick Links dropdown — centred with arrow */
    .ar7-footer__col-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .ar7-footer__col-toggle .ar7-footer__col-title {
        margin-bottom: 0;
    }
    .ar7-footer__toggle-icon {
        color: #041220;
        font-weight: 700;
        transition: transform 250ms ease;
        flex-shrink: 0;
    }
    .ar7-footer__col-toggle[aria-expanded="true"] .ar7-footer__toggle-icon {
        transform: rotate(180deg);
    }

    /* Links hidden by default, centred when open */
    .ar7-footer__links {
        display: none;
        margin-top: var(--space-4);
        align-items: center;
    }
    .ar7-footer__links.is-open {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Desktop — always show links, hide toggle arrow */
@media (min-width: 768px) {
    .ar7-footer__col-toggle {
        display: contents;
        cursor: default;
        pointer-events: none;
    }
    .ar7-footer__toggle-icon { display: none; }
    .ar7-footer__links { display: flex !important; }
}