/**
 * Schöning Türtechnik - Custom UI Enhancements
 * Better readability, visual hierarchy, and modern design
 */

/* ===========================================
   ROOT VARIABLES
   =========================================== */
:root {
    /* Enhanced color palette */
    --color-primary-50: #f0f7ff;
    --color-primary-100: #e0efff;
    --color-primary-200: #b9dfff;
    --color-primary-300: #7cc4ff;
    --color-primary-400: #36a5ff;
    --color-primary-500: #0c85f1;
    --color-primary-600: #0068ce;
    --color-primary-700: #0054a7;
    --color-primary-800: #00478a;
    --color-primary-900: #083c71;

    --color-secondary-500: #fe7f11;
    --color-secondary-600: #ef6307;

    /* Better grays with slight blue tint for professionalism */
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Typography scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */

    /* Line heights for readability */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Spacing */
    --section-spacing: 5rem;
    --section-spacing-lg: 7rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 4px 8px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===========================================
   BASE TYPOGRAPHY IMPROVEMENTS
   =========================================== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-gray-700);
    letter-spacing: -0.01em;
}

/* Improved heading styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--color-gray-900);
}

h1 {
    font-size: var(--font-size-4xl);
    line-height: 1.1;
}

h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

/* Better paragraph spacing */
p {
    margin-bottom: 1.25rem;
    line-height: var(--line-height-relaxed);
}

/* Improve text contrast for small text */
.text-gray-400 {
    color: var(--color-gray-500) !important;
}

.text-gray-500 {
    color: var(--color-gray-600) !important;
}

.text-gray-600 {
    color: var(--color-gray-700) !important;
}

/* ===========================================
   HERO SECTION ENHANCEMENT
   =========================================== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--color-gray-900) 0%,
        #1a365d 50%,
        var(--color-primary-900) 100%
    );
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 104, 206, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(254, 127, 17, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-highlight {
    color: var(--color-primary-400);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-400), var(--color-secondary-500));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 1s ease-out 0.5s forwards;
}

@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

/* ===========================================
   STATISTICS SECTION
   =========================================== */
.stats-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.15);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-primary-400);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================================
   ENHANCED CARDS
   =========================================== */
.card-enhanced {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-primary-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-100);
}

.card-enhanced:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-primary-100));
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary-600);
    transition: transform var(--transition-base);
}

.card-enhanced:hover .card-icon {
    background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-200));
    transform: scale(1.05);
}

.card-enhanced:hover .card-icon svg {
    transform: scale(1.1);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
    transition: color var(--transition-base);
}

.card-enhanced:hover .card-title {
    color: var(--color-primary-600);
}

.card-description {
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
}

/* Service card variant */
.card-service {
    text-align: center;
}

.card-service .card-icon {
    margin-left: auto;
    margin-right: auto;
}

/* Industry card variant */
.card-industry {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.card-industry .card-icon {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

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

/* ===========================================
   SECTION STYLING
   =========================================== */
.section {
    padding: var(--section-spacing) 0;
}

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

/* Alternating section backgrounds */
.section-light {
    background: var(--color-gray-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, #1a365d 100%);
    color: white;
}

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

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* Gradient section divider */
.section-divider {
    height: 6px;
    background: linear-gradient(90deg,
        var(--color-primary-600) 0%,
        var(--color-primary-400) 50%,
        var(--color-secondary-500) 100%
    );
}

/* ===========================================
   BUTTONS ENHANCEMENT
   =========================================== */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    box-shadow: 0 4px 14px 0 rgba(0, 104, 206, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    box-shadow: 0 6px 20px 0 rgba(0, 104, 206, 0.35);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--font-size-base);
    border-radius: 0.75rem;
}

.btn-white {
    background: white;
    color: var(--color-gray-900);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--color-gray-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

/* ===========================================
   FOOTER ENHANCEMENT
   =========================================== */
.footer-enhanced {
    background: linear-gradient(180deg, var(--color-gray-900) 0%, #0c1829 100%);
}

.footer-enhanced h3 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-enhanced ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-enhanced li {
    margin-bottom: 0.875rem;
}

.footer-enhanced a {
    color: var(--color-gray-400);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-enhanced a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.footer-description {
    color: var(--color-gray-400);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

.footer-address {
    font-size: var(--font-size-base);
    color: var(--color-gray-400);
    line-height: var(--line-height-relaxed);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.footer-contact-item:hover {
    color: white;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary-400);
    flex-shrink: 0;
}

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

.footer-bottom-text {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal-links a {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

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

/* ===========================================
   WHY US SECTION (USP)
   =========================================== */
.usp-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.usp-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-slow);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.usp-icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-primary-300);
}

.usp-card:hover .usp-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.usp-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.usp-description {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-relaxed);
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 40%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem 1rem;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
}

.cta-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: var(--line-height-relaxed);
}

/* ===========================================
   IMPROVED NAV LINKS
   =========================================== */
.nav-link {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-gray-600);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary-600);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary-600);
}

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

/* ===========================================
   BADGES
   =========================================== */
.badge-primary {
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-primary-100));
    color: var(--color-primary-700);
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-primary-200);
    transition: all var(--transition-base);
}

.badge-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-200));
    transform: translateY(-1px);
}

/* ===========================================
   IMPROVED READABILITY FOR PROSE
   =========================================== */
.prose {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    color: var(--color-gray-700);
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.prose h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ===========================================
   RESPONSIVE IMPROVEMENTS
   =========================================== */
@media (max-width: 768px) {
    :root {
        --section-spacing: 3.5rem;
    }

    .hero-section {
        min-height: 70vh;
    }

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

    .stat-item::after {
        display: none;
    }

    .card-enhanced {
        padding: 1.5rem;
    }

    .footer-enhanced {
        text-align: center;
    }

    .footer-enhanced a:hover {
        transform: none;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .card-enhanced {
        border: 2px solid var(--color-gray-800);
    }

    .btn-outline {
        border-width: 3px;
    }
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary-500);
    outline-offset: 3px;
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    .hero-section {
        min-height: auto;
        background: white !important;
        color: black !important;
    }

    .section-dark {
        background: white !important;
        color: black !important;
    }

    .btn {
        border: 1px solid black;
        background: white !important;
        color: black !important;
    }
}

/* ===========================================
   ADDITIONAL FIXES & POLISH
   =========================================== */

/* Ensure hero section displays correctly */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Better stats section positioning */
.stats-section {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

/* Ensure cards have proper display */
.card-enhanced {
    display: block;
    text-decoration: none;
}

a.card-enhanced:hover {
    text-decoration: none;
}

/* Fix potential hero content z-index issues */
.hero-section > * {
    position: relative;
    z-index: 2;
}

/* Improved text visibility in dark sections */
.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

/* Better mobile card spacing */
@media (max-width: 640px) {
    .card-industry {
        flex-direction: column;
        text-align: center;
    }

    .card-industry .card-icon {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }
}

/* Ensure SVG icons render correctly */
.card-icon svg,
.usp-icon svg,
.footer-contact-item svg {
    display: block;
    flex-shrink: 0;
}

/* Fix button alignment */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

/* Link text decoration removal */
a.card-enhanced,
a.badge-primary {
    text-decoration: none;
}

a.card-enhanced:hover,
a.badge-primary:hover {
    text-decoration: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better link hover states */
a:not(.btn):not(.card-enhanced):not(.badge-primary) {
    transition: color var(--transition-base);
}

/* Service area map styling */
.service-area-map {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Fix for lg:flex layout */
@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }

    .lg\:items-center {
        align-items: center;
    }

    .lg\:gap-20 {
        gap: 5rem;
    }

    .lg\:w-1\/2 {
        width: 50%;
    }

    .lg\:mb-0 {
        margin-bottom: 0;
    }
}

/* ===========================================
   FOOTER EMAIL FIX
   =========================================== */
.footer-email {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

/* ===========================================
   ENHANCED HEADER STYLING
   =========================================== */

/* Main header container */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Top bar enhancement */
header .bg-gray-900 {
    background: linear-gradient(90deg, var(--color-gray-900) 0%, #1a365d 100%);
}

/* Logo styling */
header a[aria-label="Zur Startseite"] span,
.header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

header a[aria-label="Zur Startseite"] span .text-primary-600,
.header-logo .text-primary-600 {
    color: var(--color-primary-600);
    font-weight: 800;
}

/* Navigation enhancement */
header nav {
    position: relative;
}

/* Nav links improved */
header .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-600);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-base);
}

header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-primary-400));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    border-radius: 1px;
}

header .nav-link:hover {
    color: var(--color-primary-600);
}

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

/* CTA buttons in header */
header .btn-outline {
    border-color: var(--color-gray-300);
    color: var(--color-gray-700);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

header .btn-outline:hover {
    border-color: var(--color-primary-600);
    color: var(--color-primary-600);
    background: var(--color-primary-50);
}

header .btn-primary.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    box-shadow: 0 2px 8px rgba(0, 104, 206, 0.25);
}

header .btn-primary.btn-sm:hover {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    box-shadow: 0 4px 12px rgba(0, 104, 206, 0.35);
    transform: translateY(-1px);
}

/* Top bar contact links */
header .bg-gray-900 a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-base);
}

header .bg-gray-900 a:hover {
    color: var(--color-primary-300);
}

header .bg-gray-900 svg {
    width: 1rem;
    height: 1rem;
    opacity: 0.8;
}

/* Service area text */
header .text-gray-400 {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 400;
}

/* Mobile menu button */
header #mobile-menu-button {
    padding: 0.625rem;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
}

header #mobile-menu-button:hover {
    background: var(--color-gray-100);
}

/* Mobile menu panel */
header #mobile-menu {
    background: white;
    border-top: 1px solid var(--color-gray-100);
}

header #mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
}

header #mobile-menu a:hover {
    background: var(--color-primary-50);
    color: var(--color-primary-600);
}

/* Sticky header shadow on scroll (can be enhanced with JS) */
header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Logo icon/badge */
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    border-radius: 0.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.logo-badge svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}
