@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --bg: #070B14;
    --bg-surface: #0C1120;
    --bg-card: #111828;
    --border: #1E2A3E;
    --text: #FFFFFF;
    --text-secondary: #8A96AB;
    --accent: #C8A550;
    --accent-hover: #DBBD5A;
    --accent-glow: rgba(200, 165, 80, 0.12);
    --blue: #4A90D9;
    --blue-glow: rgba(74, 144, 217, 0.1);
    --max-width: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body,
html[dir="rtl"] body {
    font-family: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ═══ SCROLL ANIMATIONS ═══ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }

/* ═══ NAVIGATION ═══ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 11, 20, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}

.nav-logo img {
    height: 38px;
    width: auto;
    aspect-ratio: 624 / 673;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.nav-links { display: flex; gap: 36px; }

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* ═══ MOBILE NAV ═══ */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 99;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }

/* ═══ HERO ═══ */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, var(--blue-glow) 40%, transparent 70%);
    pointer-events: none;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
    position: relative;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--accent); color: #0A0E1A; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-buttons { display: flex; gap: 16px; justify-content: center; }

/* ═══ SECTION ═══ */
.section { padding: 100px 0; }

.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-header { margin-bottom: 56px; }

/* ═══ FOCUS GRID ═══ */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.focus-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.focus-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-accent {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    margin: 0 auto 20px;
}

.focus-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.focus-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══ PRODUCT CARDS ═══ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    transition: border-color 0.3s, transform 0.3s;
}

.product-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.product-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-card .features { list-style: none; margin-bottom: 24px; }

.product-card .features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0 6px 20px;
    position: relative;
}

.product-card .features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.product-card .card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.product-card .card-link:hover { gap: 10px; }

.coming-soon { opacity: 0.6; }

.badge-soon {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-surface);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ═══ PHILOSOPHY ═══ */
.philosophy-section { padding: 80px 0; }

.philosophy-block {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-accent {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    margin: 0 auto 32px;
}

.philosophy-block blockquote {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
}

.philosophy-block cite {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    font-style: normal;
    margin-bottom: 28px;
}

.philosophy-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.philosophy-block p:last-child {
    margin-bottom: 0;
}

.philosophy-block .privacy-statement {
    margin-top: 12px;
    font-weight: 600;
    color: var(--text);
}

/* ═══ ABOUT BLOCKS ═══ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}

.about-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.about-block p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.about-block p:last-child { margin-bottom: 0; }
.about-block.full-width p:first-of-type { font-weight: 500; color: var(--text); }
.about-block.full-width { grid-column: 1 / -1; }

/* ═══ CONTACT ═══ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.contact-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.contact-block p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

.email-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    margin-top: 20px;
    font-size: 18px;
    transition: color 0.2s;
}

.email-link:hover { color: var(--accent-hover); }

.btn-mailto {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--accent);
    color: #0A0E1A;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-mailto:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ═══ PAGE HEADER ═══ */
.page-header {
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.page-header p { font-size: 18px; color: var(--text-secondary); max-width: 600px; }

/* ═══════════════════════════════════════════════════════
   PROUD OF UAE — bilingual signature strip above the footer
   ─────────────────────────────────────────────────────────
   Both lines are always visible regardless of active language.
   This is a statement of belonging, not translated copy.
   Phase 1: text-only (Ministry of Presidential Affairs flag-use
   permission pending — Mark is applying. Phase 2 will swap in
   the licensed waving UAE flag SVG once the letter is granted).
   ═══════════════════════════════════════════════════════ */
.proud-strip {
    text-align: center;
    padding: 56px 24px 48px;
    border-top: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.5);
}

.proud-accent {
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    margin: 0 auto 24px;
}

.proud-ar {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
    font-size: clamp(26px, 4.5vw, 36px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
    direction: rtl;
    unicode-bidi: embed;
}

.proud-en {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.4;
    direction: ltr;
    unicode-bidi: embed;
}

@media (max-width: 480px) {
    .proud-strip { padding: 44px 20px 40px; }
    .proud-en { letter-spacing: 3px; }
}

/* ═══ FOOTER ═══ */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    margin-top: 40px;
}

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

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .footer-logo img {
    height: 32px;
    width: auto;
    aspect-ratio: 624 / 673;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}
.footer-brand .footer-logo span { font-size: 18px; font-weight: 800; letter-spacing: 2px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 300px; }

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p { font-size: 13px; color: var(--text-secondary); }

/* ═══ LEGAL CONTENT ═══ */
.legal-content { max-width: 800px; }

.legal-block {
    margin-bottom: 40px;
}

.legal-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-block ul {
    list-style: none;
    margin: 12px 0;
}

.legal-block ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 4px 0 4px 20px;
    position: relative;
}

.legal-block ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.legal-meta {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-meta p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ═══ DATA CENTRES ═══ */
.page-header h1 .accent { color: var(--accent); }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(200, 165, 80, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
}

.dc-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dc-value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.dc-value-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.dc-value-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.dc-value-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

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

.dc-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.dc-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dc-service-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 24px;
    transition: border-color 0.3s, transform 0.3s;
}

.dc-service-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.dc-service-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.dc-service-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ═══ SEMICONDUCTOR MATERIALS ═══ */
.sm-hero-side {
    margin-top: 28px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
}

.sm-app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
}

.sm-app-item {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 12px 0 12px 24px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.sm-app-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.sm-app-item:last-child { border-bottom: none; }

.sm-materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sm-material-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 24px;
    transition: border-color 0.3s, transform 0.3s;
}

.sm-material-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.sm-material-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.sm-material-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.sm-sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sm-sector-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
}

.sm-sector-item {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 10px 0 10px 20px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.sm-sector-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.sm-sector-item:last-child { border-bottom: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; margin-inline-start: auto; }
    nav .container > .lang-toggle { margin-inline-start: 10px; }
    .hero { padding: 140px 0 80px; }
    .hero-logo { width: 140px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .focus-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .section { padding: 60px 0; }
    .dc-values-grid { grid-template-columns: 1fr; }
    .dc-services-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-tags { justify-content: center; }
    .sm-materials-grid { grid-template-columns: 1fr; }
    .sm-sectors-grid { grid-template-columns: 1fr; }
}

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

/* ═══════════════════════════════════════════════════════
   LANGUAGE TOGGLE  (Arabic primary · English UK secondary)
   ─────────────────────────────────────────────────────────
   Single corner-pinned pill. Label shows the OTHER language
   (i.e. one tap flips you to it). Position naturally mirrors:
     · RTL (Arabic active)  → pill sits in the top-LEFT
     · LTR (English active) → pill sits in the top-RIGHT
   ═══════════════════════════════════════════════════════ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    outline: none;
}

.lang-toggle:active { transform: scale(0.97); }

.lang-toggle__globe {
    display: block;
    flex-shrink: 0;
    opacity: 0.85;
}

.lang-toggle__label {
    display: block;
    line-height: 1;
    white-space: nowrap;
}

/* Latin label — force Inter so it doesn't inherit Tajawal in AR mode (which
   would shift the glyph optically high vs the globe icon) */
.lang-toggle__label[lang="en"] {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Arabic-script label uses Tajawal at a slightly larger size for clean glyphs.
   Tajawal's Arabic glyph centroid sits slightly above the geometric centre of
   its em-box (upper diacritics like ـة push visual weight up vs lower dots
   like ـبـ / ـيـ). Nudge the label down a sub-pixel so the upper + lower dot
   sets balance evenly against the globe icon. Transform-only — no layout change. */
.lang-toggle__label[lang="ar"] {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .lang-toggle { padding: 6px 10px; font-size: 12px; }
    .lang-toggle__label[lang="ar"] { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   RTL ADJUSTMENTS (Arabic)
   ═══════════════════════════════════════════════════════ */
html[dir="rtl"] {
    /* Slightly tighter letter-spacing — Arabic doesn't benefit from latin tracking */
    --rtl-on: 1;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-title,
html[dir="rtl"] .page-header h1 {
    letter-spacing: 0;
}

html[dir="rtl"] .nav-logo,
html[dir="rtl"] .footer-brand .footer-logo {
    letter-spacing: 1px;
}

html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .section-label,
html[dir="rtl"] .product-card .tag,
html[dir="rtl"] .footer-col h4,
html[dir="rtl"] .philosophy-block cite {
    letter-spacing: 0.5px;
}

/* Arrow flips for RTL — pseudo-element arrows in lists/cards */
html[dir="rtl"] .product-card .features li::before { content: '←'; }
html[dir="rtl"] .sm-app-item::before { content: '←'; }
html[dir="rtl"] .sm-sector-item::before { content: '←'; }

/* Card link arrows live inside translated text, no flip needed (text supplied in AR strings) */

/* Padding for list pseudo bullets uses logical properties so it auto-mirrors.
   NOTE: physical-property resets MUST come BEFORE the logical ones — in LTR the
   logical props alias the same physical props, and a later `unset` wipes them. */
.product-card .features li,
.sm-app-item,
.sm-sector-item,
.legal-block ul li {
    padding-left: unset;
    padding-inline-start: 20px;
    padding-inline-end: 0;
}
.product-card .features li { padding-inline-start: 20px; }
.sm-app-item { padding-inline-start: 24px; }
.sm-sector-item { padding-inline-start: 20px; }
.legal-block ul li { padding-inline-start: 20px; }

.product-card .features li::before,
.sm-app-item::before,
.sm-sector-item::before,
.legal-block ul li::before {
    left: unset;
    inset-inline-start: 0;
}

/* Side description on semiconductors page — flip the accent border for RTL */
.sm-hero-side {
    padding-left: unset;
    border-left: unset;
    padding-inline-start: 16px;
    border-inline-start: 2px solid var(--accent);
}

/* Hero badges in RTL — keep their centered look on mobile, left-aligned on desktop reverses naturally */

/* Contact: keep email link from sitting flush awkwardly */
html[dir="rtl"] .email-link { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* Legal contact block: phone/email kept LTR */
html[dir="rtl"] .legal-block a[href^="mailto:"],
html[dir="rtl"] .legal-block a[href^="tel:"] { direction: ltr; unicode-bidi: embed; }

/* Footer bottom: stack neatly when RTL on desktop */
html[dir="rtl"] .footer-bottom { text-align: start; }

/* Switcher: dropdown anchor flips naturally via inset-inline-end. Caret rotation stays. */

