/* Walnut Care Public Website Styles */
/* Blending old visual charm with new functionality */

:root {
    /* Brand Colors - Original Walnut Care palette */
    --walnut-burgundy: #691C32;
    --walnut-burgundy-rgb: 105, 28, 50;
    --walnut-dark-blue: #092162;
    --walnut-dark-blue-rgb: 9, 33, 98;
    --walnut-pink: #ED9CAE;
    --walnut-pink-rgb: 237, 156, 174;
    --walnut-pink-light: #f5c5d0;
    --walnut-blue-accent: #3860B2;
    --walnut-blue-accent-rgb: 56, 96, 178;
    --walnut-cream: #fdf5f0;
    --walnut-cream-rgb: 253, 245, 240;

    /* Light Mode Colors */
    --bg-primary: #faf8f6;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: var(--walnut-cream);
    --bg-input: rgba(253, 233, 236, 0.5);
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-heading: var(--walnut-burgundy);
    --border-color: #e0d8d4;
    --border-light: #f0ebe8;

    /* Gradient */
    --brand-gradient: linear-gradient(135deg, #691C32, #8a2348);

    /* Status Colors */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;

    /* Shadows - softer, warmer */
    --shadow-sm: 0 2px 4px rgba(105, 28, 50, 0.08);
    --shadow-md: 0 4px 12px rgba(105, 28, 50, 0.12);
    --shadow-lg: 0 8px 24px rgba(105, 28, 50, 0.16);
    --shadow-xl: 0 12px 40px rgba(105, 28, 50, 0.2);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Hexagon dimensions */
    --hex-size: 120px;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f1f3a;
    --bg-subtle: #252542;
    --bg-input: rgba(50, 50, 80, 0.5);
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-heading: var(--walnut-pink);
    --border-color: #3a3a5a;
    --border-light: #2a2a4a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Dark Mode - Element overrides */
[data-theme="dark"] .logo,
[data-theme="dark"] .logo:hover,
[data-theme="dark"] .header-phone a,
[data-theme="dark"] .phone-number,
[data-theme="dark"] a:hover,
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .vision-card h3,
[data-theme="dark"] .values-title,
[data-theme="dark"] .value-item h4,
[data-theme="dark"] .team-role,
[data-theme="dark"] .stamp-text,
[data-theme="dark"] .stamp-year,
[data-theme="dark"] .hero-link,
[data-theme="dark"] .section-title h2 {
    color: var(--walnut-pink);
}

[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--walnut-pink);
    border-bottom-color: var(--walnut-pink);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--walnut-pink);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--walnut-pink);
    color: var(--bg-primary);
}

/* Dark Mode - Replace burgundy backgrounds with pink or dark alternatives */
[data-theme="dark"] .site-footer {
    background: var(--bg-secondary);
}

[data-theme="dark"] .why-choose-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .vision-card {
    border-left-color: var(--walnut-pink);
}

[data-theme="dark"] .matters-item {
    border-left-color: var(--walnut-pink);
}

[data-theme="dark"] .coverage-regions .region h3 {
    border-bottom-color: var(--walnut-pink);
}

[data-theme="dark"] .service-icon,
[data-theme="dark"] .feature-icon {
    background: rgba(var(--walnut-pink-rgb), 0.2);
    color: var(--walnut-pink);
}

[data-theme="dark"] .area-icon {
    background: var(--walnut-pink);
    color: var(--bg-primary);
}

[data-theme="dark"] .step-number {
    background: var(--walnut-pink);
    color: var(--bg-primary);
}

[data-theme="dark"] .spinner {
    border-top-color: var(--walnut-pink);
}

/* Dark Mode - Hexagons */
[data-theme="dark"] .hexagon {
    background: var(--walnut-pink);
}

[data-theme="dark"] .hexagon.hex-solid .hexagon-inner {
    background: var(--walnut-pink);
    color: var(--bg-primary);
}

[data-theme="dark"] .service-hex.hex-burgundy {
    background: var(--walnut-pink);
    color: var(--bg-primary);
}

[data-theme="dark"] .service-hex.hex-burgundy .service-hex-inner {
    background: var(--walnut-pink);
    color: var(--bg-primary);
}

[data-theme="dark"] .service-hex.hex-pink {
    background: #3d2a3d;
    color: var(--walnut-pink);
}

[data-theme="dark"] .service-hex.hex-cream {
    background: #2a2a3d;
    color: #f0d0d8;
}

[data-theme="dark"] .service-hex.hex-white {
    background: #1e1e2e;
    color: #ffffff;
}

[data-theme="dark"] .value-hex.hex-burgundy {
    background: var(--walnut-pink);
    color: #1a1a2e;
}

[data-theme="dark"] .value-hex.hex-pink {
    background: #3d2a3d;
    color: var(--walnut-pink);
}

[data-theme="dark"] .value-hex.hex-cream {
    background: #2a2a3d;
    color: #f0d0d8;
}

[data-theme="dark"] .value-hex.hex-white {
    background: #1e1e2e;
    color: #ffffff;
}

[data-theme="dark"] .resource-hex.hex-burgundy {
    background: var(--walnut-pink);
    color: #1a1a2e;
}

[data-theme="dark"] .resource-hex.hex-pink {
    background: #3d2a3d;
    color: var(--walnut-pink);
}

[data-theme="dark"] .resource-hex.hex-cream {
    background: #2a2a3d;
    color: #f0d0d8;
}

[data-theme="dark"] .resource-hex.hex-white {
    background: #1e1e2e;
    color: #ffffff;
}

/* Dark Mode - Stamp badge */
[data-theme="dark"] .stamp-badge {
    border-color: var(--walnut-pink);
}

[data-theme="dark"] .stamp-badge::before {
    border-color: var(--walnut-pink);
}

/* Dark Mode - Page title banner */
[data-theme="dark"] .page-title-italic {
    background: var(--bg-card);
    color: var(--walnut-pink);
    border-left-color: var(--walnut-pink);
}

/* Dark Mode - Train hero and viaduct sections */
[data-theme="dark"] .train-hero {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-card) 50%, var(--bg-secondary) 50%);
}

/* Dark Mode - Menu overlay */
[data-theme="dark"] .menu-overlay {
    background: var(--bg-secondary);
}

/* Dark Mode - FAQ cards */
[data-theme="dark"] .faq-card.faq-burgundy {
    background: var(--bg-card);
    border: 1px solid var(--walnut-pink);
}

[data-theme="dark"] .faq-card.faq-burgundy h4 {
    color: var(--walnut-pink);
}

/* Dark Mode - Hex photo placeholder */
[data-theme="dark"] .hex-photo-placeholder {
    background: linear-gradient(135deg, var(--walnut-pink), var(--bg-card));
}

/* Dark Mode - Text colors that use burgundy */
[data-theme="dark"] .hexagon-label,
[data-theme="dark"] .service-hex.hex-white .service-hex-label,
[data-theme="dark"] .service-hex.hex-pink .service-hex-label,
[data-theme="dark"] .value-hex.hex-white .value-hex-label,
[data-theme="dark"] .value-hex.hex-pink .value-hex-label,
[data-theme="dark"] .resource-hex.hex-pink,
[data-theme="dark"] .matters-item h3,
[data-theme="dark"] .step-content h3,
[data-theme="dark"] .coverage-regions .region h3,
[data-theme="dark"] .trust-number,
[data-theme="dark"] .journey-option:hover h3 {
    color: var(--walnut-pink);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "omnes-variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--walnut-blue-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--walnut-burgundy);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--walnut-burgundy);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo:hover {
    color: var(--walnut-burgundy);
}

/* Header Phone */
.header-phone {
    display: flex;
    align-items: center;
}

.header-phone a {
    color: var(--walnut-burgundy);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color 0.2s ease;
}

.header-phone a:hover {
    color: var(--walnut-pink);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--walnut-burgundy);
    border-bottom-color: var(--walnut-burgundy);
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--walnut-burgundy);
    border: 2px solid var(--walnut-burgundy);
}

.btn-outline:hover {
    background: var(--walnut-burgundy);
    color: white;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    background: var(--brand-gradient);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero .btn {
    margin: 0 var(--spacing-sm);
}

/* Section */
.section {
    padding: var(--spacing-2xl) 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-secondary);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

/* Vision, Mission & Values */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.vision-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--walnut-burgundy);
}

.vision-card h3 {
    color: var(--walnut-burgundy);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.vision-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.values-section {
    margin-top: var(--spacing-xl);
}

.values-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--walnut-burgundy);
    margin-bottom: var(--spacing-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.value-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.value-item h4 {
    color: var(--walnut-burgundy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .vision-card {
        padding: var(--spacing-xl);
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--walnut-burgundy-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--walnut-pink);
}

.team-name {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.team-role {
    color: var(--walnut-burgundy);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.team-area {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Areas Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.area-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.area-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.area-info h4 {
    margin-bottom: var(--spacing-xs);
}

.area-region {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Location Chips (Home page) */
.locations-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    padding: var(--spacing-md) 0;
}

.location-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.location-chip:hover {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.location-icon {
    font-size: 0.85rem;
}

.location-name {
    font-weight: 500;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--walnut-burgundy-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--walnut-burgundy);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature h4 {
    margin-bottom: var(--spacing-xs);
}

.feature p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: var(--walnut-dark-blue);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

/* Footer */
.site-footer {
    background: var(--walnut-burgundy);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--walnut-pink);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Candidates Dashboard */
.dashboard-header {
    background: var(--brand-gradient);
    color: white;
    padding: var(--spacing-xl) 0;
}

.dashboard-header h1 {
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-card-header {
    background: rgba(var(--walnut-burgundy-rgb), 0.1);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.dashboard-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-card-body {
    padding: var(--spacing-lg);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-approved {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.status-interview {
    background: rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

/* Application List */
.application-list {
    list-style: none;
}

.application-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

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

.application-role {
    font-weight: 500;
}

.application-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Interview List */
.interview-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.interview-date {
    background: var(--brand-gradient);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 70px;
}

.interview-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.interview-month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.interview-details h4 {
    margin-bottom: var(--spacing-xs);
}

.interview-time,
.interview-location {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--walnut-burgundy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    min-width: 200px;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .header-buttons {
        width: 100%;
    }

    .header-buttons .btn {
        flex: 1;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        padding: var(--spacing-xl) 0;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    /* Stack hero buttons vertically on mobile */
    .hero .btn {
        display: block;
        margin: var(--spacing-sm) auto;
        max-width: 280px;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .cta-section {
        padding: var(--spacing-xl) 0;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    /* Stack CTA buttons vertically */
    .cta-section .btn {
        display: block;
        margin: var(--spacing-sm) auto;
        max-width: 280px;
    }

    .vision-card {
        padding: var(--spacing-lg);
    }

    .vision-icon {
        font-size: 2.5rem;
    }

    .vision-card h3 {
        font-size: 1.25rem;
    }

    .vision-card p {
        font-size: 1rem;
    }

    .values-title {
        font-size: 1.5rem;
    }

    .value-item {
        padding: var(--spacing-md);
    }

    .value-icon {
        font-size: 2rem;
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto var(--spacing-sm);
    }

    .area-card {
        padding: var(--spacing-md);
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   OLD DESIGN ELEMENTS - RESTORED
   Train, Hexagons, Stamps, Italic Headers
   =========================================== */

/* Italic Page Titles - Old Style */
.page-title-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--spacing-xl);
}

.page-title-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5));
}

.page-title-banner .container {
    position: relative;
    z-index: 1;
}

.page-title-italic {
    display: inline-block;
    background: white;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-family: "adobe-garamond-pro", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
    color: var(--walnut-burgundy);
    border-left: 4px solid var(--walnut-burgundy);
    box-shadow: var(--shadow-md);
}

/* Vintage Stamp/Postmark */
.stamp-badge {
    position: relative;
    width: 100px;
    height: 100px;
    border: 3px solid var(--walnut-burgundy);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-12deg);
    opacity: 0.85;
}

.stamp-badge::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px dashed var(--walnut-burgundy);
    border-radius: 50%;
}

.stamp-badge .stamp-text {
    font-family: "adobe-garamond-pro", Georgia, serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--walnut-burgundy);
    text-align: center;
}

.stamp-badge .stamp-year {
    font-family: "adobe-garamond-pro", Georgia, serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--walnut-burgundy);
}

/* Hexagon Grid System */
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: var(--spacing-xl) auto;
    max-width: 900px;
    overflow: hidden;
}

.hex-row {
    display: flex;
    justify-content: center;
}

.hex-row:nth-child(even) {
    margin-top: -28px;
    margin-left: 65px;
}

.hexagon {
    width: var(--hex-size);
    height: calc(var(--hex-size) * 1.1547);
    position: relative;
    margin: 4px;
    background: var(--walnut-burgundy);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hexagon:hover {
    transform: scale(1.08);
    z-index: 10;
}

.hexagon-inner {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    background: white;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    text-align: center;
}

.hexagon.hex-solid .hexagon-inner {
    background: var(--walnut-burgundy);
    color: white;
}

.hexagon.hex-pink {
    background: var(--walnut-pink);
}

.hexagon.hex-pink .hexagon-inner {
    background: var(--walnut-pink);
    color: var(--walnut-burgundy);
}

.hexagon-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.hexagon-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--walnut-burgundy);
}

.hexagon.hex-solid .hexagon-label,
.hexagon.hex-pink .hexagon-label {
    color: white;
}

/* Hexagon Team Photos */
.hex-photo {
    width: 140px;
    height: 162px;
    position: relative;
    margin: 8px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hex-photo:hover {
    transform: scale(1.05);
}

.hex-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hex-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--walnut-burgundy), var(--walnut-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.hex-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(105, 28, 50, 0.9));
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
    text-align: center;
}

.hex-photo-name {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.hex-photo-role {
    color: var(--walnut-pink);
    font-size: 0.7rem;
}

/* Team Hexagon Grid */
.team-hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) auto;
}

/* Service Hexagons */
.service-hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: var(--spacing-xl) auto;
    max-width: 800px;
    overflow: hidden;
}

.service-hex {
    width: 150px;
    height: 173px;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--walnut-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-hex:hover {
    transform: scale(1.05);
}

.service-hex-inner {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    text-align: center;
    transition: background 0.3s ease;
}

.service-hex.hex-burgundy .service-hex-inner {
    background: var(--walnut-burgundy);
    color: white;
}

.service-hex.hex-white .service-hex-inner {
    background: white;
    color: var(--walnut-burgundy);
}

.service-hex.hex-pink .service-hex-inner {
    background: var(--walnut-pink);
    color: var(--walnut-burgundy);
}

.service-hex-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-hex-label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Train Viaduct Hero */
.train-hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(to bottom, #f5e6e8 0%, #e8d4d8 50%, var(--walnut-burgundy) 50%);
    overflow: hidden;
}

.train-hero-content {
    position: relative;
    z-index: 10;
    padding: var(--spacing-3xl) 0;
}

.train-hero h1 {
    color: var(--walnut-burgundy);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.train-hero .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.7;
}

.train-illustration {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    max-width: 700px;
    z-index: 5;
}

/* Why Choose Us Section (from old design) */
.why-choose-section {
    background: var(--walnut-burgundy);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.why-choose-section h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.why-choose-section .subtitle {
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.why-choose-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.why-choose-item {
    text-align: center;
    max-width: 200px;
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
}

.why-choose-item h4 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.why-choose-item p {
    opacity: 0.85;
    font-size: 0.9rem;
}

/* Full Screen Menu Overlay (from old design) */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--walnut-burgundy);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: var(--spacing-2xl);
}

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

.menu-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.menu-overlay .logo {
    color: white;
}

.menu-close-btn {
    background: none;
    border: none;
    color: var(--walnut-pink);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.menu-overlay-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
    flex: 1;
}

.menu-overlay-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.menu-overlay-section ul {
    list-style: none;
}

.menu-overlay-section li {
    margin-bottom: var(--spacing-sm);
}

.menu-overlay-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.menu-overlay-section a:hover {
    color: white;
}

.menu-overlay-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.menu-social {
    display: flex;
    gap: var(--spacing-md);
}

.menu-social a {
    color: white;
    font-size: 1.5rem;
}

/* Two-tone FAQ Cards (from old design) */
.faq-two-tone {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.faq-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-4px);
}

.faq-card.faq-burgundy {
    background: var(--walnut-burgundy);
    color: white;
}

.faq-card.faq-pink {
    background: var(--walnut-pink);
    color: var(--walnut-burgundy);
}

.faq-card.faq-white {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.faq-card-header {
    padding: var(--spacing-lg);
}

.faq-card-header .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
}

.faq-card-header h4 {
    font-size: 1rem;
    margin: 0;
}

.faq-card.faq-burgundy h4 {
    color: white;
}

.faq-card-body {
    padding: var(--spacing-lg);
    background: rgba(255,255,255,0.1);
    display: none;
}

.faq-card.open .faq-card-body {
    display: block;
}

.faq-card-toggle {
    display: flex;
    justify-content: flex-end;
    padding: 0 var(--spacing-lg) var(--spacing-md);
}

.faq-card-toggle button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: inherit;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.faq-card.faq-white .faq-card-toggle button {
    background: var(--walnut-burgundy);
    color: white;
}

/* Resource Center Hexagons */
.resource-hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
    overflow: hidden;
}

.resource-hex {
    width: 130px;
    height: 150px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.resource-hex:hover {
    transform: scale(1.05);
}

.resource-hex.hex-burgundy {
    background: var(--walnut-burgundy);
    color: white;
}

.resource-hex.hex-pink {
    background: var(--walnut-pink);
    color: var(--walnut-burgundy);
}

.resource-hex.hex-white {
    background: white;
    color: var(--walnut-burgundy);
    border: 2px solid var(--walnut-burgundy);
}

.resource-hex-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.resource-hex-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Responsive Hexagons */
@media (max-width: 768px) {
    .hex-grid,
    .service-hex-grid,
    .resource-hex-grid,
    .team-hex-grid {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

    .hex-row:nth-child(even) {
        margin-left: 0;
        margin-top: -20px;
    }

    .hexagon {
        width: 100px;
        height: 115px;
        margin: 2px;
    }

    .hex-photo {
        width: 110px;
        height: 127px;
    }

    .service-hex {
        width: 120px;
        height: 139px;
    }

    .resource-hex {
        width: 100px;
        height: 115px;
    }

    .menu-overlay-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .train-illustration {
        width: 100%;
        position: relative;
        margin-top: var(--spacing-xl);
    }

    .train-hero {
        background: linear-gradient(to bottom, #f5e6e8 0%, #f5e6e8 60%, var(--walnut-burgundy) 60%);
    }
}

@media (max-width: 480px) {
    .hex-grid,
    .service-hex-grid,
    .resource-hex-grid,
    .team-hex-grid {
        gap: 4px;
        padding: 0 var(--spacing-xs);
    }

    .hex-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hex-row:nth-child(even) {
        margin-top: -15px;
    }

    .hexagon {
        width: 80px;
        height: 92px;
        margin: 2px;
    }

    .hexagon-icon {
        font-size: 1.5rem;
    }

    .hexagon-label {
        font-size: 0.65rem;
    }

    .hex-photo {
        width: 80px;
        height: 92px;
    }

    .service-hex {
        width: 90px;
        height: 104px;
    }

    .service-hex-icon {
        font-size: 1.8rem;
    }

    .service-hex-label {
        font-size: 0.7rem;
    }

    .resource-hex {
        width: 85px;
        height: 98px;
    }

    .resource-hex-icon {
        font-size: 1.5rem;
    }

    .resource-hex-label {
        font-size: 0.65rem;
    }

    .page-title-italic {
        font-size: 1.5rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .menu-overlay-content {
        grid-template-columns: 1fr;
    }
}

/* Floating CQC widget in bottom-left corner.
   The widget's own CSS uses !important everywhere, so we scale the whole
   thing down with transform rather than fight its sizing. */
#cqc-widget-floater {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 9999;
    transform: scale(0.55);
    transform-origin: bottom left;
    pointer-events: auto;
}
#cqc-widget-floater .cqc-widget {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
    border-radius: 6px !important;
}
@media (max-width: 540px) {
    #cqc-widget-floater {
        transform: scale(0.45);
        left: 6px;
        bottom: 6px;
    }
}
