/*
 * SomaliRank — brand stylesheet
 * Navy #0f2f62 authority · Orange #fd6604 actions · warm cream bg #FAF7F2
 */
:root {
  --navy: #0f2f62;
  --navy-2: #173e78;
  --orange: #fd6604;
  --orange-dark: #cf5100;
  --cream: #FAF7F2;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --border: #e6e1d8;
  --green: #25D366;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ------------------------------------------------ header */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--navy); min-width: 0; }
.brand-logo { display:block; height: 48px; width: auto; max-width: 230px; object-fit: contain; }
.brand-name { display: none; letter-spacing: -0.02em; }

.main-nav { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.25vw, 19px); }
.nav-item { position: relative; }
.nav-parent-link { display:flex; align-items:center; gap:4px; }
.nav-link {
  font-size: 15px; font-weight: 600; color: var(--navy);
  padding: 8px 0; display: inline-block; transition: color .18s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--orange); }
.nav-dropdown-toggle { display:grid; place-items:center; width:25px; height:30px; padding:0; border:0; background:transparent; color:var(--muted); cursor:pointer; border-radius:6px; }
.nav-dropdown-toggle:hover,.nav-dropdown-toggle:focus-visible { color:var(--orange); background:#fff4e9; outline:none; }
.caret { font-size: 11px; color: var(--muted); }

.dropdown {
  position: absolute; top: 100%; left: 0; width: max-content; min-width: 250px; max-width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto;
  background: #fff; border: 1px solid #e4eaf2; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(11,44,98,0.16);
  padding: 8px; opacity: 0; visibility: hidden; pointer-events:none; transform: translateY(5px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item:hover .dropdown,.nav-item:focus-within .dropdown,.nav-item.dd-open .dropdown { opacity: 1; visibility: visible; pointer-events:auto; transform: translateY(0); }
.nav-item:nth-last-of-type(-n+2) .dropdown { left:auto; right:0; }
.dropdown-item {
  display: flex; flex-direction: column; gap: 1px;
  max-width:100%; overflow-wrap:anywhere; padding: 10px 12px; border-radius: 9px; transition: background .16s var(--ease);
}
.dropdown-item:hover,.dropdown-item:focus-visible { background: #f0f6fb; outline:none; }
.dl-label { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.dl-desc { font-size: 12px; color: var(--muted); }

.btn-wa-header {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 10px 18px; border-radius: 10px; transition: transform .15s var(--ease), background .18s;
}
.btn-wa-header:hover { background: #1fb855; }
.btn-wa-header:active { transform: scale(0.97); }
.wa-ic { width: 17px; height: 17px; }

/* Language switcher (EN / SO) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px;
  background: #fff; white-space: nowrap;
}
.lang-switch a { color: var(--navy); text-decoration: none; }
.lang-switch a:hover { color: var(--orange); }
.lang-switch .lang-on { color: var(--orange); }
.lang-switch a + .lang-on::before, .lang-switch .lang-on + a::before {
  content: '/'; color: var(--border); margin-right: 6px; font-weight: 500;
}

.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px; cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 2px; background: var(--navy); margin: 4.5px 0; }

@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .header-inner { min-height:68px; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch;
    gap: 0; padding: 14px; box-shadow: 0 20px 40px rgba(11,44,98,0.12);
    max-height: calc(100vh - 68px); overflow-y: auto; display: none;
  }
  .main-nav.open { display: flex; }
  .nav-item { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .nav-parent-link { justify-content:space-between; }
  .dropdown { position: static; width:100%; max-width:none; max-height:none; overflow:visible; opacity:1; visibility:visible; pointer-events:auto; transform:none; box-shadow:none; border:none; border-radius:0; border-left:2px solid #e9eff5; padding:2px 0 2px 12px; display:none; }
  .nav-item.dd-open .dropdown { display:block; }
  .nav-item:nth-last-of-type(-n+2) .dropdown { left:auto;right:auto; }
  .dropdown-item { padding:8px 10px; }
  .btn-wa-header { align-self: flex-start; margin-top: 8px; }
}

/* ------------------------------------------------ footer */
.site-footer { background: var(--navy); color: #cfd8ec; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 20px 36px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col p { font-size: 14px; }
.footer-links { list-style: none; margin-top: 6px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 14px; color: #b9c5e0; transition: color .16s; }
.footer-links a:hover { color: var(--orange); }
.footer-cta { margin-top: 8px; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff;
  font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 9px; margin-bottom: 10px;
  transition: background .18s;
}
.btn-wa:hover { background: #1fb855; }
.footer-email { display: block; color: #b9c5e0; font-size: 13.5px; }
.footer-email:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 13px; color: #9aa7c4; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ buttons & chips */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 0; cursor: pointer; border-radius: 10px; font-weight: 700;
  transition: transform .14s var(--ease), background .16s, color .16s, box-shadow .16s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: #fff; padding: 11px 20px; font-size: 14.5px; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); padding: 10px 18px; font-size: 14.5px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa-full { background: var(--green); color: #fff; padding: 12px 22px; font-size: 15px; }
.btn-wa-full:hover { background: #1fb855; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; border: 1px solid rgba(5,150,105,0.3);
  background: rgba(255,255,255,0.75); color: #047857;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px;
}

/* ------------------------------------------------ hero */
.hero {
  background: linear-gradient(120deg, #f8f6f0 0%, #f2f5f0 55%, #faf9f5 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 72px;
}
.hero-grid { display: grid; align-items: center; gap: 44px; grid-template-columns: 1.5fr 1fr; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; line-height: 1.12;
  color: var(--navy); letter-spacing: -0.02em; max-width: 640px;
}
.hero h1 .accent { color: var(--orange); }
.hero-sub { color: var(--muted); font-size: 16.5px; max-width: 620px; margin-top: 14px; }
.search-box {
  display: flex; align-items: center; gap: 0; margin-top: 26px; max-width: 560px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 7px;
  box-shadow: 0 8px 24px rgba(11,44,98,0.07);
}
.search-box .spark {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: #ecfdf5; color: #059669; border-radius: 11px; font-size: 20px; flex: none;
}
.search-box input {
  flex: 1; border: 0; outline: none; background: transparent; font-size: 15px;
  padding: 0 10px; color: var(--ink);
}
.search-box button {
  width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--orange);
  color: #fff; cursor: pointer; font-size: 18px; transition: background .16s;
}
.search-box button:hover { background: var(--orange-dark); }
.hero-wa-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-wa-note b { color: #047857; }
.hero-media img { height: 340px; width: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(11,44,98,0.18)); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { display: none; } }

/* ------------------------------------------------ sections */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: rgba(255,255,255,0.55); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 14.5px; max-width: 560px; margin-top: 4px; }
.see-all { font-size: 14px; font-weight: 700; color: var(--orange); display: inline-flex; align-items: center; gap: 5px; }
.see-all:hover { gap: 9px; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-ic {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(234,106,18,0.1);
  color: var(--orange); display: flex; align-items: center; justify-content: center; flex: none;
}
.trust-item .t { font-weight: 700; font-size: 14.5px; color: var(--navy); }
.trust-item .d { font-size: 12.5px; color: var(--muted); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.step .n { font-size: 28px; font-weight: 800; color: rgba(234,106,18,0.32); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 15.5px; color: var(--navy); margin-top: 6px; font-weight: 700; }
.step p { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } .trust { grid-template-columns: 1fr; } }

/* ------------------------------------------------ product cards */
.grid { display: grid; gap: 22px; margin-top: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,44,98,0.1); }
.card-head {
  height: 118px; display: flex; align-items: center; justify-content: center;
  position: relative; color: #fff; overflow: hidden;
}
.card-head.cover { height: auto; aspect-ratio: 16 / 9; display: block; background: #fff; }
.card-head.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; background: #fff; filter: none; }
.card-head .bolt {
  position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.card-photos {
  position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,0.5); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .02em;
}
.card-head img { height: 74px; width: 74px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25)); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.card-title { font-size: 17px; font-weight: 800; color: var(--navy); margin-top: 6px; }

/* product gallery (listing page) */
.gallery { max-width: 560px; }
.gallery-main { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.gallery-main img { width: 100%; height: 320px; object-fit: contain; display: block; background: #fff; }
.gallery-zoom {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(11,44,98,.85); color: #fff; font-size: 16px; cursor: pointer;
}
.gallery-zoom:hover { background: var(--navy); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs .thumb {
  width: 62px; height: 62px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--border); background: #fff;
}
.gallery-thumbs .thumb.active { border-color: var(--orange); }
.lightbox {
  position: fixed; inset: 0; background: rgba(8,20,40,.88); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; background: #fff; }
.detail-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-chips .chip { font-size: 13px; }
.card-desc { font-size: 13px; color: var(--muted); margin-top: 7px; }
.card-features { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.card-features li { display: flex; gap: 6px; margin-bottom: 4px; list-style: none; }
.card-features li::before { content: "✓"; color: #059669; font-weight: 800; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.price-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.price { font-size: 21px; font-weight: 800; color: var(--navy); }
.btn-buy {
  background: #065f46; color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 9px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .16s, transform .14s var(--ease);
}
.btn-buy:hover { background: #047857; }
.btn-buy:active { transform: scale(0.96); }
.service-card-foot { justify-content:flex-start; }
.service-card-foot .service-cta { width:100%; justify-content:center; min-height:44px; }
.status-sold { opacity: 0.65; }
.sold-badge {
  background: #b91c1c; color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.08em;
}

/* category links */
.cat-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 900px) { .cat-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cat-links { grid-template-columns: 1fr; } }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .16s var(--ease), box-shadow .16s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,44,98,0.09); }
.cat-card .icon { font-size: 26px; }
.cat-card h3 { font-size: 15.5px; color: var(--navy); font-weight: 800; }
.cat-card .count { font-size: 12px; color: var(--muted); }

/* CTA banner */
.cta-banner {
  margin-top: 26px; border-radius: 18px; overflow: hidden; display: grid;
  grid-template-columns: 1fr 320px; background: var(--navy); color: #fff;
}
.cta-body { padding: 44px 40px; }
.cta-body h2 { font-size: 27px; font-weight: 800; }
.cta-body p { color: #b9c5e0; margin-top: 10px; max-width: 520px; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; } .cta-media { max-height: 220px; } }

/* custom banner section */
.banner-card { border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; background: #fff; border: 1px solid var(--border); margin-top: 26px; }
.banner-card img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.banner-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.banner-body h2 { color: var(--navy); font-size: 25px; font-weight: 800; }
.banner-body p { color: var(--muted); }
@media (max-width: 800px) { .banner-card { grid-template-columns: 1fr; } }

/* search & listing */
.listing-head { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; margin-top: 26px; }
@media (max-width: 900px) { .listing-head { grid-template-columns: 1fr; } }
.benefits-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.benefits-box h3 { color: var(--navy); font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.benefits-box li { list-style: none; display: flex; gap: 8px; font-size: 13.5px; margin-bottom: 8px; }
.benefits-box li::before { content: "✓"; color: #059669; font-weight: 800; }
.order-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-top: 20px; }
.order-box h3 { color: var(--navy); font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-family: inherit; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(234,106,18,0.35); border-color: var(--orange); }

/* page header */
.page-hero { padding: 44px 0 28px; }
.page-hero h1 { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.page-hero p { color: var(--muted); margin-top: 6px; max-width: 620px; }

/* empty & misc */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h3 { color: var(--navy); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 4px; }
.pill {
  border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 13px;
  font-weight: 600; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pill:hover, .pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* search bar page */
.page-search { display: flex; gap: 12px; margin: 18px 0 26px; }
.page-search input { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; font-size: 15px; font-family: inherit; }

/* services slider */
.services-slider-wrap { margin-top: 28px; }
.services-slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.services-slider-head h2 { font-size: 22px; color: var(--navy); font-weight: 800; }
.services-slider-head p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.services-slider-nav { display: flex; gap: 8px; }
.services-nav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 700; }
.services-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; }
.services-slider::-webkit-scrollbar { height: 8px; }
.services-slider::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 10px; }
.service-slide { min-width: 260px; scroll-snap-align: start; display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg,#fff 0%,#fff7f2 100%); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: inherit; box-shadow: 0 10px 30px rgba(11,44,98,0.04); transition: transform .2s ease, box-shadow .2s ease; }
.service-slide:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(234,106,18,0.12); }
.service-slide-icon { width: 48px; height: 48px; border-radius: 12px; background: radial-gradient(circle at top,#fff,#ffe7d6); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.service-slide-body h3 { color: var(--navy); font-weight: 800; font-size: 16px; }
.service-slide-body p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.service-slide-link { display: inline-block; margin-top: 6px; color: var(--orange); font-weight: 700; font-size: 12px; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 1100px){ .team-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 800px){ .team-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(11,44,98,0.04); transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(11,44,98,0.1); }
.team-photo { width: 100%; height: 220px; background: linear-gradient(135deg,#f8fafc,#f1f5f9); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initial { width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle,#fff,#e7eef9); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: var(--navy); }
.team-initial.large { width: 140px; height: 140px; font-size: 56px; }
.team-body { padding: 16px 18px 18px; }
.team-body h3 { color: var(--navy); font-weight: 800; font-size: 17px; }
.team-role { color: var(--orange); font-weight: 700; margin-top: 4px; font-size: 13px; }
.team-bio { color: var(--muted); margin-top: 8px; font-size: 13px; line-height: 1.6; }
.team-read { display: inline-block; margin-top: 10px; color: var(--orange); font-weight: 700; font-size: 13px; }
.team-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.team-slider::-webkit-scrollbar { height: 8px; }
.team-slider::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 10px; }
.team-slide { min-width: 280px; scroll-snap-align: start; display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: 0 10px 30px rgba(11,44,98,0.04); }
.team-slide-photo { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.team-slide-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-slide-body h3 { color: var(--navy); font-weight: 800; }
.team-slide-role { color: var(--orange); font-size: 12px; font-weight: 700; }
.team-slide-body p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.team-profile { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px){ .team-profile{ grid-template-columns: 1fr; } }
.team-profile-aside { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px; text-align: center; box-shadow: 0 12px 40px rgba(11,44,98,0.05); }
.team-profile-photo { width: 170px; height: 170px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#f8fafc,#eef2ff); display: flex; align-items: center; justify-content: center; }
.team-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-contact { text-align: left; margin-top: 14px; display: grid; gap: 8px; font-size: 14px; }
.team-social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.team-soc-link { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-weight: 700; font-size: 13px; background: #fff; }
.team-profile-main { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: 0 12px 40px rgba(11,44,98,0.05); }
.team-bio-full { line-height: 1.9; color: var(--text); white-space: normal; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: 0 10px 30px rgba(11, 44, 98, 0.08); transform: translateY(-2px); }
.post-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.post-card-media { width: 100%; aspect-ratio: 16 / 9; background: #efece5; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .p-body { padding: 20px; color: inherit; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 16.5px; color: var(--navy); font-weight: 800; line-height: 1.35; }
.post-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.post-card .read { color: var(--orange); font-weight: 700; font-size: 13px; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }

/* footer social */
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-soc { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); color: #fff; text-decoration: none; font-size: 13px; background: rgba(255,255,255,0.04); }
/* blog post */
.post-hero { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin-bottom: 24px; background: #efece5; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: clamp(18px, 4vw, 34px); margin-top: 24px; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { color: var(--navy); margin: 1.6em 0 0.8em; line-height: 1.3; }
.post-body h2 { font-size: clamp(19px, 2.2vw, 24px); }
.post-body h3 { font-size: clamp(17px, 2vw, 21px); }
.post-body p { margin-bottom: 1.1em; color: var(--ink); }
.post-body ul, .post-body ol { margin: 1em 0 1.4em 1.6em; display: grid; gap: 0.6em; }
.post-body li { color: var(--ink); }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 1.8rem auto; }
.post-body figure { margin: 1.8rem 0; }
.post-body figure img { margin: 0 auto; }
.post-body figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.post-body a { color: var(--orange); font-weight: 600; }
.post-body blockquote { border-left: 4px solid rgba(234,106,18,0.4); padding: 0.8em 1.2em; margin: 1.6em 0; background: rgba(250,247,242,0.8); border-radius: 0 12px 12px 0; color: var(--muted); }
.post-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.contact-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 14px; }
.contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14.5px; }
.contact-row .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(234,106,18,0.1); display: flex; align-items: center; justify-content: center; color: var(--orange); flex: none; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 18px 22px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 20px; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.faq-wrap { max-width: 820px; }

/* testimonials */
.tst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tst-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tst-stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; }
.tst-text { color: var(--ink); font-size: 14px; line-height: 1.65; flex: 1; }
.tst-who { display: flex; align-items: center; gap: 10px; }
.tst-logo {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--navy); font-weight: 800; font-size: 17px;
}
.tst-name { font-weight: 800; color: var(--navy); font-size: 14px; }
.tst-name a { color: inherit; }
.tst-company { color: var(--muted); font-size: 12px; }
@media (max-width: 860px) { .tst-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tst-grid { grid-template-columns: 1fr; } }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--orange); font-weight: 600; }

/* academy teaser */
.academy-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(120deg, #fff7ed, #fff); border: 1px solid var(--border); margin-top: 26px;
}
.academy-card img { width: 100%; height: 100%; object-fit: cover; min-height: 210px; }
.academy-body { padding: 36px 40px; }
.academy-body .kicker { color: var(--orange); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.academy-body h2 { color: var(--navy); font-size: 26px; font-weight: 800; margin-top: 6px; }
.academy-body p { color: var(--muted); margin-top: 8px; max-width: 560px; }
@media (max-width: 800px) { .academy-card { grid-template-columns: 1fr; } }

/* rich text section */
.rich-body { max-width: 820px; }
.rich-body h2 { color: var(--navy); font-size: 24px; margin-bottom: 10px; }
.rich-body p { color: var(--ink); font-size: 15px; }

/* ------------------------------------------------ hero slider */
.hero-slider { position: relative; }
.hero-top { position: relative; }
.hero-visual.hero-slider {
  height: var(--hero-h, 360px); border-radius: 24px; overflow: hidden;
  background: #0b2c62; box-shadow: 0 18px 40px rgba(11,44,98,0.18);
}
.hero-banner.hero-slider {
  height: var(--hero-h, 360px); border-radius: 24px; overflow: hidden;
  background: #0b2c62; box-shadow: 0 18px 40px rgba(11,44,98,0.16);
  margin-bottom: 30px;
}
.hero-mode-banner-bottom .hero-banner.hero-slider { margin: 30px 0 0; }
.hero-slide, .hero-bg-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.hero-slide.is-active, .hero-bg-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide.is-broken, .hero-bg-slide.is-broken {
  background: linear-gradient(135deg, #0b2c62 0%, #124a8a 55%, #f97316 100%);
}
.hero-slide.is-broken::before, .hero-bg-slide.is-broken::before {
  content: 'SomaliRank'; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.92); font-weight: 800; font-size: clamp(22px, 4vw, 42px);
  letter-spacing: .02em; text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.hero-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 24px 22px; color: #fff;
  background: linear-gradient(to top, rgba(6,26,58,.86), rgba(6,26,58,0));
}
.hero-slide-caption h2 { color: #fff; font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; line-height: 1.2; }
.hero-slide-caption p { color: rgba(255,255,255,.86); font-size: 14px; margin-top: 5px; max-width: 560px; }
.hero-slide-caption .btn { margin-top: 12px; }
.hero-slide-caption.align-center { text-align: center; }
.hero-slide-caption.align-center p { margin-left: auto; margin-right: auto; }
.hero-slide-caption.align-right { text-align: right; }
.hero-slide-caption.align-right p { margin-left: auto; }
.hero-slider-nav { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; z-index: 5; }
.hero-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  background: rgba(6,26,58,.42); color: #fff; cursor: pointer; font-size: 17px;
  display: grid; place-items: center; transition: background .16s, border-color .16s, transform .16s;
  backdrop-filter: blur(4px);
}
.hero-nav-btn:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-1px); }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.hero-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s, background .2s;
}
.hero-dot.is-active { width: 24px; border-radius: 5px; background: var(--orange); }
.hero-slider.is-single .hero-slider-nav, .hero-slider.is-single .hero-dots { display: none; }
.hero-top.is-single .hero-slider-nav, .hero-top.is-single .hero-dots { display: none; }

/* background mode */
.hero-top-bg {
  position: relative; overflow: hidden; border-radius: 28px;
  min-height: calc(var(--hero-h, 360px) + 40px); background: #0b2c62;
}
.hero-bg-slider { position: absolute; inset: 0; z-index: 0; }
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(6,26,58, calc(var(--hero-overlay, .45) + .22)) 0%,
    rgba(6,26,58, var(--hero-overlay, .45)) 55%,
    rgba(6,26,58, calc(var(--hero-overlay, .45) * .65)) 100%);
}
.hero-top-bg .hero-grid {
  position: relative; z-index: 2; grid-template-columns: 1fr;
  padding: 48px 44px 64px; pointer-events: none;
}
.hero-top-bg .hero-body { pointer-events: auto; max-width: 660px; }
.hero-top-bg .hero-body h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-top-bg .hero-body h1 .accent { color: #fdba74; }
.hero-top-bg .hero-sub { color: rgba(255,255,255,.88); }
.hero-top-bg .chip { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28); }
.hero-top-bg .hero-wa-note { color: rgba(255,255,255,.82); }
.hero-top-bg .hero-wa-note b { color: #86efac; }
.hero-top-bg .hero-slide-caption {
  left: auto; right: 24px; bottom: 24px; max-width: 380px;
  border-radius: 16px; background: rgba(6,26,58,.68);
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14);
}
.hero-top-bg .hero-slide-caption.align-left { left: 24px; right: auto; }
.hero-top-bg .hero-slide-caption.align-center { left: 50%; right: auto; transform: translateX(-50%); }
.hero-top-bg > .hero-slider-nav { right: 24px; bottom: 24px; top: auto; }
.hero-top-bg > .hero-dots { bottom: 20px; }
.hero-bg-replace .hero-dynamic h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-bg-replace .hero-dynamic .hero-sub { color: rgba(255,255,255,.88); }
.hero-bg-replace .hero-dynamic .btn { margin-top: 16px; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid, .hero-grid-rev { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid-rev .hero-body { order: 1; }
  .hero-grid-rev .hero-visual { order: 2; }
  .hero-visual.hero-slider { height: min(300px, 62vw); }
  .hero-banner.hero-slider { height: min(280px, 56vw); margin-bottom: 22px; }
  .hero-mode-banner-bottom .hero-banner.hero-slider { margin: 22px 0 0; }
  .hero-slide-caption { padding: 18px 16px 16px; }
  .hero-slide-caption p { display: none; }
  .hero-top-bg { min-height: 0; border-radius: 20px; }
  .hero-top-bg .hero-grid { padding: 30px 20px 62px; }
  .hero-top-bg .hero-body { max-width: none; }
  .hero-top-bg .hero-slide-caption { left: 16px; right: 16px; bottom: 66px; max-width: none; }
  .hero-top-bg .hero-slide-caption p { display: block; }
  .hero-top-bg > .hero-slider-nav { right: 14px; bottom: 14px; }
  .hero-top-bg > .hero-dots { bottom: 18px; }
}
@media (max-width: 520px) {
  .hero-visual.hero-slider { height: 230px; }
  .hero-banner.hero-slider { height: 220px; }
  .hero-dot { width: 7px; height: 7px; }
  .hero-dot.is-active { width: 20px; }
}



/* ------------------------------------------------ reusable slider */
.sr-slider { position: relative; }
.sr-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; scrollbar-width: thin; cursor: grab;
}
.sr-track::-webkit-scrollbar { height: 8px; }
.sr-track::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 10px; }
.sr-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.sr-slide { min-width: 0; scroll-snap-align: start; }
.sr-slider--track .sr-slide {
  flex: 0 0 calc((100% - (var(--sr-per, 3) - 1) * 16px) / var(--sr-per, 3));
}
.sr-slider.is-one .sr-slide { flex: 1 0 100%; }
.sr-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 2px; }
.sr-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--navy); cursor: pointer; font-size: 17px;
  display: grid; place-items: center; transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.sr-nav:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-1px); }
.sr-nav:focus-visible, .sr-dot:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sr-dots { display: flex; align-items: center; gap: 6px; }
.sr-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: #cbd5e1; cursor: pointer; transition: width .2s, background .2s;
}
.sr-dot.is-active { width: 24px; border-radius: 5px; background: var(--orange); }
.sr-slider.is-single .sr-controls { display: none; }

/* track cards */
.sr-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11,44,98,0.05); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sr-card:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(11,44,98,0.11); }
.sr-card-media { height: 200px; background: linear-gradient(135deg,#0b2c62,#124a8a 60%,#f97316); overflow: hidden; }
.sr-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.sr-card-body h3 { color: var(--navy); font-size: 17px; font-weight: 800; line-height: 1.25; }
.sr-card-body p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.sr-card-body .btn { margin-top: 10px; align-self: flex-start; }

/* single banner slides */
.sr-slider--single .sr-track {
  display: grid; overflow: hidden; gap: 0; padding: 0; cursor: default;
  border-radius: 24px; background: #0b2c62;
}
.sr-slider--single .sr-slide {
  grid-area: 1 / 1; position: relative; min-height: clamp(280px, 42vw, 460px);
  opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s ease;
}
.sr-slider--single .sr-slide:first-child { opacity: 1; visibility: visible; }
.sr-slider--single .sr-slide.is-active { opacity: 1; visibility: visible; }
.sr-slider--single .sr-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-slider--single .sr-slide.is-broken { background: linear-gradient(135deg,#0b2c62 0%,#124a8a 55%,#f97316 100%); }
.sr-slider--single .sr-slide.is-broken::before {
  content: 'SomaliRank'; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.92); font-weight: 800; font-size: clamp(22px, 4vw, 42px);
  letter-spacing: .02em; text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.sr-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 26px 24px; color: #fff;
  background: linear-gradient(to top, rgba(6,26,58,.88), rgba(6,26,58,0));
}
.sr-caption h2 { color: #fff; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; }
.sr-caption p { color: rgba(255,255,255,.88); font-size: 14px; margin-top: 6px; max-width: 620px; }
.sr-caption .btn { margin-top: 14px; }
.sr-slider--single .sr-controls { position: absolute; right: 16px; bottom: 14px; z-index: 5; margin: 0; }
.sr-slider--single .sr-nav { background: rgba(6,26,58,.46); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(4px); }
.sr-slider--single .sr-nav:hover { background: var(--orange); border-color: var(--orange); }
.sr-slider--single .sr-dot { background: rgba(255,255,255,.55); }
.sr-slider--single .sr-dot.is-active { background: var(--orange); }

/* team carousel overrides (uses existing team_members data) */
.team-slider .team-slide {
  flex: 0 0 calc((100% - (var(--sr-per, 2) - 1) * 16px) / var(--sr-per, 2));
  flex-direction: column; align-items: stretch; gap: 0; padding: 0;
  overflow: hidden; min-width: 0;
}
.team-slider .team-slide-photo { width: 100%; height: auto; aspect-ratio: var(--team-photo-ratio, 3 / 4); border-radius: 0; background: linear-gradient(135deg, #f8fafc, #eef2ff); overflow: hidden; }
.team-slider .team-slide-photo img { width: 100%; height: 100%; object-fit: var(--team-photo-fit, cover); object-position: var(--team-photo-pos, top center); display: block; }
.team-slider .team-slide-body { padding: 16px 18px 18px; }
.team-slider .team-slide-body h3 { font-size: 18px; line-height: 1.25; }
.team-slider .team-slide-body p { font-size: 13px; line-height: 1.55; }
.team-slider .team-slide-photo.is-broken .team-initial { display: flex; }

@media (max-width: 900px) {
  .sr-slider--track .sr-slide { flex-basis: calc((100% - 16px) / 2); }
  .team-slider .team-slide { flex-basis: calc((100% - 16px) / 2); }
  .sr-card-media { height: 180px; }
  .team-slider .team-slide-photo { aspect-ratio: var(--team-photo-ratio, 3 / 4); }
}
@media (max-width: 620px) {
  .sr-slider--track .sr-slide { flex-basis: 100%; }
  .team-slider .team-slide { flex-basis: 100%; }
  .sr-slider--single .sr-track { border-radius: 18px; }
  .sr-slider--single .sr-slide { min-height: 240px; }
  .sr-caption { padding: 22px 18px 18px; }
  .sr-card-media { height: 200px; }
  .team-slider .team-slide-photo { aspect-ratio: var(--team-photo-ratio, 3 / 4); }
}
.sr-slider.is-one .sr-slide,
.sr-slider.is-one .team-slide { flex: 1 0 100%; }

/* Homepage: modern technology studio */
.home-page { background: #f7f9fc; }
.home-page .hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; border: 0;
  padding: 70px 0 28px;
  background: radial-gradient(ellipse at 77% 20%, rgba(38, 190, 178, .19), transparent 31%),
              radial-gradient(ellipse at 4% 100%, rgba(38, 110, 194, .28), transparent 35%),
              linear-gradient(120deg, #07142b 0%, #0b2345 58%, #0b3151 100%);
}
.home-page .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: linear-gradient(90deg, transparent 0%, #000 72%);
}
.home-page .hero > .container { position: relative; }
.home-page .hero-top { min-height: 360px; display: flex; align-items: center; }
.home-page .hero-grid { grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: clamp(28px,6vw,88px); width: 100%; }
.home-page .hero-body { max-width: 720px; }
.home-page .hero h1 { color: #fff; max-width: 760px; font-size: clamp(42px,6.1vw,76px); line-height: 1.04; letter-spacing: -.055em; }
.home-page .hero h1 .accent { color: #63e2ce; }
.home-page .hero .chip { color: #baf7ed; border: 1px solid rgba(104,235,214,.25); background: rgba(39,174,157,.12); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.home-page .hero-sub { max-width: 610px; color: #c0cddd; font-size: clamp(16px,1.5vw,19px); line-height: 1.7; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 29px; }
.hero-actions .btn { min-height: 50px; padding: 0 21px; border-radius: 12px; gap: 14px; }
.hero-actions .btn-primary { background: #63e2ce; color: #062538; box-shadow: 0 10px 26px rgba(50,207,180,.2); }
.hero-actions .btn-primary:hover { background: #8cf0df; }
.btn-hero-outline { border: 1px solid rgba(214,229,243,.32); color: #eef6ff; background: rgba(255,255,255,.04); }
.btn-hero-outline:hover { border-color: rgba(214,229,243,.65); background: rgba(255,255,255,.1); }
.home-page .hero-wa-note { color: #a8b8ca; margin-top: 20px; font-size: 13px; }
.hero-note-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #63e2ce; box-shadow: 0 0 0 5px rgba(99,226,206,.12); }
.home-page .hero-visual.hero-slider { height: clamp(290px,34vw,430px); border: 1px solid rgba(255,255,255,.14); border-radius: 28px; background: rgba(255,255,255,.06); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.home-page .hero-visual .hero-slide img { object-fit: contain; padding: 16px; }
.hero-capabilities { border-top: 1px solid rgba(226,237,250,.14); margin-top: 48px; padding: 20px 0 8px; }
.hero-capabilities-label { display: block; color: #829ab4; font-size: 10px; font-weight: 800; letter-spacing: .15em; margin-bottom: 12px; }
.hero-capability-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-capability-list a { display: inline-flex; gap: 9px; align-items: center; padding: 8px 12px; border: 1px solid rgba(225,238,252,.14); border-radius: 999px; background: rgba(255,255,255,.045); color: #d9e6f4; font-size: 12px; font-weight: 650; transition: background .18s ease,border-color .18s ease,transform .18s ease; }
.hero-capability-list a span { color: #63e2ce; }
.hero-capability-list a:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: rgba(99,226,206,.45); }
.home-page .section { padding: clamp(58px,7vw,92px) 0; border-bottom-color: #e7edf4; }
.home-page .section-alt { background: #f0f5fa; }
.home-page .section-head { margin-bottom: 6px; }
.home-page .section-head h2 { font-size: clamp(28px,3.2vw,42px); letter-spacing: -.04em; color: #102644; }
.home-page .section-head p { font-size: 15px; color: #697b91; }
.home-page .trust { padding: 18px 0; }
.home-page .trust-item { background: #fff; border: 1px solid #e6edf5; border-radius: 18px; padding: 18px; box-shadow: 0 10px 30px rgba(12,37,70,.035); }
.home-page .trust-ic { border-radius: 13px; background: #e8f8f5; color: #0e9b8b; width: 46px; height: 46px; }
.home-page .steps { gap: 14px; }
.home-page .step { border: 1px solid #e4ebf3; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(12,37,70,.035); }
.home-page .step .n { color: #13a996; font-size: 24px; }
.portfolio-section { background: #fff; }
.portfolio-section .section-head { align-items: center; }
.portfolio-slider { margin-top: 28px; }
.portfolio-card { display: flex; flex-direction: column; height: 100%; border: 1px solid #e4ebf3; border-radius: 20px; overflow: hidden; background: #fff; color: inherit; box-shadow: 0 12px 34px rgba(12,37,70,.06); transition: transform .22s ease,box-shadow .22s ease; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(12,37,70,.13); }
.portfolio-card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg,#102b4d,#126c79); }
.portfolio-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.portfolio-card:hover .portfolio-card-media img { transform: scale(1.045); }
.portfolio-card-media.is-empty { background: radial-gradient(circle at 78% 18%,rgba(93,231,210,.23),transparent 28%),linear-gradient(135deg,#0c1b34,#124363 65%,#087d7a); }
.portfolio-project-art { position:absolute; inset:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; padding:24px; color:#fff; }
.portfolio-project-art::before,.portfolio-detail-art::before { content:""; position:absolute; width:210px; height:210px; right:-48px; top:-72px; border:1px solid rgba(166,243,232,.2); border-radius:50%; box-shadow:0 0 0 28px rgba(166,243,232,.045),0 0 0 62px rgba(166,243,232,.035); }
.portfolio-project-art i { font-style:normal; text-transform:uppercase; letter-spacing:.14em; font-size:9px; color:#9ff0e2; font-weight:800; }
.portfolio-project-art b { font-size:clamp(46px,7vw,78px); line-height:1; margin:12px 0 8px; color:#fff; letter-spacing:-.07em; }
.portfolio-project-art small { font-size:14px; color:#d3e4ed; font-weight:700; }
.portfolio-card-content { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.portfolio-card-meta { display: flex; justify-content: space-between; gap: 10px; color: #168f84; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.portfolio-card h3 { margin-top: 12px; color: #102644; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.portfolio-card p { margin-top: 8px; color: #687a8f; font-size: 13.5px; line-height: 1.65; }
.portfolio-card-link { margin-top: auto; padding-top: 18px; color: #118e83; font-size: 13px; font-weight: 800; }
.portfolio-empty { margin-top: 26px; padding: clamp(24px,4vw,42px); border: 1px dashed #b8c9d9; border-radius: 22px; background: linear-gradient(135deg,#f2f8fb,#f7f9fc); }
.portfolio-empty h3 { color: #102644; font-size: 21px; }
.portfolio-empty p { color: #697b91; max-width: 600px; margin-top: 7px; }
.portfolio-empty .btn { margin-top: 18px; }
.portfolio-detail-hero { padding: 50px 0 30px; background: linear-gradient(135deg,#0b1a31,#103652); color: #fff; }
.portfolio-detail-hero h1 { color: #fff; font-size: clamp(34px,5vw,58px); line-height: 1.08; letter-spacing: -.045em; max-width: 860px; margin-top: 12px; }
.portfolio-detail-hero p { color: #c4d2df; font-size: 17px; max-width: 760px; margin-top: 14px; }
.portfolio-detail-media { margin-top: 28px; max-height: 570px; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 24px; background: #e8eef5; }
.portfolio-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-detail-art { position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; overflow:hidden; min-height:300px; max-height:440px; aspect-ratio:16/7; margin-top:28px; padding:clamp(28px,6vw,70px); border-radius:24px; background:radial-gradient(circle at 78% 18%,rgba(93,231,210,.25),transparent 28%),linear-gradient(135deg,#0c1b34,#124363 65%,#087d7a); color:#fff; }
.portfolio-detail-art::before { width:400px; height:400px; right:-95px; top:-170px; }
.portfolio-detail-art span { color:#a8f2e4; text-transform:uppercase; letter-spacing:.14em; font-size:11px; font-weight:800; }
.portfolio-detail-art b { font-size:clamp(64px,12vw,132px); line-height:1; margin:12px 0; letter-spacing:-.08em; }
.portfolio-detail-art small { color:#d3e4ed; font-size:16px; }
.portfolio-detail-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(240px,.75fr); gap: 34px; align-items: start; }
.portfolio-detail-copy { display: grid; gap: 24px; }
.portfolio-detail-copy h2 { color: #102644; font-size: 24px; margin-bottom: 8px; }
.portfolio-detail-copy p { color: #52657b; line-height: 1.85; white-space: pre-line; }
.portfolio-detail-aside { position: sticky; top: 92px; padding: 24px; border: 1px solid #e2eaf2; border-radius: 20px; background: #fff; }
.portfolio-detail-aside h3 { color: #102644; margin-bottom: 12px; }
.portfolio-tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-tech-list span { padding: 7px 10px; border-radius: 999px; background: #edf6f6; color: #16796f; font-size: 11px; font-weight: 750; }
.team-slider .team-slide { border-radius: 18px; border-color: #e3ebf3; box-shadow: 0 12px 32px rgba(12,37,70,.06); }
.team-slider .team-slide-photo { aspect-ratio: 4 / 3 !important; height: auto !important; max-height: 215px; }
.team-slider .team-slide-photo img { object-fit: cover !important; object-position: center !important; }
.team-slider .team-slide-body { min-height: 110px; }
.team-slider .team-slide-body h3 { color: #102644; }
.about-tagline { display:inline-flex; margin-top:12px; padding:7px 12px; border:1px solid rgba(15,47,98,.12); border-radius:999px; background:#fff; color:#0f2f62; font-size:12px; font-weight:800; letter-spacing:.03em; }
.about-content { max-width:1000px; }
.about-story,.about-info-card { padding:clamp(24px,4vw,42px); border:1px solid #e4ebf3; border-radius:20px; box-shadow:0 12px 36px rgba(12,37,70,.045); }
.about-story h2,.about-info-card h2 { color:#102644; font-size:clamp(22px,2.8vw,30px); letter-spacing:-.03em; }
.about-story p,.about-info-card p { margin-top:12px; color:#5c6e82; line-height:1.85; }
.about-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
.about-info-icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:16px; border-radius:13px; background:#e6f7f4; color:#078b7f; font-size:23px; font-weight:800; }
.about-cta { margin-top:26px; text-align:center; }
.services-scope-note { margin:0 0 24px; padding:15px 18px; border:1px solid #dce8f0; border-radius:14px; background:#f4f8fb; color:#496177; font-size:13px; line-height:1.65; }
.service-delivery-badge { display:inline-flex; margin-top:8px; padding:5px 9px; border:1px solid #dbe8ef; border-radius:999px; background:#f4f8fb; color:#45637b; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
@media (max-width: 900px) {
  .home-page .hero { padding-top: 52px; }
  .home-page .hero-top { min-height: 0; }
  .home-page .hero-grid { grid-template-columns: 1fr; }
  .home-page .hero-visual.hero-slider { height: 300px; }
  .portfolio-detail-grid { grid-template-columns: 1fr; }
  .portfolio-detail-aside { position: static; }
  .about-info-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .home-page .hero { padding: 38px 0 20px; }
  .home-page .hero h1 { font-size: clamp(39px,12vw,58px); }
  .home-page .hero-visual.hero-slider { height: 235px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { justify-content: center; }
  .hero-capability-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .hero-capability-list a { flex: 0 0 auto; }
  .portfolio-detail-media { aspect-ratio: 4 / 3; border-radius: 16px; }
  .portfolio-detail-art { min-height:220px; aspect-ratio:4/3; border-radius:16px; }
}
