﻿:root {
    --bg: #ffffff;
    --fg: #0b0f12;
    --muted: #5f6b76;
    --accent: #3bcbeb;
    --card: #ffffff;
    --line: #e8edf1;
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 14px;
    --header-h: 64px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    padding-top: var(--header-h);
    overflow-x: hidden; /* prevent horizontal scroll issues esp. RTL on mobile */
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    min-height: var(--header-h);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Mobile menu toggle (hidden by default, shown via media query) */
.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

    .menu-toggle .bar {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--fg);
    }

.links {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .links::-webkit-scrollbar {
        display: none;
    }

    .links a {
        color: var(--muted);
        text-decoration: none;
        font-weight: 600;
        padding: 6px 8px;
        border-radius: 8px;
        transition: color .2s ease, background .2s ease;
    }

        .links a:hover {
            color: var(--accent);
            background: rgba(59,203,235,0.08);
        }

.brand-mini .logo-stack.mini .lyon {
    font-size: 18px;
}

.brand-mini .logo-stack.mini .company {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-sep {
    color: var(--muted);
    opacity: 0.7;
}

.lang-btn {
    background: transparent;
    color: var(--fg);
    border: 1px solid transparent;
    padding: 6px 10px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all .2s ease;
    font-weight: 600;
}

    .lang-btn:hover {
        color: var(--accent);
    }

    .lang-btn.active {
        border-color: var(--accent);
        color: var(--accent);
    }

/* Hero */
.hero {
    background: radial-gradient(1200px 600px at 50% -10%, rgba(59,203,235,0.15), rgba(255,255,255,0)) no-repeat, var(--bg);
    padding: 80px 0 70px;
    text-align: center;
}

.hero-inner {
    display: grid;
    place-items: center;
    gap: 20px;
}

.logo-stack {
    display: grid;
    place-items: center;
    gap: 8px;
}

.logo-text {
    display: grid;
    place-items: center;
    line-height: 1;
}

.lyon {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 4px;
    font-size: clamp(40px, 8vw, 84px);
}

.company {
    text-transform: lowercase;
    color: #2b2f33;
    font-weight: 600;
    letter-spacing: 4px;
    font-size: clamp(10px, 2vw, 16px);
    opacity: 0.9;
}

.barcode {
    display: flex;
    gap: 4px;
    height: 28px;
    align-items: end;
}

    .barcode span {
        display: inline-block;
        width: 3px;
        background: linear-gradient(180deg, rgba(59,203,235,0.7), rgba(59,203,235,0.2));
        border-radius: 2px;
    }

        .barcode span:nth-child(odd) {
            height: 60%;
        }

        .barcode span:nth-child(even) {
            height: 100%;
        }

.headline {
    font-size: clamp(22px, 4vw, 36px);
    margin: 8px 0 4px;
}

.subtext {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
}

.cta {
    display: inline-block;
    margin-top: 14px;
    background: var(--accent);
    color: #001016;
    text-decoration: none;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 9999px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 8px 20px rgba(59,203,235,0.25);
}

    .cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(59,203,235,0.35);
    }

    .cta.wide {
        width: 100%;
        text-align: center;
    }

/* Sections */
.section {
    padding: 64px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 8px);
}

.hero {
    scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-title {
    font-size: 28px;
    margin: 0 0 12px;
}

.section-text {
    color: var(--muted);
    margin: 0;
}

.section-sub {
    margin: 18px 0 8px;
    font-size: 20px;
}

/* Cards */
.cards {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.card {
    grid-column: span 12;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

    .card:hover {
        transform: translateY(-2px);
        border-color: rgba(59,203,235,0.4);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    .card.highlight {
        border-color: rgba(59,203,235,0.5);
        box-shadow: 0 16px 36px rgba(59,203,235,0.18);
    }

.icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #e8f7fb;
    border: 1px solid rgba(59,203,235,0.35);
    border-radius: 12px;
    margin-bottom: 10px;
}

.card-title {
    margin: 4px 0 6px;
    font-size: 18px;
}

.card-text {
    margin: 0;
    color: var(--muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

    .field label {
        font-weight: 600;
    }

    .field input, .field textarea {
        background: #ffffff;
        color: var(--fg);
        border: 1px solid var(--line);
        outline: none;
        padding: 12px 14px;
        border-radius: 12px;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .field input::placeholder, .field textarea::placeholder {
            color: #a0a7ad;
        }

        .field input:focus, .field textarea:focus {
            border-color: rgba(59,203,235,0.7);
            box-shadow: 0 0 0 4px rgba(59,203,235,0.18);
        }

.contact-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.wa-btn {
    text-decoration: none;
    background: #d9f5fc;
    color: #064f5f;
    border: 1px solid rgba(59,203,235,0.35);
    padding: 10px 14px;
    border-radius: 10px;
    transition: all .2s ease;
}

    .wa-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.socials {
    display: flex;
    gap: 8px;
}

.social {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    transition: all .2s ease;
    background: #ffffff;
}

    .social:hover {
        color: var(--accent);
        border-color: rgba(59,203,235,0.4);
    }

.contact-aside {
    position: sticky;
    top: 76px;
}

.aside-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

    .aside-card h3 {
        margin: 0 0 8px;
    }

    .aside-card ul {
        margin: 0;
        padding-left: 18px;
        color: var(--muted);
    }

    .aside-card .contacts {
        margin-top: 8px;
        display: grid;
        gap: 10px;
        padding-left: 0;
        list-style: none;
    }

.divider {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 14px 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    background: #fafcfd;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--muted);
        text-decoration: none;
        border: 1px solid var(--line);
        padding: 6px 10px;
        border-radius: 999px;
        transition: all .2s ease;
    }

        .footer-links a:hover {
            color: var(--accent);
            border-color: rgba(59,203,235,0.4);
            background: rgba(59,203,235,0.06);
        }

.accent {
    color: var(--accent);
    font-weight: 700;
}

/* Direction-aware tweaks */
html[dir="rtl"] body {
    font-family: system-ui, Segoe UI, Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .container {
    direction: rtl;
}

html[dir="rtl"] .contact-grid {
    grid-template-columns: 1fr 1.1fr;
}

html[dir="rtl"] .aside-card ul {
    padding-left: 0;
    padding-right: 18px;
}

html[dir="rtl"] .links {
    direction: rtl;
}


/* Responsive */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-aside {
        position: static;
        margin-top: 16px;
    }
}

/* Ensure RTL also stacks on mobile (override the RTL two-column rule) */
@media (max-width: 960px) {
    html[dir="rtl"] .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .card {
        grid-column: span 6;
    }

        .card.highlight {
            grid-column: span 12;
        }
}

@media (min-width: 960px) {
    .card {
        grid-column: span 4;
    }

        .card.highlight {
            grid-column: span 8;
        }
}

/* Helpers / new layouts */
.list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

@media (min-width: 800px) {
    .list-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.fancy-list {
    margin: 0;
    padding-left: 18px;
}

    .fancy-list li {
        margin: 8px 0;
    }

.text-columns {
    display: grid;
    gap: 12px;
}

@media (min-width: 800px) {
    .text-columns {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.chips {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: #eef9fd;
    border: 1px solid var(--line);
    color: #11343b;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.features {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

@media (min-width: 780px) {
    .features {
        grid-template-columns: repeat(3,1fr);
    }
}

.feature {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 28px;
}

.feature-text {
    color: var(--muted);
    font-weight: 700;
}

.split {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1.2fr 1fr;
    }
}

.location-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

@media (min-width: 700px) {
    .location-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

.location-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

    .location-card:hover {
        transform: translateY(-2px);
        border-color: rgba(59,203,235,0.35);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

.location-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f7f9;
}

.location-caption {
    padding: 10px 12px;
    color: var(--fg);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.gallery {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

@media (min-width: 900px) {
    .gallery {
        grid-template-columns: repeat(3,1fr);
    }
}

/* Very small phones */
@media (max-width: 420px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }
}

.gallery .ph {
    background: #f5fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    height: 180px;
}

    .gallery .ph.wide {
        grid-column: span 2;
        height: 220px;
    }

a {
    color: #3bcbeb;
    text-decoration: none;
}

.logo-image {
    width: min(260px, 80vw);
    height: auto;
    box-shadow: 0 0 15px 0 #3bcbeb;
    border-radius: 10px;
    border: 1px solid #3bcbeb;
}

.our-team-wide {
    background-size: cover !important;
    background-position-y: center !important;
}

.our-team {
    background-image: url(images/Our-Team-02.png) !important;
    background-size: cover !important;
    background-position-y: center !important;
}

.login-btn {
    margin-left: 4px;
    background: var(--accent);
    color: #001016;
    text-decoration: none;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 9999px;
    box-shadow: 0 6px 16px rgba(59,203,235,0.25);
    transition: transform .15s ease, box-shadow .2s ease;
}

    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(59,203,235,0.35);
    }

.auth-form {
    max-width: 440px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Mobile header behavior */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    /* Collapse links into dropdown */
    .links {
        position: absolute;
        top: calc(var(--header-h) - 2px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px;
        gap: 4px;
        z-index: 60;
        overflow: visible;
    }

        .links.open {
            display: flex;
        }

        .links a {
            padding: 10px 12px;
            border-radius: 8px;
        }

    .header-right {
        gap: 10px;
    }
}
