/* Azimuth Capital - Global Styles */
/* Professional financial aesthetic inspired by Spheria */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --navy-dark: #032847;
    --navy-primary: #0a3d62;
    --blue-accent: #2c95ff;
    --blue-light: #335ca1;
    --bg-light: #f4f6fc;
    --bg-white: #ffffff;
    --text-dark: #032847;
    --text-body: #4a5568;
    --text-muted: #718096;
    --border-light: #e1e2e5;
    --border-medium: #cbd5e0;
    --success: #38a169;
    --warning: #d69e2e;
    --error: #e53e3e;

    --font-primary: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --max-width: 1200px;
    --nav-height: 80px;
    --banner-height: 74px;
}

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



/* Page content needs to be pushed down */
body {
    /* padding-top removed for sticky layout */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: calc(var(--nav-height) + var(--banner-height));
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--navy-primary);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* Navigation */
.nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--navy-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-accent);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: none;
}

@media (min-width: 1024px) {
    .nav-cta {
        display: block;
    }
}

/* Mobile Menu */
.nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-mobile-toggle {
        display: none;
    }
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy-dark);
    transition: var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--navy-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--navy-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-dark);
    border: 2px solid var(--navy-dark);
}

.btn-secondary:hover {
    background: var(--navy-dark);
    color: white;
}

.btn-accent {
    background: var(--blue-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--blue-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 50%, var(--blue-light) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

.hero-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(3, 40, 71, 0.9), transparent);
}

.hero-skyline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%23032847' fill-opacity='0.3' d='M0,200 L0,120 L40,120 L40,100 L60,100 L60,80 L80,80 L80,120 L120,120 L120,60 L140,60 L140,40 L160,40 L160,60 L180,60 L180,120 L220,120 L220,90 L260,90 L260,70 L280,70 L280,50 L300,50 L300,30 L320,30 L320,50 L340,50 L340,90 L380,90 L380,120 L420,120 L420,80 L440,80 L440,60 L460,60 L460,40 L480,40 L480,20 L500,20 L500,40 L520,40 L520,60 L540,60 L540,100 L580,100 L580,120 L620,120 L620,70 L660,70 L660,50 L680,50 L680,30 L720,30 L720,10 L760,10 L760,30 L780,30 L780,50 L800,50 L800,90 L840,90 L840,120 L880,120 L880,100 L920,100 L920,60 L940,60 L940,40 L960,40 L960,80 L1000,80 L1000,120 L1040,120 L1040,90 L1080,90 L1080,60 L1100,60 L1100,40 L1120,40 L1120,20 L1140,20 L1140,40 L1160,40 L1160,70 L1200,70 L1200,120 L1240,120 L1240,100 L1280,100 L1280,80 L1320,80 L1320,120 L1360,120 L1360,90 L1400,90 L1400,120 L1440,120 L1440,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

/* Page header - consistent height across all pages */
.page-header {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    color: white;
}

.page-header .section-header {
    margin-bottom: 0;
    text-align: center;
}

.page-header .section-label {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-header h1 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.page-header .section-header p {
    margin-bottom: 0;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--navy-dark);
    color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Team Cards */
.team-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--navy-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.02em;
}

.team-card h3 {
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9375rem;
    color: var(--blue-accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Insight Cards */
.insight-card {
    overflow: hidden;
    padding: 0;
}

.insight-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--navy-dark), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-image-placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.insight-content {
    padding: 1.5rem;
}

.insight-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.insight-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.insight-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.insight-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-link:hover {
    gap: 0.75rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
    border-top: 2px solid var(--navy-dark);
    border-bottom: 2px solid var(--navy-dark);
}

.data-table td.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table tr:hover {
    background: var(--bg-light);
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--error);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(44, 149, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--blue-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Admin login link in footer - ensure touch target */
.footer-copyright a {
    display: inline-block;
    padding: 0.5rem;
    margin: -0.5rem;
    min-height: 44px;
    min-width: 44px;
    line-height: 1;
    vertical-align: middle;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 800px;
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Chart Container */
.chart-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .process-flow {
        flex-direction: row;
        align-items: flex-start;
    }
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -1rem;
        width: calc(100% - 60px);
        height: 2px;
        background: linear-gradient(90deg, var(--navy-dark), var(--blue-accent));
        transform: translateX(50%);
        opacity: 0.3;
    }
}

.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--navy-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(3, 40, 71, 0.2);
}

.process-step:hover .process-number {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(3, 40, 71, 0.3);
}

.process-step h4 {
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Sector Allocation */
.sector-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sector-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.sector-bar {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.sector-bar-fill {
    height: 100%;
    background: var(--navy-dark);
    border-radius: 4px;
}

.sector-name {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 120px;
}

.sector-value {
    font-weight: 600;
    color: var(--navy-dark);
    min-width: 50px;
    text-align: right;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.05s;
}

.stagger-2 {
    transition-delay: 0.1s;
}

.stagger-3 {
    transition-delay: 0.15s;
}

.stagger-4 {
    transition-delay: 0.2s;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Page Transitions */
.page-transition {
    animation: pageIn 0.4s ease;
}

@keyframes pageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===========================================
   Data Loading States - Prevents content flash
   =========================================== */

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton placeholder base */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Skeleton text placeholder */
.skeleton-text {
    height: 1em;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
}

.skeleton-text.skeleton-lg {
    height: 2.5rem;
    min-width: 100px;
}

.skeleton-text.skeleton-md {
    height: 1.5rem;
    min-width: 80px;
}

.skeleton-text.skeleton-sm {
    height: 1rem;
    min-width: 60px;
}

/* Data elements that will be populated - hide until ready */
[data-loading="true"] {
    color: transparent !important;
    position: relative;
}

[data-loading="true"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Hero stat loading state */
.hero-stat-value[data-loading="true"] {
    min-width: 100px;
    min-height: 2.5rem;
}

.hero-stat-value[data-loading="true"]::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Table row loading state */
.data-table tbody tr[data-loading="true"] td {
    color: transparent;
    position: relative;
}

.data-table tbody tr[data-loading="true"] td::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Dynamic content container - starts hidden, fades in when ready */
.dynamic-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dynamic-content.content-ready {
    opacity: 1;
}

/* Loading container for card grids */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Card skeleton */
.card-skeleton {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    min-height: 200px;
}

.card-skeleton .skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.card-skeleton .skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin: 0 auto 0.5rem;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.card-skeleton .skeleton-subtitle {
    height: 1rem;
    width: 40%;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.card-skeleton .skeleton-body {
    height: 3rem;
    width: 80%;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8eaf0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ===========================================
   MOBILE RESPONSIVE STYLES
   Comprehensive mobile optimization
   =========================================== */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Reduce base font size slightly */
    html {
        font-size: 15px;
    }

    /* Prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Tighter container padding */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Navigation adjustments */
    .nav-inner {
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 1.125rem;
    }

    .nav-logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    /* Hero section mobile */
    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .hero-content {
        padding: 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .hero-label {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    /* Hero stats - vertical stack with better spacing */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .hero-stat {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-stat:last-child {
        border-bottom: none;
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.6875rem;
    }

    /* Hero buttons - stack on mobile */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .hero .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections - reduce padding */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9375rem;
    }

    /* Cards - tighter padding */
    .card {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .card-grid {
        gap: 1rem;
    }

    /* Team cards mobile */
    .team-card {
        padding: 1.5rem 1rem;
    }

    .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .team-card h3 {
        font-size: 1.0625rem;
    }

    .team-role {
        font-size: 0.8125rem;
    }

    .team-bio {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    /* Insight cards mobile */
    .insight-image {
        height: 140px;
    }

    .insight-content {
        padding: 1.25rem;
    }

    .insight-date {
        font-size: 0.75rem;
    }

    .insight-title {
        font-size: 1rem;
    }

    /* Data tables - horizontal scroll */
    .card[style*="overflow-x"] {
        padding: 1rem;
    }

    .data-table {
        font-size: 0.8125rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.625rem 0.5rem;
        white-space: nowrap;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        position: sticky;
        left: 0;
        background: inherit;
        z-index: 1;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
    }

    /* Full-width buttons in certain contexts */
    .section-dark .btn,
    .text-center .btn {
        min-width: 200px;
    }

    /* Footer mobile */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-brand p {
        font-size: 0.8125rem;
    }

    .footer h4 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        font-size: 0.8125rem;
        padding: 0.25rem 0;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .footer-disclaimer {
        font-size: 0.6875rem;
        line-height: 1.5;
    }

    /* Process flow mobile */
    .process-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .process-step h4 {
        font-size: 1rem;
    }

    .process-step p {
        font-size: 0.8125rem;
    }

    /* Sector items mobile */
    .sector-item {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .sector-name {
        min-width: 100px;
        font-size: 0.8125rem;
    }

    .sector-value {
        font-size: 0.875rem;
    }

    /* Chart placeholders */
    .chart-placeholder {
        height: 200px;
        font-size: 0.8125rem;
    }

    /* Philosophy cards */
    .philosophy-card .card-icon {
        width: 48px;
        height: 48px;
    }

    .philosophy-card .card-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Demo banner */
    div[style*="Demo Website"] {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Mobile menu improvements */
    .mobile-menu {
        padding: 1.5rem;
    }

    .mobile-menu-links {
        gap: 1.25rem;
    }

    .mobile-menu-links a {
        font-size: 1.125rem;
        display: block;
        padding: 0.5rem 0;
    }

    /* Contact form (if exists) */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-stat {
        min-width: 120px;
    }

    .section {
        padding: 4rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero-stats {
        gap: 2rem;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch-friendly improvements for all mobile */
@media (max-width: 1023.98px) {
    /* Ensure mobile menu is hidden by default */
    .mobile-menu {
        transform: translateX(100%);
        visibility: hidden;
    }

    .mobile-menu.open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Larger touch targets */
    .nav-mobile-toggle {
        padding: 0.75rem;
        margin: -0.75rem;
    }

    .nav-mobile-toggle span {
        width: 26px;
        height: 2.5px;
    }

    /* Better link/button touch targets */
    .footer-links a {
        display: inline-block;
        padding: 0.375rem 0;
    }

    /* Prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Ensure all containers respect viewport width */
    .container,
    .card,
    section {
        max-width: 100%;
    }

    /* Sector allocation grid - responsive */
    .sector-allocation-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Smooth scroll for iOS */
    html {
        -webkit-overflow-scrolling: touch;
    }

    /* Better focus states for touch */
    a:focus,
    button:focus {
        outline: 2px solid var(--blue-accent);
        outline-offset: 2px;
    }

    /* Card hover effects - disable on touch */
    .card:hover {
        transform: none;
    }

    .card:active {
        transform: scale(0.98);
    }
}

/* High DPI / Retina adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo-icon,
    .team-avatar,
    .process-number {
        -webkit-font-smoothing: antialiased;
    }
}

/* =============================================
   Philosophy Section - Refined Institutional Style
   ============================================= */

.philosophy-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.philosophy-pillars {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .philosophy-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.philosophy-pillar {
    padding: 2rem 1.5rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-base);
}

@media (min-width: 768px) {
    .philosophy-pillar {
        padding: 2.5rem 2rem;
        border-bottom: none;
        border-right: 1px solid var(--border-light);
    }

    .philosophy-pillar:last-child {
        border-right: none;
    }
}

.philosophy-pillar:last-child {
    border-bottom: none;
}

.philosophy-pillar:hover {
    background-color: var(--bg-light);
}

.pillar-number {
    font-family: 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--blue-accent);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.7;
}

.pillar-content {
    flex: 1;
}

.pillar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.pillar-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Philosophy Narrative Section */
.philosophy-narrative {
    padding: 2.5rem 2rem;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
}

@media (min-width: 768px) {
    .philosophy-narrative {
        padding: 3rem;
    }
}

.philosophy-process {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-body);
    margin: 0 0 2rem 0;
    max-width: 800px;
}

.philosophy-target {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.philosophy-target-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-accent);
    margin-bottom: 0.75rem;
}

.philosophy-target p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    max-width: 700px;
}

/* Animation stagger for pillars */
.philosophy-pillar.stagger-1 { animation-delay: 0.1s; }
.philosophy-pillar.stagger-2 { animation-delay: 0.2s; }
.philosophy-pillar.stagger-3 { animation-delay: 0.3s; }

/* =============================================
   View Transitions API - Smooth Page Navigation
   ============================================= */

/* Enable view transitions for cross-document navigation */
@view-transition {
    navigation: auto;
}

/* Default transition animation - quick crossfade */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 150ms;
    animation-timing-function: ease-out;
}

::view-transition-old(root) {
    animation-name: fade-out;
}

::view-transition-new(root) {
    animation-name: fade-in;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Keep navigation stable during transitions */
.nav {
    view-transition-name: nav;
}

::view-transition-old(nav),
::view-transition-new(nav) {
    animation: none;
}

/* Keep demo banner stable during transitions */
.demo-banner {
    view-transition-name: demo-banner;
}

::view-transition-old(demo-banner),
::view-transition-new(demo-banner) {
    animation: none;
}

/* Philosophy section mobile refinements */
@media (max-width: 575.98px) {
    .philosophy-section {
        border-radius: 12px;
    }

    .philosophy-pillar {
        padding: 1.5rem 1.25rem;
        gap: 0.875rem;
    }

    .pillar-number {
        font-size: 1.5rem;
    }

    .pillar-title {
        font-size: 1rem;
    }

    .pillar-description {
        font-size: 0.875rem;
    }

    .philosophy-narrative {
        padding: 1.5rem 1.25rem;
    }

    .philosophy-process {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .philosophy-target {
        padding-top: 1.25rem;
    }

    .philosophy-target-label {
        font-size: 0.6875rem;
    }

    .philosophy-target p {
        font-size: 0.875rem;
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .nav {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .nav-inner {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .mobile-menu {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-stats {
        flex-direction: row;
        gap: 2rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .nav {
        --nav-height: 60px;
    }
}