﻿/* Waikato Floor Plan — shared shell (nav, utility bar, design tokens). Home-specific: home.css */
:root {
    --color-primary: #000000;
    /* Secondary: white text on dark panels (modals / HUD); nav uses explicit shell colours below. */
    --color-secondary: #ffffff;
    --color-secondary-hover: rgba(255, 255, 255, 0.88);
    --color-tertiary: #ffffff;
    --primary-gold: #6BD5AB;
    --primary-gold-hover: #52c9a0;
    --canvas-deep: #000000;
    --glass-border: rgba(107, 213, 171, 0.22);
    /* Dark green-tinted glass — used on immersive / modal panels */
    --glass-bg: rgba(10, 18, 15, 0.36);
    --glass-bg-strong: rgba(8, 14, 12, 0.48);
    /* Light shell (nav, utility bar, marketing chrome) */
    --shell-bg: #ffffff;
    --shell-bg-subtle: #f4f8f6;
    --shell-text: #14221e;
    --shell-text-muted: rgba(20, 34, 30, 0.74);
    --shell-border: rgba(0, 0, 0, 0.08);
    --shell-border-strong: rgba(0, 0, 0, 0.12);
    --shell-shadow: none;
    /* Frosted panel edge (shared with home.css pattern) */
    --glass-rim: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    /* Page canvases (marketing home vs app shell) */
    --wfp-page-mist: #e8f0ec;
    --wfp-home-canvas: #d8e4df;
    --wfp-ink: #14221e;
    /* Text on mint primary buttons / pills */
    --wfp-btn-ink: #0f1815;
    --font-display: 'League Spartan', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Shared UI (pages that load League Spartan + Roboto) */
.wfp-font-display {
    font-family: var(--font-display);
}

.wfp-btn-mint-solid {
    background: var(--primary-gold) !important;
    border: none !important;
    color: var(--wfp-btn-ink) !important;
}

.wfp-btn-mint-solid:hover {
    filter: brightness(0.95);
    color: var(--wfp-btn-ink) !important;
}

#navbar-header { 
    height: 72px;
    background: var(--shell-bg) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex; align-items: center; padding: 0 !important;
    border-bottom: 1px solid var(--shell-border-strong);
    box-shadow: var(--shell-shadow);
}
#navbar-header .container-fluid { padding: 0 !important; display: flex; align-items: stretch; height: 100%; }

.navbar-brand {
    /* Flat: no separate “box” — logo sits on the same surface as the bar */
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px 0 20px;
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: min(320px, 58vw);
    box-sizing: border-box;
    box-shadow: none;
    border: none;
}
.navbar-brand .wfp-brand-wrapper {
    align-items: center;
}
.wfp-brand-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    width: 100%;
    min-width: 0;
}
.wfp-nav-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: var(--font-display);
    line-height: 1.05;
    min-width: 0;
    width: 100%;
}
.wfp-nav-title__primary {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--shell-text);
    white-space: nowrap;
}
.wfp-nav-title__secondary {
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-top: 3px;
    white-space: nowrap;
}
.wfp-logo-full-img {
    height: 52px;
    width: auto;
    max-width: min(320px, 58vw);
    display: block;
    object-fit: contain;
}
.logo-main-img { height: 26px; width: auto; object-fit: contain; }

@media (min-width: 992px) {
    #navbar-header { width: 100%; max-width: 100%; }
    #navbarSupportedContent {
        flex: 1 1 0%;
        min-width: 0;
        display: flex !important;
        height: 72px;
        justify-content: center;
        align-items: stretch;
    }
    #navbarSupportedContent .navbar-nav {
        flex: 0 1 80%;
        width: 80%;
        max-width: 80%;
        min-width: 0;
    }
    #navbar-header .nav-item { container-type: size; }
    #navbar-header .nav-link {
        font-size: unset !important;
        letter-spacing: 0.04em !important;
    }
    #navbar-header .nav-text {
        display: block;
        width: 92%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        line-height: 1.1;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: manual;
        font-size: min(0.98rem, max(0.72rem, 30cqi), 48cqh);
        padding: 0 4px;
    }
}

.navbar-nav { width: 100%; height: 100%; display: flex; align-items: stretch; margin: 0; padding: 0; }
.navbar-nav .nav-divider { flex: 0 0 auto; }
.nav-item { flex: 1; display: flex; min-width: 0; }
.nav-link { 
    position: relative; display: flex !important; align-items: center; justify-content: center;
    width: 100%; height: 100%; padding: 0 !important; overflow: hidden;
    font-family: var(--font-display) !important; font-weight: 600 !important; 
    font-size: 16px !important; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--shell-text) !important; text-decoration: none !important;
    outline: none;
}

#navbar-header .nav-link {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
#navbar-header .nav-link:hover,
#navbar-header .nav-link:focus-visible {
    background-color: rgba(107, 213, 171, 0.14);
}
#navbar-header .nav-link:active {
    background-color: rgba(107, 213, 171, 0.22);
}
.nav-text {
    position: relative; z-index: 1;
    color: var(--shell-text);
    -webkit-text-fill-color: var(--shell-text);
    transition: color 0.3s ease, -webkit-text-fill-color 0.3s ease;
}
#navbar-header .nav-link:hover .nav-text,
#navbar-header .nav-link:focus-visible .nav-text {
    color: var(--wfp-ink, #14221e);
    -webkit-text-fill-color: var(--wfp-ink, #14221e);
}
.nav-divider { width: 1px; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.12), transparent); margin: 0; z-index: 5; }

.sub-header-bar { 
    position: fixed; top: 72px; left: 0; width: 100%; min-height: 30px; padding: 5px 0;
    background: var(--shell-bg-subtle);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1020;
    display: flex; align-items: center; border-bottom: 1px solid var(--shell-border-strong);
}
@media (max-width: 991px) {
    .sub-header-bar {
        top: 58px;
    }
}
.utility-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; flex-wrap: wrap; }
.utility-tagline {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--shell-text-muted);
    line-height: 1.4;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 65%;
    white-space: nowrap;
}
@media (max-width: 991px) {
    .utility-tagline {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }
    .utility-tagline .utility-tagline__mobile {
        display: inline;
        white-space: nowrap;
        line-height: 1.3;
    }
}
@media (min-width: 992px) {
    .utility-tagline__desktop {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.06em;
    }
}
.utility-tagline__xero {
    display: inline-block;
    width: auto;
    height: 18px;
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .utility-tagline__xero {
        height: 16px;
    }
}
.utility-led {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shell-text-muted);
}
.utility-led-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: utilityLedPulse 1.6s ease-in-out infinite;
}
.utility-led--active .utility-led-dot {
    background: #2ee86a;
    box-shadow: 0 0 6px #2ee86a, 0 0 14px rgba(46, 232, 106, 0.65);
}
.utility-led--away .utility-led-dot {
    background: #ff8c00;
    box-shadow: 0 0 6px #ff8c00, 0 0 14px rgba(255, 140, 0, 0.55);
}
@keyframes utilityLedPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.88; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .utility-led-dot {
        animation: none;
    }
}

@media (max-width: 991px) {
    #navbar-header { height: 58px; padding: 0 !important; align-items: center; }
    #navbar-header .container-fluid { padding: 0 !important; display: flex; align-items: center; justify-content: space-between; }
    .navbar-brand {
        height: 58px !important;
        flex: 0 0 auto;
        width: auto;
        max-width: min(280px, 58vw);
        padding: 0 8px 0 12px;
    }
    .navbar-toggler { margin-right: 20px; flex-shrink: 0; border: 1px solid var(--shell-border-strong); padding: 8px 12px; border-radius: 4px; outline: none; background: var(--shell-bg); color: var(--shell-text); }
    .wfp-brand-wrapper { transform: none; transform-origin: center center; }
    .wfp-nav-title__primary { font-size: 0.92rem; letter-spacing: 0.03em; }
    .wfp-nav-title__secondary { font-size: 0.58rem; letter-spacing: 0.1em; margin-top: 2px; }
    .wfp-logo-full-img { height: 40px; max-width: min(280px, 56vw); }
    #navbarSupportedContent { 
        position: absolute; top: 58px; left: 0; width: 100%;
        background: var(--shell-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: 1px solid var(--shell-border-strong); border-bottom: 1px solid var(--shell-border-strong);
        padding: 0; box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    }
    .navbar-nav { height: auto; flex-direction: column; }
    .nav-item { height: 60px; width: 100%; border-bottom: 1px solid var(--shell-border); } 
    .nav-divider { display: none; }
    .mobile-contact-info { padding: 25px 20px; margin-top: 0; background: var(--shell-bg-subtle); }
    .mobile-contact-info a { display: block; color: var(--shell-text) !important; font-size: 15px; margin-bottom: 15px; text-decoration: none; }
    #navbar-header .nav-text {
        font-size: 1.02rem !important;
        width: auto;
        line-height: 1.2;
        white-space: normal;
    }
}

/* Selling points band (homepage + contact) — replaces generic “accreditation” chips */
.cert-box--selling-points {
    text-align: left;
    padding: 44px 0 48px;
    background: transparent;
    border-top: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.cert-box--selling-points .container {
    max-width: 1100px;
}
.selling-points__title {
    color: var(--primary-gold);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 600;
    margin: 0 0 14px;
    text-align: center;
    line-height: 1.2;
}
.selling-points__lead {
    margin: 0 auto 32px;
    max-width: 52rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(20, 34, 30, 0.82);
    text-align: center;
}
.selling-points__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px 24px;
}
.selling-points__item {
    margin: 0;
    padding: 20px 20px 22px;
    background: transparent;
    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
    border: 1px solid var(--glass-border, rgba(107, 213, 171, 0.22));
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.25s ease, background 0.25s ease;
    box-shadow: var(--glass-rim), 0 2px 12px rgba(0, 0, 0, 0.08);
}
.selling-points__item:hover {
    border-color: rgba(107, 213, 171, 0.45);
    background: rgba(107, 213, 171, 0.06);
    box-shadow: var(--glass-rim), 0 4px 16px rgba(0, 0, 0, 0.08);
}
.selling-points__item-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-gold);
}
.selling-points__item-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(20, 34, 30, 0.88);
}
@media (max-width: 600px) {
    .cert-box--selling-points {
        padding: 32px 0 36px;
    }
    .selling-points__lead {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
}
