/* 
   WiKu.data CSS Design System
   Modern, Clean, and Professional Layout
*/

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Variables and Tokens */
:root {
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme colors */
    --color-primary: #2654AC;          /* Royal Blue */
    --color-primary-rgb: 38, 84, 172;
    --color-primary-hover: #1b428d;
    --color-accent: #FF9000;           /* Vivid Orange */
    --color-accent-hover: #e07f00;
    --color-accent-rgb: 255, 144, 0;
    --color-secondary: #ABB6CE;        /* Slate Blue */
    
    /* Light Mode defaults */
    --bg-main: #F8FAFC;                /* Light slate background */
    --bg-card: #FFFFFF;                /* White cards */
    --bg-header: rgba(255, 255, 255, 0.85); /* Glassmorphism header */
    --bg-footer: #0F172A;              /* Rich dark footer */
    --bg-footer-card: #1E293B;         
    --text-main: #0F172A;              /* Very dark slate */
    --text-muted: #475569;             /* Slate 600 */
    --text-light: #F8FAFC;             /* Light gray/white */
    --border-color: #E2E8F0;           /* Border lines */
    --shadow-color: rgba(15, 23, 42, 0.05);
    --shadow-hover: rgba(15, 23, 42, 0.12);
    --modal-bg: rgba(15, 23, 42, 0.5);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
    
    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Max widths */
    --max-width: 1200px;
}

/* Dark Mode override */
body.dark-mode {
    --bg-main: #090D16;                /* Deep space dark */
    --bg-card: #121826;                /* Dark card */
    --bg-header: rgba(18, 24, 38, 0.85);
    --bg-footer: #06090F;
    --bg-footer-card: #121826;
    --text-main: #F1F5F9;              /* Light text */
    --text-muted: #94A3B8;             /* Slate 400 */
    --border-color: #1E293B;           /* Darker borders */
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --modal-bg: rgba(0, 0, 0, 0.7);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    position: relative;
}

/* Gradient Blobs (Premium Design Touch) */
body::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(38, 84, 172, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

body.dark-mode::before {
    background: radial-gradient(circle, rgba(38, 84, 172, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* Header uses full width — no max-width constraint */
.site-header .container {
    max-width: 100%;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 100%;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-name {
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Navigation Link Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Control Panel (Theme and Mobile Actions) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--border-color);
    color: var(--color-primary);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
    transition: transform var(--transition-normal);
}

.theme-toggle-btn:hover svg {
    transform: rotate(15deg);
}

/* Sun icon default hidden in light mode */
.theme-toggle-btn .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle-btn .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle-btn .sun-icon {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background-color: var(--border-color);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ============================================================
   HERO SECTION — Premium Industrial Design
   Target: Sondermaschinenbauer (Old Economy, Elite Clients)
   Aesthetic: Dark precision engineering, gold accents, serious
   ============================================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0A0D12;
    padding: 120px 0 80px 0;
}

/* Animated precision grid background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 160, 80, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 160, 80, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
    z-index: 0;
}

/* Deep radial glow — blueprint/forge feel */
.hero-section::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(ellipse at center,
        rgba(38, 84, 172, 0.18) 0%,
        rgba(196, 160, 80, 0.06) 40%,
        transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes gridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* Thin horizontal accent line across the hero */
.hero-accent-line {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), #C4A050);
    margin: 0 auto 2.5rem auto;
    animation: expandLine 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: center;
    transform: scaleX(0);
}

@keyframes expandLine {
    to { transform: scaleX(1); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.25rem;
    background: rgba(196, 160, 80, 0.08);
    color: #C4A050;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.78rem;
    margin-bottom: 2.5rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid rgba(196, 160, 80, 0.3);
    animation: fadeInDown 0.8s ease both;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #C4A050;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-header);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    letter-spacing: -1px;
    color: #E8EDF4;
    animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-title span {
    background: linear-gradient(120deg, #C4A050 0%, #E8C878 50%, #C4A050 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: #8A96A8;
    max-width: 680px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.7;
    letter-spacing: 0.2px;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-subtitle strong {
    font-weight: 600;
    color: #8A96A8;
}

.hero-description {
    font-size: 1.05rem;
    color: #8A96A8;
    max-width: 580px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
    animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-description a {
    color: #C4A050;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(196, 160, 80, 0.35);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.hero-description a:hover {
    color: #E8C878;
    border-color: #E8C878;
}

/* CTA area — precision instruments look */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: fadeInUp 0.9s ease 0.4s both;
}

/* Trust indicators below button */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    animation: fadeInUp 0.9s ease 0.5s both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #8A96A8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-trust-item svg {
    width: 14px;
    height: 14px;
    color: #C4A050;
    flex-shrink: 0;
}

/* === Animated stats strip below hero === */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5rem);
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(196, 160, 80, 0.12);
    animation: fadeInUp 0.9s ease 0.6s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-header);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #C4A050;
    letter-spacing: -1px;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: #8A96A8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.4rem;
}

/* Call to Action Button — dark precision style */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.75rem;
    background: linear-gradient(135deg, #2654AC 0%, #1b428d 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 2px;
    border: 1px solid rgba(196, 160, 80, 0.3);
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow:
        0 0 0 1px rgba(38, 84, 172, 0.2),
        0 8px 32px rgba(38, 84, 172, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 160, 80, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(196, 160, 80, 0.5),
        0 12px 40px rgba(38, 84, 172, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(196, 160, 80, 0.6);
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

/* References Section */
.references-section {
    padding: 100px 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4.5rem auto;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* Card Styling */
.reference-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
}

.reference-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: var(--font-header);
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
}

.reference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px var(--shadow-hover);
    border-color: rgba(38, 84, 172, 0.3);
}

.reference-quote {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.reference-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-family: var(--font-header);
    font-size: 1.1rem;
    border: 2px solid var(--bg-card);
    box-shadow: 0 4px 10px rgba(38, 84, 172, 0.15);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.author-company {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Footer Section */
.site-footer {
    background-color: var(--bg-footer);
    color: #F8FAFC;
    padding: 5rem 0 3rem 0;
    border-top: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1E293B;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .brand {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-brand .brand span {
    color: #568CFC;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column-title {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    text-decoration: none;
    color: #94A3B8;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.footer-link:hover {
    color: #568CFC;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: #64748B;
}

/* Modals (Overlay/Popup windows) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-content {
    padding: 2.25rem 2rem;
    overflow-y: auto;
    color: var(--text-main);
}

/* Contact Info Styling inside modal */
.contact-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-company {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
}

.contact-person {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: rgba(38, 84, 172, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-primary);
}

/* Large legal modal customization */
.modal-container.large {
    max-width: 800px;
}

.legal-text-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
}

.legal-text-content h1, 
.legal-text-content h2, 
.legal-text-content h3 {
    font-family: var(--font-header);
    color: var(--text-main);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-text-content h1 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-text-content h2 {
    font-size: 1.2rem;
}

.legal-text-content p {
    margin-bottom: 1rem;
}

.legal-text-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-text-content li {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .references-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .site-header .container {
        height: 60px;
    }

    /* Mobile Nav Menu Drawer */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 1.5rem;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-section {
        padding: 130px 0 70px 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .references-section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .reference-card {
        padding: 1.75rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal-container {
        width: 92%;
        max-height: 80vh;
    }

    .modal-content {
        padding: 1.5rem 1.25rem;
    }
}

/* Print Styles for Legal Modals */
@media print {
    body * {
        visibility: hidden;
    }
    .modal-overlay.active,
    .modal-overlay.active .modal-container,
    .modal-overlay.active .modal-content,
    .modal-overlay.active .modal-content * {
        visibility: visible;
    }
    .modal-overlay.active {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: none;
        backdrop-filter: none;
    }
    .modal-container {
        border: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }
    .modal-header {
        display: none;
    }
}
