/*
Theme Name: STK Katanga
Theme URI: https://stk-katanga.com
Author: STK Katanga Business SARL
Description: Modern, professional theme for STK Katanga Business - Congo Africa Opportunity. Features bilingual support (French/English), minimalist design, and responsive layout.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stk-katanga
Tags: business, corporate, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ========================================
   CSS Variables - Modern Dark Theme
   ======================================== */
:root {
    /* Primary Colors - Dark Navy Theme */
    --color-primary: #0a1628;
    --color-secondary: #132240;
    --color-tertiary: #1a2d4a;

    /* Accent Colors - Gold */
    --color-accent: #d4af37;
    --color-accent-hover: #e6c555;
    --color-accent-dark: #b8972e;

    /* DRC Flag Colors */
    --color-drc-blue: #007fff;
    --color-drc-red: #ce1126;
    --color-drc-yellow: #f7d618;

    /* Neutrals */
    --color-white: #ffffff;
    --color-light: #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 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 350ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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);
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

ul, ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-lg {
    max-width: 1400px;
}

.container-sm {
    max-width: 800px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    display: none;
}

@media (min-width: 768px) {
    .site-logo-text {
        display: block;
    }
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-2) 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--color-white);
}

.lang-btn.active {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-fast);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    padding: var(--space-6);
    z-index: 999;
}

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

.mobile-menu .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu .nav-menu a {
    display: block;
    padding: var(--space-4) 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(80px + var(--space-16)) 0 var(--space-16);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-tertiary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 127, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    color: var(--color-white);
}

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

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

.section-light {
    background: var(--color-light);
    color: var(--color-gray-800);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--color-gray-900);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

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

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin: 0;
}

.section-light .section-subtitle {
    color: var(--color-gray-500);
}

/* ========================================
   Feature Cards
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.feature-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   Locations Section
   ======================================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

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

.location-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.location-card:hover img {
    transform: scale(1.05);
}

.location-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
}

.location-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.location-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-content h2 {
    margin-bottom: var(--space-4);
}

.about-text {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

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

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

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

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

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

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: var(--space-1);
}

.contact-details p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--color-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand img {
    height: 60px;
    margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
    .footer-brand img {
        margin: 0 auto var(--space-4);
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.footer-tagline {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: var(--space-2);
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

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

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* ========================================
   Language Toggle System
   ======================================== */
[data-lang] {
    display: none;
}

[data-lang="en"] {
    display: block;
}

body.lang-fr [data-lang="en"] {
    display: none;
}

body.lang-fr [data-lang="fr"] {
    display: block;
}

/* Inline elements */
span[data-lang],
a[data-lang],
p[data-lang],
h1[data-lang],
h2[data-lang],
h3[data-lang],
h4[data-lang],
li[data-lang],
label[data-lang],
option[data-lang] {
    display: none;
}

span[data-lang="en"],
a[data-lang="en"],
p[data-lang="en"],
h1[data-lang="en"],
h2[data-lang="en"],
h3[data-lang="en"],
h4[data-lang="en"],
li[data-lang="en"],
label[data-lang="en"],
option[data-lang="en"] {
    display: inline;
}

p[data-lang="en"],
h1[data-lang="en"],
h2[data-lang="en"],
h3[data-lang="en"],
h4[data-lang="en"],
li[data-lang="en"] {
    display: block;
}

body.lang-fr span[data-lang="en"],
body.lang-fr a[data-lang="en"],
body.lang-fr p[data-lang="en"],
body.lang-fr h1[data-lang="en"],
body.lang-fr h2[data-lang="en"],
body.lang-fr h3[data-lang="en"],
body.lang-fr h4[data-lang="en"],
body.lang-fr li[data-lang="en"],
body.lang-fr label[data-lang="en"],
body.lang-fr option[data-lang="en"] {
    display: none;
}

body.lang-fr span[data-lang="fr"],
body.lang-fr a[data-lang="fr"],
body.lang-fr p[data-lang="fr"],
body.lang-fr h1[data-lang="fr"],
body.lang-fr h2[data-lang="fr"],
body.lang-fr h3[data-lang="fr"],
body.lang-fr h4[data-lang="fr"],
body.lang-fr li[data-lang="fr"],
body.lang-fr label[data-lang="fr"],
body.lang-fr option[data-lang="fr"] {
    display: inline;
}

body.lang-fr p[data-lang="fr"],
body.lang-fr h1[data-lang="fr"],
body.lang-fr h2[data-lang="fr"],
body.lang-fr h3[data-lang="fr"],
body.lang-fr h4[data-lang="fr"],
body.lang-fr li[data-lang="fr"] {
    display: block;
}

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

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

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

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--color-accent); }
.text-muted { color: rgba(255, 255, 255, 0.6); }

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

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

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

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

/* ========================================
   Mobile Responsive Enhancements
   ======================================== */

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Header Mobile */
    .header-inner {
        height: 70px;
    }

    .site-logo img {
        height: 40px;
    }

    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: var(--space-1) var(--space-3);
        font-size: 0.75rem;
    }

    /* Hero Mobile */
    .hero {
        padding: calc(70px + var(--space-8)) 0 var(--space-8);
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-1) var(--space-3);
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-4);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--space-6);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections Mobile */
    .section {
        padding: var(--space-12) 0;
    }

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

    .section-badge {
        font-size: 0.7rem;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .feature-card {
        padding: var(--space-6);
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-text {
        font-size: 0.875rem;
    }

    /* Locations Mobile */
    .location-card {
        aspect-ratio: 4/3;
    }

    .location-overlay {
        padding: var(--space-4);
    }

    .location-name {
        font-size: 1.25rem;
    }

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

    /* About Mobile */
    .about-grid {
        gap: var(--space-6);
    }

    .about-image {
        order: -1;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .stat-item {
        padding: var(--space-4);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Contact Mobile */
    .contact-form {
        padding: var(--space-5);
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        padding: var(--space-3);
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .form-group textarea {
        min-height: 100px;
    }

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

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .contact-details h4 {
        font-size: 0.9rem;
    }

    .contact-details p {
        font-size: 0.85rem;
    }

    /* Footer Mobile */
    .site-footer {
        padding: var(--space-10) 0 var(--space-6);
    }

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

    .footer-brand img {
        height: 50px;
    }

    .footer-title {
        font-size: 0.85rem;
        margin-bottom: var(--space-3);
    }

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

    .footer-menu li {
        margin-bottom: var(--space-2);
    }

    .footer-menu a {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.65);
    }

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

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Small devices (phones landscape, tablets portrait, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 var(--space-5);
    }

    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-12)) 0 var(--space-12);
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

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

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

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

/* Medium devices (tablets, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }

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

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

/* Mobile Menu Animations */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile menu toggle animation */
.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Touch-friendly buttons - minimum 44px touch target */
@media (max-width: 1024px) {
    .btn {
        min-height: 44px;
        padding: var(--space-3) var(--space-5);
    }

    .btn-lg {
        min-height: 48px;
        padding: var(--space-4) var(--space-6);
    }

    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .lang-btn {
        min-height: 36px;
        min-width: 36px;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Improve scrolling on iOS */
.mobile-menu {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

/* Fix for position fixed on iOS */
.site-header {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Better tap highlighting on mobile */
@media (max-width: 1024px) {
    a, button {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(70px + var(--space-6)) 0 var(--space-6);
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-4);
    }

    .mobile-menu {
        max-height: calc(100vh - 70px);
    }
}

/* Print styles */
@media print {
    .site-header,
    .mobile-menu,
    .lang-switcher,
    .menu-toggle,
    .hero-buttons {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}
