/* =========================================================================
   ASLI PAINTS — GLOBAL DESIGN SYSTEM
   Tokens · Reset · Typography · Buttons · Navigation · Footer · Modals
   ========================================================================= */

/* --- 1. SELF-HOSTED VARIABLE FONTS ------------------------------------ */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('./fonts/cinzel-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('./fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* --- 2. DESIGN TOKENS -------------------------------------------------- */
:root {
    /* Brand */
    --ap-green-900: #08201A;
    --ap-green-800: #0B2A20;
    --ap-green-700: #0E271E;
    --ap-green: #163B2D;
    --ap-green-400: #2C5A48;
    --ap-gold: #C9A15B;
    --ap-gold-light: #E0C288;
    --ap-gold-deep: #A87F3D;

    /* Neutrals */
    --ap-white: #FFFFFF;
    --ap-cream: #FAF8F4;
    --ap-cream-deep: #F3EFE7;
    --ap-ink: #1A1A1A;
    --ap-body: #3F4A45;
    --ap-muted: #6B7772;
    --ap-line: rgba(22, 59, 45, 0.12);
    --ap-line-soft: rgba(22, 59, 45, 0.07);

    /* Semantic */
    --color-white: var(--ap-white);
    --color-gold: var(--ap-gold);
    --color-charcoal: var(--ap-ink);
    --color-dark-green: var(--ap-green);
    --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Type scale (fluid) */
    --fs-display: clamp(2.25rem, 1.35rem + 4.2vw, 4.75rem);
    --fs-h1: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 1.2rem + 2.4vw, 2.85rem);
    --fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem);
    --fs-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
    --fs-body: 1rem;
    --fs-sm: 0.9rem;
    --fs-xs: 0.8rem;
    --fs-eyebrow: 0.75rem;

    /* Spacing scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --sp-9: 6rem;
    --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

    /* Layout */
    --container: 1240px;
    --container-wide: 1440px;
    --nav-h: 84px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(11, 42, 32, 0.05);
    --shadow-sm: 0 4px 14px rgba(11, 42, 32, 0.06);
    --shadow: 0 12px 34px rgba(11, 42, 32, 0.09);
    --shadow-lg: 0 28px 70px rgba(11, 42, 32, 0.16);

    /* Motion */
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.35s var(--ease);
    --dur: 0.3s;
    --ap-z-nav: 1000;
    --ap-z-drawer: 1050;
    --ap-z-overlay: 1040;
}

/* --- 3. RESET --------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* keeps anchored sections clear of the fixed header */
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.7;
    background-color: var(--ap-white);
    color: var(--ap-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    min-height: 100vh;
}

body.sidebar-open,
body.ap-modal-open {
    overflow: hidden;
}

img,
svg,
video,
picture {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ap-green);
    line-height: 1.18;
    font-weight: 700;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--ap-gold);
    color: var(--ap-green-900);
}

/* --- 4. ACCESSIBILITY PRIMITIVES -------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--sp-4);
    z-index: 100000;
    background: var(--ap-green);
    color: #fff;
    padding: 12px 22px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: top var(--dur) var(--ease);
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--ap-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.desktop-tablet-only { display: flex !important; }
.mobile-only { display: none !important; }

/* --- 5. SHARED LAYOUT UTILITIES --------------------------------------- */
.ap-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
}

.ap-section {
    padding-block: var(--section-y);
}

.ap-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ap-gold-deep);
    margin-bottom: var(--sp-4);
}

.ap-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--ap-gold);
}

/* --- 6. BUTTON SYSTEM ------------------------------------------------- */
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.ap-btn svg {
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease);
}

.ap-btn:hover svg:last-child {
    transform: translateX(3px);
}

.ap-btn--primary {
    background: var(--ap-green);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.ap-btn--primary:hover {
    background: var(--ap-green-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.ap-btn--gold {
    background: var(--ap-gold);
    color: var(--ap-green-900);
}

.ap-btn--gold:hover {
    background: var(--ap-gold-light);
    transform: translateY(-2px);
}

.ap-btn--ghost {
    background: transparent;
    color: var(--ap-green);
    border-color: var(--ap-line);
}

.ap-btn--ghost:hover {
    border-color: var(--ap-gold);
    color: var(--ap-gold-deep);
    transform: translateY(-2px);
}

.ap-btn--onDark {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

.ap-btn--onDark:hover {
    background: #fff;
    color: var(--ap-green);
    border-color: #fff;
}

/* =========================================================================
   7. NAVIGATION
   Desktop >= 1120px · Condensed 900-1119px · Drawer < 900px
   ========================================================================= */
.nav-container {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--ap-line-soft);
    z-index: var(--ap-z-nav);
    transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-container.is-scrolled {
    box-shadow: 0 6px 28px rgba(11, 42, 32, 0.08);
    background: rgba(255, 255, 255, 0.97);
}

.navbar {
    max-width: var(--container-wide);
    margin-inline: auto;
    min-height: var(--nav-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(12px, 2vw, 32px);
    padding-inline: clamp(20px, 3vw, 44px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 28px);
    list-style: none;
}

.nav-menu.left { justify-content: flex-end; }
.nav-menu.right { justify-content: flex-start; }

.nav-item {
    position: relative;
    flex-shrink: 0;
}

/* plain text links only - the gold CTA is excluded so it keeps its own
   padding, colour and stays free of the underline treatment */
.nav-item > a:not(.nav-cta),
.nav-item > .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ap-ink);
    position: relative;
    transition: color var(--dur) var(--ease);
}

.nav-item > a:not(.nav-cta)::after,
.nav-item > .dropdown-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--ap-gold);
    transition: width var(--dur) var(--ease);
}

.nav-item > a:not(.nav-cta):hover,
.nav-item > .dropdown-trigger:hover,
.nav-item > a:not(.nav-cta):focus-visible {
    color: var(--ap-gold-deep);
}

.nav-item > a:not(.nav-cta):hover::after,
.nav-item > .dropdown-trigger:hover::after {
    width: 100%;
}

.nav-item.active > a:not(.nav-cta),
.nav-item.active > .dropdown-trigger {
    color: var(--ap-green);
}

.nav-item.active > a:not(.nav-cta)::after,
.nav-item.active > .dropdown-trigger::after {
    width: 22px;
}

/* dropdown caret */
.has-dropdown > .dropdown-trigger .caret {
    width: 9px;
    height: 9px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--dur) var(--ease);
    flex-shrink: 0;
}

.has-dropdown:hover > .dropdown-trigger .caret,
.has-dropdown:focus-within > .dropdown-trigger .caret {
    transform: rotate(225deg) translate(-2px, -2px);
}

/* --- desktop dropdown --- */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 10px);
    min-width: 232px;
    padding: 10px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ap-line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--ap-line-soft);
    border-top: 1px solid var(--ap-line-soft);
    transform: translateX(-50%) rotate(45deg);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-body);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.dropdown-menu li a::after { display: none; }

.dropdown-menu li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ap-gold);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
    background: var(--ap-cream);
    color: var(--ap-green);
    padding-left: 20px;
}

.dropdown-menu li a:hover::before,
.dropdown-menu li a:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

/* --- logo --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform var(--dur) var(--ease);
}

.logo:hover { transform: scale(1.04); }

/* --- header CTA (desktop only) --- */
/* sits on the same optical line as the text links: 12px block padding
   plus the 1px border gives the same 40px box height */
.nav-cta {
    margin-left: 4px;
    padding: 12px 22px;
    font-size: 0.72rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
}

.nav-cta:hover {
    color: var(--ap-green);
}

/* --- hamburger --- */
.hamburger-btn {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: calc(var(--ap-z-drawer) + 10);
}

.hamburger-box {
    width: 24px;
    height: 16px;
    position: relative;
    display: block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--ap-ink);
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), opacity 0.2s var(--ease);
}

.hamburger-inner { top: 50%; margin-top: -1px; }
.hamburger-inner::before { content: ''; top: -7px; }
.hamburger-inner::after { content: ''; top: 7px; }

.hamburger-btn[aria-expanded="true"] .hamburger-inner { background: transparent; }
.hamburger-btn[aria-expanded="true"] .hamburger-inner::before {
    transform: translateY(7px) rotate(45deg);
    background: var(--ap-green);
}
.hamburger-btn[aria-expanded="true"] .hamburger-inner::after {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--ap-green);
}

/* --- drawer --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 90vw);
    height: 100dvh;
    padding: calc(var(--nav-h) + 12px) clamp(20px, 5vw, 32px) 40px;
    display: flex;
    flex-direction: column;
    background: var(--ap-cream);
    box-shadow: -20px 0 60px rgba(11, 42, 32, 0.18);
    z-index: var(--ap-z-drawer);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-sidebar.is-active {
    transform: translateX(0);
    visibility: visible;
    /* visibility flips instantly on open so focus can move into the drawer;
       the base rule keeps the 0.4s delay so it stays visible while sliding out */
    transition: transform 0.4s var(--ease), visibility 0s;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 32, 26, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: var(--ap-z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.sidebar-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ap-line);
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ap-gold-deep);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-item { position: relative; }

.sidebar-item > a,
.accordion-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ap-ink);
    text-align: left;
    transition: color var(--dur) var(--ease);
}

.sidebar-item > a:hover,
.accordion-trigger:hover {
    color: var(--ap-gold-deep);
}

.sidebar-item.active > a,
.sidebar-item.active > .accordion-trigger {
    color: var(--ap-green);
}

.sidebar-item.active > a::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 3px;
    height: 22px;
    border-radius: 3px;
    background: var(--ap-gold);
    transform: translateY(-50%);
}

.accordion-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(-135deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
    padding-left: 16px;
    border-left: 1px solid var(--ap-line);
    margin-left: 4px;
}

.accordion-content li a {
    display: block;
    padding: 11px 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-muted);
    transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.accordion-content li a:hover {
    color: var(--ap-gold-deep);
    padding-left: 6px;
}

.sidebar-cta {
    margin-top: auto;
    padding-top: 28px;
}

.sidebar-cta .ap-btn { width: 100%; }

/* --- condensed navigation: 900px - 1119px --- */
@media (max-width: 1119px) {
    .navbar {
        gap: 12px;
    }

    .nav-menu {
        gap: 13px;
    }

    .nav-item > a,
    .nav-item > .dropdown-trigger {
        font-size: 0.68rem;
        letter-spacing: 0.07em;
    }

    .nav-cta { display: none; }
    .logo { height: 46px; }
    .dropdown-menu { min-width: 210px; }
}

/* --- drawer navigation: below 900px --- */
@media (max-width: 899px) {
    :root { --nav-h: 70px; }

    .desktop-tablet-only { display: none !important; }
    .mobile-only { display: inline-flex !important; }

    .navbar {
        grid-template-columns: auto 1fr;
        gap: 8px;
        padding-inline: clamp(16px, 4vw, 24px);
    }

    .logo-wrapper {
        grid-column: 1;
        justify-content: flex-start;
    }

    .logo { height: 44px; }

    .hamburger-btn {
        display: inline-flex;
        grid-column: 2;
        justify-self: end;
    }
}

/* --- compact phones --- */
@media (max-width: 400px) {
    .logo { height: 38px; }
    .hamburger-btn { width: 42px; height: 42px; }
}

/* =========================================================================
   8. FOOTER
   ========================================================================= */
.premium-footer {
    background: var(--ap-cream);
    border-top: 1px solid var(--ap-line-soft);
    padding-block: clamp(48px, 6vw, 80px) 32px;
    width: 100%;
}

.footer-container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--ap-line);
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 380px;
}

.footer-brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.footer-brand-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ap-muted);
    margin: 0;
}

.footer-newsletter-column {
    display: flex;
    flex-direction: column;
}

.newsletter-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.newsletter-icon-badge {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--ap-line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-headline-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--ap-green);
    margin: 0;
    line-height: 1.25;
}

.newsletter-title-line {
    width: 26px;
    height: 2px;
    background: var(--ap-gold);
}

.newsletter-desc {
    font-size: 0.9rem;
    color: var(--ap-muted);
    margin: 0 0 18px;
}

.newsletter-form-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 460px;
    padding: 5px 5px 5px 20px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: var(--radius-pill);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.newsletter-form-pill:focus-within {
    border-color: var(--ap-gold);
    box-shadow: 0 0 0 4px rgba(201, 161, 91, 0.14);
}

.newsletter-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.newsletter-input-wrapper input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--ap-green);
}

.newsletter-input-wrapper input::placeholder { color: rgba(22, 59, 45, 0.42); }

.newsletter-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    background: var(--ap-green);
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.newsletter-submit-btn span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.newsletter-submit-btn:hover { background: var(--ap-green-800); }
.btn-arrow-icon { transition: transform var(--dur) var(--ease); }
.newsletter-submit-btn:hover .btn-arrow-icon { transform: translateX(3px); }

.footer-middle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    padding-block: 40px;
}

.directory-column { display: flex; flex-direction: column; }

.directory-header-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.directory-heading {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ap-green);
    margin: 0;
}

.directory-heading-line {
    width: 20px;
    height: 2px;
    background: var(--ap-gold);
}

.directory-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.directory-links li a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--ap-muted);
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.link-arrow {
    color: var(--ap-gold);
    font-weight: 700;
    line-height: 1;
    font-size: 0.8rem;
    transition: transform var(--dur) var(--ease);
    display: inline-block;
}

.directory-links li a:hover {
    color: var(--ap-green);
    transform: translateX(4px);
}

.directory-links li a:hover .link-arrow { transform: translateX(2px); }

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--ap-line);
}

.footer-copyright {
    font-size: 0.82rem;
    color: var(--ap-muted);
}

.footer-decorative-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.divider-dash {
    width: 26px;
    height: 1px;
    background: rgba(201, 161, 91, 0.45);
}

.divider-icon-leaf { display: flex; opacity: 0.9; }

.footer-social-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ap-muted);
}

.social-links-list {
    display: flex;
    align-items: center;
    gap: 9px;
}

.social-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ap-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.social-icon-btn:hover {
    background: var(--ap-gold);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .footer-top-grid { gap: 36px; }
}

@media (max-width: 900px) {
    .footer-top-grid { grid-template-columns: 1fr; }
    .footer-newsletter-column { padding-left: 0; }
    .footer-brand-column { max-width: 100%; }
    .footer-middle-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
}

@media (max-width: 620px) {
    .newsletter-form-pill {
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
        max-width: none;
    }

    .newsletter-input-wrapper {
        background: #fff;
        border: 1px solid var(--ap-line);
        border-radius: var(--radius-pill);
        padding: 14px 20px;
    }

    .newsletter-submit-btn { justify-content: center; padding: 15px 24px; }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-decorative-divider { order: -1; }

    .footer-social-wrapper { flex-direction: column; gap: 12px; }
}

@media (max-width: 420px) {
    .footer-middle-grid { gap: 28px 18px; }
    .newsletter-title { font-size: 1.1rem; }
}

/* =========================================================================
   9. HELP CENTRE OVERLAY
   ========================================================================= */
.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.help-overlay.active { display: flex; }

.help-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(8, 32, 26, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.help-card {
    position: relative;
    z-index: 5;
    width: min(440px, 100%);
    padding: 40px 32px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}

.help-overlay.active .help-card { transform: scale(1); opacity: 1; }

.help-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    color: var(--ap-green);
    opacity: 0.45;
    transition: opacity var(--dur) var(--ease);
}

.help-close-btn:hover { opacity: 1; }

.help-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ap-green);
    margin: 0 0 12px;
}

.help-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ap-muted);
    margin: 0 0 22px;
}

.help-contact-box {
    background: var(--ap-cream);
    border-left: 3px solid var(--ap-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.help-phone-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-muted);
    margin-bottom: 6px;
}

.help-phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ap-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-timings { font-size: 0.8rem; color: var(--ap-muted); margin: 0; }

/* =========================================================================
   10. CONTENT MODALS (Privacy / Terms / FAQs)
   ========================================================================= */
.ap-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 32, 26, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.ap-modal-overlay.is-active { opacity: 1; visibility: visible; }

.ap-modal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    max-height: 86vh;
    max-height: 86dvh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s var(--ease);
}

.ap-modal-overlay.is-active .ap-modal-card { transform: scale(1) translateY(0); }

.ap-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 30px;
    border-bottom: 1px solid var(--ap-line);
    background: #fff;
    flex-shrink: 0;
}

.ap-modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ap-green);
    margin: 0;
}

.ap-modal-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ap-cream);
    font-size: 22px;
    line-height: 1;
    color: var(--ap-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ap-modal-close:hover {
    background: var(--ap-green);
    color: #fff;
    transform: rotate(90deg);
}

.ap-modal-body {
    padding: 28px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--ap-body);
}

.ap-modal-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ap-green);
    margin: 26px 0 10px;
}

.ap-modal-body p { margin-bottom: 14px; }
.ap-modal-body ul { margin: 0 0 18px; padding-left: 0; list-style: disc; }
.ap-modal-body li { margin-bottom: 8px; padding-left: 6px; }

.ap-modal-meta {
    font-size: 0.85rem;
    color: var(--ap-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.ap-modal-body::-webkit-scrollbar { width: 8px; }
.ap-modal-body::-webkit-scrollbar-track { background: var(--ap-cream); }
.ap-modal-body::-webkit-scrollbar-thumb { background: #cbd5d1; border-radius: 8px; }
.ap-modal-body::-webkit-scrollbar-thumb:hover { background: #a7b5af; }

/* --- FAQ accordion --- */
.ap-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ap-accordion-item {
    border: 1px solid var(--ap-line);
    border-radius: var(--radius);
    background: var(--ap-cream);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.ap-accordion-item:hover { border-color: var(--ap-gold); background: #fff; }
.ap-accordion-item.is-expanded { border-color: var(--ap-gold); background: #fff; }

.ap-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ap-green);
    text-align: left;
    transition: color var(--dur) var(--ease);
}

.ap-accordion-header:hover { color: var(--ap-gold-deep); }

.ap-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ap-icon::before,
.ap-icon::after {
    content: '';
    position: absolute;
    background: var(--ap-gold-deep);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.ap-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.ap-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }

.ap-accordion-item.is-expanded .ap-icon::after { transform: rotate(90deg); opacity: 0; }

.ap-accordion-collapse {
    height: 0;
    overflow: hidden;
    transition: height 0.35s var(--ease);
}

.ap-accordion-body {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ap-muted);
}

@media (max-width: 640px) {
    .ap-modal-card { max-height: 92dvh; border-radius: var(--radius); }
    .ap-modal-header { padding: 16px 18px; }
    .ap-modal-body { padding: 20px 18px; }
    .ap-modal-title { font-size: 1.15rem; }
    .ap-accordion-header { padding: 15px 16px; font-size: 0.94rem; }
    .ap-accordion-body { padding: 0 16px 16px; }
    .help-card { padding: 32px 22px; }
}

/* --- 11. REDUCED MOTION ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- 12. PRINT --------------------------------------------------------- */
@media print {
    .nav-container,
    .mobile-sidebar,
    .sidebar-overlay,
    .premium-footer,
    .ap-modal-overlay,
    .help-overlay { display: none !important; }

    body { color: #000; background: #fff; }
}
