/* Fonts are loaded via <link> in index.html (Inter only) for non-blocking delivery. */

:root {
    /* shadcn/ui Zinc/Neutral Palette mapped to existing variables */
    --accent-cyan: #09090b;      /* zinc-950 / shadcn primary */
    --accent-gold: #f59e0b;      /* Amber details */
    --accent-blue: #27272a;      /* zinc-800 */
    
    /* Backgrounds */
    --bg-primary: #fafafa;       /* neutral-50 / shadcn background */
    --bg-secondary: #ffffff;     /* white card backgrounds */
    --bg-tertiary: #f4f4f5;      /* zinc-100 / shadcn muted */
    --bg-dark: #09090b;          /* zinc-950 */
    
    /* Semantic Colors */
    --accent-teal: #10b981;      /* emerald-500 / success */
    --accent-red: #ef4444;       /* red-500 / destructive */
    --accent-orange: #f97316;    /* orange-500 / warning */
    
    /* Typography & Text */
    --text-primary: #09090b;     /* zinc-950 */
    --text-secondary: #52525b;   /* zinc-600 */
    --text-muted: #71717a;       /* zinc-500 */
    --text-light: #ffffff;       /* Light text */
    
    /* Type system - single family (Inter) across headings and body */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Structural variables matching shadcn/ui border and radius */
    --glass-border: #e4e4e7;     /* zinc-200 / border */
    --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadcn card shadow */
    --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* ================= BASE STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 42, 52, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 42, 52, 0.2);
}

/* ================= 1. PUBLIC MARKETING WEBSITE LAYOUT ================= */

/* Header Top Bar */
.tp-header-top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--glass-border);
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-right {
    display: flex;
    gap: 20px;
}

.contact-info-item a:hover {
    color: var(--text-primary);
}

.header-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Header Nav Bar */
.tp-header-nav-bar {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 4px 16px rgba(9, 9, 11, 0.04);
    transition: box-shadow 0.2s ease, background-color 0.2s ease, padding 0.25s ease;
}

.tp-header-nav-bar.is-scrolled {
    padding: 8px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 6px 18px rgba(9, 9, 11, 0.06);
}

.brand-logo-img {
    height: 32px;
    display: block;
    filter: saturate(0.82) brightness(0.88) sepia(0.08);
    transition: height 0.25s ease;
}

.tp-header-nav-bar.is-scrolled .brand-logo-img {
    height: 29px;
}

.main-nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2.5px;
    background-color: #c69214;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.portal-cta-nav-btn {
    background-color: var(--accent-cyan);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.portal-cta-nav-btn:hover {
    background-color: var(--accent-gold);
    color: var(--accent-cyan);
}

.in-au-relationship-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.in-au-relationship-badge .flags-bridge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.in-au-relationship-badge .bridge-line {
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, #FF9933, #000033);
    border-radius: 1px;
}
.in-au-relationship-badge .badge-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.in-au-relationship-badge .badge-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.in-au-relationship-badge .badge-subtitle {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Nav Menu Additions */
.nav-portal-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-portal-link:hover {
    color: var(--text-primary);
}
.portal-coming-soon {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.nav-quote-cta-btn {
    background-color: var(--accent-cyan);
    color: #ffffff !important;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.nav-quote-cta-btn:hover {
    background-color: var(--accent-gold);
    color: var(--accent-cyan) !important;
}

/* ================= MOBILE NAV TOGGLE (hidden on desktop) ================= */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
}
.mobile-nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.mobile-nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-toggle:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

/* Hero Button Additions */
.hero-primary-btn {
    background-color: #b8860b;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
    border: none;
}
.hero-primary-btn:hover {
    background-color: #a3790a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}
.hero-secondary-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.hero-secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ================= CTA CONSISTENCY & PRESSED STATES ================= */
.hero-primary-btn,
.hero-secondary-btn,
.nav-quote-cta-btn,
.portal-cta-nav-btn,
.form-submit-btn,
.cta-btn {
    will-change: transform;
}
/* Subtle lift on hover for the flat CTAs that only changed color */
.nav-quote-cta-btn:hover,
.portal-cta-nav-btn:hover,
.form-submit-btn:hover,
.cta-btn:hover {
    transform: translateY(-1px);
}
/* Consistent tactile press feedback across every CTA */
.hero-primary-btn:active,
.hero-secondary-btn:active,
.nav-quote-cta-btn:active,
.portal-cta-nav-btn:active,
.form-submit-btn:active,
.cta-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(9, 9, 11, 0.12);
}

/* Hero Section - Cleaner & Subdued */
.hero-slider-section {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.22);
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-sub-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.main-btn-primary, .main-btn-secondary, .main-btn-portal {
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-sizing: border-box;
    height: 48px;
    line-height: 1;
    border: none;
}

.main-btn-portal {
    background: linear-gradient(135deg, #fbd45a 0%, #ffd43f 100%);
    color: var(--accent-cyan);
    font-weight: 700;
    border: 1px solid rgba(251, 212, 90, 0.5);
    box-shadow: 0 4px 20px rgba(251, 212, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.main-btn-portal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: skewX(-30deg);
    transition: 0.75s;
    opacity: 0;
}

.main-btn-portal:hover::after {
    left: 120%;
    opacity: 1;
    transition: all 0.75s ease;
}

.main-btn-portal:hover {
    background: linear-gradient(135deg, #ffd43f 0%, #fbd45a 100%);
    color: var(--accent-cyan);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(251, 212, 90, 0.5), 0 0 0 4px rgba(251, 212, 90, 0.15);
}

.main-btn-portal:active {
    transform: translateY(-1px) scale(0.99);
}

.main-btn-portal .btn-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 4px;
}

.main-btn-portal:hover .btn-arrow {
    transform: translateX(4px);
}

.main-btn-primary {
    background-color: var(--accent-cyan);
    color: #ffffff;
    border: 1.5px solid var(--accent-cyan);
}

.main-btn-primary:hover {
    background-color: var(--accent-gold);
    color: var(--accent-cyan);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.main-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.main-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Features Grid */
.features-section {
    padding: 50px 0;
    background-color: var(--bg-secondary);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -70px; /* Subtle overlap */
    position: relative;
    z-index: 10;
}

.feature-card-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 42, 52, 0.03);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--accent-cyan);
    transition: var(--transition-smooth);
}

.feature-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(9, 9, 11, 0.04);
    border-color: rgba(184, 134, 11, 0.4);
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 16px;
}

.feature-card-title {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* About Section */
.about-company-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-images-col {
    position: relative;
}

.about-img-box {
    display: flex;
    position: relative;
}

.about-main-image {
    border-radius: 12px;
    width: 85%;
    display: block;
    border: 1px solid var(--glass-border);
}

.about-badge-image {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 42%;
    border-radius: 10px;
    border: 6px solid #ffffff;
    box-shadow: var(--shadow-hover);
}

.section-label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
    line-height: 1.25;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-paragraph-lead {
    font-size: 15px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.about-mission-vision-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-info-row {
    display: flex;
    gap: 16px;
}

.info-row-icon {
    font-size: 20px;
    background-color: var(--bg-tertiary);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--accent-cyan);
}

.info-row-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-row-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Services Section */
.services-overview-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header-centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-grid-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.service-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.service-card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.service-card-body {
    padding: 20px;
    position: relative;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: rgba(0, 42, 52, 0.06);
    font-weight: 700;
}

.service-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-card-body p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Counter Banner - Subtle and Crisp */
.stats-counter-section {
    padding: 50px 0;
    background-color: var(--bg-primary);
}

.stats-bg-box {
    background-color: var(--accent-cyan);
    border-radius: 12px;
    padding: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.stats-bg-box::before {
    display: none; /* Remove background-image overlay, keep it crisp and flat */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 2;
    text-align: center;
}

.stat-item-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 38px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13.5px;
    opacity: 0.9;
    font-weight: 500;
}

/* CTA Banner - Clean and flat */
.cta-banner-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.cta-banner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text-col h2 {
    color: var(--text-primary);
    font-size: 26px;
    margin-bottom: 6px;
}

.cta-text-col p {
    color: var(--text-secondary);
    font-size: 14.5px;
}

.cta-accent-button {
    background-color: var(--accent-cyan);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cta-accent-button:hover {
    background-color: var(--accent-gold);
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

/* Simple Quote Section */
.quote-inquiry-section {
    padding: 80px 0;
}

.quote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hotline-box {
    margin-top: 24px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid var(--glass-border);
    display: inline-block;
}

.hotline-box span {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.hotline-box a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.quote-landing-form {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--glass-border);
}

.form-row {
    margin-bottom: 16px;
}

.quote-landing-form input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(0, 42, 52, 0.1);
    font-size: 13.5px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.quote-landing-form input:focus {
    border-color: var(--accent-cyan);
}

.form-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-cyan);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form-submit-btn:hover {
    background-color: var(--accent-gold);
    color: var(--accent-cyan);
}

/* Footer Section */
.main-site-footer {
    background-color: #ffffff;
    color: #3f3f46;
    padding: 60px 0 24px 0;
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 30px;
    margin-bottom: 24px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 16px;
}

.footer-links-col h3 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-links-col p {
    margin-bottom: 6px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
    margin-top: 12px;
    font-size: 12px;
    color: #3f3f46;
}

/* ================= 2. CLIENT PORTAL WORKSPACE LAYOUT ================= */

#client-portal-view {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.portal-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Sidebar - Apple Light Clean Look */
.sidebar {
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--glass-border);
}

.sidebar-logo {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.brand-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -2px;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.menu-item svg {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.menu-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* shadcn-style Active Item */
.menu-item.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 500;
}

.menu-item.active svg {
    color: var(--text-primary);
}

.exit-btn-item {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    border-radius: 0;
    padding-top: 16px;
    border-left: none !important;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Main Workspace Area */
.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Top Navigation Bar */
.portal-header-bar {
    height: 64px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.header-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px 12px;
    width: 300px;
    color: var(--text-muted);
}

.header-search-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--text-primary);
    width: 100%;
}

.header-search-wrapper input::placeholder {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notifications */
.notification-wrapper {
    position: relative;
}

.icon-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.icon-action-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--accent-red);
    color: #fff;
    font-size: 8.5px;
    font-weight: 700;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.notification-dropdown {
    position: absolute;
    top: 36px;
    right: 0;
    width: 300px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.notification-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.dropdown-item {
    padding: 12px 14px;
    font-size: 11.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    line-height: 1.4;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.unread {
    background-color: rgba(0, 42, 52, 0.01);
}

.dropdown-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.dropdown-item small {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid var(--glass-border);
}

/* Dynamic Views Container */
.portal-view {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.portal-view.active {
    display: block;
    animation: fadeInView 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metrics Dashboard Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-top: 2px;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.metric-icon.sea { background-color: var(--bg-tertiary); color: var(--text-primary); }
.metric-icon.air { background-color: var(--bg-tertiary); color: var(--text-primary); }
.metric-icon.warning { background-color: #fef2f2; border-color: #fca5a5; color: var(--accent-red); }
.metric-icon.volume { background-color: var(--bg-tertiary); color: var(--text-primary); }

.metric-card.warning {
    border-color: #fca5a5;
}

.metric-card.warning .metric-value {
    color: var(--accent-red);
}

/* Split Columns Grid */
.dashboard-split-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 16px;
    align-items: start;
}

.workspace-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Portal Standard Card */
.portal-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-header h3 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    font-size: 10.5px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

.badge.blue { background-color: var(--bg-tertiary); color: var(--text-primary); }
.badge.warning { background-color: #fef2f2; border-color: #fee2e2; color: var(--accent-red); }

/* Route Display */
.route-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-primary);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
}

.route-display .point {
    display: flex;
    flex-direction: column;
}

.route-display .point .city {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.route-display .point .details {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

.route-arrow {
    color: var(--text-muted);
}

.quote-specs {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    padding: 0 4px;
}

.price-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

.price-block {
    display: flex;
    flex-direction: column;
}

.price-block .label {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-block .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.3px;
    line-height: 1.1;
    margin-top: 2px;
}

/* Crisp Clean Buttons (Not Loud) */
.cta-btn {
    background-color: var(--accent-cyan);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12.5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    background-color: var(--accent-gold);
    color: var(--accent-cyan);
}

/* SVG Chart styling */
.chart-bar {
    transition: fill 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.chart-bar:hover {
    fill: var(--accent-gold) !important;
}

.chart-tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-24px);
    background: var(--text-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.chart-tooltip.active {
    opacity: 1;
    transform: translateX(-50%) translateY(-18px);
}

/* B2B Data Tables */
.table-wrapper {
    overflow-x: auto;
    margin-top: 12px;
}

.B2B-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.B2B-data-table th {
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 14px;
    border-bottom: 1px solid var(--glass-border);
    background-color: var(--bg-primary);
}

.B2B-data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.B2B-data-table tbody tr:hover {
    background-color: var(--bg-primary);
}

.status-tag {
    font-size: 10.5px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid transparent;
}

.status-tag.green { background-color: #ecfdf5; border-color: #d1fae5; color: #065f46; }
.status-tag.amber { background-color: #fffbeb; border-color: #fef3c7; color: #92400e; }
.status-tag.red { background-color: #fef2f2; border-color: #fee2e2; color: #991b1b; }
.status-tag.blue { background-color: #eff6ff; border-color: #dbeafe; color: #1e40af; }

/* Live Shipment Tracking */
.tracking-input-wrapper {
    display: flex;
    gap: 8px;
}

.tracking-input-wrapper input {
    flex: 1;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    outline: none;
    font-size: 12.5px;
    color: var(--text-primary);
    font-family: inherit;
}

.tracking-input-wrapper input:focus {
    border-color: var(--accent-cyan);
}

.tracking-status {
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 6px;
}

.timeline {
    position: relative;
    padding-left: 16px;
    border-left: 1.5px solid var(--glass-border);
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: 2px solid #ffffff;
}

.timeline-item.active::before {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 42, 52, 0.1);
}

.timeline-item:first-child.active::before {
    background-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.15);
}

.timeline-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
    line-height: 1.4;
}

/* DAFF Vault Checklist */
.document-checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.doc-check-row .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.doc-check-row.approved .check-icon {
    background-color: rgba(52, 199, 89, 0.08);
    color: var(--accent-teal);
}

.doc-check-row.pending .check-icon {
    background-color: rgba(255, 59, 48, 0.08);
    color: var(--accent-red);
}

.doc-info {
    display: flex;
    flex-direction: column;
}

.doc-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-status {
    font-size: 11px;
    color: var(--text-muted);
}

/* Chat Assistant Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 42, 52, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.03);
}

.chat-notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.chat-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    height: 440px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 42, 52, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: var(--bg-primary);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 42, 52, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 10px;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.msg-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.4;
}

.chat-msg.bot .msg-bubble {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-top-left-radius: 3px;
    border: 1px solid var(--glass-border);
}

.chat-msg.user .msg-bubble {
    background: var(--accent-cyan);
    color: #fff;
    border-top-right-radius: 3px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.quick-reply-btn {
    background: #ffffff;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 42, 52, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quick-reply-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-cyan);
}

.chat-input-area {
    padding: 10px 14px;
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--glass-border);
    background: #ffffff;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--text-primary);
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--accent-cyan);
    background: #ffffff;
}

.chat-send-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: var(--accent-gold);
    color: var(--accent-cyan);
}

/* ================= 3. RESPONSIVE DESIGN ADAPTATIONS ================= */
@media (max-width: 968px) {
    /* !important is required: these grids carry inline grid-template-columns */
    .about-grid, .quote-form-grid, .cta-banner-row {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .features-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .cta-banner-row {
        text-align: center;
        flex-direction: column;
    }
    .tp-header-top-bar {
        display: none;
    }

    /* ---- Mobile navigation: hamburger + slide-down panel ---- */
    .mobile-nav-toggle {
        display: flex;
    }
    .tp-header-nav-bar .header-container {
        position: relative;
    }
    .main-nav-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 14px 28px rgba(9, 9, 11, 0.10);
        padding: 8px 0 16px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }
    .main-nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .main-nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 20px;
    }
    .main-nav-menu li {
        width: 100%;
    }
    .main-nav-menu .nav-link,
    .main-nav-menu .nav-portal-link {
        display: block;
        padding: 14px 4px;
        font-size: 15px;
        border-bottom: 1px solid var(--bg-tertiary);
    }
    .main-nav-menu .nav-link::after {
        display: none;
    }
    .main-nav-menu .nav-quote-cta-btn {
        display: block;
        text-align: center;
        margin: 14px 0 4px;
        padding: 14px;
        border-radius: 12px;
        font-size: 14.5px;
    }

    .portal-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    /* Horizontal scrollable portal nav with clearer affordance */
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 8px 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    .sidebar-menu .menu-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .sidebar-menu .menu-item.active {
        background-color: var(--accent-cyan);
        color: #ffffff;
    }
    .sidebar-menu .menu-item.active svg {
        color: #ffffff;
    }
    .sidebar-logo {
        padding: 12px 16px;
    }
    .sidebar-footer {
        display: none;
    }
    .portal-header-bar {
        padding: 0 16px;
        height: 56px;
    }
    .dashboard-split-grid {
        grid-template-columns: 1fr;
    }
    .portal-view {
        padding: 16px;
    }
    .estimator-form-grid {
        grid-template-columns: 1fr !important;
    }
    .quarantine-grid {
        grid-template-columns: 1fr !important;
    }
    /* Comfortable spacing on the quote panel when stacked */
    .quote-form-box-col {
        padding: 24px !important;
    }
}

@media (max-width: 640px) {
    /* Keep the header uncrowded on phones — hide the wide corridor badge */
    .in-au-relationship-badge {
        display: none;
    }
    .hero-slider-section {
        height: auto;
        min-height: 460px;
        padding: 72px 0;
    }
    .hero-content-container {
        padding: 0 20px;
    }
    .hero-description {
        font-size: 14.5px;
    }
    .features-grid, .services-grid, .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-btn-group {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btn-group .hero-primary-btn,
    .hero-btn-group .hero-secondary-btn {
        width: 100%;
    }
    /* Two-column form rows stack for comfortable tap targets */
    .quote-landing-form > div[style*="grid-template-columns: 1fr 1fr"],
    .booking-form-wrapper > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Larger tap targets on all form controls */
    .quote-landing-form input,
    .quote-landing-form select,
    .quote-landing-form textarea,
    .booking-form-wrapper input,
    .booking-form-wrapper textarea {
        padding: 13px !important;
        font-size: 16px; /* prevents iOS zoom-on-focus */
    }
    .tracking-input-wrapper input {
        font-size: 16px;
    }
    /* Section rhythm: tighten heavy vertical padding on phones */
    .services-overview-section,
    .industries-section,
    .process-section,
    .network-section,
    .quote-inquiry-section,
    .about-company-section {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
    /* Network grid: 2-up instead of 4-up */
    .network-section .section-container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Industries grid: 2-up instead of 3-up */
    .industries-section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Process steps stack cleanly */
    .process-section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    /* Footer stacks into a single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 420px) {
    /* Very small screens: single column for dense chip grids */
    .industries-section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    .hero-content-container {
        padding: 0 16px;
    }
}

/* ================= 4. CLIENT PORTAL HIGH-VISIBILITY CALLOUT ================= */

/* Green pulse dot for navigation button */
.nav-pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes navPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(52, 199, 89, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

.portal-callout-section {
    padding: 30px 0;
    background-color: var(--bg-primary);
}

.portal-callout-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.portal-callout-card:hover {
    transform: translateY(-2px);
    border-left-color: var(--accent-gold);
    box-shadow: var(--shadow-hover);
}

.portal-callout-info {
    flex: 1;
}

.portal-tag-new {
    display: inline-block;
    background-color: rgba(251, 212, 90, 0.15);
    color: var(--accent-cyan);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.portal-callout-info h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.portal-callout-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 700px;
}

.portal-feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.p-highlight-item {
    font-size: 12.5px;
    color: var(--text-primary);
}

.highlight-bullet {
    color: var(--accent-gold);
    margin-right: 4px;
}

.portal-callout-action {
    flex-shrink: 0;
}

.portal-callout-btn {
    background-color: var(--accent-cyan);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 42, 52, 0.1);
    transition: var(--transition-smooth);
}

.portal-callout-btn:hover {
    background-color: var(--accent-gold);
    color: var(--accent-cyan);
    box-shadow: 0 6px 18px rgba(251, 212, 90, 0.35);
}

@media (max-width: 768px) {
    .portal-callout-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .portal-feature-highlights {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
    .portal-callout-btn {
        width: 100%;
    }
}

/* ================= PORTAL LOGIN GATE & DEMO BANNER ================= */
.portal-login-gate-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background-color: var(--bg-primary);
    padding: 24px;
}

.login-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.login-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.login-intro {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 12px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.portal-login-btn {
    width: 100%;
    background-color: var(--accent-cyan);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.portal-login-btn:hover {
    background-color: #27272a;
}

.portal-demo-banner {
    background-color: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.portal-demo-banner .banner-icon {
    font-size: 14px;
}
.portal-demo-banner .banner-text {
    line-height: 1.4;
}

/* ================= DESIGN CRITIQUE IMPROVEMENTS ================= */

/* Network Cities Hover Scaling & Transition */
.network-section div[style*="background: #ffffff"] {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}
.network-section div[style*="background: #ffffff"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.05);
    border-color: #3b82f6 !important;
}

/* Process Steps Hover & Connections */
.process-section div[style*="position: relative"] {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.process-section div[style*="position: relative"]:hover {
    transform: translateY(-2px);
}

/* Form Fields Modern Focus State Outline Rings */
.quote-landing-form input,
.quote-landing-form select,
.quote-landing-form textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-landing-form input:focus,
.quote-landing-form select:focus,
.quote-landing-form textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Subtle Shadow Depth Transition on Service Cards */
.service-group-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.service-group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(9, 9, 11, 0.04) !important;
    border-color: rgba(184, 134, 11, 0.4) !important;
}

/* ================= SPRINT 2: FORM VALIDATION & SUBMISSION UX ================= */

/* Required-field indicator */
.req-mark {
    color: var(--accent-red);
    margin-left: 2px;
    font-weight: 700;
}

/* Helper text under fields */
.field-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

/* Field-level validation message */
.field-error {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 11px;
    color: var(--accent-red);
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.4;
}
.field-error svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Invalid input state (works for both public quote form and portal booking form) */
.quote-landing-form input.invalid,
.quote-landing-form select.invalid,
.quote-landing-form textarea.invalid,
.booking-form-wrapper input.invalid,
.booking-form-wrapper textarea.invalid {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* Submitting / disabled state + spinner */
.form-submit-btn:disabled,
.cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnspin 0.6s linear infinite;
    vertical-align: -2px;
    margin-right: 8px;
}
@keyframes btnspin {
    to { transform: rotate(360deg); }
}

/* On-page success confirmation card */
.form-success-card {
    text-align: center;
    padding: 36px 24px;
    border: 1px solid var(--accent-teal);
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.04);
}
.form-success-card .success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    margin-bottom: 16px;
}
.form-success-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-success-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 380px;
}

/* Tracking input inline error */
.track-error {
    font-size: 11.5px;
    color: var(--accent-red);
    font-weight: 500;
    margin-top: 8px;
}

/* ================= SPRINT 4: ACCESSIBILITY ================= */

/*
 * Universal, consistent :focus-visible styling.
 * !important is required to override the numerous inline `outline: none` styles.
 * Keyboard focus only (mouse clicks won't show the ring).
 */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.nav-portal-link:focus-visible,
.nav-quote-cta-btn:focus-visible,
.menu-item:focus-visible,
.logo-link:focus-visible,
.quick-reply-btn:focus-visible,
.chat-toggle-btn:focus-visible,
.drop-zone:focus-visible,
.icon-action-btn:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-gold) !important;
    outline-offset: 2px !important;
    border-radius: 8px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-gold) !important;
    outline-offset: 1px !important;
}

/* Keyboard-focus affordance for the file dropzone */
.drop-zone:focus-visible {
    border-color: var(--accent-cyan);
    background: rgba(9, 9, 11, 0.02);
}

/* --- Contrast & readability bumps for the smallest muted text --- */
.consent-note {
    font-size: 11.5px !important;
    color: var(--text-secondary) !important;
}
.login-note,
.login-intro {
    color: var(--text-secondary) !important;
}

/*
 * Reduced-motion: disable non-essential animation/transition and looping motion.
 * The layout stays fully complete and usable — only motion is removed.
 * (SVG SMIL loops and GSAP tweens are additionally neutralised in app.js.)
 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
    /* Neutralise motion-based transforms that would otherwise "snap" */
    .nav-pulse-dot {
        animation: none !important;
    }
    .btn-spinner {
        animation: none !important;
        border-top-color: rgba(255, 255, 255, 0.9) !important;
    }
}




/* ================= STATIC LEGAL PAGES ================= */
.legal-topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 999;
}
.legal-topbar .header-container {
    padding: 14px 24px;
}
.legal-topbar .brand-logo-img {
    height: 30px;
    display: block;
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.legal-back:hover {
    color: var(--text-primary);
}
.legal-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}
.legal-main h1 {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.legal-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.legal-main h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 34px 0 10px;
}
.legal-main p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}
.legal-main ul {
    margin: 8px 0 14px 22px;
}
.legal-main li {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}
.legal-intro {
    font-size: 15.5px !important;
}
.legal-note {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 28px;
}
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}
.footer-legal-links a {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
}
.footer-legal-links a:hover {
    color: var(--text-primary);
}
