/* ============================================================
   GoLocal – style4.css   (matching design reference)
   ============================================================ */

/* ── Variables ── */
:root {
    --gl-primary: #66754c;
    --gl-primary-dark: #4a5e34;
    --gl-primary-light: rgba(102, 117, 76, 0.12);
    --gl-bg: #f7f7f2;
    --gl-bg-alt: #f2f1eb;
    --gl-white: #ffffff;
    --gl-text: black;
    --gl-text-muted: #6b6b5e;
    --gl-footer-bg: #5a6844;
    --gl-border: rgba(102, 117, 76, 0.18);
    --gl-radius: 12px;
    --gl-shadow: 0 4px 32px rgba(80, 92, 56, 0.1);
    --gl-transition: 0.3s ease;
    --font-serif: "Playfair Display", "Georgia", serif;
    --font-sans: "Sen", "Helvetica Neue", sans-serif;
    --font-ar: "Calibri", "Segoe UI", Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--gl-bg);
    color: var(--gl-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.lang-ar {
    direction: rtl;
    font-family: var(--font-ar);
}

body.lang-en {
    direction: ltr;
    font-family: var(--font-sans);
}

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

/* ── Container ── */
.gl-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Scroll-reveal ── */
.gl-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.gl-slide-in-right {
    opacity: 0;
    transform: translateX(44px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.lang-ar .gl-slide-in-right {
    transform: translateX(-44px);
}

.gl-fade-in.visible,
.gl-slide-in-right.visible {
    opacity: 1;
    transform: none;
}

/* ── Section header ── */
.gl-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.gl-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.5vw, 2.7rem);
    font-weight: 700;
    color: var(--gl-text);
    /* margin-bottom: 14px; */
    margin-bottom: 0.8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.gl-section-title::after {
    content: "";
    display: block;
    width: 95px;
    height: 3px;
    background-color: var(--gl-primary);
    border-radius: 2px;
    margin: 12px auto 0;
}

.gl-section-header .gl-section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gl-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.lang-ar .gl-section-header .gl-section-subtitle {
    font-family: var(--font-ar);
    letter-spacing: 0.04em;
}

.gl-divider {
    width: 56px;
    height: 3px;
    background-color: var(--gl-primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.gl-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--gl-bg);
    border-bottom: 1px solid transparent;
    transition:
        border-color var(--gl-transition),
        box-shadow var(--gl-transition),
        background-color var(--gl-transition);
}

.gl-navbar.scrolled {
    background-color: rgba(247, 247, 242, 0.97);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--gl-border);
    box-shadow: 0 2px 18px rgba(80, 92, 56, 0.07);
}

.gl-navbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo – positioned at the end (right in LTR, left in RTL) */
.gl-logo {
    text-decoration: none;
    flex-shrink: 0;
    margin-left: auto;
}

.lang-ar .gl-logo {
    margin-left: 0;
    margin-right: auto;
}

.gl-logo img {
    height: 32px;
    width: auto;
}

/* Nav links (desktop) */
.gl-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gl-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gl-text-muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 7px;
    transition:
        color var(--gl-transition),
        background-color var(--gl-transition);
    white-space: nowrap;
}

.gl-nav-link:hover {
    color: var(--gl-primary);
    background-color: var(--gl-primary-light);
}

/* Language toggle */
.gl-lang-toggle {
    display: flex;
    align-items: center;
    border: 1px solid #c5c5b8;
    border-radius: 28px;
    padding: 3px;
    flex-shrink: 0;
    direction: ltr;
}

.gl-lang-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gl-primary);
    padding: 7px 20px;
    line-height: 1;
    min-width: 85px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 24px;
    transition:
        background-color var(--gl-transition),
        color var(--gl-transition);
}

.gl-lang-btn.active {
    background-color: var(--gl-primary);
    color: #fff;
}

.gl-lang-btn:hover:not(.active) {
    background-color: rgba(107, 120, 78, 0.08);
}

/* Hamburger – positioned at the start (left in LTR, right in RTL) */
.gl-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.gl-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--gl-text);
    border-radius: 2px;
    transition:
        transform var(--gl-transition),
        opacity var(--gl-transition);
}

.gl-hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.gl-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.gl-hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.gl-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--gl-bg);
    border-top: 1px solid var(--gl-border);
    padding: 20px 28px 28px;
    box-shadow: 0 10px 28px rgba(80, 92, 56, 0.1);
    z-index: 999;
}

.gl-mobile-menu.open {
    display: block;
}

.gl-mobile-menu ul {
    list-style: none;
}

.gl-mobile-menu ul li {
    border-bottom: 1px solid var(--gl-border);
}

.gl-mobile-menu ul li:last-child {
    border-bottom: none;
}

.gl-mobile-menu ul a {
    display: block;
    padding: 13px 4px;
    color: var(--gl-text);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--gl-transition);
}

.gl-mobile-menu ul a:hover {
    color: var(--gl-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.gl-hero {
    padding: 32px 0 24px;
    background-color: var(--gl-bg);
    overflow: hidden;
}

.gl-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

/* RTL hero: phone first (visually on left = start in RTL) */
.lang-ar .gl-hero-content {
    direction: rtl;
}

.gl-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gl-text);
    margin-bottom: 22px;
}

.gl-accent {
    color: var(--gl-primary);
    font-style: italic;
    display: inline;
}

.gl-typewriter-cursor {
    display: inline-block;
    color: var(--gl-primary);
    font-weight: 300;
    margin: 0;
    width: 0;
    overflow: visible;
    animation: gl-blink 0.8s step-end infinite;
    transition: opacity 0.6s ease;
}

@keyframes gl-blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.gl-hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gl-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gl-hero-subtitle {
    font-size: 1.05rem;
    color: var(--gl-text-muted);
    max-width: 440px;
    margin-bottom: 32px;
    line-height: 1.78;
    margin: 2px;
}

.lang-ar .gl-hero-subtitle {
    max-width: unset;
    margin: 0px;
    line-height: 1.1;
}

.gl-download-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gl-text);
    /* margin-bottom: 14px; */
    margin-top: 14px;
}

/* Store badges */
.gl-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.gl-badge-link {
    display: inline-block;
    transition:
        transform var(--gl-transition),
        opacity var(--gl-transition);
}

.gl-badge-link:hover {
    transform: scale(1.04);
    opacity: 0.88;
}

.gl-badge-img {
    width: 160px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

/* Phone mockup */
.gl-hero-phone {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    background-color: var(--gl-bg);
    isolation: isolate;
}

.gl-phone-bg-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    max-width: 90vw;
    max-height: 90vw;
    background-color: #e8dfc8;
    border-radius: 50%;
    z-index: 0;
}

.gl-phone-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(80, 92, 56, 0.2));
}

video.gl-phone-img {
    object-fit: contain;
    filter: brightness(1.08) contrast(1.4);
    mix-blend-mode: multiply;
    width: 340px;
    height: 340px;
    max-width: 80vw;
    border-radius: 0;
    will-change: contents;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gl-hero-brand-name {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #4a5e34;
    letter-spacing: 0.08em;
    margin-top: 10px;
    opacity: 0;
    animation: gl-brandFadeIn 1.2s ease forwards;
}

@keyframes gl-brandFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================
   OUR MISSION
   ============================================================ */
.gl-mission {
    padding: 40px 0;
    background-color: var(--gl-bg);
    overflow-x: hidden;
}

.gl-mission-content {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}

.gl-mission-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    padding-top: 0;
    margin-top: 0;
}

.gl-mission-phone {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gl-phone-bg-circle--sm {
    display: none;
}

.gl-phone-img.gl-phone-img--sm {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(200, 185, 155, 0.4),
        0 2px 10px rgba(200, 185, 155, 0.2);
    filter: none;
}

/* Product phone mockup (Our Mission) */
.gl-product-phone {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gl-product-phone-svg {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(30, 30, 30, 0.22));
}

.gl-mission-para {
    /* font-family: "IBM Plex Sans Arabic", var(--font-sans);
    font-weight: 300;
    color: black;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 18px; */
    font-family: "IBM Plex Sans Arabic", var(--font-sans);
    font-weight: 510;
    color: darkolivegreen;
    font-size: 1.2rem;
    line-height: 2.2;
    margin-bottom: 18px;
}

.gl-mission-para:first-child {
    margin-top: 0;
}

.gl-mission-para:last-child {
    margin-bottom: 0;
}

/* ============================================================
   STORES & PROFESSIONALS
   ============================================================ */
.gl-stores {
    padding: 40px 0;
    background-color: var(--gl-bg);
}

.gl-stores-intro {
    max-width: 700px;
    margin: 0 auto 56px;
}

.gl-stores-text {
    /* font-family: 'IBM Plex Sans Arabic', var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    color: black;
    line-height: 1.85;
    margin-bottom: 18px; */

    font-family: "IBM Plex Sans Arabic", var(--font-sans);
    font-weight: 520;
    font-size: 1.1rem;
    color: darkolivegreen;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Illustrations row */
.gl-stores-illustrations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 72px;
}

.gl-store-illustration,
.gl-professional-illustration {
    width: 200px;
    flex-shrink: 0;
}

.gl-store-illustration svg,
.gl-professional-illustration svg {
    width: 100%;
    height: auto;
}

/* Dot divider between illustrations */
.gl-illustration-divider {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
}

.gl-illustration-divider span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gl-primary);
    opacity: 0.35;
}

.gl-illustration-divider span:nth-child(2) {
    opacity: 0.55;
    width: 8px;
    height: 8px;
}

/* Illustration images from assets */
.gl-illustration-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Partners + form grid */
.gl-stores-bottom {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: start;
}

.gl-novex-logo {
    margin-bottom: 20px;
}

.gl-novex-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
    background-color: var(--gl-primary);
    padding: 5px;
}

.gl-novex-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--gl-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.gl-novex-badge--lg {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    margin: 0 auto 16px;
}

.gl-partners-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gl-text);
    margin-bottom: 16px;
}

/* Cards */
.gl-join-form-card,
.gl-contact-form-card {
    background-color: var(--gl-white);
    border-radius: var(--gl-radius);
    padding: 32px 32px 36px;
    box-shadow: var(--gl-shadow);
    border: 1px solid var(--gl-border);
}

.gl-join-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gl-text);
    margin-bottom: 24px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.gl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.gl-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.gl-form-row .gl-form-group {
    margin-bottom: 0;
}

.gl-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gl-text);
    letter-spacing: 0.01em;
}

.gl-form-group input,
.gl-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #dbd7cc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--gl-text);
    background-color: var(--gl-white);
    outline: none;
    transition:
        border-color var(--gl-transition),
        box-shadow var(--gl-transition);
    resize: none;
}

.gl-form-group input:focus,
.gl-form-group textarea:focus {
    border-color: var(--gl-primary);
    box-shadow: 0 0 0 3px rgba(102, 117, 76, 0.15);
}

.gl-btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--gl-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition:
        background-color var(--gl-transition),
        transform var(--gl-transition);
    margin-top: 6px;
}

.gl-btn-submit:hover {
    background-color: var(--gl-primary-dark);
    transform: translateY(-1px);
}

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

/* Success message */
.gl-success-msg {
    text-align: center;
    padding: 28px 20px;
    animation: gl-fadeInUp 0.5s ease;
}

.gl-success-icon {
    font-size: 2.8rem;
    color: var(--gl-primary);
    margin-bottom: 14px;
}

.gl-success-text {
    font-size: 1rem;
    color: var(--gl-text-muted);
    line-height: 1.7;
}

@keyframes gl-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   CONTACT
   ============================================================ */
.gl-contact {
    padding: 40px 0;
    background-color: var(--gl-bg);
}

.gl-contact-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}

.gl-contact-subtitle {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gl-text);
}

.gl-contact-desc {
    color: var(--gl-text-muted);
    font-size: 1rem;
    margin-bottom: 28px;
}

.gl-contact-icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gl-contact-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background-color: var(--gl-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gl-text-muted);
    font-size: 1rem;
}

.gl-contact-email {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--gl-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.gl-footer {
    background-color: var(--gl-footer-bg);
    color: rgba(255, 255, 255, 0.88);
    padding: 56px 0 0;
}

.gl-footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 42px;
}

.gl-footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.gl-footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 230px;
    line-height: 1.68;
}

.gl-footer-community-col {
    text-align: center;
}

.gl-footer-community-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 16px;
}

.gl-footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.gl-footer-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.88rem;
    transition:
        border-color var(--gl-transition),
        color var(--gl-transition),
        background-color var(--gl-transition);
}

.gl-footer-social:hover {
    border-color: #fff;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

.gl-footer-download-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.lang-ar .gl-footer-download-col {
    align-items: flex-start;
}

.gl-footer-download-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
}

.gl-store-badges--footer {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

.gl-store-badges--footer .gl-badge-img {
    width: 160px;
    height: 48px;
    object-fit: contain;
}

.gl-footer-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin: 0;
}

.gl-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.gl-footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.gl-footer-legal {
    display: flex;
    gap: 28px;
}

.gl-footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color var(--gl-transition);
}

.gl-footer-legal a:hover {
    color: #fff;
}

/* ============================================================
   RTL OVERRIDES
   ============================================================ */
.lang-ar .gl-section-title,
.lang-ar .gl-join-title,
.lang-ar .gl-contact-subtitle,
.lang-ar .gl-modal-title {
    font-family: var(--font-ar);
}

.lang-ar .gl-hero-title {
    font-family: "IBM Plex Sans Arabic", var(--font-sans);
    font-weight: 700;
}

.lang-ar .gl-mission .gl-section-title::after {
    width: 40px;
}

.lang-ar .gl-section-header .gl-divider {
    margin: 0 auto;
}

.lang-ar .gl-footer-logo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lang-ar .gl-footer-tagline {
    max-width: unset;
}

.lang-ar .gl-footer-community-col {
    text-align: center;
}

/* Email link inside contact row */
.gl-contact-email a {
    color: var(--gl-text);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--gl-transition);
}

.gl-contact-email a:hover {
    color: var(--gl-primary);
    text-decoration: underline;
}

/* "help" link in contact description */
.gl-contact-desc a {
    color: var(--gl-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--gl-transition);
}

.gl-contact-desc a:hover {
    color: var(--gl-primary-dark);
}

/* ── Clickable email icon ── */
a.gl-contact-icon-wrap {
    text-decoration: none;
    display: flex;
    transition:
        background-color var(--gl-transition),
        color var(--gl-transition),
        transform var(--gl-transition);
}

a.gl-contact-icon-wrap:hover {
    background-color: var(--gl-primary);
    color: #fff;
    border-color: var(--gl-primary);
    transform: scale(1.1);
}

/* ============================================================
   LEGAL MODAL
   ============================================================ */
.gl-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gl-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.gl-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 94%;
    max-width: 1100px;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(30, 30, 30, 0.22);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gl-modal-overlay.open .gl-modal-box {
    transform: translateY(0) scale(1);
}

.gl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 1px solid #ede9e0;
    flex-shrink: 0;
    gap: 16px;
}

.gl-modal-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gl-text);
    margin: 0;
}

.gl-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #dbd7cc;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--gl-text-muted);
    flex-shrink: 0;
    transition:
        background-color var(--gl-transition),
        color var(--gl-transition),
        border-color var(--gl-transition);
}

.gl-modal-close:hover {
    background-color: var(--gl-primary);
    color: #fff;
    border-color: var(--gl-primary);
}

.gl-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.gl-modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    min-height: 300px;
    color: var(--gl-text-muted);
    font-size: 0.95rem;
}

.gl-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ede9e0;
    border-top-color: var(--gl-primary);
    border-radius: 50%;
    animation: gl-spin 0.75s linear infinite;
}

@keyframes gl-spin {
    to {
        transform: rotate(360deg);
    }
}

.gl-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* RTL modal adjustments */
.lang-ar .gl-modal-header {
    flex-direction: row-reverse;
}

.lang-ar .gl-modal-title {
    text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet ≤991px ── */
@media (max-width: 991px) {
    .gl-nav-links {
        display: none;
    }

    .gl-navbar-inner > .gl-lang-toggle {
        display: none;
    }

    .gl-mobile-menu .gl-lang-toggle {
        display: inline-flex;
        justify-content: center;
        margin: 20px auto 0;
        width: auto;
    }

    .gl-mobile-menu .gl-lang-btn {
        font-size: 0.72rem;
        font-weight: 400;
        padding: 6px 15px;
        min-width: 70px;
    }

    .gl-hamburger {
        display: flex;
    }

    .gl-hero {
        padding: 12px 0 8px;
    }

    .gl-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .gl-hero-text {
        order: 2;
    }

    .gl-hero-phone {
        order: 1;
    }

    .gl-phone-bg-circle {
        width: 420px;
        height: 420px;
    }

    .gl-phone-img {
        max-width: 300px;
    }

    video.gl-phone-img {
        width: 220px;
        height: 220px;
    }

    .gl-hero-subtitle {
        max-width: unset;
        margin: 2px;
        margin-top: 40px;
    }

    .gl-store-badges {
        justify-content: center;
    }

    .gl-mission-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .gl-mission-text {
        width: 100%;
    }

    .gl-mission-phone {
        flex: none;
        width: 100%;
        margin-top: 0 !important;
    }

    .gl-phone-img.gl-phone-img--sm {
        max-width: none;
        width: 100%;
        margin-left: -18px;
        margin-right: -18px;
        aspect-ratio: 16 / 10;
        margin-bottom: 15px;
    }

    .gl-stores-bottom {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gl-partners-col {
        text-align: center;
    }

    .gl-partners-col .gl-store-badges {
        justify-content: center;
    }

    .gl-contact-content {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .gl-contact-info {
        text-align: center;
    }

    .gl-contact-icons-row {
        justify-content: center;
    }

    .gl-footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .gl-footer-logo-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gl-footer-tagline {
        max-width: unset;
    }

    .gl-footer-download-col {
        align-items: center;
    }

    .gl-store-badges--footer {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .gl-footer-bottom {
        justify-content: center;
    }

    /* RTL tablet fixes */
    .lang-ar .gl-footer-logo-col {
        align-items: center;
    }

    .lang-ar .gl-footer-download-col {
        align-items: center;
    }
}

/* ── Small tablet ≤767px ── */
@media (max-width: 767px) {
    .gl-store-illustration,
    .gl-professional-illustration {
        width: 160px;
    }

    .gl-stores-bottom {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .gl-phone-bg-circle--sm {
        display: none;
    }

    .gl-phone-img.gl-phone-img--sm {
        width: 100%;
        max-width: none;
        height: auto;
        margin-bottom: 15px;
    }

    .gl-product-phone-svg {
        width: 180px;
    }

    .gl-phone-bg-circle {
        width: 360px;
        height: 360px;
    }

    video.gl-phone-img {
        width: 180px;
        height: 180px;
    }
}

/* ── Mobile ≤640px ── */
@media (max-width: 640px) {
    .gl-hero {
        padding: 8px 0 4px;
    }

    .gl-mission,
    .gl-stores,
    .gl-contact {
        padding: 28px 0;
    }

    .gl-mission-content {
        gap: 16px;
    }

    .gl-phone-bg-circle {
        width: 300px;
        height: 300px;
    }

    .gl-phone-img {
        max-width: 230px;
    }

    video.gl-phone-img {
        width: 150px;
        height: 150px;
    }

    .gl-phone-bg-circle--sm {
        display: none;
    }

    .gl-phone-img.gl-phone-img--sm {
        width: 100%;
        max-width: none;
        height: auto;
        margin-bottom: 15px;
    }

    .gl-product-phone-svg {
        width: 155px;
    }

    .gl-mission-phone {
        flex: none;
        width: 100%;
        min-height: auto;
        margin-top: 0;
    }

    /* Illustrations stack vertically */
    .gl-stores-illustrations {
        flex-direction: column;
        gap: 20px;
    }

    .gl-illustration-divider {
        flex-direction: row;
    }

    .gl-store-illustration,
    .gl-professional-illustration {
        width: 180px;
    }

    /* Forms single column */
    .gl-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gl-join-form-card,
    .gl-contact-form-card {
        padding: 24px 20px 28px;
    }

    /* Footer */
    .gl-footer-legal {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gl-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Typography */
    .gl-hero-title {
        font-size: 2rem;
    }

    .gl-section-title {
        font-size: 1.75rem;
    }

    .gl-contact-subtitle {
        font-size: 1.5rem;
    }

    .gl-container {
        padding: 0 18px;
    }

    .gl-section-header {
        margin-bottom: 24px;
    }

    .gl-stores-intro {
        margin: 0 auto 40px;
    }

    .gl-stores-illustrations {
        margin-bottom: 48px;
    }

    /* Modal */
    .gl-modal-overlay {
        padding: 12px;
    }

    .gl-modal-box {
        height: 94vh;
        max-height: 94vh;
        border-radius: 12px;
    }

    .gl-modal-header {
        padding: 14px 18px 12px;
    }

    .gl-modal-title {
        font-size: 1.15rem;
    }
}

/* ── Small mobile ≤400px ── */
@media (max-width: 400px) {
    .gl-hero {
        padding: 4px 0 0;
    }

    .gl-hero-title {
        font-size: 1.65rem;
    }

    .gl-hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.1;
        margin-top: 40px;
    }

    .gl-badge-img {
        width: 140px;
        height: 42px;
    }

    .gl-phone-bg-circle {
        width: 250px;
        height: 250px;
    }

    video.gl-phone-img {
        width: 120px;
        height: 120px;
    }

    .gl-mission {
        padding: 28px 0;
    }

    .gl-mission-content {
        gap: 12px;
    }

    .gl-phone-bg-circle--sm {
        display: none;
    }

    .gl-phone-img.gl-phone-img--sm {
        width: 100%;
        max-width: none;
        height: auto;
        margin-bottom: 15px;
    }

    .gl-product-phone-svg {
        width: 135px;
    }

    .gl-mission-phone {
        flex: none;
        width: 100%;
        min-height: auto;
        margin-top: 0;
    }

    .gl-stores-text {
        font-size: 0.92rem;
    }

    .gl-mission-para {
        font-size: 0.92rem;
    }

    .gl-container {
        padding: 0 14px;
    }

    .gl-navbar-inner {
        padding: 0 14px;
    }
}
