/* ============================================
   Fliway SCS Website - NZ Post Design System
   ============================================ */

:root {
    /* NZ Post Group palette - matched from nzpost.co.nz computed styles */
    --nzpost-red: #D8291C;           /* NZ Post actual red: rgb(216, 41, 28) */
    --nzpost-red-dark: #B82218;
    --nzpost-blue: #0033A0;          /* NZ Post primary blue: rgb(0, 51, 160) */
    --fliway-blue: #041E42;          /* NZ Post dark navy text: rgb(4, 30, 66) */
    --fliway-blue-light: #1497D4;    /* Fliway official light blue */
    --fliway-blue-pale: #EDF2F8;
    --fliway-green: #00A651;         /* Fliway accent green */
    --fliway-green-dark: #008C44;
    --accent-green: #00A651;
    --link-blue: #0056F4;            /* NZ Post link blue: rgb(0, 86, 244) */
    --text-primary: rgba(28, 32, 35, 0.87);  /* NZ Post body text */
    --text-secondary: rgba(28, 32, 35, 0.62);
    --text-light: rgba(28, 32, 35, 0.42);
    --bg-white: #FFFFFF;
    --bg-light: #F5F6F8;
    --bg-dark: #041E42;              /* Match NZ Post dark navy */
    --border: #E0E4E8;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.10);
    --radius: 0px;                   /* NZ Post cards: 0px radius */
    --radius-btn: 10px;              /* NZ Post buttons: 10px radius (MDC) */
    --radius-lg: 0px;
    --max-width: 1200px;
    --transition: all 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    /* NZ Post uses NZPSans; we use Arial as the closest public equivalent */
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    background: var(--bg-white);
    font-size: 18px;                 /* NZ Post body text is 20px; 18px for Fliway */
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--fliway-green); text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Typography - NZ Post DS: H1=40px/48px, H2=32px/40px, H3=22px, body=18px */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--fliway-blue); }
h1 { font-size: 2.222rem; margin-bottom: 1rem; line-height: 1.2; }    /* 40px / 48px */
h2 { font-size: 1.778rem; margin-bottom: 0.75rem; font-weight: 500; line-height: 1.25; }  /* 32px / 40px */
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; line-height: 1.3; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.lead { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.6; }

/* Anchor scroll offset for sticky nav */
[id] { scroll-margin-top: 140px; }

/* ========== NAVIGATION (NZ Post MDC Pattern) ========== */

/* Notification alert banner */
/* Hero sections need relative positioning for alert overlay */
[data-hero] { position: relative; }
[data-hero] > .alert-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.alert-banner {
    background: #d32f2f;
    color: #fff;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideDown 0.4s ease-out;
}
.alert-banner--amber { background: #f57c00; }
.alert-banner__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
.alert-banner__dismiss {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.alert-banner__dismiss:hover { opacity: 1; }
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Top navigation bar — full width */
.navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}
.navigation__top {
    background: #fff;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.navigation__row {
    display: flex;
    align-items: center;
    height: 3.5rem;  /* 56px — matches NZ Post navigation__top height */
    gap: 0;
}

/* Logo group */
.navigation__logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1rem;
    flex-shrink: 0;
    padding: 0;
    border-radius: 0;
    align-self: stretch;
}
.navigation__logo-link {
    display: flex;
    align-items: center;
}
.navigation__logo-img {
    height: 32px;         /* matches NZ Post logo height */
    width: auto;
}
.navigation__scs-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-left: 1px solid rgba(4, 30, 66, 0.2);
    padding-left: 0.75rem;
}

/* Brand text replacing logos */
.navigation__brand-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fliway-blue);
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.navigation__brand-img {
    width: 319px;
    height: 35px;
    display: block;
    object-fit: contain;
    object-position: left;
}
@media (max-width: 768px) {
    .navigation__brand-img { width: 200px; height: auto; }
}
.navigation__brand-text:hover {
    color: var(--nzpost-blue);
}
.drawer__header .navigation__brand-text {
    color: var(--fliway-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Main top-level links (matches NZ Post .navigation__top-item pattern) */
.navigation__top-items {
    display: block;    /* NZ Post uses block container, not flex, so items stay inline-block */
    flex: 1;
    line-height: 1;
    white-space: nowrap;
}
.navigation__top-item {
    display: inline-block;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    line-height: 1.25rem;
    letter-spacing: 0.15px;
    border-radius: 0.625rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.navigation__top-item:hover {
    color: var(--bg-dark);
    text-decoration: none;
    background-color: rgba(4, 30, 66, 0.06);
}
.navigation__top-item--active {
    background-color: var(--nzpost-blue);
    color: #fff;
}
.navigation__top-item--active:hover {
    background-color: var(--nzpost-blue);
    color: #fff;
}

/* Right-side actions (Search, Portal Login — matches NZ Post end-action pattern) */
.navigation__end-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;
}
.navigation__action-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background-color: transparent;
    color: var(--bg-dark);
    text-decoration: none;
    height: 2rem;
    padding: 0;
    margin-left: 1.5rem;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.25rem;
    transition: all 0.15s ease;
}
.navigation__action-btn:hover {
    color: var(--nzpost-blue);
    text-decoration: none;
}
.navigation__action-btn svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Hamburger — hidden on desktop, shown on mobile (matches NZ Post mdc-top-app-bar__navigation-icon) */
.navigation__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    padding: 12px;
    margin-right: 0;
    border-radius: 50%;
    transition: background 0.15s ease;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}
.navigation__hamburger:hover {
    background: rgba(4, 30, 66, 0.06);
}
.navigation__hamburger svg {
    width: 24px;
    height: 24px;
}

/* ---- Sub-navigation tab bar (Fliway blue, below white top bar) ---- */
.navigation__bottom {
    background: var(--bg-dark);
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.navigation__tab-bar {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    height: 60px;
    margin-left: -1rem; /* compensate first tab's left padding to align text with logo/breadcrumb */
}
.navigation__tab-bar::-webkit-scrollbar { display: none; }
.navigation__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.87);
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
    height: 60px;
    position: relative;
    letter-spacing: 0.15px;
    line-height: 1.25rem;
    z-index: 1;
}
/* MDC tab indicator — absolute positioned underline */
.navigation__tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.navigation__tab:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}
.navigation__tab:hover::after {
    background: #fff;
}
.navigation__tab--active {
    color: #fff;
    font-weight: 600;
}
.navigation__tab--active::after {
    background: #fff;
}

/* ---- Mobile drawer ---- */
.drawer-scrim {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.32);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.drawer-scrim.active {
    display: block;
    opacity: 1;
}
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 304px;           /* matches NZ Post mdc-drawer width */
    max-width: 85vw;
    background: var(--bg-white);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    /* mdc-drawer--modal shadow */
    box-shadow: 0 8px 10px -5px rgba(0,0,0,0.2), 0 16px 24px 2px rgba(0,0,0,0.14), 0 6px 30px 5px rgba(0,0,0,0.12);
}
.drawer.open {
    transform: translateX(0);
}
.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.drawer__header .navigation__logo-img {
    height: 36px;
}
.drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
}
.drawer__close:hover {
    background: var(--bg-light);
}
.drawer__content {
    padding: 16px 0;
}
.drawer__nav {
    display: flex;
    flex-direction: column;
}
.drawer__section {
    border-bottom: 1px solid var(--border);
}
.drawer__section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
    height: 3rem;           /* matches NZ Post mdc-list-item height */
    background: none;
    border: none;
    font-size: 0.875rem;    /* 14px — matches NZ Post drawer list-item */
    font-weight: 500;       /* matches NZ Post */
    color: var(--fliway-blue);
    cursor: pointer;
    text-align: left;
    letter-spacing: 0.1px;
    margin-bottom: 0.25rem;
}
.drawer__section-toggle:hover {
    background: var(--bg-light);
}
.drawer__chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.drawer__chevron svg {
    width: 24px;
    height: 24px;
}
.drawer__section.open .drawer__chevron {
    transform: rotate(180deg);
}
.drawer__section-content {
    display: none;
    padding: 0 1rem 0.5rem 2.5rem;
    background: var(--bg-light);
}
.drawer__section.open .drawer__section-content {
    display: block;
}
.drawer__sub-item {
    display: block;
    padding: 10px 0;
    font-size: 0.875rem;    /* 14px — matches NZ Post */
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.drawer__sub-item:last-child { border-bottom: none; }
.drawer__sub-item:hover { color: var(--nzpost-blue); text-decoration: none; }
.drawer__divider {
    padding-left: 1rem;
    margin: 1.5rem 1rem;    /* matches NZ Post mdc-list-divider */
    height: 1px;
    background: var(--border);
}
.drawer__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    height: 3rem;           /* matches NZ Post drawer list-item */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fliway-blue);
    text-decoration: none;
    letter-spacing: 0.1px;
    margin-bottom: 0.25rem;
}
.drawer__item:hover { background: var(--bg-light); text-decoration: none; color: var(--fliway-blue); }
.drawer__item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Legacy classes kept for backward compat */
.logo-group { display: none; }
.site-header { display: none; }
.header-top { display: none; }
.header-main { display: none; }
.main-nav { display: none; }
.nav-cta { display: none; }
.menu-toggle { display: none; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-btn);  /* NZ Post MDC buttons: 10px */
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--fliway-green);
    color: #fff;
    border-color: var(--fliway-green);
}
.btn-primary:hover {
    background: var(--fliway-green-dark);
    border-color: var(--fliway-green-dark);
    color: #fff;
}
.btn-secondary {
    background: var(--fliway-blue);
    color: #fff;
    border-color: var(--fliway-blue);
}
.btn-secondary:hover {
    background: var(--fliway-blue-light);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--nzpost-blue);
    border: 2px solid var(--nzpost-blue);
}
.btn-outline:hover {
    background: var(--nzpost-blue);
    color: #fff;
}
.btn-white {
    background: #fff;
    color: var(--fliway-blue);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--fliway-blue-pale);
    color: var(--fliway-blue);
}
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ========== HERO SECTIONS (NZ Post Pattern) ========== */
/* 4-Panel Hero (Freightways style) */
.hero-panels {
    display: flex;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.hero-panel {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: flex 0.4s ease;
}
.hero-panel:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0% 100%); }
.hero-panel:last-child { clip-path: polygon(15px 0, 100% 0, 100% 100%, 0% 100%); margin-left: -8px; }
.hero-panel:not(:first-child):not(:last-child) { clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0% 100%); margin-left: -8px; }
.hero-panel:hover { flex: 1.3; }
.hero-panel__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 140px;
    padding: 24px 24px 32px;
    background: linear-gradient(to top, rgba(4,30,66,0.9) 0%, rgba(4,30,66,0.4) 70%, transparent 100%);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.hero-panel:hover .hero-panel__overlay {
    background: linear-gradient(to top, rgba(4,30,66,0.95) 0%, rgba(4,30,66,0.6) 80%, rgba(4,30,66,0.2) 100%);
}
.hero-panel__overlay h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: #fff !important;
}
.hero-panel__overlay p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

/* Track & Trace bar below hero panels */
.track-bar {
    background: var(--bg-dark);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.track-bar h1 { font-size: 1.75rem; margin-bottom: 8px; color: #fff; }
.track-bar .lead { font-size: 1rem; opacity: 0.8; margin-bottom: 24px; color: rgba(255,255,255,0.85); }
.track-bar .track-trace { max-width: 600px; margin: 0 auto; }

/* Split hero (2 panels) */
.hero-split {
    display: flex;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.hero-split__panel {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: flex 0.4s ease;
}
.hero-split__panel:hover { flex: 1.15; }
.hero-split__panel:first-child { border-right: 2px solid #fff; }
.hero-split__label {
    width: 100%;
    padding: 24px 32px;
    background: linear-gradient(to top, rgba(4,30,66,0.9) 0%, transparent 100%);
}
.hero-split__label h2 { font-size: 1.5rem; margin-bottom: 4px; color: #fff !important; }
.hero-split__label p { font-size: 0.9rem; opacity: 0.9; margin: 0; color: rgba(255,255,255,0.9); }

.hero {
    padding: 0;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: center;
}
/* Left-side gradient overlay for text readability (NZ Post pattern) */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 60%;
    background: linear-gradient(to right, rgba(4,30,66,0.88) 0%, rgba(4,30,66,0.7) 60%, rgba(4,30,66,0) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero::after {
    content: none; /* Remove old overlay */
}
.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 72px;
    padding-bottom: 72px;
}
.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    max-width: 580px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero .lead {
    color: rgba(255,255,255,0.87);
    max-width: 520px;
    font-size: 1.1rem;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
/* NZ Post CTA button style: white outline on dark bg */
.hero .btn-white,
.hero .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: var(--radius-btn);
}
.hero .btn-white:hover,
.hero .btn-outline:hover {
    background: #fff;
    color: var(--nzpost-blue);
}
/* NZ Post primary CTA in hero: filled navy blue */
.hero .btn-primary {
    background: var(--nzpost-blue);
    border: 2px solid var(--nzpost-blue);
}
.hero .btn-primary:hover {
    background: #002080;
    border-color: #002080;
}
.hero-image {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    opacity: 0.15;
}

/* Homepage hero — taller, with Track & Trace form */
.hero-home {
    min-height: 480px;
    background-position: center;
}

/* Contact page — no hero image, white bg, centered text (NZ Post pattern) */
.hero-minimal {
    background-image: none !important;
    background-color: var(--bg-white);
    min-height: auto;
    padding: 0;
    color: var(--text-primary);
}
.hero-minimal::before {
    display: none;
}
.hero-minimal .container {
    padding-top: 48px;
    padding-bottom: 24px;
    text-align: center;
}
.hero-minimal h1 {
    color: var(--fliway-blue);
    max-width: none;
    font-size: 2.5rem;
}
.hero-minimal .lead {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.hero-minimal .hero-actions {
    justify-content: center;
}

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-dark {
    background: var(--bg-dark);
    color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.7); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}
.section-header .overline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fliway-green);
    margin-bottom: 12px;
}

/* ========== CARDS (NZ Post DS: clickable cards, rows of 3) ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* NZ Post: cards in rows of 3 */
    gap: 24px;
}
.card-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }  /* 4 items: 2x2 */
.card-grid.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card {
    background: var(--bg-white);
    border: none;                    /* NZ Post cards: no border */
    border-radius: 0;               /* NZ Post cards: 0px radius */
    padding: 32px 24px;
    transition: var(--transition);
    box-shadow: none;                /* NZ Post cards: no shadow at rest */
    border-bottom: 3px solid var(--nzpost-blue);
    cursor: pointer;                 /* NZ Post: clickable cards */
    position: relative;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-bottom-color: var(--fliway-green);
    transform: translateY(-2px);
}
.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}
.card-icon img {
    width: 64px;
    height: 64px;
}
.card h3 a { color: var(--fliway-blue); }
.card h3 a:hover { color: var(--fliway-green); }

/* ========== STATS BAR ========== */
.stats-bar {
    background: var(--nzpost-blue);
    padding: 48px 0;
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    display: block;
}
.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== LOGO STRIP ========== */
.logo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(100%);
}
.logo-strip img { height: 32px; }

/* ========== TESTIMONIAL ========== */
.testimonial {
    background: var(--bg-light);
    border-radius: 0;               /* NZ Post: 0px radius */
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    border-left: 4px solid var(--nzpost-blue);
}
.testimonial blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.8;
}
.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--fliway-blue);
}

/* ========== FEATURE SECTION ========== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.feature-row.reverse, .feature-row--reverse { direction: rtl; }
.feature-row.reverse > *, .feature-row--reverse > * { direction: ltr; }
.feature-content h3 { font-size: 1.75rem; }
.feature-content ul {
    list-style: none;
    margin-top: 16px;
}
.feature-content li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-secondary);
}
.feature-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}
.feature-bullets { margin-top: 16px; }
.feature-bullets p {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.feature-bullets p strong {
    color: var(--text-primary);
    font-weight: 600;
}
.feature-image {
    background: var(--bg-light);
    border-radius: 0;               /* NZ Post: 0px radius */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: var(--text-light);
    font-size: 0.9rem;
    overflow: hidden;
    /* Subtle pattern for placeholder images */
    background-image: linear-gradient(135deg, var(--bg-light) 25%, transparent 25%),
                      linear-gradient(225deg, var(--bg-light) 25%, transparent 25%),
                      linear-gradient(315deg, var(--bg-light) 25%, transparent 25%),
                      linear-gradient(45deg, var(--bg-light) 25%, transparent 25%);
    background-size: 20px 20px;
    background-color: #E8ECF0;
}
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: var(--fliway-green-dark);
    padding: 64px 0;
    margin-top: 48px;
    margin-bottom: 48px;
    text-align: center;
    color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 2.5rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.2rem; }
.cta-banner .btn { margin-top: 24px; }

/* ========== FOOTER (NZ Post DS: dark navy, generous spacing) ========== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 24px;           /* NZ Post DS: generous top padding */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand .logo-group { margin-bottom: 16px; }
.footer-brand .logo { margin-bottom: 0; display: inline-flex; }
.footer-brand .logo img { height: 40px; filter: brightness(0) invert(1); }
.footer-brand .scs-logo { height: 36px; filter: brightness(0) invert(1); border-left-color: rgba(255,255,255,0.3); }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom__left, .footer-bottom__right { display: flex; align-items: center; gap: 12px; }
.footer-bottom__right { text-align: right; }
.footer-bottom__sep { color: rgba(255,255,255,0.3); }
.nzpost-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ========== TRACKING FORM ========== */
.track-label {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.track-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}
.track-input {
    display: flex;
    gap: 8px;
}
.track-input input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.track-input input[type="text"]::placeholder { color: rgba(255,255,255,0.5); }
.track-input input[type="text"]:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255,255,255,0.15);
}

/* Track form on light backgrounds (outside .track-bar) */
.section .track-trace {
    max-width: 600px;
    margin: 0 auto;
}
.section .track-form {
    max-width: 600px;
    margin: 0 auto;
}
.section .track-label {
    color: var(--fliway-blue);
}
.section .track-input input[type="text"] {
    background: #fff;
    color: var(--fliway-blue);
    border: 2px solid var(--fliway-blue);
}
.section .track-input input[type="text"]::placeholder {
    color: rgba(4, 30, 66, 0.45);
}
.section .track-input input[type="text"]:focus {
    border-color: var(--nzpost-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.15);
}

/* ========== FORM ELEMENTS (NZ Post DS) ========== */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fliway-blue);
    margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 0;               /* NZ Post DS: 0px radius for inputs */
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--nzpost-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.15);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* Radio / checkbox groups */
.radio-group, .checkbox-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.radio-group label, .checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--nzpost-blue);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========== TABLES (NZ Post DS) ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.data-table th {
    background: var(--fliway-blue);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-primary);
}
.data-table tbody tr:hover {
    background: var(--fliway-blue-pale);
}
.data-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

/* ========== ALERT/INFO BOXES ========== */
.info-box {
    padding: 20px 24px;
    background: var(--fliway-blue-pale);
    border-left: 4px solid var(--nzpost-blue);
    margin-bottom: 24px;
    border-radius: 0;
}
.info-box p { color: var(--text-primary); margin-bottom: 0; }
.info-box strong { color: var(--fliway-blue); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--fliway-blue); }
.breadcrumb span { margin: 0 8px; }

/* ========== CONTACT US MODAL ========== */
.contact-modal-scrim {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.contact-modal-scrim--active {
    display: flex;
}
.contact-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.contact-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #eee;
}
.contact-modal__header h2 {
    font-size: 1.25rem;
    color: var(--fliway-blue);
    margin: 0;
}
.contact-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
}
.contact-modal__close:hover { background: #f0f0f0; }
.contact-modal__form {
    padding: 24px 28px 28px;
}
.contact-modal__field {
    margin-bottom: 16px;
}
.contact-modal__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}
.contact-modal__field input,
.contact-modal__field select,
.contact-modal__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.contact-modal__field input:focus,
.contact-modal__field select:focus,
.contact-modal__field textarea:focus {
    outline: none;
    border-color: var(--nzpost-blue);
    box-shadow: 0 0 0 3px rgba(0,51,160,0.1);
}
.contact-modal__submit {
    width: 100%;
    margin-top: 8px;
}
.contact-modal__success {
    text-align: center;
    padding: 40px 28px;
    color: var(--fliway-blue);
}
.contact-modal__success h3 {
    margin-bottom: 8px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Alert banner: normal flow on mobile instead of overlay */
    [data-hero] > .alert-banner {
        position: relative;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    /* Hero: shorter, tighter on mobile */
    .hero { min-height: auto; padding: 0; }
    .hero::before { width: 100%; background: linear-gradient(to bottom, rgba(4,30,66,0.75) 0%, rgba(4,30,66,0.85) 100%); }
    .hero .container { padding-top: 48px; padding-bottom: 48px; }
    .hero h1 { font-size: 1.75rem; }
    .hero .lead { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }

    /* 4-panel hero stacks to 2x2 grid on mobile */
    .hero-panels { flex-wrap: wrap; height: auto; }
    .hero-panel {
        flex: 0 0 50%;
        height: 200px;
        clip-path: none !important;
        margin-left: 0 !important;
    }
    .hero-panel:hover { flex: 0 0 50%; }
    .hero-panel__overlay h2 { font-size: 1rem; }
    .hero-panel__overlay p { font-size: 0.75rem; }
    .track-bar h1 { font-size: 1.25rem; }

    /* Split hero stacks vertically on mobile */
    .hero-split { flex-direction: column; height: auto; }
    .hero-split__panel { height: 220px; }
    .hero-split__panel:first-child { border-right: none; border-bottom: 2px solid #fff; }

    .section { padding: 48px 0; }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse { direction: ltr; }

    /* Footer: accordion on mobile (NZ Post pattern) */
    .footer-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; }
    .footer-col { border-bottom: 1px solid rgba(255,255,255,0.15); }
    .footer-col h4 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        margin-bottom: 0;
        cursor: pointer;
    }
    .footer-col h4::after {
        content: '';
        width: 10px; height: 10px;
        border-right: 2px solid rgba(255,255,255,0.6);
        border-bottom: 2px solid rgba(255,255,255,0.6);
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }
    .footer-col.footer-col--open h4::after {
        transform: rotate(-135deg);
    }
    .footer-col ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding-bottom: 0;
    }
    .footer-col.footer-col--open ul {
        max-height: 300px;
        padding-bottom: 16px;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .card-grid.grid-4 { grid-template-columns: 1fr; }
    .card-grid.grid-5 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }

    /* Navigation mobile adjustments (NZ Post pattern) */
    .navigation__hamburger { display: flex; align-items: center; }
    .navigation__top-items { display: none; }
    .navigation__end-actions span { display: none; }
    .navigation__end-actions { gap: 0; }
    .navigation__action-btn { margin-left: 0; padding: 8px; }
    .navigation__logo-group { margin-right: auto; }

    /* Hide 2nd-level tab bar and breadcrumb on mobile — nav lives in drawer only */
    .navigation__bottom { display: none; }
    .breadcrumb { display: none; }

    /* Header layout on mobile */
    .header-main .container { position: relative; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .track-form { flex-direction: column; }
}

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.sitemap-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: var(--fliway-blue); }
.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 8px; }
.sitemap-section a { color: #444; font-size: 0.9rem; }
.sitemap-section a:hover { color: var(--nzpost-blue); }
@media (max-width: 768px) { .sitemap-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Terms page */
.terms-content h2 { font-size: 1.25rem; margin-top: 48px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--nzpost-blue); color: var(--fliway-blue); }
.terms-content h3 { font-size: 1.05rem; margin-top: 32px; margin-bottom: 10px; color: var(--fliway-blue); }
.terms-content p { margin-bottom: 16px; line-height: 1.7; color: #444; }
.terms-content ul { margin-bottom: 16px; padding-left: 24px; }
.terms-content li { margin-bottom: 8px; line-height: 1.7; color: #444; }
.terms-content > ul:first-of-type { background: var(--bg-light); padding: 20px 20px 20px 40px; border-radius: 8px; margin-bottom: 32px; }
.terms-content > ul:first-of-type li { margin-bottom: 4px; }
.terms-content > ul:first-of-type a { color: var(--nzpost-blue); font-weight: 500; }
