/* ============================================
   ChinaMedTours - Professional Medical Tourism Styles
   Theme: Medical Blue (#007AFF) & Minimalist
   Version: 2.0
   ============================================ */

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

/* ============================================
   1. CSS Variables - Design System
   ============================================ */
:root {
    /* Color Palette - ChinaMed Waypoint Theme */
    --primary-color: #11a89d;
    /* Teal/Emerald Green - Primary Brand Color */
    --primary-dark: #0d8a80;
    /* Darker teal for hover */
    --primary-light: #4fd1c5;
    /* Lighter teal for accents */
    --primary-faded: rgba(17, 168, 157, 0.1);

    --secondary-color: #111827;
    /* Dark Gray/Black - Secondary/Headings */
    --secondary-dark: #000000;
    --secondary-faded: rgba(17, 24, 39, 0.05);

    --bg-white: #FFFFFF;
    /* Pure White */
    --bg-surface: #F9FAFB;
    /* Very Light Gray - Section Backgrounds */
    --bg-alt: #ECFDF5;
    /* Light Mint Tint - Accents */
    --bg-dark: #111827;
    /* Dark Gray for Footer */

    --text-main: #111827;
    /* Deep Black/Gray for Headings */
    --text-body: #4B5563;
    /* Medium Gray for Body Text */
    --text-muted: #9CA3AF;
    /* Light Gray for secondary text */
    --text-white: #FFFFFF;

    --border-color: #E5E7EB;
    --border-light: #F3F4F6;

    /* Shadows - Soft & Modern */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    /* Consistent font family */

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

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */

    /* Border Radius */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* Layout */
    --container-width: 1280px;
    /* Slightly wider */
    --container-padding: var(--space-6);
    --nav-height: 80px;
}

/* ============================================
   2. Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--text-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   3. Layout Utilities
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Flexbox */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

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

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* Grid */
.grid {
    display: grid;
}

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

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

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

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

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Spacing */
.py-1 {
    padding-top: var(--space-1);
    padding-bottom: var(--space-1);
}

.py-2 {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

.py-3 {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

.py-4 {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.py-6 {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.py-10 {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
}

.py-12 {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.py-20 {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.px-1 {
    padding-left: var(--space-1);
    padding-right: var(--space-1);
}

.px-4 {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.px-6 {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.mt-16 {
    margin-top: var(--space-16);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.ml-2 {
    margin-left: var(--space-2);
}

.ml-4 {
    margin-left: var(--space-4);
}

.ml-6 {
    margin-left: var(--space-6);
}

.mr-2 {
    margin-right: var(--space-2);
}

.mr-4 {
    margin-right: var(--space-4);
}

.mr-6 {
    margin-right: var(--space-6);
}

/* Text Alignment */
.text-center {
    text-align: center;
}

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

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

/* Text Colors */
.text-primary {
    color: var(--primary-color);
}

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

.text-white {
    color: var(--text-white);
}

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

.text-body {
    color: var(--text-body);
}

/* Font Weights */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Font Sizes */
.text-sm {
    font-size: var(--text-sm);
}

.text-base {
    font-size: var(--text-base);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.text-3xl {
    font-size: var(--text-3xl);
}

/* Backgrounds */
.bg-white {
    background-color: var(--bg-white);
}

.bg-surface {
    background-color: var(--bg-surface);
}

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

.bg-primary {
    background-color: var(--primary-color);
}

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

.bg-dark {
    background-color: var(--bg-dark);
}

/* ============================================
   4. Button Components
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: var(--text-base);
    white-space: nowrap;
}

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

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--secondary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--bg-alt);
    transform: translateY(-1px);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-full {
    width: 100%;
}

/* ============================================
   5. Navbar
   ============================================ */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-xs);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-links a {
    color: var(--text-body);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: var(--primary-faded);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

/* Specific styling for the CTA button in navbar */
.nav-links .btn-primary {
    color: var(--text-white) !important;
    background-color: var(--primary-color);
}

.nav-links .btn-primary:hover {
    color: #11A89D !important;
    background-color: var(--bg-white);
    border: 1px solid #11A89D;
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-body);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-surface);
}

/* 国旗图标样式优化 (适配 flag-icons) */
.lang-btn .fi,
.lang-dropdown a .fi {
    font-size: 1.25em;
    /* 调整图标大小 */
    line-height: 1;
    border-radius: 2px;
    /* 稍微加点圆角更美观 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* 添加轻微阴影增加质感 */
}

/* 覆盖 flag-icons 的一些默认行为以确保对齐 */
.fi {
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-body);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

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

.lang-dropdown a:hover {
    background: var(--primary-faded);
    color: var(--primary-color);
}

.lang-dropdown a.active {
    background: var(--primary-faded);
    color: var(--primary-color);
    font-weight: 600;
}

/* 为下拉列表中的语言项添加更好的视觉效果 */
.lang-dropdown a span:last-child {
    flex: 1;
}

/* RTL Support */
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .ml-4 {
    margin-left: 0;
    margin-right: var(--space-4);
}

@media (max-width: 768px) {
    .lang-selector {
        margin: var(--space-2) 0;
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }

    .lang-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   6. Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-20) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-faded) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-faded) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--text-5xl);
    color: var(--text-main);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.hero p {
    font-size: var(--text-xl);
    color: var(--text-body);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   7. Card Components
   ============================================ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    color: var(--primary-color);
    display: inline-block;
}

.card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.card p {
    color: var(--text-body);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-color);
    font-weight: 600;
    margin-top: var(--space-4);
    transition: gap 0.2s ease;
}

.card-link:hover {
    gap: var(--space-3);
}

/* Service Card */
.service-card {
    text-align: center;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: 2rem;
    color: var(--primary-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-20);
    padding-left: var(--space-20);
    padding-right: var(--space-20);
}

.stat-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   8. Testimonial Section
   ============================================ */
.testimonial-section {
    background-color: var(--bg-surface);
    padding: var(--space-16) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-author {
    flex: 1;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: var(--text-base);
    font-weight: 600;
}

.testimonial-author span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.testimonial-content {
    color: var(--text-body);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-top: var(--space-4);
    color: #FFC107;
}

.video-testimonials {
    text-align: center;
    margin-top: var(--space-12);
}

/* ============================================
   9. Compliance Section
   ============================================ */
.compliance-section {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-12) 0;
}

.compliance-section h2 {
    color: var(--text-white);
    margin-bottom: var(--space-8);
    text-align: center;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.compliance-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.3s ease;
}

.compliance-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.compliance-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.compliance-card h3 {
    color: var(--text-white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.compliance-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.compliance-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-10);
}

.compliance-links a {
    color: var(--primary-light);
    text-decoration: underline;
    font-size: var(--text-sm);
}

.compliance-links a:hover {
    color: var(--primary-color);
}

/* ============================================
   10. Forms
   ============================================ */
.form-section {
    background-color: var(--bg-surface);
    padding: var(--space-16) 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all 0.2s;
    font-family: var(--font-sans);
    background-color: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-faded);
}

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

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

/* Form Validation */
.form-control.is-invalid {
    border-color: #EF4444;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid {
    border-color: var(--secondary-color);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px var(--secondary-faded);
}

.form-feedback {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
}

.form-feedback.invalid {
    color: #EF4444;
}

.form-feedback.valid {
    color: var(--secondary-color);
}

.form-text {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   11. Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    background: none;
    border: none;
}

.modal-close:hover {
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-faded);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: 2rem;
    color: var(--secondary-color);
}

.modal-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    color: var(--text-main);
}

.modal-message {
    color: var(--text-body);
    margin-bottom: var(--space-6);
}

/* ============================================
   12. Footer
   ============================================ */
footer {
    background-color: var(--bg-dark);
    color: var(--bg-surface);
    padding: var(--space-12) 0 var(--space-8);
}

footer h3 {
    color: var(--text-white);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
    font-weight: 600;
}

footer p {
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

footer a {
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    display: block;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--text-white);
}

footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.footer-social a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--text-white);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* ============================================
   13. Section Styles
   ============================================ */
.section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-header p {
    color: var(--text-body);
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   14. Responsive Design
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
    }

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .hero p {
        font-size: var(--text-lg);
    }

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

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

/* Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
        --container-padding: var(--space-3);
    }

    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

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

    /* Mobile Nav */
    .navbar .container {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        padding: var(--space-3);
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
    }

    .nav-links a.active::after {
        display: none;
    }

    .lang-selector {
        margin-top: var(--space-4);
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: var(--space-12) 0;
    }

    .hero h1 {
        font-size: var(--text-2xl);
    }

    .hero p {
        font-size: var(--text-base);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Grid */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5 {
        grid-template-columns: 1fr;
    }

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

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

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

    /* Section Padding */
    .section {
        padding: var(--space-10) 0;
    }

    .compliance-section {
        padding: var(--space-10) 0;
    }

    /* Cards */
    .card {
        padding: var(--space-6);
    }

    .service-card {
        padding: var(--space-5);
    }

    /* Form */
    .form-container {
        padding: var(--space-6);
    }

    /* Modal */
    .modal-content {
        padding: var(--space-6);
    }
}

/* Large Desktop (> 1440px) */
@media (min-width: 1440px) {
    :root {
        --container-width: 1400px;
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }
}

/* ============================================
   15. Utility Classes
   ============================================ */
.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

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

.hidden {
    display: none !important;
}

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   16. Animations
   ============================================ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-5%);
    }

    50% {
        transform: translateY(0);
    }
}

.bounce {
    animation: bounce 2s infinite;
}