/* =========================================================
   ISOPOL — by Awsaf Contracting Co. — Brand stylesheet
   Palette: Deep Navy #0A1D2F / Teal #00B8C3 / Slate #475569
   Neutrals: Light Gray #E5E7EB / White #FFFFFF
   Fonts: Poppins (Latin) / Cairo (Arabic)
   ========================================================= */

:root {
    --navy: #0A1D2F;
    --navy-700: #11304a;
    --slate: #475569;
    --teal: #00B8C3;
    --teal-dark: #00929b;
    --teal-soft: rgba(0, 184, 195, 0.12);
    /* legacy aliases kept so existing rules map to the new identity */
    --blue: #00B8C3;
    --gold: #00B8C3;
    --gold-dark: #0090a0;
    --ink: #16222e;
    --muted: #51606f;
    --line: #E5E7EB;
    --bg: #ffffff;
    --bg-alt: #f3f6f9;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(10, 29, 47, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 29, 47, 0.16);
    --container: 1180px;
    --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64'%3E%3Cpolygon points='28,2 54,17 54,47 28,62 2,47 2,17' fill='none' stroke='%2300B8C3' stroke-width='1.5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; background: var(--navy); }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.lang-ar { font-family: 'Cairo', system-ui, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.mt { margin-top: 32px; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; }
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}
body.lang-ar .section-tag { letter-spacing: 0; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-sub { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { margin-inline: auto; max-width: 720px; }
.lead { font-size: 18px; color: var(--muted); }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px;
    font-weight: 600; font-size: 15px; cursor: pointer;
    border: 1.5px solid transparent; transition: all 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-download { display: inline-flex; align-items: center; gap: 8px; }
.btn-download svg { flex-shrink: 0; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.link-arrow { color: var(--blue); font-weight: 600; }
.link-arrow:hover { color: var(--navy); }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 72%; }
.brand-mark { display: inline-flex; flex: 0 0 auto; width: 52px; height: 52px; align-items: center; justify-content: center; overflow: hidden; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.brand-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 16px; }
.brand-wordmark { font-size: 22px; letter-spacing: 0.16em; font-weight: 800; }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
body.lang-ar .brand-tag { letter-spacing: 0; }
.brand-tag-foot { font-size: 12px; color: rgba(255,255,255,0.62); margin-top: 2px; }

/* ---------------- ISOPOL animated logo mark ---------------- */
.isopol-mark { overflow: visible; display: block; }
.isopol-mark .hex { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linejoin: round; transition: stroke 0.35s ease; }
.isopol-mark .hex-edge { fill: none; stroke: var(--slate); stroke-width: 6; stroke-linejoin: round; transition: stroke 0.35s ease; }
.isopol-mark .drop { fill: var(--teal); transform-box: fill-box; transform-origin: center; animation: dropFloat 4.5s ease-in-out infinite; }
.isopol-mark .dot { fill: var(--teal); }
.isopol-mark .dot-pulse {
    fill: none; stroke: var(--teal); stroke-width: 2.5;
    transform-box: fill-box; transform-origin: center;
    animation: dotPulse 2.8s ease-out infinite;
}
.isopol-mark--light .hex { stroke: #ffffff; }
.isopol-mark--light .hex-edge { stroke: var(--teal); }

/* Hover: hexagon edge lights up teal + gentle lift */
.brand:hover .isopol-mark .hex-edge { stroke: var(--teal); }
.brand .isopol-mark { transition: transform 0.35s ease; }
.brand:hover .isopol-mark { transform: translateY(-2px) rotate(-3deg); }

@keyframes dotPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}
@keyframes dropFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2.5px); }
}
.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    padding: 9px 14px; border-radius: 8px; font-weight: 500;
    font-size: 15px; color: var(--ink); transition: all 0.15s;
}
.site-nav a:hover { color: var(--blue); background: var(--bg-alt); }
.site-nav a.active { color: var(--navy); font-weight: 700; }
.lang-switch a {
    border: 1.5px solid var(--navy); border-radius: 999px;
    color: var(--navy); font-weight: 600; padding: 7px 16px;
}
.lang-switch a:hover { background: var(--navy); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--hero-img); background-size: cover; background-position: center;
    transform: scale(1.05);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(10,29,47,0.94) 0%, rgba(10,29,47,0.78) 52%, rgba(10,29,47,0.5) 100%);
}
body.lang-ar .hero-overlay {
    background: linear-gradient(250deg, rgba(10,29,47,0.94) 0%, rgba(10,29,47,0.78) 52%, rgba(10,29,47,0.5) 100%);
}
/* Brand hexagon pattern motif + radar accent */
.hero-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image: var(--hex-pattern);
    background-size: 56px 64px;
    opacity: 0.10;
    -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
            mask-image: linear-gradient(to left, #000, transparent 70%);
}
body.lang-ar .hero-pattern {
    -webkit-mask-image: linear-gradient(to right, #000, transparent 70%);
            mask-image: linear-gradient(to right, #000, transparent 70%);
}
.hero-radar {
    position: absolute; top: 50%; inset-inline-end: 6%; transform: translateY(-50%);
    width: 320px; height: 320px; pointer-events: none; opacity: 0.5;
}
.hero-radar span {
    position: absolute; inset: 0; margin: auto; border: 1px solid rgba(0,184,195,0.4); border-radius: 50%;
    animation: radarPing 3.6s ease-out infinite;
}
.hero-radar span:nth-child(2) { animation-delay: 1.2s; }
.hero-radar span:nth-child(3) { animation-delay: 2.4s; }
.hero-radar .radar-core { width: 12px; height: 12px; background: var(--teal); border: 0; box-shadow: 0 0 16px var(--teal); animation: none; }
@keyframes radarPing {
    0%   { width: 12px; height: 12px; opacity: 0.9; }
    100% { width: 320px; height: 320px; opacity: 0; }
}
.hero-inner { position: relative; padding: 110px 24px 120px; max-width: 760px; }
.hero .eyebrow { animation: fadeUp 0.6s ease both; }
.hero-title { animation: fadeUp 0.6s 0.1s ease both; }
.hero-text { animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.6s 0.3s ease both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--teal);
    border: 1px solid rgba(0, 184, 195, 0.45); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}
body.lang-ar .eyebrow { letter-spacing: 0; }
.hero-title { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.15; }
.hero-text { font-size: 18px; color: rgba(255,255,255,0.85); margin: 22px 0 34px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Stats ---------------- */
.stats-band { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 46px 24px; }
.stat { text-align: center; color: #fff; }
.stat-num { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--gold); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.75); }

/* ---------------- About split ---------------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; }
.about-body p { margin-bottom: 16px; color: var(--muted); }
.about-body .section-title { margin-bottom: 18px; }

/* ---------------- Cards ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 19px; margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 15px; }

/* ---------------- Logo marquee / chips ---------------- */
.logo-marquee, .chip-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-marquee li, .chip {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
    padding: 12px 22px; font-weight: 600; color: var(--navy-700); font-size: 15px;
}
.chip-grid { margin-top: 8px; }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-700)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 56px 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-top: 8px; }

/* ---------------- Page hero ---------------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 70px 0 60px; }
.page-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: var(--hex-pattern); background-size: 56px 64px; opacity: 0.08;
    -webkit-mask-image: linear-gradient(to left, #000, transparent 65%);
            mask-image: linear-gradient(to left, #000, transparent 65%);
}
body.lang-ar .page-hero::after {
    -webkit-mask-image: linear-gradient(to right, #000, transparent 65%);
            mask-image: linear-gradient(to right, #000, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-tag { color: var(--teal); }
.page-title { color: #fff; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.page-intro { color: rgba(255,255,255,0.82); max-width: 680px; margin-top: 14px; font-size: 17px; }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .isopol-mark .drop, .isopol-mark .dot-pulse, .hero-radar span,
    .hero .eyebrow, .hero-title, .hero-text, .hero-actions { animation: none; }
    .brand:hover .isopol-mark { transform: none; }
}

/* ---------------- Values / info ---------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.value-card h3 { font-size: 20px; margin-bottom: 12px; }
.value-card p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-block .section-title { font-size: 26px; margin-bottom: 14px; }
.info-block p { color: var(--muted); }

/* ---------------- Org chart ---------------- */
.org-chart { max-width: 920px; margin: 0 auto; }
.org-top { display: flex; justify-content: center; margin-bottom: 30px; }
.org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.org-branch { display: flex; flex-direction: column; gap: 12px; }
.org-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-align: center; font-size: 14px; color: var(--muted); box-shadow: var(--shadow); }
.org-box.org-head { background: var(--navy); color: #fff; font-weight: 700; }
.org-box.org-gm { background: var(--gold); color: var(--navy); min-width: 240px; }
.org-box.org-gm strong { display: block; font-size: 17px; }
.org-box.org-gm span { font-size: 13px; }

/* ---------------- Service rows ---------------- */
.service-list { display: flex; flex-direction: column; gap: 60px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.service-row.reverse .service-media { order: 2; }
.service-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-index { font-size: 46px; font-weight: 800; color: var(--gold); opacity: 0.55; line-height: 1; }
.service-content h2 { font-size: 26px; margin: 8px 0 12px; }
.service-content > p { color: var(--muted); margin-bottom: 18px; }
.check-list li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; color: var(--ink); }
.check-list li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 9px;
    width: 14px; height: 8px; border-inline-start: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark);
    transform: rotate(-45deg);
}

/* ---------------- Projects ---------------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); border-inline-start: 4px solid var(--gold); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card-body { padding: 28px; }
.project-cover { display: block; position: relative; width: 100%; aspect-ratio: 16/10; border: 0; padding: 0; margin: 0; cursor: pointer; background: var(--navy); overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-cover img { transform: scale(1.06); }
.project-cover-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0.9; }
.project-cover-badge { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(15,30,55,0.78); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.project-card h3 { font-size: 19px; }
.project-name { color: var(--blue); font-weight: 600; margin: 6px 0 16px; }
.project-meta div { margin-bottom: 12px; }
.project-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); font-weight: 700; margin-bottom: 3px; }
.project-meta dd { color: var(--muted); font-size: 15px; }
.project-status { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #1d7a4d; background: #e6f5ec; padding: 5px 12px; border-radius: 999px; }

/* Service / card media logo fallback */
.card-media--logo, .service-media--logo { display: flex; align-items: center; justify-content: center; background: var(--bg-alt, #f4f6f9); padding: 24px; }
.card-media--logo img { width: auto; height: auto; max-width: 70%; max-height: 70%; object-fit: contain; }
.service-media--logo { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.service-media--logo img { width: auto; height: auto; max-width: 60%; max-height: 60%; object-fit: contain; box-shadow: none; border-radius: 0; }

/* Admin-defined extra content blocks */
.extra-section { padding-block: 56px; }
.extra-block { max-width: 880px; margin-inline: auto; }
.extra-block .section-title { margin-bottom: 16px; }
.extra-text { color: var(--muted); font-size: 17px; line-height: 1.8; }

/* Lightbox / gallery */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(8,16,30,0.92); padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-stage { max-width: min(1100px, 92vw); max-height: 84vh; display: flex; align-items: center; justify-content: center; }
.lightbox-media { max-width: min(1100px, 92vw); max-height: 84vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); background: #000; }
.lightbox-close { position: absolute; inset-block-start: 18px; inset-inline-end: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { inset-inline-start: 18px; }
.lightbox-next { inset-inline-end: 18px; }
.lightbox-counter { position: absolute; inset-block-end: 22px; inset-inline: 0; text-align: center; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; direction: ltr; }
.award-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.award-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; padding-inline-start: 48px; position: relative; box-shadow: var(--shadow); }
.award-list li::before { content: "★"; position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 18px; }

/* ---------------- Clients ---------------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.clients-grid-home { margin-top: 8px; }
.client-cell {
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 22px 18px; font-weight: 600; color: var(--navy-700); min-height: 110px;
    box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.client-cell img {
    max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(100%); opacity: 0.78; transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.client-cell .client-name { font-size: 15px; }
.client-cell:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.client-cell:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.04); }

/* ---------------- Partners ---------------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; list-style: none; padding: 0; }
.partner-cell {
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 22px 18px; font-weight: 600; color: var(--navy-700); min-height: 100px;
    box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.partner-cell img {
    max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(100%); opacity: 0.78; transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.partner-cell .partner-name { font-size: 15px; }
.partner-cell:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.partner-cell:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.04); }

/* ---------------- Certifications ---------------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; list-style: none; padding: 0; }
.cert-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex; flex-direction: column;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.cert-media {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt); min-height: 200px; padding: 16px;
}
.cert-media img { max-width: 100%; max-height: 240px; width: auto; height: auto; object-fit: contain; }
.cert-pdf { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--blue); }
.cert-pdf-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.cert-body { padding: 18px 20px; }
.cert-body h3 { font-size: 16px; color: var(--navy); margin: 0 0 8px; }
.cert-link { font-weight: 600; font-size: 14px; color: var(--blue); }
.cert-link:hover { color: var(--gold-dark); }

/* ---------------- Contact ---------------- */
.contact-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-item { margin-bottom: 24px; }
.contact-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.contact-item p { color: var(--muted); }
.contact-item a:hover { color: var(--blue); }
.contact-form-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    font: inherit; color: var(--ink); background: var(--bg-alt); transition: 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #e6f5ec; color: #1d7a4d; }
.alert-error { background: #fdecec; color: #c0392b; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.78); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.site-footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 15px; }
.footer-tag { color: var(--gold) !important; font-style: italic; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: 15px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-social-head { margin-top: 24px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.footer-social a {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; min-width: 42px; box-sizing: border-box; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.82); transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-3px); }
.footer-social a svg { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; display: block; shape-rendering: geometricPrecision; }
.footer-social a img { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; display: block; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.footer-social a img.social-icon-raster { border-radius: 4px; background: #fff; padding: 1px; image-rendering: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-admin-link { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-admin-link:hover { color: var(--gold); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 74px; inset-inline: 0; background: #fff;
        border-bottom: 1px solid var(--line); max-height: 0; overflow-y: auto; transition: max-height 0.3s;
        box-shadow: var(--shadow);
    }
    .site-nav.open { max-height: calc(100vh - 74px); }
    .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 22px 22px; gap: 4px; }
    .site-nav a { display: block; padding: 12px 14px; }
    .site-nav .lang-switch { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
    .site-nav .lang-switch a { display: inline-block; width: auto; }
    .about-split, .two-col, .service-row, .service-row.reverse, .contact-split { grid-template-columns: 1fr; gap: 32px; }
    .service-row.reverse .service-media { order: 0; }
    .cards-grid, .values-grid, .project-grid, .org-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 60px 0; }
}
@media (max-width: 480px) {
    /* Keep client/partner logos two per row on phones (requested). */
    .clients-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cert-grid { grid-template-columns: 1fr; }
    .client-cell, .partner-cell { min-height: 92px; padding: 16px 12px; }
    .hero-inner { padding: 80px 24px 90px; }
}

/* ---------------- Floating back-to-top button (all pages) ---------------- */
.back-to-top {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(10, 29, 47, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-dark); transform: translateY(-3px); }
.back-to-top svg { display: block; }
@media (max-width: 480px) {
    .back-to-top { width: 44px; height: 44px; bottom: 16px; inset-inline-end: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: opacity 0.2s ease; }
    .back-to-top:hover { transform: none; }
}
