/* ==========================================================================
   IHSAN MICROFINANCE LTD — Shared stylesheet
   Mobile-first · breakpoints 576 / 768 / 992 / 1200
   ========================================================================== */
/* "Ihsan" wordmark in the header — heavy letters like the name inside the logo (Inter Display Black, SIL OFL, bundled locally) */
@font-face { font-family:"Ihsan Wordmark"; src:url("../fonts/ihsan-wordmark.woff") format("woff"); font-weight:400; font-style:normal; font-display:swap; }

/* ---------- Fonts: Inter (text) + Plus Jakarta Sans (headings), loaded from Google Fonts in each page <head> ---------- */

/* ---------- Tokens (exact system colours) ---------- */
:root {
  --ih-green:#107239; --ih-green-600:#0d5f2f; --ih-green-100:#cfe7d8; --ih-green-50:#e7f3ec;
  --ih-navy:#1a2253;  --ih-navy-700:#131a42;  --ih-navy-50:#e9ebf4;
  --ih-gold:#c9a227;
  --ih-bg:#f4f6f5; --ih-card:#ffffff; --ih-border:#e3e7e5;
  --ih-text:#1d2433; --ih-muted:#6b7280; --ih-danger:#b42318; --ih-light-green:#9fd6b4;
  --radius:.55rem;

  --font-body:"Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head:"Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shadow:0 1px 2px rgba(19,26,66,.06), 0 4px 14px rgba(19,26,66,.06);
  --shadow-lg:0 10px 30px rgba(19,26,66,.14);
  --header-h:68px;
  --container:1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  color: var(--ih-text); background: var(--ih-bg); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ih-green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: var(--font-head); font-weight: 700; color: var(--ih-navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.1rem; color: var(--ih-navy); margin: 0 0 .4em; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ih-gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:absolute; left:-999px; top:8px; background:var(--ih-green); color:#fff; padding:.5rem 1rem; border-radius:.5rem; z-index:1000; }
.skip-link:focus { left: 8px; }

.icon { display:inline-flex; width:1.15em; height:1.15em; flex:none; vertical-align:-.18em; }
.icon svg { width:100%; height:100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--white { background: #fff; }
.section-head { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--ih-muted); }
.eyebrow { display:inline-block; font-size:.78rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--ih-green); margin-bottom:.5rem; }
.eyebrow::after { content:""; display:block; width:32px; height:2px; background:var(--ih-gold); margin:.4rem auto 0; }
.text-left .eyebrow::after { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.68rem 1.2rem; border-radius:.5rem; font: 500 .97rem/1.2 var(--font-body);
  border:1.5px solid transparent; cursor:pointer; text-decoration:none !important;
  transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.btn-primary { background:var(--ih-green); color:#fff; }
.btn-primary:hover { background:var(--ih-green-600); }
.btn-secondary { background:var(--ih-navy); color:#fff; }
.btn-secondary:hover { background:var(--ih-navy-700); }
.btn-outline { background:transparent; color:var(--ih-green); border-color:var(--ih-green); }
.btn-outline:hover { background:var(--ih-green-50); }
.btn-light { background:#fff; color:var(--ih-green); }
.btn-light:hover { background:var(--ih-green-50); }
.btn-ghost-light { background:transparent; color:#fff; border-color:rgba(255,255,255,.7); }
.btn-ghost-light:hover { background:rgba(255,255,255,.12); }
.btn-lg { padding:.9rem 1.5rem; font-size:1.05rem; }
.btn-sm { padding:.42rem .75rem; font-size:.85rem; }
.btn-block { width:100%; }
.btn[disabled] { opacity:.65; cursor:not-allowed; }
.spinner { width:1em; height:1em; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header { position:sticky; top:0; z-index:100; background:var(--ih-navy); color:#fff; transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.header-inner { display:flex; align-items:center; gap:12px; min-height:var(--header-h); }
.brand { display:flex; align-items:center; gap:10px; color:#fff !important; text-decoration:none !important; margin-right:auto; }
.brand-plate {                       /* white plate so the green/navy logo reads clearly on the navy header */
  display:inline-flex; align-items:center; background:#fff; border-radius:.6rem; padding:5px 10px;
  box-shadow:0 2px 10px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.6); transition: box-shadow .2s;
}
.brand:hover .brand-plate { box-shadow:0 4px 16px rgba(0,0,0,.28); }
.brand-plate img { height:40px; width:auto; display:block; }
.brand-admin { font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ih-light-green); }

.main-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:4px; }
.main-nav a { display:block; color:#fff; padding:.5rem .7rem; font-weight:500; font-size:.95rem; border-bottom:2px solid transparent; text-decoration:none; }
.main-nav a:hover { color:var(--ih-light-green); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--ih-green); color:#fff; box-shadow: inset 0 -3px 0 var(--ih-green); }

.header-actions { display:flex; align-items:center; gap:8px; }
.lang-toggle { display:inline-flex; align-items:center; border:1px solid rgba(255,255,255,.35); border-radius:.5rem; overflow:hidden; }
.lang-toggle .icon { margin-left:.45rem; opacity:.8; }
.lang-toggle button { background:none; border:0; color:#fff; font:600 .8rem var(--font-body); padding:.4rem .55rem; cursor:pointer; }
.lang-toggle button[aria-pressed="true"] { background:var(--ih-green); }
.header-phone { color:#fff; font-size:.88rem; display:none; align-items:center; gap:.35rem; }
.header-phone:hover { color:var(--ih-light-green); }
.header-wa, .header-apply { display:none; }
.nav-toggle { background:none; border:0; color:#fff; font-size:1.6rem; padding:.3rem; cursor:pointer; display:inline-flex; }

/* Mobile slide-in menu */
.main-nav {
  position:fixed; top:0; right:0; height:100%; width:min(320px, 86vw); background:var(--ih-navy-700);
  transform:translateX(100%); transition:transform .3s ease; z-index:120; padding:72px 20px 24px;
  display:flex; flex-direction:column; gap:20px; overflow-y:auto; visibility:hidden;
}
.main-nav.open { transform:translateX(0); visibility:visible; }
.main-nav ul { flex-direction:column; }
.main-nav a { padding:.75rem .5rem; font-size:1.05rem; border-bottom:1px solid rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ih-green); padding-left:.9rem; }
.nav-close { position:absolute; top:16px; right:16px; background:none; border:0; color:#fff; font-size:1.6rem; cursor:pointer; display:inline-flex; }
.nav-mobile-actions { display:flex; flex-direction:column; gap:10px; }
.nav-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:110; opacity:0; visibility:hidden; transition:opacity .3s; }
.nav-backdrop.show { opacity:1; visibility:visible; }

@media (min-width: 576px) { .header-wa { display:inline-flex; } }
@media (min-width: 992px) {
  .nav-toggle, .nav-close, .nav-backdrop, .nav-mobile-actions { display:none !important; }
  .main-nav { position:static; transform:none; visibility:visible; background:none; padding:0; height:auto; width:auto; flex-direction:row; overflow:visible; }
  .main-nav ul { flex-direction:row; }
  .main-nav a { border-bottom:2px solid transparent; font-size:.95rem; padding:.5rem .7rem; }
  .main-nav a[aria-current="page"] { box-shadow:none; border-bottom-color:var(--ih-green); padding-left:.7rem; }
  .header-apply { display:inline-flex; }
  .brand { margin-right:16px; }
  .main-nav { margin-right:auto; }
}
@media (min-width: 1200px) { .header-phone { display:inline-flex; } }

/* ---------- Hero slider ---------- */
.hero { position:relative; min-height:clamp(520px, 82vh, 720px); color:#fff; overflow:hidden; background:var(--ih-navy); }
.slides { position:absolute; inset:0; }
.slide { position:absolute; inset:0; opacity:0; transition:opacity .9s ease; }
.slide.active { opacity:1; }
.slide img { width:100%; height:100%; object-fit:cover; color:transparent; }
.hero::after { content:""; position:absolute; inset:0; background:rgba(26,34,83,.55); pointer-events:none; }
.hero-content { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; min-height:inherit; padding-top:40px; padding-bottom:90px; max-width:var(--container); }
.hero h1 { color:#fff; max-width:760px; text-shadow:0 2px 16px rgba(0,0,0,.25); }
.hero p.lead { font-size:clamp(1rem, 2.4vw, 1.2rem); max-width:620px; opacity:.95; }
.hero-tag { display:inline-flex; align-items:center; gap:.45rem; align-self:flex-start; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3); padding:.3rem .75rem; border-radius:999px; font-size:.85rem; margin-bottom:1rem; backdrop-filter: blur(4px); }
.hero-tag .icon { color:var(--ih-gold); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:.5rem; }
.slider-controls { position:absolute; z-index:3; left:0; right:0; bottom:24px; display:flex; align-items:center; justify-content:center; gap:14px; }
.slider-arrow { width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.5); background:rgba(19,26,66,.4); color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:1.2rem; }
.slider-arrow:hover { background:var(--ih-green); border-color:var(--ih-green); }
.slider-arrow.prev .icon { transform: rotate(180deg); }
.slider-dots { display:flex; gap:8px; }
.slider-dots button { width:10px; height:10px; border-radius:50%; border:0; background:rgba(255,255,255,.5); cursor:pointer; padding:0; transition: width .3s, background .3s; }
.slider-dots button[aria-current="true"] { background:#fff; width:26px; border-radius:6px; }

/* ---------- Trust strip ---------- */
.trust { background:#fff; border-bottom:1px solid var(--ih-border); }
.trust-grid { display:grid; grid-template-columns:1fr; gap:0; }
.trust-item { display:flex; align-items:center; gap:14px; padding:22px 8px; border-bottom:1px solid var(--ih-border); }
.trust-item:last-child { border-bottom:0; }
.trust-icon { width:52px; height:52px; border-radius:50%; background:var(--ih-green-50); color:var(--ih-green); display:inline-flex; align-items:center; justify-content:center; font-size:1.4rem; flex:none; }
.trust-num { font-family:var(--font-head); font-weight:700; font-size:2.2rem; color:var(--ih-navy); line-height:1; }
.trust-label { color:var(--ih-muted); font-size:.92rem; }
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item { border-bottom:0; border-right:1px solid var(--ih-border); justify-content:center; }
  .trust-item:last-child { border-right:0; }
}

/* ---------- Cards / service grid ---------- */
.grid { display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width: 576px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background:var(--ih-card); border:1px solid var(--ih-border); border-radius:var(--radius); box-shadow:var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-card { display:flex; flex-direction:column; overflow:hidden; }
.service-media { position:relative; aspect-ratio: 16/9; background:var(--ih-green-50); overflow:hidden; }
.service-media img, .modal-head img, .about-figure img { color:transparent; }
.service-media img { width:100%; height:100%; object-fit:cover; }
.service-media.no-img { display:flex; align-items:center; justify-content:center; color:var(--ih-green); font-size:3.4rem;
  background: var(--ih-green-50); }
.service-media.no-img .icon { opacity:.9; }
.service-badge { position:absolute; top:12px; left:12px; width:44px; height:44px; border-radius:.5rem; background:#fff; color:var(--ih-green); display:inline-flex; align-items:center; justify-content:center; font-size:1.3rem; box-shadow:var(--shadow); }
.service-code { position:absolute; top:12px; right:12px; background:var(--ih-navy); color:#fff; font-size:.72rem; font-weight:600; letter-spacing:.06em; padding:.2rem .5rem; border-radius:.35rem; }
.service-body { padding:18px; display:flex; flex-direction:column; flex:1; }
.service-body p { color:var(--ih-muted); font-size:.93rem; }
.service-meta { list-style:none; padding:0; margin:0 0 16px; display:grid; gap:6px; font-size:.88rem; }
.service-meta li { display:flex; gap:.5rem; align-items:flex-start; }
.service-meta .icon { color:var(--ih-green); margin-top:.2em; }
.service-meta strong { color:var(--ih-navy); font-weight:600; }
.service-actions { margin-top:auto; display:flex; flex-wrap:wrap; gap:8px; }
.service-actions .btn { flex:1 1 auto; }
.link-more { display:inline-flex; align-items:center; gap:.3rem; font-weight:500; background:none; border:0; color:var(--ih-green); cursor:pointer; padding:0; font-size:.92rem; margin-bottom:14px; align-self:flex-start; }
.link-more:hover { text-decoration:underline; }

/* Filter chips */
.chips { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:28px; }
.chip { border:1px solid var(--ih-border); background:#fff; color:var(--ih-navy); border-radius:999px; padding:.45rem 1rem; font:500 .9rem var(--font-body); cursor:pointer; transition: all .2s; }
.chip:hover { border-color:var(--ih-green); color:var(--ih-green); }
.chip[aria-pressed="true"] { background:var(--ih-green); border-color:var(--ih-green); color:#fff; }
.empty-note { text-align:center; color:var(--ih-muted); }

/* ---------- Why IHSAN ---------- */
.why-item { padding:22px; display:flex; gap:14px; align-items:flex-start; }
.why-icon { width:48px; height:48px; border-radius:.55rem; background:var(--ih-navy-50); color:var(--ih-navy); display:inline-flex; align-items:center; justify-content:center; font-size:1.35rem; flex:none; }
.why-item p { margin:0; color:var(--ih-muted); font-size:.93rem; }
@media (min-width: 992px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 576px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background:var(--ih-green); color:#fff; padding:48px 0; }
.cta-inner { display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
.cta-band h2 { color:#fff; margin:0; }
.cta-band p { margin:.3rem 0 0; opacity:.92; }
.cta-actions { display:flex; flex-wrap:wrap; gap:12px; }
@media (min-width: 768px) { .cta-inner { flex-direction:row; align-items:center; justify-content:space-between; } }

/* ---------- Page banner ---------- */
.page-banner { background:var(--ih-navy); color:#fff; padding:48px 0 44px; position:relative; overflow:hidden; }
.page-banner::before { content:""; position:absolute; right:-80px; top:-80px; width:260px; height:260px; border-radius:50%; border:40px solid rgba(255,255,255,.04); }
.page-banner h1 { color:#fff; margin-bottom:.25rem; }
.page-banner p { margin:0; opacity:.88; max-width:640px; }
.breadcrumb { font-size:.85rem; opacity:.75; margin-bottom:.6rem; display:flex; align-items:center; gap:.3rem; }
.breadcrumb a { color:#fff; }

/* ---------- Forms ---------- */
.form-card { padding:22px; }
@media (min-width: 768px) { .form-card { padding:32px; } }
.form-grid { display:grid; grid-template-columns:1fr; gap:2px 20px; }
.field { position:relative; padding-bottom:1.35rem; }  /* reserved space: errors never shift the layout */
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field label { display:block; font-weight:600; font-size:.9rem; color:var(--ih-navy); margin-bottom:.35rem; }
.req { color:var(--ih-danger); }
.input, .select, .textarea {
  width:100%; font:inherit; font-size:1rem; color:var(--ih-text); background:#fff;
  border:1px solid #d5dbd8; border-radius:.5rem; padding:.65rem .8rem; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height:110px; resize:vertical; }
.input:focus, .select:focus, .textarea:focus { outline:none; border-color:var(--ih-green); box-shadow:0 0 0 .2rem rgba(16,114,57,.15); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color:var(--ih-danger); box-shadow:0 0 0 .2rem rgba(180,35,24,.12); }
.field.invalid .check-label { color:var(--ih-danger); }
.help { display:block; font-size:.82rem; color:var(--ih-muted); margin-top:.3rem; }
.err-msg { display:none; position:absolute; left:0; right:0; bottom:.1rem; font-size:.8rem; line-height:1.2; color:var(--ih-danger); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.field.invalid .err-msg { display:block; }
.check-label { display:flex; gap:.55rem; align-items:flex-start; font-weight:400 !important; font-size:.92rem !important; cursor:pointer; }
.check-label input { width:18px; height:18px; margin-top:.15rem; accent-color:var(--ih-green); flex:none; }
.inline-check { margin-top:.45rem; }
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
.input-prefix { position:relative; }
.input-prefix span { position:absolute; left:.8rem; top:50%; transform:translateY(-50%); color:var(--ih-muted); font-weight:600; }
.input-prefix .input { padding-left:1.7rem; }

/* ---------- Alerts ---------- */
.alert { border-radius:var(--radius); padding:14px 16px; margin-bottom:18px; display:flex; gap:.7rem; align-items:flex-start; font-size:.95rem; }
.alert .icon { margin-top:.15em; }
.alert-success { background:#e7f3ec; color:#0b4d27; border:1px solid var(--ih-green-100); }
.alert-error { background:#fdecec; color:#8a1f1f; border:1px solid #f6caca; }
.alert-info { background:var(--ih-navy-50); color:var(--ih-navy); }
.alert h3 { color:inherit; margin-bottom:.2rem; }
.alert .ref { font-family:ui-monospace, Menlo, Consolas, monospace; font-weight:700; font-size:1.1rem; letter-spacing:.04em; }
.alert-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
[hidden] { display:none !important; }

/* Apply layout */
.apply-layout { display:grid; gap:24px; }
@media (min-width: 992px) { .apply-layout { grid-template-columns: 1fr 330px; align-items:start; } .apply-aside { position:sticky; top: calc(var(--header-h) + 20px); } }
.aside-card { padding:22px; }
.aside-card h3 { display:flex; gap:.5rem; align-items:center; }
.aside-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; font-size:.92rem; }
.aside-list li { display:flex; gap:.55rem; align-items:flex-start; }
.aside-list .icon { color:var(--ih-green); margin-top:.2em; }
.svc-summary { margin-top:14px; padding-top:14px; border-top:1px solid var(--ih-border); font-size:.9rem; }

/* ---------- Modal ---------- */
.modal { position:fixed; inset:0; z-index:300; display:flex; align-items:flex-end; justify-content:center; background:rgba(19,26,66,.55); padding:0; opacity:0; visibility:hidden; transition:opacity .25s; }
.modal.open { opacity:1; visibility:visible; }
.modal-dialog { background:#fff; width:100%; max-width:640px; max-height:92vh; overflow-y:auto; border-radius:var(--radius) var(--radius) 0 0; box-shadow:var(--shadow-lg); transform:translateY(20px); transition: transform .25s; }
.modal.open .modal-dialog { transform:none; }
@media (min-width: 576px) { .modal { align-items:center; padding:20px; } .modal-dialog { border-radius:var(--radius); } }
.modal-head { position:relative; }
.modal-head img { width:100%; aspect-ratio: 16/7; object-fit:cover; }
.modal-head.no-img { background:var(--ih-green-50); height:110px; display:flex; align-items:center; justify-content:center; color:var(--ih-green); font-size:3rem; }
.modal-close { position:absolute; top:10px; right:10px; width:38px; height:38px; border-radius:50%; border:0; background:#fff; color:var(--ih-navy); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:1.15rem; box-shadow:var(--shadow); }
.modal-body { padding:22px; }
.modal-body h2 { font-size:1.9rem; margin-bottom:.2rem; }
.detail-table { width:100%; border-collapse:collapse; margin:14px 0 20px; font-size:.93rem; }
.detail-table th, .detail-table td { text-align:left; padding:.6rem .4rem; border-bottom:1px solid var(--ih-border); vertical-align:top; }
.detail-table th { color:var(--ih-muted); font-weight:500; width:40%; }
.detail-table th .icon { color:var(--ih-green); margin-right:.35rem; }
.doc-list { margin:0; padding-left:1.1rem; }
.modal-actions { display:flex; flex-wrap:wrap; gap:10px; }
.modal-actions .btn { flex:1 1 200px; }
body.modal-open { overflow:hidden; }

/* ---------- About ---------- */
.about-grid { display:grid; gap:28px; align-items:center; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-figure { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lg); }
.about-figure img { width:100%; aspect-ratio: 4/3; object-fit:cover; }
.meaning { background:var(--ih-navy); color:#fff; border-radius:var(--radius); padding:28px; position:relative; }
.meaning h2 { color:#fff; }
.meaning .arabic { font-family:var(--font-head); font-size:2.6rem; color:var(--ih-gold); line-height:1; margin-bottom:.4rem; }
.ceo-card { display:flex; gap:18px; align-items:center; padding:24px; }
.ceo-avatar { width:72px; height:72px; border-radius:50%; background:var(--ih-green-50); color:var(--ih-green); display:inline-flex; align-items:center; justify-content:center; font-size:2rem; flex:none; border:2px solid var(--ih-gold); }
.ceo-name { font-family:var(--font-head); font-size:1.6rem; font-weight:700; color:var(--ih-navy); line-height:1.1; }
.ceo-title { color:var(--ih-muted); font-size:.92rem; }
.check-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.check-list li { display:flex; gap:.6rem; align-items:flex-start; }
.check-list .icon { color:var(--ih-green); margin-top:.2em; }

/* ---------- Contact ---------- */
.contact-card { padding:20px; display:flex; gap:14px; align-items:flex-start; color:var(--ih-text); text-decoration:none !important; }
.contact-card .c-icon { width:46px; height:46px; border-radius:.55rem; background:var(--ih-green-50); color:var(--ih-green); display:inline-flex; align-items:center; justify-content:center; font-size:1.3rem; flex:none; }
.contact-card .c-label { font-size:.82rem; color:var(--ih-muted); text-transform:uppercase; letter-spacing:.06em; }
.contact-card .c-value { font-weight:600; color:var(--ih-navy); word-break:break-word; }
.big-actions { display:grid; gap:12px; margin-top:20px; }
@media (min-width: 576px) { .big-actions { grid-template-columns: 1fr 1fr; } }
.social-row { display:flex; flex-wrap:wrap; gap:8px; }
.social-link { display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .8rem; border-radius:.5rem; border:1px solid var(--ih-border); background:#fff; color:var(--ih-navy); font-size:.9rem; font-weight:500; }
.social-link:hover { border-color:var(--ih-green); color:var(--ih-green); text-decoration:none; }
.contact-layout { display:grid; gap:28px; }
@media (min-width: 992px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items:start; } }

/* ---------- Footer ---------- */
.site-footer { background:var(--ih-navy-700); color:rgba(255,255,255,.82); padding:52px 0 0; font-size:.93rem; }
.footer-grid { display:grid; gap:30px; grid-template-columns:1fr; }
@media (min-width: 576px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1.2fr 1.2fr; } }
.site-footer h3 { color:#fff; font-size:.95rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:1rem; }
.site-footer h3::after { content:""; display:block; width:28px; height:2px; background:var(--ih-gold); margin-top:.45rem; }
.site-footer a { color:rgba(255,255,255,.82); }
.site-footer a:hover { color:var(--ih-light-green); text-decoration:none; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:7px; }
.footer-links a { display:inline-flex; gap:.4rem; align-items:center; }
.footer-links .icon { color:var(--ih-light-green); }
.footer-brand .brand { margin-bottom:12px; }
.footer-social { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.footer-social a { display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .65rem; border:1px solid rgba(255,255,255,.18); border-radius:.5rem; font-size:.85rem; }
.footer-social a:hover { border-color:var(--ih-light-green); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:40px; padding:18px 0; font-size:.85rem; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }

/* ---------- Floating WhatsApp & back to top ---------- */
.wa-float { position:fixed; right:16px; bottom:16px; z-index:150; width:58px; height:58px; border-radius:50%; background:var(--ih-green); color:#fff !important; display:inline-flex; align-items:center; justify-content:center; font-size:1.5rem; box-shadow:0 6px 18px rgba(16,114,57,.45); text-decoration:none !important; }
.wa-float::before { content:""; position:absolute; inset:0; border-radius:50%; background:var(--ih-green); z-index:-1; animation: pulse 2.2s ease-out infinite; }
.wa-float-label { position:absolute; right:66px; background:#fff; color:var(--ih-navy); font-size:.8rem; font-weight:600; padding:.3rem .6rem; border-radius:.4rem; box-shadow:var(--shadow); white-space:nowrap; }
@keyframes pulse { 0% { transform:scale(1); opacity:.6; } 100% { transform:scale(1.7); opacity:0; } }
.back-top { position:fixed; right:22px; bottom:86px; z-index:140; width:44px; height:44px; border-radius:50%; border:0; background:var(--ih-navy); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:1.1rem; opacity:0; visibility:hidden; transition: opacity .25s; box-shadow:var(--shadow); }
.back-top .icon { transform: rotate(-90deg); }
.back-top.show { opacity:1; visibility:visible; }
body.menu-open .wa-float, body.menu-open .back-top { display:none; }
body.menu-open { overflow:hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in { opacity:1; transform:none; }
.no-js .reveal { opacity:1; transform:none; }

/* ---------- Admin ---------- */
.admin-body { background:var(--ih-bg); }
.admin-header { background:var(--ih-navy); color:#fff; }
.admin-header .header-inner { min-height:60px; }
.login-wrap { min-height: calc(100vh - 60px); display:flex; align-items:center; justify-content:center; padding:20px 16px; }
.login-card { width:100%; max-width:400px; padding:28px; }
.admin-main { padding:24px 0 60px; }
.admin-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; }
.admin-toolbar .grow { flex:1 1 220px; }
.search-box { position:relative; }
.search-box .icon { position:absolute; left:.75rem; top:50%; transform:translateY(-50%); color:var(--ih-muted); }
.search-box .input { padding-left:2.2rem; }
.filters { display:grid; gap:10px; grid-template-columns:1fr 1fr; margin-bottom:16px; }
@media (min-width: 768px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.filters label { font-size:.78rem; color:var(--ih-muted); font-weight:600; display:block; margin-bottom:.2rem; }
.stat-row { display:grid; gap:10px; grid-template-columns: repeat(2, 1fr); margin-bottom:18px; }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(5, 1fr); } }
.stat { padding:14px 16px; border-left:4px solid var(--ih-navy); }
.stat .n { font-family:var(--font-head); font-size:2rem; font-weight:700; color:var(--ih-navy); line-height:1; }
.stat .l { font-size:.82rem; color:var(--ih-muted); }
.stat.s-new { border-left-color:var(--ih-gold); }
.stat.s-contacted { border-left-color:#2f62c9; }
.stat.s-approved { border-left-color:var(--ih-green); }
.stat.s-rejected { border-left-color:var(--ih-danger); }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--ih-border); margin-bottom:16px; }
.tab { background:none; border:0; padding:.7rem 1rem; font:600 .95rem var(--font-body); color:var(--ih-muted); cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-1px; }
.tab[aria-selected="true"] { color:var(--ih-navy); border-bottom-color:var(--ih-green); }
.tab .count { background:var(--ih-navy-50); color:var(--ih-navy); border-radius:999px; padding:.05rem .5rem; font-size:.75rem; margin-left:.3rem; }
.table-wrap { background:#fff; border:1px solid var(--ih-border); border-radius:var(--radius); overflow:auto; }
.data-table { width:100%; border-collapse:collapse; font-size:.86rem; }
.data-table th { background:var(--ih-navy-50); color:var(--ih-navy); text-align:left; font-weight:600; padding:.65rem .6rem; white-space:nowrap; position:sticky; top:0; }
.data-table td { padding:.6rem; border-top:1px solid var(--ih-border); vertical-align:top; }
.data-table tr:hover td { background:#fafcfb; }
.data-table .msg-cell { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row-actions { display:flex; flex-wrap:wrap; gap:4px; }
.icon-btn { display:inline-flex; align-items:center; gap:.25rem; padding:.3rem .5rem; border-radius:.4rem; border:1px solid var(--ih-border); background:#fff; color:var(--ih-navy); font-size:.78rem; cursor:pointer; text-decoration:none !important; white-space:nowrap; }
.icon-btn:hover { border-color:var(--ih-green); color:var(--ih-green); }
.status-select { font:inherit; font-size:.82rem; padding:.3rem .4rem; border-radius:.4rem; border:1px solid #d5dbd8; background:#fff; }
.badge { display:inline-block; padding:.12rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-New { background:#fbf3d9; color:#7a5e07; }
.badge-Contacted { background:#e3ebfb; color:#1f4597; }
.badge-Approved { background:var(--ih-green-50); color:#0b4d27; }
.badge-Rejected { background:#fdecec; color:#8a1f1f; }
.admin-note { font-size:.82rem; color:var(--ih-muted); margin-top:10px; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ih-navy); color:#fff; padding:.6rem 1rem; border-radius:.5rem; z-index:400; font-size:.9rem; box-shadow:var(--shadow-lg); }

/* Mobile: table → cards */
@media (max-width: 991.98px) {
  .data-table thead { display:none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display:block; width:100%; }
  .data-table tr { border-bottom:8px solid var(--ih-bg); padding:8px 4px; }
  .data-table td { border:0; display:grid; grid-template-columns: 110px 1fr; gap:8px; padding:.35rem .7rem; }
  .data-table td::before { content: attr(data-label); font-weight:600; color:var(--ih-muted); font-size:.78rem; }
  .data-table .msg-cell { max-width:none; white-space:normal; }
  .table-wrap { background:transparent; border:0; }
  .data-table tr { background:#fff; border:1px solid var(--ih-border); border-radius:var(--radius); margin-bottom:12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity:1; transform:none; }
  .card:hover { transform:none; }
}

/* ---------- "COMING SOON AS POSSIBLE" popup (social pages not live yet) ---------- */
.soon-modal { align-items:center; padding:16px; }
.soon-dialog { position:relative; max-width:420px; border-radius:var(--radius); padding:36px 24px 26px; text-align:center; }
.soon-dialog .modal-close { box-shadow:none; background:var(--ih-bg); }
.soon-icon { width:72px; height:72px; margin:0 auto 14px; border-radius:50%; background:var(--ih-green-50); color:var(--ih-green);
  display:flex; align-items:center; justify-content:center; font-size:2rem; border:2px solid var(--ih-gold); }
.soon-platform { display:inline-flex; align-items:center; gap:.35rem; font-size:.85rem; font-weight:600; color:var(--ih-navy);
  background:var(--ih-navy-50); padding:.25rem .75rem; border-radius:999px; margin-bottom:12px; }
.soon-title { font-family:var(--font-body); font-weight:800; font-size:clamp(1.25rem, 5vw, 1.6rem); letter-spacing:.06em; color:var(--ih-green); margin:0 0 .5rem; }
.soon-text { color:var(--ih-muted); margin-bottom:20px; }
.soon-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.soon-actions .btn { flex:1 1 150px; }

/* ==========================================================================
   Cross-device responsiveness: phones · tablets/iPad · laptops · large desktops
   ========================================================================== */

/* Notched phones: keep floating buttons clear of the home bar */
.wa-float { right:calc(16px + env(safe-area-inset-right)); bottom:calc(16px + env(safe-area-inset-bottom)); }
.back-top { right:calc(22px + env(safe-area-inset-right)); bottom:calc(86px + env(safe-area-inset-bottom)); }

/* Very small phones (≤ 374px) */
@media (max-width: 374.98px) {
  .brand-plate img { height:34px; }
  .brand-plate { padding:4px 8px; }
  .lang-toggle .icon { display:none; }
  .hero-actions .btn { width:100%; }
  .btn-lg { padding:.8rem 1.1rem; font-size:1rem; }
  .service-actions .btn { flex:1 1 100%; }
}

/* Phones in landscape: shorter hero so content stays visible */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height:440px; }
  .hero-content { padding-top:24px; padding-bottom:76px; }
  .page-banner { padding:32px 0; }
}

/* Tablets / iPad portrait (768–991) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section { padding:64px 0; }
  .hero-content { padding-left:32px; padding-right:32px; }
  .apply-aside { max-width:none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* iPad landscape / small laptops (992–1199): tighten the header so nothing wraps */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-nav a { padding:.5rem .5rem; font-size:.9rem; }
  .header-wa span:not(.icon) { display:none; }  /* WhatsApp becomes icon-only, keeps its aria via title */
  .header-wa { padding:.42rem .55rem; }
  .brand-plate img { height:36px; }
}

/* Laptops & desktops */
@media (min-width: 1200px) { .section { padding:80px 0; } }

/* Large desktops / TVs (≥ 1440): wider content, larger type */
@media (min-width: 1440px) {
  :root { --container:1320px; }
  body { font-size:1.05rem; }
  .hero { min-height:min(80vh, 820px); }
}
@media (min-width: 1920px) {
  :root { --container:1440px; }
}

/* Touch devices: no hover lift (avoids "sticky" hover on iPad/phones) */
@media (hover: none) {
  .card:hover { transform:none; box-shadow:var(--shadow); }
}

/* ==========================================================================
   Hero with real service photos
   Phones/tablets: the photo fills the hero behind the text.
   Wide screens (≥ 992): sharp framed photo on the right + caption card;
   the same photo, softly blurred, fills the background (keeps small
   source photos from looking pixelated when stretched).
   ========================================================================== */
.hero::after { background: linear-gradient(180deg, rgba(26,34,83,.55) 0%, rgba(26,34,83,.55) 45%, rgba(19,26,66,.82) 100%); }
.hero-text { position:relative; z-index:2; max-width:640px; }
.hero h1 { text-shadow:0 2px 18px rgba(0,0,0,.35); }
.hero p.lead { text-shadow:0 1px 10px rgba(0,0,0,.35); }
.hero-visual { display:none; }
.slide img { transform:scale(1.02); }

@media (min-width: 992px) {
  .hero { min-height:clamp(560px, 78vh, 700px); }
  .slide img { filter: blur(14px) saturate(1.1); transform: scale(1.12); }
  .hero::after { background: linear-gradient(90deg, rgba(19,26,66,.92) 0%, rgba(26,34,83,.80) 50%, rgba(26,34,83,.55) 100%); }

  .hero-content { display:grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap:48px; align-items:center; }
  .hero-visual { display:block; position:relative; z-index:2; justify-self:end; width:100%; max-width:460px; padding-bottom:34px; }
  .hero-frame {
    position:relative; aspect-ratio: 1 / 1; border-radius:1rem; overflow:hidden; background:var(--ih-navy-700);
    box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.18);
  }
  .hero-frame::before {                                   /* thin gold accent frame */
    content:""; position:absolute; inset:10px; border:1px solid rgba(201,162,39,.55); border-radius:.7rem; z-index:2; pointer-events:none;
  }
  .frame-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transform:scale(1.04); transition: opacity .9s ease, transform 6s ease; color:transparent; }
  .frame-img.active { opacity:1; transform:scale(1); }

  .hero-card {
    position:absolute; left:-28px; right:28px; bottom:0; display:flex; align-items:center; gap:12px;
    background:#fff; color:var(--ih-text); border-radius:.75rem; padding:12px 14px; box-shadow:0 14px 30px rgba(0,0,0,.28); z-index:3;
  }
  .hero-card-icon { width:44px; height:44px; border-radius:.55rem; background:var(--ih-green-50); color:var(--ih-green); display:inline-flex; align-items:center; justify-content:center; font-size:1.3rem; flex:none; }
  .hero-card-body { display:flex; flex-direction:column; min-width:0; line-height:1.25; flex:1; }
  .hero-card-code { font-size:.7rem; font-weight:700; letter-spacing:.08em; color:var(--ih-gold); }
  .hero-card-name { color:var(--ih-navy); font-size:.98rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hero-card-amount { font-size:.82rem; color:var(--ih-muted); }
  .hero-card-link { width:36px; height:36px; border-radius:50%; background:var(--ih-green); color:#fff !important; display:inline-flex; align-items:center; justify-content:center; flex:none; }
  .hero-card-link:hover { background:var(--ih-green-600); text-decoration:none; }

  .hero-tag { display:none; }                             /* the caption card names the service instead */
}
@media (min-width: 1200px) { .hero-visual { max-width:500px; } }

/* Service cards: 4:3 photos so people, vehicles and houses aren't cropped */
.service-media { aspect-ratio: 4 / 3; }
.modal-head img { aspect-ratio: 16 / 9; }

@media (prefers-reduced-motion: reduce) {
  .frame-img, .frame-img.active { transform:none; }
}

/* ==========================================================================
   Typography — Inter (text) + Plus Jakarta Sans (headings)
   ========================================================================== */
body { font-feature-settings:"cv11", "ss01"; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
h1, h2 { font-weight:800; letter-spacing:-.025em; line-height:1.12; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); }
h3 { font-family:var(--font-head); font-weight:700; letter-spacing:-.01em; }
.hero h1 { font-weight:800; letter-spacing:-.03em; }
.eyebrow { font-family:var(--font-head); letter-spacing:.14em; }
.btn { font-weight:600; letter-spacing:.005em; }
.trust-num, .stat .n, .ceo-name { font-weight:800; letter-spacing:-.02em; }
.ceo-name { font-size:1.4rem; }
.main-nav a { font-weight:500; letter-spacing:.005em; }
.service-body p, .why-item p, .hero p.lead { line-height:1.65; }
.meaning .arabic { font-family:"Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; font-weight:700; }
.modal-body h2 { font-size:1.6rem; }
.footer-brand .brand { display:inline-flex; }

/* Logo size per device: large enough that "IHSAN MICROFINANCE LTD" and the Arabic line stay readable */
.brand-plate img { height:42px; }
.header-inner { min-height:72px; }
@media (min-width: 768px) { .brand-plate img { height:48px; } .header-inner { min-height:78px; } }
@media (min-width: 1200px) { .brand-plate img { height:56px; } .brand-plate { padding:6px 12px; } .header-inner { min-height:86px; } }
@media (max-width: 374.98px) { .brand-plate img { height:36px; } .brand-plate { padding:4px 7px; } }
.site-footer .brand-plate img { height:60px; }
.admin-header .brand-plate img { height:44px; }

/* ==========================================================================
   White header — logo shown as-is (no frame)
   ========================================================================== */
.site-header { background:#fff; color:var(--ih-navy); border-bottom:1px solid var(--ih-border); }
.site-header.scrolled { box-shadow:0 4px 18px rgba(19,26,66,.10); }
.site-header .brand-plate { background:transparent; box-shadow:none; padding:0; border-radius:0; }
.site-header .brand:hover .brand-plate { box-shadow:none; }

.site-header .header-phone { color:var(--ih-navy); }
.site-header .header-phone:hover { color:var(--ih-green); }
.site-header .lang-toggle { border-color:var(--ih-border); }
.site-header .lang-toggle .icon { color:var(--ih-muted); }
.site-header .lang-toggle button { color:var(--ih-navy); }
.site-header .lang-toggle button[aria-pressed="true"] { background:var(--ih-green); color:#fff; }
.site-header .nav-toggle { color:var(--ih-navy); }

/* Desktop nav links on white */
@media (min-width: 992px) {
  .site-header .main-nav a { color:var(--ih-navy); }
  .site-header .main-nav a:hover { color:var(--ih-green); }
  .site-header .main-nav a[aria-current="page"] { color:var(--ih-green); border-bottom-color:var(--ih-green); }
}
.site-header .brand-plate img { height:46px; }
@media (min-width: 768px) { .site-header .brand-plate img { height:54px; } }
@media (min-width: 1200px) { .site-header .brand-plate img { height:62px; } }
@media (max-width: 374.98px) { .site-header .brand-plate img { height:38px; } }

/* ==========================================================================
   Header brand — round icon + company name as text
   ========================================================================== */
.brand-text-logo { display:inline-flex; align-items:center; gap:11px; text-decoration:none !important; }
.brand-icon { width:50px; height:50px; flex:none; display:block; }
.brand-words { display:flex; flex-direction:column; line-height:1; }
.brand-main {
  font-family:"Ihsan Wordmark", "Arial Black", var(--font-head); font-weight:400; font-size:2.1rem; letter-spacing:0;
  line-height:.95; padding-bottom:1px;
  color:var(--ih-green);
  background:linear-gradient(180deg, #3cb54a 0%, #1f9a3c 45%, #107239 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 1px 0 #0b5a2c) drop-shadow(0 2px 2px rgba(16,114,57,.28));
}
.brand-tag {
  font-family:var(--font-head); font-weight:700; font-size:.66rem; letter-spacing:.21em;
  color:var(--ih-navy); margin-top:5px; padding-top:5px; border-top:2px solid var(--ih-gold);
  white-space:nowrap;
}
.brand-text-logo:hover .brand-main { filter:drop-shadow(0 1px 0 #0b5a2c) drop-shadow(0 2px 3px rgba(16,114,57,.4)); }

@media (min-width: 1200px) {
  .brand-icon { width:56px; height:56px; }
  .brand-main { font-size:2.34rem; }
  .brand-tag { font-size:.72rem; letter-spacing:.235em; }
}
@media (max-width: 767.98px) {
  .brand-text-logo { gap:9px; }
  .brand-icon { width:44px; height:44px; }
  .brand-main { font-size:1.8rem; }
  .brand-tag { font-size:.56rem; letter-spacing:.19em; margin-top:4px; padding-top:4px; }
}
@media (max-width: 374.98px) {
  .brand-text-logo { gap:7px; }
  .brand-icon { width:36px; height:36px; }
  .brand-main { font-size:1.47rem; }
  .brand-tag { font-size:.47rem; letter-spacing:.16em; }
}
.brand-words { align-items:flex-start; }   /* lines keep their own width so fitBrand() can match them */

/* ==========================================================================
   HERO v2 — clean brand background + framed photo revealed from the side
   (replaces the full-width stretched/blurred background photo)
   ========================================================================== */
.hero {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(16,114,57,.38) 0%, rgba(16,114,57,0) 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(201,162,39,.12) 0%, rgba(201,162,39,0) 60%),
    linear-gradient(135deg, #131a42 0%, #1a2253 55%, #16285a 100%);
  min-height:auto;
}
.hero .slides { display:none; }                       /* no stretched background photo */
.hero::after, .hero::after {                           /* subtle dotted texture (no dark photo overlay) */
  background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 22px 22px;
}

/* Text column */
.hero-content { display:grid; grid-template-columns:1fr; gap:40px; align-items:center; padding-top:56px; padding-bottom:104px; }
.hero-tag { display:inline-flex !important; background:rgba(255,255,255,.08); border-color:rgba(201,162,39,.45);
  font-size:.78rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:#fff; }
.hero h1 { font-size:clamp(2rem, 4.6vw, 3.3rem); line-height:1.08; text-shadow:none; max-width:620px; margin-bottom:.45em; }
.hero p.lead { color:rgba(255,255,255,.82); text-shadow:none; max-width:540px; font-size:clamp(1rem, 1.6vw, 1.12rem); margin-bottom:1.6rem; }
.hero-text > * { opacity:0; animation: heroUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-text > :nth-child(1) { animation-delay:.05s; }
.hero-text > :nth-child(2) { animation-delay:.15s; }
.hero-text > :nth-child(3) { animation-delay:.28s; }
.hero-text > :nth-child(4) { animation-delay:.4s; }
@keyframes heroUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }

/* Photo column (all screen sizes) */
.hero-visual { display:block !important; position:relative; z-index:2; width:100%; max-width:440px; margin:0 auto; padding:0 18px 40px 0;
  opacity:0; animation: heroIn 1s .25s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes heroIn { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:none; } }

/* decorative corners behind the frame */
.hero-deco { position:absolute; pointer-events:none; }
.hero-deco--back { top:22px; left:22px; right:0; bottom:58px; border:2px solid rgba(201,162,39,.75); border-radius:1.4rem; }
.hero-deco--dots { width:110px; height:110px; left:-26px; top:-26px; border-radius:.9rem;
  background-image: radial-gradient(rgba(159,214,180,.7) 2px, transparent 2px); background-size:14px 14px; }

.hero-frame {
  position:relative; aspect-ratio: 4 / 4.4; border-radius:1.4rem; overflow:hidden; background:#0f1535;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.06);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-frame::before { content:""; position:absolute; inset:0; z-index:2; border-radius:inherit; pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); border:none; }
.hero-frame::after {                                   /* soft light sweep */
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background: linear-gradient(180deg, rgba(19,26,66,0) 55%, rgba(19,26,66,.45) 100%);
}
@keyframes heroFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }

/* each photo is revealed with a side wipe + gentle zoom */
.frame-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; color:transparent;
  opacity:1 !important; transform:scale(1.12); clip-path: inset(0 0 0 100%); transition:none; z-index:0; }
.frame-img.prev { clip-path: inset(0 0 0 0); transform:scale(1); z-index:1; }
.frame-img.active { clip-path: inset(0 0 0 0); transform:scale(1); z-index:2;
  transition: clip-path 1.1s cubic-bezier(.77,0,.18,1), transform 7s ease-out; }

/* caption card */
.hero-card { position:absolute; left:-14px; right:32px; bottom:0; display:flex; align-items:center; gap:12px; z-index:3;
  background:#fff; color:var(--ih-text); border-radius:.9rem; padding:12px 14px; box-shadow:0 18px 40px rgba(0,0,0,.30); }
.hero-card.swap { animation: cardSwap .7s cubic-bezier(.2,.7,.2,1); }
@keyframes cardSwap { 0% { opacity:0; transform:translateY(14px); } 100% { opacity:1; transform:none; } }
.hero-card-icon { width:42px; height:42px; border-radius:.6rem; background:var(--ih-green-50); color:var(--ih-green); display:inline-flex; align-items:center; justify-content:center; font-size:1.25rem; flex:none; }
.hero-card-body { display:flex; flex-direction:column; min-width:0; line-height:1.25; flex:1; }
.hero-card-code { font-size:.68rem; font-weight:700; letter-spacing:.1em; color:var(--ih-gold); }
.hero-card-name { color:var(--ih-navy); font-size:.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hero-card-amount { font-size:.8rem; color:var(--ih-muted); }
.hero-card-link { width:36px; height:36px; border-radius:50%; background:var(--ih-green); color:#fff !important; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.hero-card-link:hover { background:var(--ih-green-600); text-decoration:none; }

.slider-controls { bottom:28px; }

@media (min-width: 768px) {
  .hero-content { padding-top:72px; padding-bottom:112px; }
  .hero-visual { max-width:460px; }
}
@media (min-width: 992px) {
  .hero::after { background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 22px 22px; }
  .hero-content { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap:64px; padding-top:72px; padding-bottom:112px; }
  .hero-visual { justify-self:end; margin:0; max-width:470px; }
  .hero-frame { aspect-ratio: 4 / 4.3; }
}
@media (min-width: 1200px) { .hero-visual { max-width:500px; } }
@media (max-width: 575.98px) {
  .hero-content { gap:32px; padding-top:40px; padding-bottom:96px; }
  .hero-visual { max-width:360px; padding-right:14px; }
  .hero-deco--dots { width:80px; height:80px; left:-14px; top:-14px; }
  .hero-card { left:-6px; right:20px; padding:10px 12px; }
  .hero-card-name { font-size:.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-visual { opacity:1; animation:none; }
  .hero-frame, .hero-card.swap { animation:none; }
  .frame-img { transition:none; transform:none; }
}

/* ---------- Footer logo (round icon) ---------- */
.footer-logo { width:88px; height:88px; display:block; margin-bottom:16px; border-radius:50%;
  box-shadow:0 0 0 4px rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.3); }

/* ==========================================================================
   HERO v3 — larger frame + welcome caption on the photo
   ========================================================================== */
.hero-visual { max-width:520px; }
@media (min-width: 992px) {
  .hero-content { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:56px; }
  .hero-visual { max-width:560px; }
  .hero-frame { aspect-ratio: 1 / 1.02; }
}
@media (min-width: 1200px) { .hero-visual { max-width:600px; } }

.frame-caption {
  position:absolute; left:0; right:0; top:0; z-index:3; padding:22px 24px 46px;
  background: linear-gradient(180deg, rgba(19,26,66,.88) 0%, rgba(19,26,66,.62) 55%, rgba(19,26,66,0) 100%);
  color:#fff; pointer-events:none;
}
.frame-welcome {
  display:inline-flex; align-items:center; gap:.4rem; font-family:var(--font-head); font-size:.72rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--ih-gold); margin-bottom:.4rem;
}
.frame-welcome::before { content:""; width:22px; height:2px; background:var(--ih-gold); display:inline-block; }
.frame-msg { margin:0; font-size:1.02rem; line-height:1.5; font-weight:500; max-width:420px; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.35); }
.frame-caption.swap .frame-welcome { animation: capIn .7s .15s cubic-bezier(.2,.7,.2,1) both; }
.frame-caption.swap .frame-msg     { animation: capIn .7s .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes capIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }

@media (max-width: 575.98px) {
  .hero-visual { max-width:100%; }
  .frame-caption { padding:16px 16px 36px; }
  .frame-welcome { font-size:.64rem; letter-spacing:.12em; }
  .frame-msg { font-size:.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .frame-caption.swap .frame-welcome, .frame-caption.swap .frame-msg { animation:none; }
}

/* ---------- Footer: bigger, well-fitted logo + centred copyright ---------- */
.footer-logo { width:128px; height:128px; object-fit:contain; margin-bottom:18px; background:#fff; padding:4px;
  box-shadow:0 0 0 5px rgba(255,255,255,.10), 0 10px 26px rgba(0,0,0,.35); }
@media (max-width: 575.98px) { .footer-logo { width:112px; height:112px; } }
.footer-bottom { justify-content:center; text-align:center; }
/* caption sits at the bottom of the photo (keeps faces and subjects clear), above the service card */
.frame-caption {
  top:auto; bottom:0; padding:90px 24px 64px;
  background: linear-gradient(0deg, rgba(19,26,66,.95) 0%, rgba(19,26,66,.82) 45%, rgba(19,26,66,0) 100%);
}
.hero-frame::after { background:none; }
@keyframes capIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media (max-width: 575.98px) { .frame-caption { padding:70px 16px 54px; } }

/* ==========================================================================
   HERO v4 — frame first (text below) on stacked layouts; caption on top of the photo
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-visual { order:-1; }                 /* frame comes first, text follows underneath */
  .hero-content { padding-top:36px; }
}
.frame-caption {
  top:0; bottom:auto; padding:22px 24px 70px;
  background: linear-gradient(180deg, rgba(19,26,66,.95) 0%, rgba(19,26,66,.80) 45%, rgba(19,26,66,0) 100%);
}
@keyframes capIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
@media (max-width: 575.98px) { .frame-caption { padding:16px 16px 54px; } }

/* ==========================================================================
   HERO v5 — animation polish
   ========================================================================== */

/* 1. Title: words rise in one by one, from soft blur to sharp */
.hero-text > h1 { opacity:1; animation:none; }
.hero h1 .hw { display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.08em; margin-bottom:-.08em; }
.hero h1 .hw > span { display:inline-block; transform:translateY(105%); opacity:0; filter:blur(6px);
  animation: wordUp .8s cubic-bezier(.2,.75,.2,1) forwards; }
@keyframes wordUp { to { transform:none; opacity:1; filter:blur(0); } }

/* 2. Photos: diagonal reveal + slow zoom, previous photo eases back */
.frame-img { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transform:scale(1.18); filter:brightness(.85); }
.frame-img.prev { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform:scale(1.04); filter:brightness(.7);
  transition: transform 1.2s ease, filter 1.2s ease; }
.frame-img.active { clip-path: polygon(-30% 0, 100% 0, 100% 100%, 0 100%); transform:scale(1); filter:brightness(1);
  transition: clip-path 1.2s cubic-bezier(.77,0,.18,1), transform 6.5s cubic-bezier(.2,.6,.2,1), filter 1.2s ease; }

/* light sweep across the frame on each change */
.hero-frame .frame-shine { display:none; }
.hero-frame::before { overflow:hidden; }
.hero-frame.shine::after {
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; z-index:4; pointer-events:none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
  transform:skewX(-18deg); animation: sweep 1.3s .55s ease-out forwards;
}
@keyframes sweep { from { left:-60%; } to { left:130%; } }

/* 3. Caption: gold line draws, label slides, message types out with a caret */
.frame-welcome::before { width:0; transition:none; }
.frame-caption.swap .frame-welcome { animation: labelIn .6s .1s cubic-bezier(.2,.7,.2,1) both; }
.frame-caption.swap .frame-welcome::before { animation: lineDraw .5s .1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes labelIn { from { opacity:0; letter-spacing:.32em; } to { opacity:1; letter-spacing:.14em; } }
@keyframes lineDraw { from { width:0; } to { width:22px; } }
.frame-caption.swap .frame-msg { animation:none; }
.frame-msg { min-height:3em; }
.tw-caret { display:inline-block; width:2px; height:1.05em; margin-left:2px; vertical-align:-.15em; background:var(--ih-gold);
  animation: caret .8s steps(1) infinite; }
.frame-msg.tw-done .tw-caret { animation: caret .8s steps(1) 3, caretOut .2s 2.4s forwards; }
@keyframes caret { 50% { opacity:0; } }
@keyframes caretOut { to { opacity:0; } }

/* 4. Service card: rises in, icon pops */
.hero-card.swap { animation: cardRise .75s .35s cubic-bezier(.2,.75,.2,1) both; }
@keyframes cardRise { from { opacity:0; transform:translateY(22px) scale(.97); } to { opacity:1; transform:none; } }
.hero-card.swap .hero-card-icon { animation: iconPop .55s .75s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes iconPop { from { transform:scale(.4) rotate(-20deg); opacity:0; } to { transform:none; opacity:1; } }
.hero-card.swap .hero-card-link { animation: iconPop .55s .9s cubic-bezier(.3,1.6,.5,1) both; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .hw > span { transform:none; opacity:1; filter:none; animation:none; }
  .frame-img, .frame-img.prev, .frame-img.active { clip-path:none; transform:none; filter:none; transition:none; }
  .frame-img:not(.active) { opacity:0 !important; }
  .hero-frame.shine::after, .hero-card.swap, .hero-card.swap .hero-card-icon, .hero-card.swap .hero-card-link,
  .frame-caption.swap .frame-welcome, .frame-caption.swap .frame-welcome::before { animation:none; }
  .frame-welcome::before { width:22px; }
  .tw-caret { display:none; }
}

/* ==========================================================================
   HOME — "Our services" showcase frame
   ========================================================================== */
.svc-show { max-width:1120px; margin:0 auto; }
.show-frame {
  position:relative; display:grid; grid-template-columns:1fr; background:#fff; border-radius:1.4rem; overflow:hidden;
  box-shadow:0 30px 70px rgba(19,26,66,.16), 0 0 0 1px var(--ih-border);
}
.show-frame::before {                                    /* gold accent bar */
  content:""; position:absolute; left:0; top:0; height:4px; width:100%; z-index:5;
  background:linear-gradient(90deg, var(--ih-green), var(--ih-gold), var(--ih-navy));
}
.show-media { position:relative; aspect-ratio: 4 / 3; overflow:hidden; background:var(--ih-green-50); }
.show-media-link { position:absolute; inset:0; display:block; }
.show-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; color:transparent;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transform:scale(1.15); z-index:0; transition:none; }
.show-img.prev { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform:scale(1.04); filter:brightness(.75); z-index:1;
  transition: transform 1.2s ease, filter 1.2s ease; }
.show-img.active { clip-path: polygon(-30% 0, 100% 0, 100% 100%, 0 100%); transform:scale(1); filter:none; z-index:2;
  transition: clip-path 1.15s cubic-bezier(.77,0,.18,1), transform 6.5s cubic-bezier(.2,.6,.2,1), filter 1s ease; }
.show-media-link:hover .show-img.active { transform:scale(1.04); transition: transform .8s ease; }
.show-media::after {                                      /* soft vignette */
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none;
  background:linear-gradient(180deg, rgba(19,26,66,0) 60%, rgba(19,26,66,.35) 100%);
}
.show-zoom { position:absolute; z-index:4; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--ih-green); display:flex; align-items:center; justify-content:center; font-size:1.5rem;
  opacity:0; transform:scale(.6); transition: opacity .3s, transform .3s; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.show-media-link:hover .show-zoom, .show-media-link:focus-visible .show-zoom { opacity:1; transform:none; }

.show-frame.shine .show-media::before {
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; z-index:4; pointer-events:none;
  background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.3), rgba(255,255,255,0));
  transform:skewX(-18deg); animation: sweep 1.3s .5s ease-out forwards;
}

.show-nav { position:absolute; top:50%; z-index:5; width:44px; height:44px; margin-top:-22px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.92); color:var(--ih-navy); display:inline-flex; align-items:center; justify-content:center; font-size:1.1rem;
  box-shadow:0 6px 18px rgba(0,0,0,.2); transition: background .2s, color .2s, transform .2s; }
.show-nav:hover { background:var(--ih-green); color:#fff; transform:scale(1.06); }
.show-nav.prev { left:14px; } .show-nav.prev .icon { transform:rotate(180deg); }
.show-nav.next { right:14px; }

.show-body { position:relative; padding:28px 24px 30px; display:flex; flex-direction:column; justify-content:center; }
.show-top { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.show-icon { width:46px; height:46px; border-radius:.75rem; background:var(--ih-green-50); color:var(--ih-green);
  display:inline-flex; align-items:center; justify-content:center; font-size:1.35rem; flex:none; }
.show-code { font-family:var(--font-head); font-size:.75rem; font-weight:800; letter-spacing:.14em; color:var(--ih-gold); }
.show-count { margin-left:auto; font-family:var(--font-head); font-size:.85rem; font-weight:700; color:var(--ih-muted); letter-spacing:.06em; }
.show-name { font-family:var(--font-head); font-weight:800; font-size:clamp(1.5rem, 3vw, 2.1rem); line-height:1.15; letter-spacing:-.02em;
  color:var(--ih-navy); margin:0 0 .5rem; }
.show-name .sw { display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.06em; margin-bottom:-.06em; }
.show-name .sw > span { display:inline-block; }
.show-desc { color:var(--ih-muted); font-size:1.02rem; line-height:1.7; margin:0 0 1.4rem; max-width:460px; }
.show-go { align-self:flex-start; display:inline-flex; align-items:center; gap:12px; padding:.55rem .6rem .55rem 1.2rem; border-radius:999px;
  background:var(--ih-navy); color:#fff !important; font-weight:600; text-decoration:none !important; transition: background .25s; }
.show-go-arrow { width:36px; height:36px; border-radius:50%; background:var(--ih-green); display:inline-flex; align-items:center; justify-content:center;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.show-go:hover { background:var(--ih-navy-700); }
.show-go:hover .show-go-arrow { transform:translateX(5px); }
.show-progress { position:absolute; left:24px; right:24px; bottom:14px; height:3px; border-radius:3px; background:var(--ih-border); overflow:hidden; }
.show-progress span { display:block; height:100%; width:100%; background:linear-gradient(90deg, var(--ih-green), var(--ih-gold));
  transform-origin:left; transform:scaleX(0); animation: progress 6.5s linear forwards; }
.show-frame.paused .show-progress span { animation-play-state:paused; }
@keyframes progress { to { transform:scaleX(1); } }

/* text animations on each change */
.show-body.swap .show-top   { animation: fadeSlide .6s .15s cubic-bezier(.2,.7,.2,1) both; }
.show-body.swap .show-name .sw > span { animation: wordUp .75s cubic-bezier(.2,.75,.2,1) both; transform:translateY(105%); opacity:0; filter:blur(5px); }
.show-body.swap .show-desc  { animation: fadeSlide .7s .45s cubic-bezier(.2,.7,.2,1) both; }
.show-body.swap .show-go    { animation: fadeSlide .7s .6s cubic-bezier(.2,.7,.2,1) both; }
.show-body.swap .show-icon  { animation: iconPop .55s .3s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes fadeSlide { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:none; } }

/* service tabs */
.show-tabs { display:flex; gap:8px; margin-top:20px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:thin; scroll-snap-type:x proximity; }
.show-tab { flex:none; scroll-snap-align:start; display:inline-flex; align-items:center; gap:8px; padding:.55rem .95rem; border-radius:999px;
  border:1px solid var(--ih-border); background:#fff; color:var(--ih-navy); font:600 .86rem var(--font-body); cursor:pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s; }
.show-tab .icon { color:var(--ih-green); }
.show-tab:hover { border-color:var(--ih-green); transform:translateY(-2px); }
.show-tab[aria-selected="true"] { background:var(--ih-green); border-color:var(--ih-green); color:#fff; box-shadow:0 8px 18px rgba(16,114,57,.25); }
.show-tab[aria-selected="true"] .icon { color:#fff; }
@media (min-width: 1100px) { .show-tabs { flex-wrap:wrap; justify-content:center; overflow:visible; } }

@media (min-width: 900px) {
  .show-frame { grid-template-columns: 1.15fr .85fr; min-height:440px; }
  .show-media { aspect-ratio:auto; min-height:440px; }
  .show-body { padding:40px 40px 44px; }
  .show-progress { left:40px; right:40px; bottom:22px; }
}

/* ==========================================================================
   SERVICE PAGE
   ========================================================================== */
.sd-grid { display:grid; gap:44px; align-items:center; }
@media (min-width: 992px) { .sd-grid { grid-template-columns: .95fr 1.05fr; gap:64px; } }
.sd-visual { position:relative; max-width:520px; width:100%; margin:0 auto; padding:0 18px 18px 0;
  animation: heroIn 1s .1s cubic-bezier(.2,.7,.2,1) both; }
.sd-visual .hero-deco--back { bottom:0; }
.sd-frame { position:relative; aspect-ratio:1 / 1; border-radius:1.4rem; overflow:hidden; background:#0f1535;
  box-shadow:0 30px 70px rgba(19,26,66,.30); animation: heroFloat 7s ease-in-out infinite; }
.sd-frame img { width:100%; height:100%; object-fit:cover; animation: sdReveal 1.2s .2s cubic-bezier(.77,0,.18,1) both; }
@keyframes sdReveal { from { clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%); transform:scale(1.15); }
                      to   { clip-path: polygon(-30% 0,100% 0,100% 100%,0 100%); transform:scale(1); } }
.sd-frame.shine::after { content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; z-index:2; pointer-events:none;
  background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.3), rgba(255,255,255,0));
  transform:skewX(-18deg); animation: sweep 1.3s 1.1s ease-out forwards; }
.sd-badge { position:absolute; left:16px; top:16px; z-index:3; display:inline-flex; align-items:center; gap:8px; padding:.45rem .8rem;
  border-radius:999px; background:rgba(255,255,255,.95); color:var(--ih-navy); font-weight:700; font-size:.8rem; letter-spacing:.06em;
  box-shadow:0 6px 16px rgba(0,0,0,.18); }
.sd-badge .icon { color:var(--ih-green); }
.sd-info > * { animation: fadeSlide .7s cubic-bezier(.2,.7,.2,1) both; }
.sd-info > :nth-child(2) { animation-delay:.1s; } .sd-info > :nth-child(3) { animation-delay:.2s; }
.sd-info > :nth-child(4) { animation-delay:.3s; } .sd-info > :nth-child(5) { animation-delay:.4s; } .sd-info > :nth-child(6) { animation-delay:.5s; }
.sd-info .eyebrow::after { margin-left:0; }
.sd-name { font-size:clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom:.4rem; }
.sd-desc { font-size:1.08rem; line-height:1.75; color:var(--ih-text); }
.sd-sub { font-size:1rem; margin:1.4rem 0 .7rem; }
.sd-list { list-style:none; padding:0; margin:0 0 1.6rem; display:grid; gap:10px; }
.sd-list li { display:flex; gap:.6rem; align-items:flex-start; padding:12px 14px; background:#fff; border:1px solid var(--ih-border); border-radius:.7rem; }
.sd-list .icon { color:var(--ih-green); margin-top:.2em; }
.sd-list strong { color:var(--ih-navy); }
.sd-actions { display:flex; flex-wrap:wrap; gap:12px; }

.sd-served { margin-top:72px; }
.sd-gallery { display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width: 576px) { .sd-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .sd-gallery { grid-template-columns: repeat(3, 1fr); } }
.sd-shot { position:relative; margin:0; border-radius:1rem; overflow:hidden; background:#fff; border:1px solid var(--ih-border);
  box-shadow:var(--shadow); aspect-ratio:4 / 3; transition: transform .3s, box-shadow .3s; }
.sd-shot:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.sd-shot img { width:100%; height:100%; object-fit:cover; }
.sd-shot figcaption { position:absolute; left:0; right:0; bottom:0; padding:28px 16px 14px; color:#fff; font-weight:600;
  background:linear-gradient(0deg, rgba(19,26,66,.85), rgba(19,26,66,0)); }
.sd-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:8px; padding:24px;
  background: repeating-linear-gradient(135deg, var(--ih-green-50) 0 14px, #fff 14px 28px); border:2px dashed var(--ih-green-100); }
.sd-empty-icon { width:58px; height:58px; border-radius:50%; background:#fff; color:var(--ih-green); display:flex; align-items:center;
  justify-content:center; font-size:1.6rem; box-shadow:var(--shadow); margin-bottom:4px; }
.sd-empty strong { color:var(--ih-navy); }
.sd-empty span:last-child { color:var(--ih-muted); font-size:.88rem; }

.sd-pager { margin-top:56px; display:grid; gap:12px; grid-template-columns:1fr; align-items:stretch; }
@media (min-width: 768px) { .sd-pager { grid-template-columns: 1fr auto 1fr; } }
.sd-pg { display:flex; align-items:center; gap:12px; padding:14px 18px; border-radius:.9rem; background:#fff; border:1px solid var(--ih-border);
  color:var(--ih-navy) !important; font-weight:700; text-decoration:none !important; transition: border-color .2s, transform .2s; }
.sd-pg:hover { border-color:var(--ih-green); transform:translateY(-2px); }
.sd-pg small { display:block; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ih-muted); }
.sd-pg .icon { color:var(--ih-green); font-size:1.2rem; }
.sd-pg.prev .icon { transform:rotate(180deg); }
.sd-pg.next { justify-content:flex-end; text-align:right; }
.sd-pg.all { justify-content:center; background:var(--ih-navy); color:#fff !important; border-color:var(--ih-navy); }

@media (prefers-reduced-motion: reduce) {
  .show-img, .show-img.prev, .show-img.active { clip-path:none; transform:none; filter:none; transition:none; }
  .show-img:not(.active) { opacity:0; }
  .show-body.swap *, .show-progress span, .sd-visual, .sd-frame, .sd-frame img, .sd-info > * { animation:none !important; }
  .show-body.swap .show-name .sw > span { transform:none; opacity:1; filter:none; }
  .show-frame.shine .show-media::before, .sd-frame.shine::after { display:none; }
}

/* ==========================================================================
   FOOTER v2 — logo band on top, centred intro, three tidy columns
   ========================================================================== */
.site-footer { padding-top:0; }
.footer-top { background:#fff; border-bottom:3px solid var(--ih-gold); padding:28px 0; }
.footer-top-logo { display:block; width:100%; max-width:620px; margin:0 auto; }
.footer-top-logo img { display:block; width:100%; height:auto; }

.footer-intro { max-width:640px; margin:0 auto; padding:40px 0 34px; text-align:center; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-intro p { margin:0 0 .6rem; font-size:1rem; line-height:1.7; color:rgba(255,255,255,.85); }
.footer-intro .footer-sharia { color:var(--ih-light-green); font-size:.9rem; display:inline-flex; align-items:center; gap:.4rem; margin-bottom:1.1rem; }
.footer-intro .footer-social { justify-content:center; margin-top:0; }

.footer-cols { display:grid; gap:32px; grid-template-columns:1fr; padding:40px 0 8px; }
@media (min-width: 576px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-cols { grid-template-columns: .8fr 1.1fr 1.1fr; gap:48px; } }
.footer-col h3 { margin-bottom:1.1rem; }
.footer-links { gap:10px; }
.footer-links a, .footer-links li { display:flex !important; align-items:flex-start; gap:.55rem; }
.footer-links .icon { color:var(--ih-light-green); flex:none; margin-top:.22em; }
.footer-links a .icon[data-icon="chevron"] { font-size:.8rem; margin-top:.38em; transition: transform .2s; }
.footer-links a:hover .icon[data-icon="chevron"] { transform:translateX(3px); }
.footer-contact li, .footer-contact a { word-break:break-word; }
.footer-bottom { margin-top:32px; }

@media (max-width: 575.98px) {
  .footer-top { padding:20px 0; }
  .footer-intro { padding:30px 0 26px; }
  .footer-cols { padding-top:30px; }
}

/* Sticky header slides away while the footer is on screen */
.site-header { top:0; transition: top .45s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }   /* slides via `top`, not transform: transform would trap the fixed mobile menu */
.site-header.header-hidden { top:-130px; box-shadow:none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition:none; } }

/* ==========================================================================
   CTA band — compact professional text, centred, easy-to-tap buttons
   ========================================================================== */
.cta-band { padding:44px 0; background:
  radial-gradient(60% 120% at 50% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%), var(--ih-green); }
.cta-inner { flex-direction:column !important; align-items:center !important; justify-content:center !important; text-align:center; gap:22px; }
.cta-inner > div:first-child { max-width:620px; }
.cta-band h2 { font-size:clamp(1.3rem, 2.4vw, 1.7rem); font-weight:700; letter-spacing:-.01em; line-height:1.25; margin:0 0 .45rem; }
.cta-band p { font-size:clamp(.92rem, 1.4vw, 1rem); line-height:1.6; opacity:.9; margin:0; }
.cta-actions { justify-content:center; gap:14px; width:100%; }
.cta-actions .btn { min-height:52px; min-width:180px; padding:.85rem 1.6rem; font-size:1rem; border-radius:.7rem; }
.cta-actions .btn-light { box-shadow:0 8px 20px rgba(0,0,0,.18); }
.cta-actions .btn-light:hover { transform:translateY(-2px); }
.cta-actions .btn-ghost-light { border-width:2px; }
.cta-actions .btn-ghost-light:hover { background:#fff; color:var(--ih-green); transform:translateY(-2px); }
@media (max-width: 575.98px) {
  .cta-band { padding:36px 0; }
  .cta-actions { flex-direction:column; align-items:stretch; max-width:340px; }
  .cta-actions .btn { width:100%; min-width:0; }
}

/* ==========================================================================
   CTA v2 — compact rounded card (not a full-width band); buttons beside the text
   ========================================================================== */
.cta-band { background:transparent; padding:8px 0 56px; }
.cta-band .cta-inner {
  max-width:1040px; margin:0 auto; padding:26px 30px; border-radius:1.25rem; color:#fff;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(201,162,39,.22) 0%, rgba(201,162,39,0) 55%),
    linear-gradient(120deg, #0d5f2f 0%, #107239 55%, #138446 100%);
  box-shadow:0 18px 40px rgba(16,114,57,.25);
  display:flex; flex-direction:column !important; align-items:center !important; text-align:center; gap:16px;
}
.cta-band .cta-inner > div:first-child { max-width:520px; }
.cta-band h2 { font-size:clamp(1.15rem, 2vw, 1.4rem); margin:0 0 .3rem; }
.cta-band p { font-size:.92rem; line-height:1.55; }
.cta-band .cta-actions { width:auto; gap:10px; flex-wrap:nowrap; }
.cta-band .cta-actions .btn { min-height:48px; min-width:0; padding:.7rem 1.3rem; font-size:.95rem; }

@media (min-width: 768px) {
  .cta-band .cta-inner { flex-direction:row !important; justify-content:space-between !important; text-align:left; padding:26px 32px; gap:28px; }
}
@media (max-width: 575.98px) {
  .cta-band { padding:4px 0 40px; }
  .cta-band .cta-inner { margin:0 16px; width:auto; padding:22px 18px; }
  .cta-band .cta-actions { flex-direction:row; width:100%; max-width:none; }
  .cta-band .cta-actions .btn { flex:1 1 0; width:auto; padding:.7rem .8rem; }
}

/* ==========================================================================
   TYPOGRAPHY v3 — one clean, natural font everywhere; moderate sizes, no cramped letters
   Inter when available, otherwise each device's own system font (Segoe UI / San Francisco / Roboto).
   ========================================================================== */
:root {
  --font-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head:var(--font-body);
}
html { font-size:16px; }
body { font-family:var(--font-body); font-size:1rem; line-height:1.65; letter-spacing:0; font-feature-settings:normal;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* headings: lighter weight, natural spacing, comfortable line height */
h1, h2, h3, .show-name, .sd-name, .ceo-name, .trust-num, .stat .n, .cta-band h2, .hero h1 {
  font-family:var(--font-head); letter-spacing:-.005em !important;
}
h1 { font-size:clamp(1.7rem, 3.4vw, 2.5rem); font-weight:700; line-height:1.22; }
h2 { font-size:clamp(1.4rem, 2.6vw, 1.95rem); font-weight:700; line-height:1.25; }
h3 { font-size:1.08rem; font-weight:600; line-height:1.35; }
.hero h1 { font-size:clamp(1.75rem, 3.6vw, 2.7rem); font-weight:700; line-height:1.2; }
.hero h1 .hw { padding-bottom:.12em; margin-bottom:-.12em; }
.hero p.lead { font-size:clamp(.98rem, 1.4vw, 1.08rem); line-height:1.7; }
.page-banner h1 { font-size:clamp(1.6rem, 3.2vw, 2.3rem); }
.show-name { font-size:clamp(1.35rem, 2.4vw, 1.75rem); font-weight:700; line-height:1.25; }
.show-desc, .sd-desc { font-size:1rem; line-height:1.7; }
.sd-name { font-size:clamp(1.5rem, 2.8vw, 2rem); }
.modal-body h2 { font-size:1.45rem; }
.trust-num { font-size:1.9rem; font-weight:700; }
.stat .n { font-size:1.7rem; font-weight:700; }
.ceo-name { font-size:1.3rem; font-weight:700; }
.cta-band h2 { font-weight:700; }
.section-head p, .service-body p, .why-item p { line-height:1.65; }

/* small labels: keep a little tracking but not stretched */
.eyebrow, .hero-tag, .frame-welcome, .show-code, .hero-card-code, .site-footer h3 { letter-spacing:.1em !important; }
.hero-tag { font-size:.74rem; }
.btn { font-weight:600; letter-spacing:0; }

/* brand name in the header */
.brand-main { font-weight:400; letter-spacing:0; }   /* "Ihsan" wordmark, like the logo */
.brand-tag { font-weight:700; }

/* phones: slightly smaller headings so lines don't crowd */
@media (max-width: 575.98px) {
  h1, .hero h1 { font-size:1.7rem; }
  h2 { font-size:1.4rem; }
  .show-name { font-size:1.3rem; }
  .frame-msg { font-size:.88rem; line-height:1.5; }
}

/* ==========================================================================
   HERO v6 — photo block (frame + card + controls) kept separate from the text
   ========================================================================== */
.hero-visual { padding:0 !important; }
.hero-stage { position:relative; padding:0 18px 40px 0; }
.hero .slider-controls { position:static; margin-top:22px; display:flex; justify-content:center; align-items:center; gap:14px; }
.hero-content { padding-bottom:64px; }

@media (max-width: 991.98px) {
  .hero-content { gap:0; padding-top:28px; padding-bottom:48px; }
  .hero-visual { margin-bottom:30px; padding-bottom:28px !important; border-bottom:1px solid rgba(255,255,255,.12); }
  .hero .slider-controls { margin-top:18px; }
  .hero-text { padding-top:4px; }
}
@media (max-width: 575.98px) {
  .hero-stage { padding:0 14px 34px 0; }
  .hero .slider-arrow { width:40px; height:40px; }
}
@media (min-width: 992px) { .hero-content { padding-top:64px; padding-bottom:64px; } }

/* CTA v3 — just "Apply Now" + the two buttons */
.cta-band .cta-inner { max-width:760px; padding:20px 28px; gap:18px; }
.cta-band h2 { font-size:clamp(1.2rem, 2.2vw, 1.5rem); font-weight:700; letter-spacing:.06em !important; text-transform:uppercase; margin:0; }
@media (max-width: 575.98px) { .cta-band .cta-inner { padding:20px 18px; } }

/* ==========================================================================
   HERO v7 (.hx) — white background, one framed photo, text + numbers + actions
   ========================================================================== */
.hx { background:#fff; padding:56px 0 64px; overflow:hidden; }
.hx-grid { display:grid; grid-template-columns:1fr; gap:44px; align-items:center; }
@media (min-width: 992px) { .hx { padding:72px 0 84px; } .hx-grid { grid-template-columns: .95fr 1.05fr; gap:72px; } }

/* --- framed photo --- */
.hx-visual { position:relative; width:100%; max-width:470px; margin:0 auto; padding:0 0 26px 0; }
.hx-frame {
  position:relative; z-index:2; aspect-ratio: 4 / 4.7;
  border:6px solid var(--ih-green); border-radius:46% 0 0 0 / 34% 0 0 0;   /* big curved top-left corner */
  padding:8px; background:#fff; box-shadow:0 26px 60px rgba(19,26,66,.14);
  animation: hxFrameIn 1.1s cubic-bezier(.2,.7,.2,1) both, hxFloat 7s 1.3s ease-in-out infinite;
}
.hx-frame img {
  width:100%; height:100%; object-fit:cover; object-position:50% 35%; display:block;
  border-radius:43% 0 0 0 / 31% 0 0 0;
  animation: hxReveal 1.3s .25s cubic-bezier(.77,0,.18,1) both;
}
.hx-frame::after {                                  /* light sweep once the photo is revealed */
  content:""; position:absolute; top:8px; bottom:8px; left:-60%; width:40%; z-index:3; pointer-events:none;
  background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transform:skewX(-18deg); animation: sweep 1.4s 1.4s ease-out forwards;
}
@keyframes hxFrameIn { from { opacity:0; transform:translateY(30px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes hxReveal  { from { clip-path: inset(100% 0 0 0); transform:scale(1.15); } to { clip-path: inset(0 0 0 0); transform:scale(1); } }
@keyframes hxFloat   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }

.hx-blob { position:absolute; z-index:0; right:-34px; bottom:6px; width:62%; height:58%; border-radius:1.6rem;
  background:var(--ih-green-50); animation: hxFade 1s .5s both; }
.hx-dots { position:absolute; z-index:1; left:-22px; bottom:-4px; width:120px; height:120px;
  background-image: radial-gradient(var(--ih-gold) 2px, transparent 2px); background-size:16px 16px; opacity:.55; animation: hxFade 1s .7s both; }
.hx-badge { position:absolute; z-index:4; right:-10px; top:18%; display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:var(--ih-navy); font-weight:600; font-size:.85rem; padding:.6rem .9rem; border-radius:999px;
  box-shadow:0 12px 28px rgba(19,26,66,.16); animation: hxPop .7s 1.2s cubic-bezier(.3,1.5,.5,1) both; }
.hx-badge .icon { color:var(--ih-green); font-size:1.1rem; }
@keyframes hxFade { from { opacity:0; } to { opacity:1; } }
@keyframes hxPop  { from { opacity:0; transform:scale(.6) translateY(10px); } to { opacity:1; transform:none; } }

/* --- text side --- */
.hx-text > * { animation: hxUp .75s cubic-bezier(.2,.7,.2,1) both; }
.hx-text > :nth-child(1) { animation-delay:.25s; } .hx-text > :nth-child(2) { animation-delay:.35s; }
.hx-text > :nth-child(3) { animation-delay:.5s; }  .hx-text > :nth-child(4) { animation-delay:.65s; }
.hx-text > :nth-child(5) { animation-delay:.8s; }
@keyframes hxUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }

.hx-eyebrow { display:inline-block; color:var(--ih-green); font-weight:700; font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:.7rem; }
.hx-title { color:var(--ih-navy); font-size:clamp(1.8rem, 3.5vw, 2.75rem); font-weight:700; line-height:1.18; margin:0 0 1rem; }
.hx-accent { color:var(--ih-green); background:linear-gradient(transparent 72%, rgba(201,162,39,.28) 72%); }
.hx-lead { color:var(--ih-muted); font-size:1.02rem; line-height:1.75; max-width:520px; margin:0 0 1.8rem; }

/* numbers row, divided like the reference */
.hx-stats { display:grid; grid-template-columns: repeat(3, auto); justify-content:start; gap:0; margin-bottom:2rem; }
.hx-stat { padding:0 28px; border-left:1px solid var(--ih-border); }
.hx-stat:first-child { padding-left:0; border-left:0; }
.hx-num { font-size:clamp(1.8rem, 3vw, 2.4rem); font-weight:700; color:var(--ih-green); line-height:1.1; letter-spacing:-.01em; }
.hx-label { margin-top:.35rem; font-size:.92rem; font-weight:600; color:var(--ih-navy); }

.hx-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hx-actions .btn { min-height:50px; padding:.8rem 1.4rem; border-radius:.7rem; }

/* phones / tablets: photo first, then text */
@media (max-width: 991.98px) {
  .hx { padding:32px 0 48px; }
  .hx-grid { gap:34px; }
  .hx-text { text-align:left; }
}
@media (max-width: 575.98px) {
  .hx-visual { max-width:340px; }
  .hx-frame { border-width:5px; padding:6px; }
  .hx-badge { right:-4px; font-size:.78rem; padding:.5rem .75rem; }
  .hx-stats { grid-template-columns: 1fr 1fr; row-gap:18px; }
  .hx-stat { padding:0 16px; }
  .hx-stat:nth-child(3) { grid-column:1 / -1; padding-left:0; border-left:0; padding-top:16px; border-top:1px solid var(--ih-border); }
  .hx-actions .btn { flex:1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-frame, .hx-frame img, .hx-frame::after, .hx-blob, .hx-dots, .hx-badge, .hx-text > * { animation:none !important; }
}
.hx-frame { overflow:hidden; }                        /* keep the light sweep inside the photo */
.hx-badge { top:auto; bottom:16%; right:-14px; }
@media (max-width: 575.98px) { .hx-badge { bottom:14%; right:-6px; } }
@media (max-width: 575.98px) { .hx-blob { right:-8px; width:58%; } .hx-dots { left:-8px; } }
/* the framed section waits (first frame of every animation) until it is scrolled into view */
.hx:not(.in) .hx-frame, .hx:not(.in) .hx-frame img, .hx:not(.in) .hx-frame::after, .hx:not(.in) .hx-blob,
.hx:not(.in) .hx-dots, .hx:not(.in) .hx-badge, .hx:not(.in) .hx-text > * { animation-play-state:paused !important; }
.hx { padding:72px 0; }
@media (max-width: 991.98px) { .hx { padding:52px 0; } }

/* ==========================================================================
   SERVICES DROP-DOWN (header)
   ========================================================================== */
.nav-dd { position:relative; }
.dd-toggle { display:inline-flex !important; align-items:center; gap:.35rem; }
.dd-arrow { display:inline-flex; font-size:.75rem; transform:rotate(90deg); transition: transform .25s; }
.nav-dd.open .dd-arrow { transform:rotate(-90deg); }
.dd-l1, .dd-l2 { list-style:none; margin:0; padding:0; }
.dd-cat-btn { width:100%; display:flex; align-items:center; gap:.6rem; background:none; border:0; cursor:pointer;
  font:600 .93rem var(--font-body); color:var(--ih-navy); text-align:left; }
.dd-cat-btn > .icon:first-child { color:var(--ih-green); font-size:1.05rem; }
.dd-caret { margin-left:auto; display:inline-flex; font-size:.75rem; color:var(--ih-muted); transition: transform .25s; }
.dd-all a { display:flex !important; align-items:center; gap:.6rem; font-weight:600; }
.dd-all .icon { color:var(--ih-green); }

/* ---- desktop: floating panels ---- */
@media (min-width: 992px) {
  .dd-panel {
    position:absolute; top:calc(100% + 14px); left:-12px; z-index:200; width:270px;
    background:#fff; border-radius:1rem; box-shadow:0 24px 50px rgba(19,26,66,.18), 0 0 0 1px var(--ih-border);
    padding:10px; opacity:0; visibility:hidden; transform:translateY(10px); transition: opacity .22s, transform .22s, visibility .22s;
  }
  .dd-panel::before { content:""; position:absolute; left:0; right:0; top:-16px; height:16px; }      /* hover bridge */
  .nav-dd.open .dd-panel { opacity:1; visibility:visible; transform:none; }
  .dd-cat-btn, .dd-all a { padding:.7rem .8rem !important; border-radius:.6rem; border-bottom:0 !important; box-shadow:none !important; }
  .dd-cat.active > .dd-cat-btn, .dd-cat-btn:hover, .dd-all a:hover { background:var(--ih-green-50); color:var(--ih-green); }
  .dd-cat.active .dd-caret { color:var(--ih-green); transform:translateX(3px); }
  .dd-all { margin-top:4px; padding-top:4px; border-top:1px solid var(--ih-border); }
  .dd-all a { color:var(--ih-navy) !important; font-size:.93rem; }

  .dd-l2 {
    position:absolute; left:calc(100% + 8px); top:0; min-height:100%; width:280px;
    background:#fff; border-radius:1rem; box-shadow:0 24px 50px rgba(19,26,66,.18), 0 0 0 1px var(--ih-border);
    padding:10px; opacity:0; visibility:hidden; transform:translateX(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .dd-l2::before { content:""; position:absolute; top:0; bottom:0; left:-10px; width:10px; }        /* hover bridge */
  .dd-cat.active > .dd-l2 { opacity:1; visibility:visible; transform:none; }
  .dd-l2 a { display:block !important; padding:.6rem .8rem !important; border-radius:.55rem; font-size:.92rem !important;
    font-weight:500; color:var(--ih-text) !important; border-bottom:0 !important; box-shadow:none !important; }
  .dd-l2 a:hover, .dd-l2 a:focus-visible { background:var(--ih-green-50); color:var(--ih-green) !important; padding-left:1rem !important; }
  .dd-l2 a { transition: background .2s, color .2s, padding .2s; }
}

/* ---- phones/tablets: accordion inside the slide-in menu ---- */
@media (max-width: 991.98px) {
  .dd-toggle { width:100%; }
  .dd-arrow { margin-left:auto; }
  .dd-panel { display:none; padding:4px 0 8px 8px; }
  .nav-dd.open .dd-panel { display:block; }
  .main-nav .dd-cat-btn { color:#fff; padding:.7rem .5rem; font-size:.98rem; border-bottom:1px solid rgba(255,255,255,.06); }
  .main-nav .dd-cat-btn > .icon:first-child { color:var(--ih-light-green); }
  .main-nav .dd-caret { color:rgba(255,255,255,.6); }
  .dd-cat.active .dd-caret { transform:rotate(90deg); }
  .dd-l2 { display:none; padding:2px 0 8px 26px; }
  .dd-cat.active > .dd-l2 { display:block; }
  .main-nav .dd-l2 a { padding:.5rem .4rem; font-size:.93rem; color:rgba(255,255,255,.82); border-bottom:0; }
  .main-nav .dd-l2 a:hover { color:var(--ih-light-green); }
  .main-nav .dd-all a { color:#fff; padding:.7rem .5rem; border-bottom:0; }
  .main-nav .dd-all .icon { color:var(--ih-light-green); }
}

/* ==========================================================================
   PROGRAMS PAGE (Hagbad / Donors & Funding)
   ========================================================================== */
.pg-head { display:flex; align-items:center; gap:14px; }
.pg-head h1 { margin:0; }
.pg-head-icon { width:54px; height:54px; border-radius:.9rem; background:rgba(255,255,255,.12); color:var(--ih-light-green);
  display:inline-flex; align-items:center; justify-content:center; font-size:1.6rem; flex:none; }
.pg-banner p { margin-top:.6rem; max-width:720px; line-height:1.7; }
.pg-grid { display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width: 640px) { .pg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pg-grid { grid-template-columns: repeat(3, 1fr); } }
.pg-card { position:relative; background:#fff; border:1px solid var(--ih-border); border-radius:1.1rem; padding:26px 22px 22px;
  box-shadow:var(--shadow); display:flex; flex-direction:column; transition: transform .3s, box-shadow .3s, border-color .3s; scroll-margin-top:110px; }
.pg-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--ih-green-100); }
.pg-card::before { content:""; position:absolute; left:22px; right:22px; top:0; height:3px; border-radius:0 0 3px 3px;
  background:linear-gradient(90deg, var(--ih-green), var(--ih-gold)); }
.pg-num { position:absolute; right:20px; top:18px; font-weight:700; font-size:.85rem; color:var(--ih-green-100); letter-spacing:.06em; }
.pg-icon { width:50px; height:50px; border-radius:.8rem; background:var(--ih-green-50); color:var(--ih-green); display:inline-flex;
  align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:14px; }
.pg-card h3 { font-size:1.12rem; margin-bottom:.45rem; }
.pg-card p { color:var(--ih-muted); line-height:1.65; margin-bottom:1.1rem; flex:1; }
.pg-actions { display:flex; flex-wrap:wrap; gap:8px; }
.pg-card.pg-focus { border-color:var(--ih-green); box-shadow:0 0 0 4px rgba(16,114,57,.18), var(--shadow-lg); animation: pgPulse 1.2s ease 2; }
@keyframes pgPulse { 50% { box-shadow:0 0 0 9px rgba(16,114,57,.08), var(--shadow-lg); } }
.pg-other { margin-top:56px; text-align:center; }
.pg-other h2 { font-size:1.35rem; margin-bottom:16px; }
.pg-other-row { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.pg-chip { display:inline-flex; align-items:center; gap:8px; padding:.7rem 1.1rem; border-radius:999px; background:#fff;
  border:1px solid var(--ih-border); color:var(--ih-navy) !important; font-weight:600; text-decoration:none !important; transition: all .2s; }
.pg-chip .icon { color:var(--ih-green); }
.pg-chip:hover { border-color:var(--ih-green); transform:translateY(-2px); box-shadow:var(--shadow); }
/* drop-down lists are vertical (the generic `.main-nav ul` rule lays lists out in a row) */
.main-nav .dd-l1 { display:block; }
@media (min-width: 992px) { .main-nav .dd-l2 { display:block; } }
@media (max-width: 991.98px) {
  .main-nav .dd-l2 { display:none; }
  .main-nav .dd-cat.active > .dd-l2 { display:block; }
}

/* ==========================================================================
   OUR TARGET — four simple photo cards, no animation
   ========================================================================== */
.target .section-head { margin-bottom:28px; }
.tg-grid { display:grid; gap:18px; grid-template-columns:1fr; }
@media (min-width: 400px) { .tg-grid { grid-template-columns: repeat(2, 1fr); gap:14px; } }
@media (min-width: 992px) { .tg-grid { grid-template-columns: repeat(4, 1fr); gap:22px; } }
.tg-card { background:#fff; border:1px solid var(--ih-border); border-radius:.9rem; overflow:hidden; display:flex; flex-direction:column; }
.tg-img { aspect-ratio: 4 / 3; overflow:hidden; background:var(--ih-bg); }
.tg-img img { width:100%; height:100%; object-fit:cover; display:block; }
.tg-img--plain { background:#fff; }
.tg-img--plain img { object-fit:contain; padding:8px; }
.tg-card h3 { font-size:1rem; font-weight:600; color:var(--ih-navy); margin:14px 16px 4px; }
.tg-card p { font-size:.88rem; line-height:1.55; color:var(--ih-muted); margin:0 16px 16px; }
@media (max-width: 575.98px) {
  .tg-card h3 { font-size:.93rem; margin:10px 12px 2px; }
  .tg-card p { font-size:.8rem; margin:0 12px 12px; }
}
@media (min-width: 340px) and (max-width: 991.98px) { .tg-grid { grid-template-columns: repeat(2, 1fr); gap:12px; } }

/* ==========================================================================
   ABOUT-US FRAME v2 — rounded photo with white border on a tilted green card; no animation
   ========================================================================== */
.hx-visual { max-width:460px; padding:22px 26px 34px 14px; }
.hx-frame {
  border:7px solid #fff; border-radius:1.6rem; padding:0; overflow:hidden; background:#fff;
  aspect-ratio: 4 / 4.5; box-shadow:0 26px 55px rgba(19,26,66,.20), 0 0 0 1px rgba(19,26,66,.06);
  animation:none !important; transform:none !important;
}
.hx-frame img { border-radius:1.15rem; animation:none !important; clip-path:none !important; transform:none !important; object-position:50% 30%; }
.hx-frame::after { content:none; display:none; }
.hx-blob {                                            /* tilted green card behind the photo */
  top:6px; left:30px; right:4px; bottom:16px; width:auto; height:auto; border-radius:1.8rem;
  background:linear-gradient(135deg, #107239 0%, #0d5f2f 100%); transform:rotate(4deg);
  box-shadow:0 18px 40px rgba(16,114,57,.25); animation:none !important;
}
.hx-blob::after {                                     /* thin gold outline offset from the card */
  content:""; position:absolute; inset:-12px; border:2px solid rgba(201,162,39,.65); border-radius:2.2rem;
}
.hx-dots { left:-6px; top:-4px; bottom:auto; width:96px; height:96px; opacity:.6; animation:none !important; }
.hx-badge { animation:none !important; right:2px; bottom:12%; }
.hx-text > * { animation:none !important; }

@media (max-width: 575.98px) {
  .hx-visual { max-width:330px; padding:18px 20px 28px 10px; }
  .hx-frame { border-width:5px; border-radius:1.3rem; }
  .hx-frame img { border-radius:.95rem; }
  .hx-blob { left:22px; transform:rotate(3deg); }
  .hx-blob::after { inset:-9px; }
  .hx-dots { width:70px; height:70px; }
}

/* ==========================================================================
   ALL SERVICES PAGE — four service areas, simple, no animation
   ========================================================================== */
.as-grid { display:grid; gap:24px; grid-template-columns:1fr; }
@media (min-width: 768px) { .as-grid { grid-template-columns: repeat(2, 1fr); } }
.as-card { background:#fff; border:1px solid var(--ih-border); border-radius:1.1rem; overflow:hidden; display:flex; flex-direction:column; }
.as-img { position:relative; display:block; aspect-ratio: 16 / 9; overflow:hidden; background:var(--ih-bg); }
.as-img img { width:100%; height:100%; object-fit:cover; display:block; }
.as-badge { position:absolute; left:16px; bottom:-22px; width:48px; height:48px; border-radius:.8rem; background:var(--ih-green); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; box-shadow:0 8px 18px rgba(16,114,57,.3); border:3px solid #fff; }
.as-img { overflow:visible; }
.as-img img { border-radius:1.1rem 1.1rem 0 0; }
.as-body { padding:34px 20px 22px; display:flex; flex-direction:column; flex:1; }
.as-body h2 { font-size:1.3rem; margin:0 0 .35rem; }
.as-body h2 a { color:var(--ih-navy); text-decoration:none; }
.as-body h2 a:hover { color:var(--ih-green); }
.as-desc { color:var(--ih-muted); font-size:.95rem; line-height:1.6; margin:0 0 .8rem; }
.as-count { display:inline-block; align-self:flex-start; font-size:.75rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ih-green); background:var(--ih-green-50); border-radius:999px; padding:.25rem .7rem; margin-bottom:.8rem; }
.as-list { list-style:none; margin:0 0 18px; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:4px 14px; }
.as-list a { display:flex; align-items:flex-start; gap:.4rem; font-size:.9rem; color:var(--ih-text); text-decoration:none; padding:.25rem 0; }
.as-list a .icon { color:var(--ih-green); font-size:.75rem; margin-top:.4em; flex:none; }
.as-list a:hover { color:var(--ih-green); }
.as-go { margin-top:auto; align-self:flex-start; }
@media (max-width: 400px) { .as-list { grid-template-columns:1fr; } }

/* programs page photo */
.pg-photo { margin:0 0 28px; border-radius:1.1rem; overflow:hidden; aspect-ratio: 21 / 8; background:var(--ih-bg); }
.pg-photo img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 575.98px) { .pg-photo { aspect-ratio: 16 / 9; } }

/* service gallery: white-background photos are shown whole */
.sd-shot--contain { background:#fff; }
.sd-shot--contain img { object-fit:contain; padding:10px; }
.sd-shot--contain figcaption { color:var(--ih-navy); background:linear-gradient(0deg, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.as-img img { position:absolute; inset:0; width:100%; height:100%; }
/* Islamic Financing card: icon graphic shown whole on a light background */
.as-img--contain { background:#f2f7f4; }
.as-img--contain img { object-fit:contain; padding:10px; }

/* ==========================================================================
   ABOUT — logo image, Vision & Mission, Leadership
   ========================================================================== */
.about-figure--logo { background:#fff; box-shadow:var(--shadow); border:1px solid var(--ih-border); }
.about-figure--logo img { aspect-ratio:1 / 1; object-fit:contain; max-height:440px; margin:0 auto; }

.vm { padding-top:0; }
.vm-grid { display:grid; gap:22px; grid-template-columns:1fr; }
@media (min-width: 768px) { .vm-grid { grid-template-columns: 1fr 1fr; } }
.vm-card { background:#fff; border:1px solid var(--ih-border); border-radius:1.1rem; padding:30px 28px; box-shadow:var(--shadow); }
.vm-card .eyebrow::after { margin-left:0; }
.vm-card h2 { font-size:1.45rem; margin:.2rem 0 .7rem; }
.vm-card p { color:var(--ih-muted); line-height:1.75; margin:0; }
.vm-icon { width:52px; height:52px; border-radius:.9rem; background:var(--ih-green-50); color:var(--ih-green);
  display:inline-flex; align-items:center; justify-content:center; font-size:1.5rem; margin-bottom:16px; }
.vm-card--navy { background:var(--ih-navy); border-color:var(--ih-navy); }
.vm-card--navy h2 { color:#fff; }
.vm-card--navy p { color:rgba(255,255,255,.85); }
.vm-card--navy .eyebrow { color:var(--ih-light-green); }
.vm-card--navy .vm-icon { background:rgba(255,255,255,.1); color:var(--ih-light-green); }

.leaders { display:grid; gap:22px; grid-template-columns:repeat(2, 1fr); }
@media (min-width: 992px) { .leaders { grid-template-columns: repeat(4, 1fr); } }
.leader { background:#fff; border:1px solid var(--ih-border); border-radius:1rem; overflow:hidden; box-shadow:var(--shadow); text-align:center; }
.leader-photo { aspect-ratio:5 / 6; background:linear-gradient(160deg, var(--ih-green-50), #fff); display:flex; align-items:center; justify-content:center; }
.leader-photo img { width:100%; height:100%; object-fit:cover; object-position:50% 15%; display:block; }
.leader-initials { width:110px; height:110px; border-radius:50%; background:var(--ih-navy); color:#fff; font-size:2.4rem; font-weight:700;
  display:flex; align-items:center; justify-content:center; letter-spacing:.04em; border:4px solid var(--ih-gold); }
.leader-body { padding:16px 14px 18px; border-top:3px solid var(--ih-green); }
.leader-body h3 { font-size:1rem; margin:0 0 .3rem; }
.leader-body p { margin:0; color:var(--ih-green); font-size:.86rem; font-weight:600; }
@media (max-width: 380px) { .leaders { gap:12px; } .leader-body h3 { font-size:.9rem; } .leader-body p { font-size:.78rem; } .leader-initials { width:80px; height:80px; font-size:1.8rem; } }

/* six nav items: keep the desktop header on one line */
@media (min-width: 992px) and (max-width: 1199.98px) { .main-nav a { padding:.5rem .42rem; font-size:.86rem; } }

/* CTA v4 — smaller card, "Apply Now" on top, both buttons underneath (all screen sizes) */
.cta-band .cta-inner {
  max-width:420px; padding:22px 22px 24px; gap:14px;
  flex-direction:column !important; align-items:center !important; justify-content:center !important; text-align:center;
}
.cta-band .cta-actions { flex-direction:row; justify-content:center; width:100%; gap:10px; }
.cta-band .cta-actions .btn { flex:1 1 0; min-width:0; min-height:46px; padding:.65rem .9rem; font-size:.93rem; }
@media (max-width: 575.98px) { .cta-band .cta-inner { max-width:none; margin:0 16px; } }
/* CTA card on the left, aligned with the page content */
@media (min-width: 576px) {
  .cta-band .cta-inner { margin-left:calc(max(0px, (100% - var(--container)) / 2) + 16px); margin-right:auto; }
}
/* CTA card on the right, aligned with the page content */
@media (min-width: 576px) {
  .cta-band .cta-inner { margin-left:auto; margin-right:calc(max(0px, (100% - var(--container)) / 2) + 16px); }
}
/* CTA card centred */
@media (min-width: 576px) { .cta-band .cta-inner { margin-left:auto; margin-right:auto; } }
