/* ============================================================================
   Qanawat — public website design system.
   Brand palette lifted from the logo: deep maroon red + metallic silver,
   set against refined dark/light surfaces for a premium telecom feel.
   RTL-first (Arabic), fully responsive. Colors are driven by CSS variables so
   the admin's Primary/Accent settings re-skin the whole site instantly.
   ========================================================================== */

:root {
    --q-red:      #8B1420;   /* primary (overridden inline from CMS settings) */
    --q-red-2:    #C1272D;   /* accent / gradient highlight */
    --q-red-dark: #5A0A12;
    --q-red-soft: rgba(139, 20, 32, .08);

    --silver:      #9A9DA2;
    --silver-light:#C9CDD2;
    --silver-dark: #6B6E72;

    --ink:        #14090B;   /* near-black with a red undertone (dark sections) */
    --ink-2:      #1E1113;
    --ink-3:      #2A181B;

    --bg:         #ffffff;
    --bg-soft:    #f7f4f4;
    --bg-tint:    #faf6f6;
    --text:       #1c1517;
    --text-muted: #6d6469;
    --border:     #ece5e6;

    --radius:     18px;
    --radius-sm:  12px;
    --shadow-sm:  0 2px 10px rgba(20, 9, 11, .06);
    --shadow:     0 12px 40px rgba(20, 9, 11, .10);
    --shadow-lg:  0 30px 70px rgba(20, 9, 11, .18);
    --shadow-red: 0 18px 44px rgba(139, 20, 32, .30);

    --nav-h:      82px;
    --maxw:       1200px;
    --ff:         "Cairo", "Poppins", "Segoe UI", Tahoma, sans-serif;
    --ff-en:      "Poppins", "Cairo", "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------- base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); overflow-x: hidden; max-width: 100%; }
body {
    font-family: var(--ff);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
ul { list-style: none; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
[dir="ltr"] h1,[dir="ltr"] h2,[dir="ltr"] h3 { font-family: var(--ff-en); }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* selection + scrollbar accents */
::selection { background: var(--q-red); color: #fff; }

/* --------------------------------------------------------- utilities ---- */
.text-grad {
    background: linear-gradient(100deg, var(--q-red-2), var(--q-red) 55%, var(--q-red-dark));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.silver-grad {
    background: linear-gradient(120deg, #ffffff, var(--silver-light) 40%, var(--silver) 70%, #ffffff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* section shell */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-dark { background: var(--ink); color: #fff; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--q-red); margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--q-red-2); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.section-title { font-size: clamp(28px, 4.4vw, 46px); }
.section-sub { color: var(--text-muted); font-size: clamp(16px, 1.8vw, 19px); margin-top: 14px; }
.section-dark .section-sub { color: rgba(255,255,255,.72); }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border-radius: 50px; font-weight: 700; font-size: 15.5px;
    font-family: inherit; cursor: pointer; border: none; position: relative;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(120deg, var(--q-red-2), var(--q-red)); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(139,20,32,.42); }
.btn-light { background: #fff; color: var(--q-red); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-3px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: #fff; color: var(--q-red); border-color: #fff; transform: translateY(-3px); }
.btn-outline-red { background: transparent; color: var(--q-red); border: 1.5px solid var(--q-red); }
.btn-outline-red:hover { background: var(--q-red); color: #fff; transform: translateY(-3px); }

/* =========================================================== NAVBAR ==== */
.nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .35s, box-shadow .35s, height .35s, backdrop-filter .35s;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 12px; height: 100%; }
.nav-logo img {
    height: 54px; width: auto; transition: height .35s;
    background: #fff; padding: 7px 12px; border-radius: 16px;
    box-shadow: 0 6px 18px rgba(20,9,11,.18);
}
.nav.scrolled { height: 66px; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 6px 30px rgba(20,9,11,.10); }
.nav.scrolled .nav-logo img { height: 46px; box-shadow: 0 4px 12px rgba(20,9,11,.12); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 10px 16px; font-weight: 600; font-size: 15.5px; color: #fff; border-radius: 30px;
    position: relative; opacity: .92;
}
.nav-links a::after {
    content: ""; position: absolute; inset-inline: 16px; bottom: 4px; height: 2px;
    background: var(--q-red-2); transform: scaleX(0); transform-origin: inline-start; transition: transform .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav.scrolled .nav-links a { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 30px;
    font-weight: 700; font-size: 14px; color: #fff; border: 1.5px solid rgba(255,255,255,.42);
    transition: all .25s;
}
.lang-toggle:hover { background: #fff; color: var(--q-red); border-color: #fff; }
.nav.scrolled .lang-toggle { color: var(--q-red); border-color: var(--q-red); }
.nav.scrolled .lang-toggle:hover { background: var(--q-red); color: #fff; }
.nav-cta { padding: 11px 22px; }
.nav.scrolled .nav-cta.btn-outline { color: var(--q-red); border-color: var(--q-red); }
.nav-burger { display: none; width: 46px; height: 46px; border: none; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-burger span { width: 26px; height: 2.5px; background: #fff; border-radius: 3px; transition: .3s; }
.nav.scrolled .nav-burger span { background: var(--text); }

/* =========================================================== HERO ====== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(120% 90% at 82% 12%, rgba(193,39,45,.55), transparent 55%),
      radial-gradient(90% 80% at 8% 92%, rgba(90,10,18,.7), transparent 60%),
      linear-gradient(135deg, #1a0a0d 0%, #2a1013 45%, #12070a 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image:
      linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 60% 40%, #000, transparent 78%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; }
.hero-orb.a { width: 420px; height: 420px; background: radial-gradient(circle, #c1272d, transparent 70%); top: -80px; inset-inline-end: -60px; animation: floaty 9s ease-in-out infinite; }
.hero-orb.b { width: 320px; height: 320px; background: radial-gradient(circle, #7a0f1a, transparent 70%); bottom: -60px; inset-inline-start: 10%; animation: floaty 11s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-26px) } }

.hero .container { position: relative; z-index: 2; }
.hero-slide { max-width: 820px; }
.hero-slide .eyebrow { color: var(--q-red-2); }
.hero-title { font-size: clamp(38px, 7vw, 82px); font-weight: 900; line-height: 1.05; margin-bottom: 22px; }
.hero-sub { font-size: clamp(17px, 2.2vw, 24px); color: rgba(255,255,255,.86); max-width: 640px; margin-bottom: 18px; font-weight: 600; }
.hero-text { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.66); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* swiper hero — every slide is exactly one viewport tall, content vertically
   centered, so all slides are equal height in both Arabic and English. */
.hero-swiper { width: 100%; }
.hero-swiper .swiper-wrapper { align-items: stretch; }
.hero-swiper .swiper-slide {
    min-height: 100vh; height: auto; position: relative; overflow: hidden;
    display: flex; align-items: center;
}
/* per-slide premium background artwork (set from the CMS slide image) */
.hero-slide-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; animation: heroZoom 14s ease-in-out infinite alternate; }
.hero-slide-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(15,6,8,.92) 0%, rgba(16,7,9,.66) 48%, rgba(20,9,11,.42) 100%);
}
[dir="rtl"] .hero-slide-bg::after {
    background: linear-gradient(260deg, rgba(15,6,8,.92) 0%, rgba(16,7,9,.66) 48%, rgba(20,9,11,.42) 100%);
}
.swiper-slide-active .hero-slide-bg { animation: heroZoom 14s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero .swiper-pagination { bottom: 40px !important; text-align: start; padding-inline: max(22px, calc((100vw - var(--maxw))/2 + 22px)); }
.hero .swiper-pagination-bullet { width: 32px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); opacity: 1; transition: .3s; }
.hero .swiper-pagination-bullet-active { background: var(--q-red-2); width: 54px; }
.hero-scroll { position: absolute; bottom: 30px; inset-inline-end: max(22px, calc((100vw - var(--maxw))/2 + 22px)); z-index: 3; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; writing-mode: vertical-lr; }
.hero-scroll .line { width: 2px; height: 46px; background: linear-gradient(var(--q-red-2), transparent); animation: scrolldown 1.8s ease-in-out infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ====================================================== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about-body p { color: var(--text-muted); font-size: 17px; margin-bottom: 16px; white-space: pre-line; }
.about-body .section-title { margin-bottom: 20px; }
.vm-cards { display: grid; gap: 16px; margin-top: 28px; }
.vm-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vm-ico { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--q-red-2), var(--q-red)); box-shadow: var(--shadow-red); }
.vm-ico svg { width: 26px; height: 26px; }
.vm-card h4 { font-size: 19px; margin-bottom: 6px; }
.vm-card p { color: var(--text-muted); font-size: 15px; }
.about-visual { position: relative; }
.about-visual .frame {
    position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/4.4;
    background: linear-gradient(150deg, var(--ink-2), var(--ink)); box-shadow: var(--shadow-lg);
    display: grid; place-items: center;
}
.about-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; inset-block-end: -22px; inset-inline-start: -22px; background: linear-gradient(135deg, var(--q-red-2), var(--q-red)); color: #fff; padding: 22px 28px; border-radius: var(--radius-sm); box-shadow: var(--shadow-red); }
.about-badge .n { font-size: 40px; font-weight: 900; line-height: 1; }
.about-badge .l { font-size: 13.5px; opacity: .9; margin-top: 4px; }

/* ====================================================== STATS =========== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 34px 18px; border-radius: var(--radius); position: relative; }
.section-dark .stat { border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.02); }
.stat .num { font-size: clamp(38px, 5vw, 58px); font-weight: 900; line-height: 1; }
.stat .num .suf { color: var(--q-red-2); }
.stat .lbl { margin-top: 12px; font-size: 15.5px; color: rgba(255,255,255,.72); font-weight: 600; }
.section:not(.section-dark) .stat .lbl { color: var(--text-muted); }

/* ====================================================== SERVICES ======= */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px;
    position: relative; overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s;
}
.svc-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--q-red-2), var(--q-red)); transform: scaleX(0); transform-origin: inline-start; transition: transform .4s; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-ico { width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; color: var(--q-red); background: var(--q-red-soft); transition: .35s; }
.svc-card:hover .svc-ico { background: linear-gradient(135deg, var(--q-red-2), var(--q-red)); color: #fff; box-shadow: var(--shadow-red); transform: rotate(-6deg); }
.svc-ico svg { width: 32px; height: 32px; }
.svc-card h3 { font-size: 21px; margin-bottom: 12px; }
.svc-card p { color: var(--text-muted); font-size: 15.5px; }
.svc-num { position: absolute; inset-block-start: 20px; inset-inline-end: 24px; font-size: 54px; font-weight: 900; color: var(--q-red-soft); line-height: 1; }

/* ====================================================== SUBSIDIARIES === */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sub-card {
    position: relative; border-radius: var(--radius); padding: 32px 28px; overflow: hidden;
    background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff;
    border: 1px solid rgba(255,255,255,.08); transition: transform .35s, box-shadow .35s;
}
.sub-card::after { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -30%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(193,39,45,.4), transparent 68%); opacity: 0; transition: opacity .4s; }
.sub-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.sub-card:hover::after { opacity: 1; }
.sub-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--q-red-2); background: rgba(193,39,45,.14); padding: 6px 12px; border-radius: 30px; margin-bottom: 18px; }
.sub-card h3 { font-size: 23px; margin-bottom: 10px; position: relative; z-index: 1; }
.sub-card p { color: rgba(255,255,255,.68); font-size: 15px; position: relative; z-index: 1; }
.sub-card .sub-logo { width: 54px; height: 54px; object-fit: contain; margin-bottom: 16px; }

/* ====================================================== MILESTONES ===== */
.timeline { position: relative; max-width: 900px; margin-inline: auto; padding-block: 10px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--q-red-2), var(--border)); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 14px 44px; }
.tl-item:nth-child(odd) { inset-inline-start: 0; text-align: end; }
.tl-item:nth-child(even) { inset-inline-start: 50%; }
.tl-dot { position: absolute; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--q-red); border: 4px solid var(--bg); box-shadow: 0 0 0 4px var(--q-red-soft); }
.tl-item:nth-child(odd) .tl-dot { inset-inline-end: -9px; }
.tl-item:nth-child(even) .tl-dot { inset-inline-start: -9px; }
.tl-year { font-size: 26px; font-weight: 900; color: var(--q-red); margin-bottom: 6px; }
.tl-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; display: inline-block; text-align: start; }
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tl-card h4 { font-size: 18px; margin-bottom: 6px; }
.tl-card p { color: var(--text-muted); font-size: 14.5px; }

/* ====================================================== PARTNERS ======= */
/* direction:ltr keeps the track left-aligned and the layout identical in both
   languages, so it fills the strip immediately (no delay/gap) and always scrolls
   right-to-left (logos enter from the right) in Arabic and English alike. */
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 30px; width: max-content; animation: marquee 30s linear infinite; padding-block: 6px; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* each partner = a logo card + a name label underneath it */
.partner-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.partner {
    width: 200px; height: 128px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 28px; box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.partner img { max-height: 64px; max-width: 100%; object-fit: contain; transition: transform .3s; }
.partner:hover img { transform: scale(1.07); }
/* monogram fallback shown until a real logo is uploaded from the admin */
.partner .p-mono {
    width: 74px; height: 74px; display: grid; place-items: center;
    font-size: 40px; font-weight: 900; line-height: 1; color: var(--q-red);
    background: var(--q-red-soft); border-radius: 20px; transition: .3s;
    text-transform: uppercase;
}
.partner:hover .p-mono { background: linear-gradient(135deg, var(--q-red-2), var(--q-red)); color: #fff; box-shadow: var(--shadow-red); }
.partner-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: .01em; transition: color .3s; }
.partner-item:hover .partner-name { color: var(--q-red); }
.section-dark .partner-name { color: rgba(255,255,255,.82); }

/* ====================================================== TEAM =========== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 24px;
    text-align: center; position: relative; overflow: hidden;
    transition: transform .35s, box-shadow .35s, border-color .35s;
}
.team-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--q-red-2), var(--q-red)); transform: scaleX(0); transform-origin: inline-start; transition: transform .4s; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.team-card:hover::before { transform: scaleX(1); }
.team-avatar { width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-red); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-mono {
    width: 100%; height: 100%; display: grid; place-items: center;
    font-size: 42px; font-weight: 900; color: #fff;
    background: linear-gradient(140deg, var(--q-red-2), var(--q-red) 55%, var(--q-red-dark));
}
.team-card h3 { font-size: 20px; margin-bottom: 6px; }
.team-role { color: var(--q-red); font-weight: 700; font-size: 14.5px; }
.team-bio { color: var(--text-muted); font-size: 14px; margin-top: 10px; }

/* ====================================================== OFFICES ======== */
.offices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.office-card {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 30px; box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform .35s, box-shadow .35s, border-color .35s;
}
.office-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 5px; height: 100%; background: linear-gradient(var(--q-red-2), var(--q-red)); transform: scaleY(0); transform-origin: top; transition: transform .4s; }
.office-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.office-card:hover::before { transform: scaleY(1); }
.office-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--q-red); background: var(--q-red-soft); padding: 6px 12px; border-radius: 30px; margin-bottom: 14px; }
.office-flag svg { width: 15px; height: 15px; }
.office-head h3 { font-size: 22px; margin-bottom: 18px; }
.office-info { display: grid; gap: 12px; margin-bottom: 22px; }
.office-info li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-muted); }
.office-info svg { width: 20px; height: 20px; color: var(--q-red); flex-shrink: 0; margin-top: 2px; }
.office-info a { color: var(--text-muted); }
.office-info a:hover { color: var(--q-red); }
.office-map-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--q-red); margin-top: 14px; }
.office-map-btn svg { width: 17px; height: 17px; }
.office-map-btn:hover { gap: 12px; }
.office-card { cursor: pointer; }
.office-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--q-red); }
.office-cta svg { width: 17px; height: 17px; transition: transform .3s; }
.office-card:hover .office-cta svg { transform: translateX(var(--arrow-shift, 5px)); }
[dir="rtl"] .office-card { --arrow-shift: -5px; }
.office-card:focus-visible { outline: 2px solid var(--q-red); outline-offset: 3px; }

/* office modal */
.office-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.office-modal.open { display: flex; }
.office-modal-backdrop { position: absolute; inset: 0; background: rgba(15,6,8,.72); backdrop-filter: blur(4px); animation: fadeIn .25s ease; }
.office-modal-card {
    position: relative; z-index: 1; background: var(--bg); border-radius: var(--radius);
    width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); animation: popIn .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.office-modal-x { position: absolute; top: 14px; inset-inline-end: 16px; z-index: 3; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(0,0,0,.06); color: var(--text); font-size: 26px; cursor: pointer; line-height: 1; transition: background .2s, transform .2s; }
.office-modal-x:hover { background: var(--q-red); color: #fff; transform: rotate(90deg); }
.office-modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.om-left { padding: 40px 34px; background: var(--bg-soft); border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
.om-left h3 { font-size: 24px; margin-bottom: 20px; }
.om-map { margin-top: 6px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); height: 220px; box-shadow: var(--shadow-sm); }
.om-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.15); }
.om-right { padding: 40px 34px; }
.om-right h4 { font-size: 19px; margin-bottom: 20px; }
@media (max-width: 760px) {
    .office-modal-grid { grid-template-columns: 1fr; }
    .om-left { border-radius: 0; border-start-start-radius: var(--radius); border-start-end-radius: var(--radius); padding: 34px 24px; }
    .om-right { padding: 28px 24px 34px; }
    .om-map { height: 180px; }
}

/* ====================================================== CTA ============= */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(44px, 6vw, 76px); text-align: center; color: #fff; background: linear-gradient(120deg, var(--q-red), var(--q-red-dark)); box-shadow: var(--shadow-red); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 85% -10%, rgba(255,255,255,.16), transparent 60%); }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 42px); position: relative; margin-bottom: 14px; }
.cta-band p { position: relative; font-size: 18px; opacity: .92; max-width: 620px; margin: 0 auto 30px; }
.cta-band .btn { position: relative; }

/* ====================================================== CONTACT ======== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.ci-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.ci-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--q-red-2), var(--q-red)); }
.ci-ico svg { width: 24px; height: 24px; }
.ci-card .l { font-size: 13px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ci-card .v { font-size: 16.5px; font-weight: 600; margin-top: 3px; word-break: break-word; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 15.5px; color: var(--text); background: var(--bg-tint); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--q-red); box-shadow: 0 0 0 4px var(--q-red-soft); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.map-wrap { margin-top: 34px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }

/* ====================================================== TEXT/GALLERY === */
.rich { max-width: 820px; margin-inline: auto; color: var(--text-muted); font-size: 17.5px; white-space: pre-line; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform .35s; }
.gallery-grid a:hover img { transform: scale(1.03); box-shadow: var(--shadow); }

/* ====================================================== FOOTER ========= */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 72px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--q-red-2), var(--q-red), var(--q-red-dark)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 800; }
.footer-brand img { height: 62px; margin-bottom: 20px; background: #fff; padding: 8px 14px; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.footer-brand p { font-size: 14.5px; line-height: 1.9; max-width: 340px; }
.footer-links a { display: block; padding: 7px 0; font-size: 14.5px; transition: color .2s, padding-inline-start .2s; }
.footer-links a:hover { color: var(--q-red-2); padding-inline-start: 6px; }
.footer-contact li { display: flex; gap: 12px; padding: 8px 0; font-size: 14.5px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--q-red-2); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; transition: .25s; }
.socials a:hover { background: linear-gradient(135deg, var(--q-red-2), var(--q-red)); transform: translateY(-4px); box-shadow: var(--shadow-red); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom a:hover { color: var(--q-red-2); }

/* ====================================================== AOS-lite ======= */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].in { transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }

/* toast */
.site-toast { position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 9999; background: #fff; color: var(--text); border-inline-start: 4px solid var(--q-red); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 15px 22px; font-weight: 600; transform: translateY(20px); opacity: 0; transition: .35s; max-width: 340px; }
.site-toast.show { transform: none; opacity: 1; }
.site-toast.ok { border-inline-start-color: #16a34a; }
.site-toast.err { border-inline-start-color: #dc2626; }

/* mobile menu panel */
.mobile-panel { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 90px 30px 30px; transform: translateX(100%); transition: transform .4s cubic-bezier(.6,.05,.2,1); }
[dir="rtl"] .mobile-panel { transform: translateX(-100%); }
.mobile-panel.open { transform: none; }
.mobile-panel a { padding: 16px 4px; font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.09); }
.mobile-panel .btn { margin-top: 22px; }
.mp-close { position: absolute; top: 24px; inset-inline-end: 26px; width: 46px; height: 46px; border: none; background: rgba(255,255,255,.08); border-radius: 50%; color: #fff; font-size: 26px; cursor: pointer; }

/* =============================================== RESPONSIVE ============ */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 460px; margin-inline: auto; }
    .cards-grid, .sub-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
}
@media (max-width: 640px) {
    :root { --nav-h: 68px; }
    .cards-grid, .sub-grid, .stats-grid, .gallery-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .timeline::before { inset-inline-start: 9px; }
    .tl-item { width: 100%; inset-inline-start: 0 !important; padding-inline: 34px 6px; text-align: start !important; }
    .tl-item .tl-dot { inset-inline-start: 0 !important; inset-inline-end: auto !important; }
    .btn { padding: 14px 26px; }
    .hero-actions .btn { flex: 1; }
}
