/* =====================================================================
   SWS Fintech Services – site theme (mobile first)
   One stylesheet for all pages. Replaces Bootstrap + templatemo + owl +
   animate + 2x Font Awesome on the 7 redesigned pages.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0a2540;
  --navy-2: #143a63;
  --ink: #18222f;
  --muted: #5a6575;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --brand-blue: #03a4ed;
  --brand-red: #fe3f40;

  /* SWS brand pair: blue + red (same on every page) */
  --accent: #03a4ed;      /* SWS blue */
  --accent-ink: #0288c7;  /* blue for small text */
  --tint: #eaf6fd;
  --red: #fe3f40;         /* SWS red */
  --red-tint: #fff0f0;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10,37,64,.06), 0 6px 20px rgba(10,37,64,.07);
  --shadow-lg: 0 18px 40px rgba(10,37,64,.14);
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
  padding-bottom: 64px; /* room for mobile action bar */
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 5.6vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
small { font-size: .82em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(254,63,64,.28); }
.btn-primary:hover { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(3,164,237,.28); }
.btn-accent { background: var(--accent-ink); color: #fff; }
.btn-accent:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent-ink); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy); background: #f0f4f9; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); /* no backdrop-filter: it would trap the fixed mobile menu */
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; }
.brand img { height: 46px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto;
  padding: 8px var(--gutter) 96px; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu-item { border-bottom: 1px solid var(--line); }
.menu-item > a, .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 54px; padding: 0 4px; background: none; border: 0; cursor: pointer;
  font: 500 1.02rem var(--font); color: var(--ink); text-decoration: none; text-align: left;
}
.menu-item.is-active > a, .menu-item.is-active > .sub-toggle { color: var(--accent-ink); font-weight: 600; }
.sub-toggle .ic { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 0 0 10px 10px; display: none; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
.sub a {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: .96rem;
}
.sub a:hover { background: var(--bg-soft); color: var(--navy); }
.sub small { font-size: .68rem; font-weight: 600; color: var(--accent-ink); background: var(--tint); padding: 1px 6px; border-radius: 4px; }
.nav-cta { margin-top: 20px; width: 100%; }

@media (min-width: 1080px) {
  :root { --header-h: 76px; }
  .brand img { height: 56px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; transform: none; opacity: 1; visibility: visible; padding: 0; overflow: visible; background: none;
    display: flex; align-items: center; gap: 18px;
  }
  .menu { display: flex; align-items: center; gap: 2px; }
  .menu-item { border: 0; position: relative; }
  .menu-item > a, .sub-toggle { min-height: 44px; padding: 0 12px; font-size: .94rem; border-radius: 8px; gap: 4px; }
  .menu-item > a:hover, .sub-toggle:hover { background: var(--bg-soft); color: var(--navy); }
  .sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
    display: block; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .sub-toggle[aria-expanded="true"] + .sub {
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-cta { margin: 0; width: auto; min-height: 44px; padding: 0 18px; font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 100% 0%, var(--tint), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: 36px 0 44px;
}
.hero::after { /* soft accent ring */
  content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -180px;
  border-radius: 50%; border: 50px solid var(--accent); opacity: .07; pointer-events: none;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
/* brand heading style: <em> = SWS blue, <span> = SWS red */
.hero h1 em, .hero h2 em, .section-head h2 em, .rich h1 em, .rich h2 em { font-style: normal; color: var(--accent); }
.hero h1 > span, .hero h2 > span, .section-head h2 > span, .rich h1 > span, .rich h2 > span { color: var(--red); }
.section-head h2::after { content: ""; display: block; width: 70px; height: 4px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--red)); }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.hero .lead { font-size: 1.06rem; color: var(--muted); max-width: 60ch; }
.reg-badge {
  display: inline-flex; align-items: flex-start; gap: 8px; margin: 0 0 18px; padding: 8px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; color: var(--navy); line-height: 1.45;
  box-shadow: var(--shadow);
}
.reg-badge .ic { color: var(--accent-ink); margin-top: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; max-height: 300px; object-fit: contain; margin: 0 auto; }
.hero-media.photo img { object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; max-height: none; }
.hero .rich h2 { font-size: clamp(1.75rem, 5.6vw, 2.9rem); } /* for legacy service content */
.hero .rich p { color: var(--muted); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero-media img { max-height: 460px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b4bdc9; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 0 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.section-head p { color: var(--muted); }
@media (min-width: 900px) { .section { padding: 84px 0; } .section-head { margin-bottom: 44px; } }

.grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 22px; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--accent-ink); margin-bottom: 14px;
}
.icon-tile .ic { width: 24px; height: 24px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--accent-ink); }
a.card:hover .more .ic { transform: translateX(3px); }
.more .ic { transition: transform .2s; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 4px; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.stat b span { font: inherit; color: inherit; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 20px; } .stat { padding: 24px; } }

/* split media/text */
.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: 18px; width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }

/* values list */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.values li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.values .ic { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 3px; }
.values strong { color: var(--navy); display: block; }
.values span { color: var(--muted); font-size: .94rem; }
.quote {
  border-left: 4px solid var(--accent); background: var(--tint); padding: 16px 18px; border-radius: 0 12px 12px 0;
  font-size: 1.05rem; color: var(--navy); margin: 0 0 22px;
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .9rem; font-weight: 500;
  text-decoration: none; box-shadow: 0 1px 2px rgba(10,37,64,.05);
}
.chip .ic { color: var(--accent-ink); }
a.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Timeline (branches) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--brand-blue), var(--brand-red)); border-radius: 3px; opacity: .85; }
.tl-item { position: relative; padding: 0 0 26px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.tl-year { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--red); background: var(--red-tint); padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.tl-item h3 { margin: 0 0 4px; }
.tl-item h3 a { color: var(--navy); text-decoration: none; }
.tl-item h3 a:hover { color: var(--accent-ink); }
.tl-item p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .timeline::before { left: 12.5%; right: 12.5%; top: 9px; bottom: auto; width: auto; height: 3px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-red)); }
  .tl-item { padding: 40px 8px 0; text-align: center; }
  .tl-dot { left: 50%; top: 0; transform: translateX(-50%); }
}

/* ---------- Branch cards ---------- */
.branch { display: flex; flex-direction: column; gap: 10px; }
.branch h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.branch h3 .ic { color: var(--accent-ink); }
.branch .head { font-weight: 600; color: var(--navy); font-size: .95rem; margin: 0; }
.branch address { font-style: normal; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.branch-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.branch-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--navy); font-size: .85rem; font-weight: 500; text-decoration: none; border: 1px solid var(--line);
}
.branch-links a:hover { background: var(--tint); border-color: var(--accent); }

/* client list */
.client-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.client-list li { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; color: var(--navy); font-size: .93rem; }
.client-list .ic { color: var(--accent-ink); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } .team-grid.four { grid-template-columns: repeat(4, 1fr); max-width: 940px; margin: 0 auto; } }
.member { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.member-photo { position: relative; aspect-ratio: 1/1; background: linear-gradient(160deg, #eef2f8, #dbe3ef); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.member:hover .member-photo img { transform: scale(1.05); }
.member-place { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(10,37,64,.88); color: #fff; font-size: .72rem; }
.member-info { padding: 12px 12px 14px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.member-info h3 { font-size: .95rem; margin: 0 0 2px; }
.member-info .role { font-size: .8rem; color: var(--muted); margin: 0; }
.member-info .sub-role { font-size: .78rem; color: var(--accent-ink); font-weight: 500; margin: 2px 0 0; }
.member-info a { margin-top: auto; padding-top: 10px; font-size: .82rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; }

/* ---------- Gallery ---------- */
.media-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.media-rail > * { scroll-snap-align: start; }
@media (min-width: 640px) {
  .media-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 960px) { .media-rail { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1180px) { .media-rail { grid-template-columns: repeat(4, 1fr); } }
.media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-img { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.media-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.media:hover .media-img img { transform: scale(1.04); }
.media-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.media-date { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.media-body h3 { font-size: .96rem; font-weight: 600; margin: 0; line-height: 1.4; }
.media-body a { margin-top: auto; font-size: .86rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.rail-hint { font-size: .8rem; color: var(--muted); margin: -6px 0 10px; }
@media (min-width: 640px) { .rail-hint { display: none; } }

.editions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .editions { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .editions { grid-template-columns: repeat(6, 1fr); } }
.editions a {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 500; font-size: .9rem;
}
.editions a:hover { border-color: var(--accent); background: var(--tint); }
.editions .ic { color: var(--accent-ink); }
.editions .latest { border-color: var(--accent); }

/* ---------- Knowledge centre ---------- */
.counter-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy); font-size: .92rem; }
.counter-pill b { font-size: 1.4rem; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.search-box { position: relative; max-width: 420px; margin: 0 0 18px; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 42px !important; }
.quiz-grid { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .quiz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .quiz-grid { grid-template-columns: repeat(3, 1fr); } }
.quiz {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 500; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.quiz:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy); }
.quiz .icon-tile { width: 40px; height: 40px; margin: 0; }
.quiz .go { margin-left: auto; color: var(--accent-ink); }
.empty { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ---------- Steps (grievance) ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); font-weight: 700; }
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: .93rem; }

/* ---------- Contact / forms ---------- */
.contact { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list .ic { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--tint); color: var(--accent-ink); }
.contact-list small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.contact-list span { word-break: break-word; }
.form { padding: 22px; }
@media (min-width: 600px) { .form { padding: 30px; } }
.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid #d4dbe5; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.field.has-error input, .field.has-error textarea { border-color: #d93025; }
.field-error { color: #c5221f; font-size: .82rem; margin: 6px 0 0; }
.form-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #dbe6f3; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(var(--accent), transparent 70%); opacity: .35; }
.cta-inner { position: relative; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { flex: 1 1 220px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } .cta-actions .btn { flex: 0 0 auto; } }

/* ---------- Footer ---------- */
.site-footer { background: #071a2e; color: #b7c4d4; font-size: .92rem; padding: 48px 0 0; }
.site-footer a { color: #dfe8f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 30px; padding-bottom: 32px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; } }
.foot-brand img { height: 54px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 5px 0; }
.foot-contact li { display: flex; gap: 8px; align-items: flex-start; }
.foot-contact .ic { margin-top: 5px; color: var(--brand-blue); }
.foot-contact a { display: inline-flex !important; align-items: center; gap: 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--brand-blue); text-decoration: none; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 26px; font-size: .8rem; line-height: 1.6; color: #8fa1b6; }
.foot-legal .reg { color: #c9d6e4; font-weight: 500; }
.foot-legal .copy { margin: 14px 0 0; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10,37,64,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: .74rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.action-bar .ic { width: 20px; height: 20px; }
.action-bar a.primary { background: var(--red); color: #fff; }
@media (min-width: 900px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Reveal animation (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Legacy content from about_*.php includes ---------- */
.rich font { color: inherit !important; }
.rich img { max-width: 100%; }
.rich ul { margin: 0 0 1em; }
.rich table { width: 100%; display: block; overflow-x: auto; }

/* ---------- Print ---------- */
@media print { .site-header, .action-bar, .cta-band, .contact form { display: none !important; } body { padding: 0; } }

.tl-item:hover .tl-dot { border-color: var(--red); }
.cta-band::before { background: radial-gradient(var(--red), transparent 70%); opacity: .25; }

/* ---------- Branch (city) pages ---------- */
.person { padding: 0; overflow: hidden; display: grid; max-width: 460px; width: 100%; justify-self: center; }
.person-photo { aspect-ratio: 4/3; background: linear-gradient(160deg, #eef2f8, #dbe3ef); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person-body { padding: 18px 20px 20px; }
.person-name { font-size: 1.25rem; margin: 0 0 2px; }
.person-name::after { display: none !important; }
.person-role { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
@media (min-width: 900px) { .person-photo { aspect-ratio: 1/1; } }
.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-soft); aspect-ratio: 4/3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Blog list ---------- */
.post-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--tint), var(--red-tint)); overflow: hidden; display: grid; place-items: center; color: var(--accent); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-img .ic { width: 40px; height: 40px; opacity: .6; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h2 { font-size: 1.05rem; line-height: 1.4; margin: 0; }
.post-body h2::after { display: none; }
.post-body h2 a { color: var(--navy); text-decoration: none; }
.post-body h2 a:hover { color: var(--accent-ink); }
.post-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.post-body .more { min-height: 40px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--red); }
.notice { padding: 18px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); }

.person-photo.is-logo img { object-fit: contain; padding: 40px; background: #fff; }

/* ---------- Compact side images (blog hero, Gawaksha) ---------- */
.hero-media.photo.compact { max-width: 440px; justify-self: center; width: 100%; }
.hero-media.photo.compact img { aspect-ratio: 4/3; max-height: 330px; width: 100%; object-fit: cover; }
.media-compact { max-width: 420px; width: 100%; justify-self: center; }
.media-compact img { width: 100%; max-height: 320px; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 899px) { .hero-media.photo.compact img, .media-compact img { max-height: 240px; } }

/* ---------- Form status message ---------- */
.status { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid; }
.status .ic { width: 22px; height: 22px; margin-top: 2px; }
.status p { margin: 0; }
.status.ok { background: #ecfdf3; border-color: #a6e9c3; color: #05603a; }
.status.err { background: var(--red-tint); border-color: #ffc2c2; color: #b42318; }
