/* =====================================================
   iRIG Family — Company profile pages (iRIG / FLiRIG / Previs Production)
   Shared by the English and Arabic versions.
   ===================================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
}
html[dir="rtl"] body { font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #666; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

.section { padding: 2.5rem 0; }
.section-title { font-size: 3rem; font-weight: 700; text-align: center; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.2rem; color: #d1d5db; text-align: center; margin-bottom: 3rem; }
.text-primary { color: #ffffff !important; }
.bg-pattern-1, .bg-pattern-2 { background: transparent; backdrop-filter: none; }

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.5s ease;
    height: 100%;
}

/* ---------- Hero ---------- */
.profile-hero {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}
.profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 20% 20%, rgba(255,255,255,0.08), transparent 60%),
        radial-gradient(50% 50% at 85% 70%, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}
.profile-hero .container { position: relative; z-index: 1; }
.profile-kicker {
    display: inline-block;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 1rem;
}
.profile-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.profile-tagline {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 760px;
    line-height: 1.7;
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.profile-tag {
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: #e5e7eb;
    background: rgba(255,255,255,0.05);
}

/* ---------- Family switcher ---------- */
.family-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 2rem;
}
.family-switch a {
    color: #d1d5db;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .3s ease;
    background: rgba(255,255,255,0.03);
}
.family-switch a:hover { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }
.family-switch a.active { color: #000; background: #fff; border-color: #fff; }

/* ---------- Content ---------- */
.profile-lead { font-size: 1.05rem; line-height: 1.8; color: #e5e7eb; }
.profile-quote { font-weight: 800; font-style: italic; text-align: center; margin-top: 2rem; color: #fff; }
.profile-points { padding-inline-start: 1.25rem; }
.profile-points li { margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.6; color: #fff; }

.profile-stats { margin: 0 0 1rem; }
.stat-tile {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1rem;
    background: rgba(255,255,255,0.03);
    height: 100%;
}
.stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 0.4rem; }
.stat-label { color: #9ca3af; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }

.service-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1rem;
    background: rgba(20,20,20,0.6);
    backdrop-filter: blur(12px);
    transition: all .4s ease;
}
.service-card:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-4px); }
.service-card i { font-size: 1.9rem; margin-bottom: 0.9rem; display: block; }
.service-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: #d1d5db; line-height: 1.6; margin: 0; font-size: 0.98rem; }

.profile-facts { list-style: none; padding: 0; margin: 0; }
.profile-facts li {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.profile-facts li:last-child { border-bottom: 0; }
.profile-facts .fact-label { min-width: 150px; color: #9ca3af; font-weight: 600; }
.profile-facts .fact-value { color: #fff; }
.profile-facts a { color: #fff; }

.profile-cta {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.04);
}
.profile-cta h3 { font-weight: 800; margin-bottom: 0.75rem; }
.profile-cta p { color: #d1d5db; margin-bottom: 1.5rem; }
.profile-cta .btn { border-radius: 0.5rem; padding: 0.65rem 1.6rem; font-weight: 600; }

/* ---------- Animations ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .profile-hero { padding: 6.5rem 0 3rem; }
    .section-title { font-size: 2.2rem; }
    .profile-facts li { flex-direction: column; gap: 0.25rem; }
    .profile-facts .fact-label { min-width: 0; }
}

/* ---------- Company profile PDF ---------- */
.pdf-card { padding: 1.5rem; }
.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.pdf-toolbar h3 { font-weight: 800; margin: 0; }
.pdf-toolbar .pdf-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pdf-toolbar .btn { border-radius: 0.5rem; padding: 0.55rem 1.2rem; font-weight: 600; }
.pdf-frame {
    width: 100%;
    height: min(80vh, 900px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.85rem;
    background: #1a1a1a;
    display: block;
}
.pdf-mobile-note {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed rgba(255,255,255,0.25);
    border-radius: 0.85rem;
    color: #d1d5db;
}
.pdf-mobile-note i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
@media (max-width: 767.98px) {
    .pdf-frame { display: none; }
    .pdf-mobile-note { display: block; }
}
