/* ============================================
   ZAWAYA TECH - PREMIUM DESIGN SYSTEM
   Theme: Dark Teal (#3E6157) & Glassmorphism
   ============================================ */

:root {
    /* Colors */
    --bg-dark: #1a2b26;
    --brand-primary: #3E6157;
    --brand-light: #70eac8;
    --brand-dark: #2c4a44;
    --accent-gold: #ffaa00;

    /* Glass */
    --glass-bg: rgba(26, 43, 38, 0.6);
    --glass-border: rgba(112, 234, 200, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(20px);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Cairo', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Ambient Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 35% 45%, rgba(45, 85, 95, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 65% 55%, rgba(60, 95, 85, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, rgba(70, 105, 95, 0.2) 0%, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

/* --- Vignette Overlay --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}

/* --- 3D Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Layout Utilities --- */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.section-padding {
    padding: 120px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.mb-4 {
    margin-bottom: 24px;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-width);
    height: 70px;
    z-index: 100;
    background: rgba(5, 8, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(112, 234, 200, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-content {
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--brand-light);
}

.nav-btn {
    padding: 10px 24px;
    background: rgba(112, 234, 200, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--brand-light);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(112, 234, 200, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #70eac8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-primary {
    background: var(--brand-light);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(112, 234, 200, 0.2);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(112, 234, 200, 0.3);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

/* --- Glass Cards & Panels --- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: rgba(26, 43, 38, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-light);
    background: rgba(26, 43, 38, 0.6);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(112, 234, 200, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover::before {
    opacity: 1;
}

/* --- Typography & Elements --- */
.section-header {
    margin-bottom: 40px;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- About ----------------------------------------------------------------
   The old version stacked an "ABOUT US" label over an "A Bit About Zawaya"
   heading (the same words twice), with the first paragraph a size larger than
   the second. Now: a single heading, one accent rule, one body size.

   The container is .glass-card (not the heavier .glass-panel) so it reads as
   the same family as the Vision/Mission cards directly below it. The width is
   capped rather than left to fill the 1200px container: centred prose across a
   full-width row is unreadable. */
.about-block {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    margin-bottom: 0;
}

/* The accent rule replaces the removed eyebrow label as the visual anchor. */
.about-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    margin: 24px auto 36px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-light), rgba(112, 234, 200, 0.15));
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.card-icon {
    color: var(--brand-light);
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Values --- */
.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-light);
}

.value-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(112, 234, 200, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-light);
    margin-bottom: 20px;
}

.value-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* --- Offerings --- */
.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.check-icon {
    color: var(--brand-light);
    display: flex;
    align-items: center;
}

.highlight-panel {
    border-color: var(--brand-light);
    background: rgba(62, 97, 87, 0.3);
}

/* Three stats in a panel roughly 440px wide. A flex row wrapped them 2 + 1,
   which reads as a mistake; auto-fit columns keep them even: three across on
   desktop, collapsing to one per row on narrow screens. */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-light);
}

/* Text-based stat values ("AR + EN", "عربي + إنجليزي") are far wider than a
   numeral, so they get their own size to keep the three columns even. */
.stat-num-sm {
    font-size: 1.25rem;
}

.stat-label {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Trust & Compliance band --- */
.trust-panel {
    display: flex;
    align-items: center;
    gap: 24px;
}

.trust-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(112, 234, 200, 0.1);
    border: 1px solid rgba(112, 234, 200, 0.25);
    color: var(--brand-light);
}

.trust-text .card-title {
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .trust-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Team --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-card {
    text-align: center;
    width: 200px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border: 2px solid var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.member-name {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.member-role {
    color: var(--brand-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Footer --- */
.glass-footer {
    background: rgba(5, 8, 10, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-container {
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

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

/* Social media icons */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(112, 234, 200, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: var(--brand-light);
    color: var(--bg-dark);
    border-color: var(--brand-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(112, 234, 200, 0.25);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-link,
.footer-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--brand-light);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* --- Mobile Only --- */
.mobile-only {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
    }

    /* Hide desktop links */
    .mobile-only {
        display: block;
    }

    /* Show mobile button */
    .section-padding {
        padding: 80px 20px;
    }

    /* Section titles were left at the desktop 2.5rem, which is oversized on a
       ~335px content column and pushed most headings onto three lines. */
    .section-title {
        font-size: 1.85rem;
    }

    /* 60px of padding on a 375px screen leaves ~215px of usable width, which
       cramped the contact form and the highlight panel badly. */
    .glass-panel {
        padding: 32px 24px;
    }

    .glass-card {
        padding: 28px 24px;
    }

    .about-content p {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .about-title::after {
        margin: 18px auto 28px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Contact Form --- */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(112, 234, 200, 0.1);
}

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

/* Required field marker */
.required-star {
    color: var(--brand-light);
    margin-right: 2px;
}

/* Optional field tag */
.optional-tag {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

/* Phone field: country code + number side by side */
.phone-group {
    display: flex;
    gap: 10px;
}

.phone-code {
    width: auto;
    flex: 0 0 110px;
    cursor: pointer;
    /* native select arrow on dark bg */
    color-scheme: dark;
}

.phone-number {
    flex: 1 1 auto;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Form Result Messages --- */
.form-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    display: none;
    animation: slideIn 0.3s ease;
}

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

.success-message {
    color: var(--brand-light);
    background: rgba(112, 234, 200, 0.1);
    border: 1px solid var(--brand-light);
    padding: 16px;
    border-radius: 12px;
    margin: 0;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    padding: 16px;
    border-radius: 12px;
    margin: 0;
}

/* Quiet second line under the success message. The form provider confirms
   receipt but does not guarantee delivery, so the visitor always gets a
   channel that does not depend on it. */
.form-note {
    margin: 10px 2px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-note a {
    color: var(--brand-light);
    text-decoration: underline;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-light), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.error-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-text {
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ============================================
   LANGUAGE TOGGLE BUTTON
   ============================================ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 86px;
    height: 38px;
    padding: 0;
    border-radius: 100px;
    background: rgba(112, 234, 200, 0.12);
    border: 1px solid rgba(112, 234, 200, 0.25);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Container holding nav links + language toggle */
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-toggle:hover {
    background: var(--brand-light);
    color: var(--bg-dark);
    border-color: var(--brand-light);
    transform: translateY(-1px);
}

.lang-toggle svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* When Arabic is active, the toggle label shows "EN" in Latin font */
[dir="rtl"] .lang-toggle {
    font-family: var(--font-main);
}

/* ============================================
   RTL (ARABIC) SUPPORT
   ============================================ */
[dir="rtl"] {
    font-family: var(--font-display);
}

/* Body text uses Cairo in Arabic for proper letterforms */
[dir="rtl"] body,
[dir="rtl"] .nav-link,
[dir="rtl"] .lead-text,
[dir="rtl"] .card-text,
[dir="rtl"] .section-desc,
[dir="rtl"] .section-title,
[dir="rtl"] .card-title,
[dir="rtl"] .value-title,
[dir="rtl"] .member-name,
[dir="rtl"] .member-role,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .form-label,
[dir="rtl"] .form-input,
[dir="rtl"] .form-textarea,
[dir="rtl"] .footer-tagline,
[dir="rtl"] .footer-text,
[dir="rtl"] .feature-item,
[dir="rtl"] .section-label {
    font-family: var(--font-display);
}

/* Nav: in RTL the browser already flips flex direction, so we do NOT
   add row-reverse (that would double-flip back to LTR). The logo stays
   on the right and the links + toggle group sits on the left. */
[dir="rtl"] .nav-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

/* Hero buttons: let RTL flip naturally, no manual reverse */

/* Text alignment: right for content blocks.
   .about-block is centred in both directions, so it is deliberately absent. */
[dir="rtl"] .content-block,
[dir="rtl"] .section-header:not(.text-center) {
    text-align: right;
}

/* Centered headers stay centered */
[dir="rtl"] .text-center {
    text-align: center;
}

/* Feature list: bullet on the right */
[dir="rtl"] .feature-list {
    padding-right: 0;
}

[dir="rtl"] .feature-item {
    text-align: right;
}

/* Stats row: browser flips automatically in RTL */

/* Footer mirrors */
[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

/* Contact form fields: right-aligned text + RTL input */
[dir="rtl"] .form-group {
    text-align: right;
}

[dir="rtl"] .form-input,
[dir="rtl"] .form-textarea {
    text-align: right;
    direction: rtl;
}

/* Email + phone stay LTR (they're Latin/numeric) even in Arabic */
[dir="rtl"] #email,
[dir="rtl"] #phone {
    direction: ltr;
    text-align: right;
}

/* Phone group: browser flips automatically in RTL.
   We force the number input to stay LTR (digits read left-to-right). */
[dir="rtl"] .phone-number {
    direction: ltr;
    text-align: right;
}

/* Form result messages right-aligned */
[dir="rtl"] .form-result {
    text-align: right;
}

/* Required star + optional tag spacing in RTL */
[dir="rtl"] .required-star {
    margin-right: 0;
    margin-left: 2px;
}

/* Phone-code select: arrow sits correctly, code reads naturally */
[dir="rtl"] .phone-code {
    direction: ltr;
    text-align: center;
}

/* Footer links with phone/email + copyright stay LTR (Latin/numeric content)
   so the phone number and "©" don't get visually reversed. */
[dir="rtl"] .footer-link {
    direction: ltr;
    justify-content: flex-end;
}

[dir="rtl"] .footer-bottom {
    direction: ltr;
}

/* Hero title + gradient stays centered both ways */
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-content {
    text-align: center;
}

/* Check icons keep shape in RTL */
[dir="rtl"] .check-icon {
    margin-left: 0;
}

/* ============================================
   UTILITY CLASSES (moved from inline styles for strict CSP)
   ============================================ */
.logo-link-reset {
    text-decoration: none;
    cursor: pointer;
}

.visually-hidden-field {
    display: none;
}

.contact-desc-spacing {
    margin: 16px auto 0;
    max-width: 560px;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}
