:root {
  --ink: #171717;
  --paper: #fbfbf9;
  --surface: #fff;
  --line: #e7e2dc;
  --muted: #666a73;
  --accent: #c9252d;
  --accent-dark: #9f1d24;
  --accent-soft: #fff0f1;
  --charcoal: #201a1b;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(63, 34, 34, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.75; }
.page-section { padding: 88px 0; }

/* Shared buttons give every page the same clear action style. */
.btn-brand, .btn-quiet {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  gap: .55rem;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.35rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-brand i, .btn-quiet i, .footer-cta i { transition: transform .2s ease; }
.btn-brand { background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 14px 30px rgba(201,37,45,.22); color: #fff; }
.btn-quiet { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-brand:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 18px 38px rgba(201,37,45,.3); color: #fff; transform: translateY(-2px); }
.btn-quiet:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(32,26,27,.12); color: var(--accent); transform: translateY(-2px); }
.btn-brand:active, .btn-quiet:active { transform: translateY(1px) scale(.99); }

.section-kicker { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .7rem; text-transform: uppercase; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.08; margin-bottom: 1rem; }
.section-copy { max-width: 680px; }

.top-bar { background: var(--charcoal); color: rgba(255,255,255,.76); font-size: .82rem; padding: .55rem 0; }
.top-bar a { color: rgba(255,255,255,.86); position: relative; transition: color .2s ease; }
.top-bar a::after { background: rgba(255,255,255,.72); bottom: -.15rem; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; width: 100%; }
.top-bar a:hover { color: #fff; }
.main-nav { background: rgba(251,251,249,.95); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(32,26,27,.08); min-height: 72px; position: sticky; top: 0; z-index: 1030; }
.navbar-brand { border-radius: 4px; }
.brand-logo { height: 48px; object-fit: contain; transition: filter .25s ease, transform .25s ease; width: auto; }
.navbar-toggler { border-radius: 6px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-link { color: var(--ink) !important; font-size: .9rem; font-weight: 800; padding: .75rem .85rem !important; position: relative; }
.nav-link::after { background: var(--accent); bottom: .4rem; content: ""; height: 2px; left: .85rem; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; width: calc(100% - 1.7rem); }
.nav-link:hover, .nav-link:focus, .nav-link.active { color: var(--accent) !important; }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.active::after { transform: scaleX(1); }

/* The homepage hero uses a real working session as the main visual. */
.hero {
  background:
    linear-gradient(90deg, rgba(23,19,20,.97) 0%, rgba(23,19,20,.9) 40%, rgba(23,19,20,.58) 68%, rgba(23,19,20,.24) 100%),
    url("../images/bismin-hero-advisory.jpg") center 44% / cover no-repeat;
  color: #fff;
  min-height: 610px;
  overflow: hidden;
  padding: 76px 0;
  position: relative;
}
.hero::after { background: var(--accent); bottom: 0; content: ""; height: 5px; left: 0; position: absolute; width: 88px; }
.hero h1 { font-size: clamp(2.8rem, 5.2vw, 5rem); font-weight: 800; line-height: 1.01; margin-bottom: 1.2rem; max-width: 760px; }
.hero p { color: rgba(255,255,255,.84); font-size: 1.05rem; max-width: 610px; }

.page-hero { background: var(--charcoal); color: #fff; padding: 76px 0; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 800; line-height: 1.02; max-width: 840px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.06rem; max-width: 680px; }
.page-hero-image { border-radius: var(--radius); height: 330px; object-fit: cover; transition: filter .35s ease, transform .35s ease; width: 100%; }

.proof-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 1.35rem 0; }
.proof-item { align-items: center; display: flex; gap: .8rem; min-height: 54px; transition: transform .22s ease; }
.proof-item i { align-items: center; background: var(--accent-soft); border-radius: 50%; color: var(--accent); display: inline-flex; height: 42px; justify-content: center; transition: .22s ease; width: 42px; }
.proof-item b { display: block; font-size: .95rem; }
.proof-item span { color: var(--muted); font-size: .8rem; }

.service-card, .content-card, .quote-card, .insight-card, .contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  padding: 1.45rem;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.service-card i, .contact-card i { color: var(--accent); display: inline-block; font-size: 1.45rem; margin-bottom: 1rem; transition: color .22s ease, transform .22s ease; }
.service-card h2, .service-card h3, .content-card h3, .contact-card h2 { font-size: 1.08rem; font-weight: 800; }
.service-card p, .content-card p, .contact-card p { font-size: .92rem; margin-bottom: 0; }
.service-card.featured { background: var(--accent); border-color: var(--accent); color: #fff; }
.service-card.featured i, .service-card.featured p { color: rgba(255,255,255,.82); }

.media-tall { border-radius: var(--radius); height: 560px; object-fit: cover; transition: filter .35s ease, transform .35s ease; width: 100%; }
.media-wide { border-radius: var(--radius); height: 420px; object-fit: cover; transition: filter .35s ease, transform .35s ease; width: 100%; }
.check-list { display: grid; gap: .85rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.check-list li { align-items: flex-start; border-radius: 6px; display: flex; font-weight: 700; gap: .75rem; transition: color .2s ease, transform .2s ease; }
.check-list i { color: var(--accent); margin-top: .18rem; transition: transform .2s ease; }

/* Staff portraits use one fixed ratio so different source images align as a composed team. */
.team-section { background: #fff; border-top: 1px solid var(--line); }
.staff-card { display: flex; flex-direction: column; height: 100%; }
.staff-photo { background: #f1f1f0; border-radius: var(--radius); overflow: hidden; }
.staff-photo img { aspect-ratio: 4/5; height: 100%; object-fit: cover; object-position: center top; transition: filter .35s ease, transform .4s ease; width: 100%; }
.staff-details { border-bottom: 1px solid var(--line); display: flex; flex: 1; flex-direction: column; padding: 1.15rem .15rem 1.25rem; transition: border-color .22s ease, padding-left .22s ease; }
.staff-details h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .25rem; }
.staff-details .staff-role { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .06em; margin: 0; min-height: 2.1em; text-transform: uppercase; }
.staff-details .staff-bio { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.65; margin: 1rem 0 0; padding-top: 1rem; }

.dark-section { background: var(--charcoal); color: #fff; }
.dark-section p { color: rgba(255,255,255,.72); }
.process-step { border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 1rem; grid-template-columns: 160px 1fr; padding: 1.5rem 0; transition: background .22s ease, padding-left .22s ease; }
.process-step .label { color: #ffb3b6; font-weight: 800; }
.process-step h3 { font-size: 1.45rem; font-weight: 800; }

.quote-card p { color: var(--ink); font-size: 1.02rem; font-weight: 700; margin-bottom: 1.2rem; }
.quote-card span { color: var(--muted); font-size: .88rem; }
.client-image { border-radius: var(--radius); height: 620px; object-fit: cover; object-position: center 58%; transition: filter .35s ease, transform .35s ease; width: 100%; }
.sector-row { border-top: 1px solid var(--line); padding: 1.25rem 0; transition: border-color .2s ease, padding-left .2s ease; }
.sector-row h3 { font-size: 1rem; font-weight: 800; margin: 0; }

.insight-card { overflow: hidden; padding: 0; }
.insight-card img { aspect-ratio: 16/10; object-fit: cover; transition: transform .35s ease; width: 100%; }
.insight-card-body { padding: 1.4rem; }
.insight-card .meta { color: var(--accent); font-size: .78rem; font-weight: 800; margin-bottom: .5rem; text-transform: uppercase; }
.insight-card h2, .insight-card h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.4; }

/* The gallery uses an editorial grid so real office moments can carry the page. */
.gallery-grid { display: grid; gap: 1rem; grid-auto-rows: 220px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gallery-item { background: var(--charcoal); border: 0; border-radius: var(--radius); grid-column: span 4; margin: 0; overflow: hidden; padding: 0; position: relative; text-align: left; }
.gallery-item.wide { grid-column: span 8; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { height: 100%; object-fit: cover; transition: filter .35s ease, transform .45s ease; width: 100%; }
.gallery-item.team img { object-position: center 20%; }
.gallery-caption { background: linear-gradient(180deg, transparent, rgba(17,17,17,.9)); bottom: 0; color: rgba(255,255,255,.82); display: block; font-size: .78rem; left: 0; line-height: 1.45; padding: 3.5rem 1rem 1rem; position: absolute; right: 0; transition: padding-bottom .25s ease; z-index: 1; }
.gallery-caption strong { color: #fff; display: block; font-size: .9rem; margin-bottom: .2rem; }
.gallery-item:focus-visible { outline-color: var(--accent); }
.gallery-modal .modal-content { background: #111; border: 0; border-radius: var(--radius); overflow: hidden; }
.gallery-modal .modal-body { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 70vh; padding: 0; }
.gallery-modal img { max-height: 88vh; object-fit: contain; width: 100%; }
.gallery-modal-caption { color: rgba(255,255,255,.78); font-size: .9rem; margin: 0; padding: 1rem 1.25rem 1.2rem; width: 100%; }
.gallery-modal .btn-close { background-color: #fff; border-radius: 50%; opacity: .9; position: absolute; right: 1rem; top: 1rem; transition: opacity .2s ease, transform .2s ease; z-index: 2; }

.cta-section { background: linear-gradient(90deg, rgba(32,26,27,.9), rgba(32,26,27,.78)), url("../images/askari.jpg") center/cover; color: #fff; }
.cta-section p { color: rgba(255,255,255,.78); }
.contact-list { display: grid; gap: .75rem; list-style: none; padding: 0; }
.contact-list li { align-items: flex-start; display: flex; gap: .7rem; transition: color .2s ease, transform .2s ease; }
.contact-list i { color: var(--accent); transition: transform .2s ease; }

/* The footer closes every page with a clear invitation, useful navigation, and direct contact details. */
.site-footer { background: #171314; color: rgba(255,255,255,.7); overflow: hidden; padding: 0 0 30px; position: relative; }
.site-footer::before { background: var(--accent); content: ""; height: 4px; left: 0; position: absolute; top: 0; width: 100%; }
.footer-intro { align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; gap: 2rem; justify-content: space-between; padding: 58px 0 44px; }
.footer-eyebrow { color: #ff9ca1; font-size: .76rem; font-weight: 800; letter-spacing: .14em; margin-bottom: .65rem; text-transform: uppercase; }
.footer-intro h2 { color: #fff; font-size: clamp(1.65rem, 3vw, 2.65rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; margin: 0; max-width: 720px; }
.footer-cta { align-items: center; background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; color: #fff; display: inline-flex; flex: 0 0 auto; font-weight: 800; gap: .7rem; min-height: 50px; padding: .8rem 1.35rem; transition: background .2s ease, transform .2s ease; white-space: nowrap; }
.footer-cta:hover { background: #fff; border-color: #fff; color: var(--charcoal); transform: translateY(-2px); }
.footer-main { padding: 42px 0 36px; }
.footer-logo { background: #fff; border-radius: 8px; height: 58px; object-fit: contain; padding: .35rem .7rem; transition: box-shadow .25s ease, transform .25s ease; width: auto; }
.footer-summary { color: rgba(255,255,255,.62); font-size: .9rem; line-height: 1.7; margin: 1.1rem 0 0; max-width: 390px; }
.site-footer h3 { color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 1.15rem; text-transform: uppercase; }
.footer-list { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.footer-list a { color: rgba(255,255,255,.72); display: inline-flex; transition: color .2s ease, transform .2s ease; }
.footer-list a:hover { color: #fff; }
.footer-contact-list li { align-items: flex-start; display: flex; gap: .7rem; }
.footer-contact-list i { color: #ff9ca1; flex: 0 0 auto; margin-top: .12rem; }
.footer-bottom { align-items: center; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); display: flex; font-size: .78rem; gap: 1rem; justify-content: space-between; padding-top: 22px; }
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-bottom a:hover { color: #fff; }

/* Hover feedback is limited to pointer devices so touch layouts stay stable. */
@media (hover: hover) and (pointer: fine) {
  /* Links and controls get the clearest feedback because they perform an action. */
  .top-bar a:hover::after { transform: scaleX(1); }
  .navbar-brand:hover .brand-logo { filter: saturate(1.08); transform: scale(1.035); }
  .navbar-toggler:hover { background: var(--accent-soft); color: var(--accent); transform: scale(1.04); }
  .btn-brand:hover i, .btn-quiet:hover i, .footer-cta:hover i { transform: translateX(3px); }
  .footer-cta:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
  .insight-card:hover img { transform: scale(1.035); }
  .proof-item:hover { transform: translateY(-3px); }
  .proof-item:hover i { background: var(--accent); color: #fff; transform: rotate(-5deg) scale(1.06); }
  .service-card:hover, .content-card:hover, .quote-card:hover, .insight-card:hover, .contact-card:hover { border-color: rgba(201,37,45,.32); box-shadow: 0 18px 42px rgba(63,34,34,.1); transform: translateY(-5px); }
  .service-card:hover i, .contact-card:hover i { transform: translateY(-2px) scale(1.08); }
  .service-card.featured:hover i { color: #fff; }
  .staff-card:hover .staff-photo img { filter: saturate(1.03) contrast(1.02); transform: scale(1.025); }
  .staff-card:hover .staff-details { border-color: var(--accent); padding-left: .55rem; }
  .gallery-item:hover img { filter: saturate(1.04) contrast(1.02); transform: scale(1.025); }
  .gallery-item:hover .gallery-caption { padding-bottom: 1.25rem; }
  .gallery-modal .btn-close:hover { opacity: 1; transform: rotate(90deg) scale(1.06); }
  .process-step:hover { background: rgba(255,255,255,.035); padding-left: 1rem; }
  .check-list li:hover, .contact-list li:hover { color: var(--accent-dark); transform: translateX(4px); }
  .check-list li:hover i, .contact-list li:hover i { transform: scale(1.12); }
  .sector-row:hover { border-color: rgba(201,37,45,.45); padding-left: .75rem; }
  .media-tall:hover, .media-wide:hover, .client-image:hover, .page-hero-image:hover { filter: saturate(1.04) contrast(1.015); transform: scale(1.008); }
  .footer-logo:hover { box-shadow: 0 12px 30px rgba(0,0,0,.24); transform: translateY(-2px); }
  .footer-list a:hover { transform: translateX(4px); }
}

a:focus-visible, button:focus-visible { outline: 3px solid rgba(201,37,45,.35); outline-offset: 4px; }

@media (max-width: 991.98px) {
  .page-section { padding: 70px 0; }
  .top-bar { display: none; }
  .main-nav { min-height: 64px; }
  .navbar-collapse { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-top: .8rem; padding: .75rem; }
  .hero { background-position: 58% center; min-height: 560px; padding: 64px 0; }
  .page-hero { padding: 60px 0; }
  .media-tall { height: 460px; }
  .client-image { height: 520px; }
  .process-step { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 200px; }
  .gallery-item, .gallery-item.wide { grid-column: span 6; }
  .footer-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
  .brand-logo { height: 42px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.25rem, 12vw, 3.3rem); }
  .hero .btn-brand, .hero .btn-quiet, .page-hero .btn-brand, .page-hero .btn-quiet { width: 100%; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero { background-position: 62% center; min-height: 590px; }
  .page-hero-image { height: 260px; }
  .media-tall, .media-wide { height: 360px; }
  .client-image { height: 380px; }
  .gallery-grid { display: block; }
  .gallery-item { height: 300px; margin-bottom: 1rem; width: 100%; }
  .gallery-item.tall { height: 430px; }
  .footer-intro { padding: 48px 0 36px; }
  .footer-main { padding: 34px 0 30px; }
  .footer-cta { justify-content: center; width: 100%; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
