/* --- MODERN DESIGN SYSTEM (SayWhere) --- */
:root {
    --background: #fefcf9; /* Soft cream */
    --foreground: #0f172a; /* Slate 900 */
    
    --primary: #1c7d71; /* Teal */
    --primary-foreground: #ffffff;
    
    --secondary: #f59e0b; /* Orange/Amber */
    --secondary-foreground: #ffffff;
    
    --accent: #e0f2f1; /* Light teal */
    --accent-foreground: #004d40;
    
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    
    --border: #e2e8f0;
    --radius: 1.25rem;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    
    --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);
}

/* --- BASE STYLES --- */
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(254, 252, 249, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--foreground) !important;
}

.language-picker {
    border: 1px solid var(--border);
    background-color: transparent;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SEARCH CARD --- */
.search-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.search-input-group {
    position: relative;
    background: var(--muted);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-input-group i {
    color: var(--muted-foreground);
}

.search-input, .search-select {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--foreground);
}

/* --- STATS SECTION --- */
.stats-section {
    background: white;
    border-bottom: 1px solid var(--border);
}

/* --- CARDS --- */
.provider-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.provider-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.provider-card:hover .category-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.badge-lang {
    background: var(--muted);
    color: var(--muted-foreground);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
}

.description-text {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #145e55;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(28, 125, 113, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--foreground);
    color: white;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* --- MODALS --- */
.modal-content {
    border-radius: 1.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(28, 125, 113, 0.1);
}

/* --- UTILS --- */
.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* Footer Credit Utility Classes */
.text-xs {
    font-size: 0.75rem;
}

.text-background-40 {
    color: rgba(254, 252, 249, 0.4);
}

.hover-text-background:hover {
    color: var(--background) !important;
}

.transition-colors {
    transition: all 0.3s ease;
}