/* ============================================================
   BROKERS' BACKOFFICE — SHARED STYLESHEET
   Fonts: Poppins (headings/UI) + Inter (body)
   Scope: Reset · Tokens · Buttons · Navbar · Footer · Utilities
   ============================================================ */

/* ── TOKENS ── */
:root {
  /* Brand */
  --navy:        #0D1F3C;
  --navy-mid:    #1B3A6B;
  --navy-soft:   #EEF3FB;
  --blue:        #3B82F6;
  --blue-lt:     #EFF6FF;
  --orange:      #F05E23;
  --orange-dk:   #C94A14;
  --orange-lt:   #FFF0EB;
  /* Neutral */
  --bg:          #FFFFFF;
  --bg-alt:      #F8FAFC;
  --bg-3:        #F0F2F8;
  --text:        #0D1F3C;
  --muted:       #6B7A99;
  --muted-2:     #4A4A6A;
  --border:      #E4EAF4;
  --border-mid:  #C8CEDF;
  /* Accent */
  --green:       #059669;
  --green-lt:    #ECFDF5;
  /* Shadows */
  --sh-xs:       0 1px 4px  rgba(13,31,60,.06);
  --sh-sm:       0 2px 12px rgba(13,31,60,.08);
  --sh-md:       0 8px 32px rgba(13,31,60,.10);
  --sh-lg:       0 24px 64px rgba(13,31,60,.13);
  /* Radii */
  --r:           16px;
  --r-sm:        10px;
  --r-xs:        6px;
  color-scheme: light;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-left:  max(0px, env(safe-area-inset-left,  0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; line-height: 1.15;
  text-wrap: balance; letter-spacing: -.02em;
}

/* Safe-area top band (keeps content below system bar on iPhone) */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 200; background: var(--bg);
}

/* ── LAYOUT ── */
.wrap {
  max-width: 1180px; margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left, 0px))
                  max(24px, env(safe-area-inset-right, 0px));
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-sm);
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  color: #fff; box-shadow: 0 4px 20px rgba(240,94,35,.28);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(240,94,35,.38); }
.btn-outline        { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover  { border-color: var(--navy); background: var(--navy-soft); }
.btn-ghost-w        { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); }
.btn-ghost-w:hover  { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
.btn-sm             { padding: 10px 20px; font-size: 13px; }
.btn-full           { width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 150;
  background: rgba(255,255,255,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: var(--sh-sm); background: rgba(255,255,255,.97); }
.nav-inner {
  display: flex; align-items: center; height: 70px; gap: 8px;
  max-width: 1180px; margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left, 0px))
                  max(24px, env(safe-area-inset-right, 0px));
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 12px;
  color: #fff; box-shadow: 0 4px 12px rgba(13,31,60,.25);
}
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); line-height: 1.1; }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-top: 1px; }

.nav-links { display: flex; align-items: center; list-style: none; margin-right: 16px; }
.nav-links > li > a,
.nav-links > li > .dd-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: var(--r-xs);
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: all .15s; cursor: pointer;
  background: none; border: none; font-family: 'Inter', sans-serif;
}
.nav-links > li > a:hover,
.nav-links > li > .dd-toggle:hover,
.nav-links > li > a.active { color: var(--navy); }
.nav-links > li > a.active { font-weight: 600; }
.chevron { transition: transform .2s; }

/* Dropdown */
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(255,255,255,.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh-lg); min-width: 240px; padding: 8px;
  opacity: 0; pointer-events: none; transition: all .18s; z-index: 400;
}
.dd:hover .dd-panel, .dd:focus-within .dd-panel {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dd:hover .chevron, .dd:focus-within .chevron { transform: rotate(180deg); }
.dd-label {
  padding: 10px 14px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; color: var(--muted); text-transform: uppercase;
}
.dd-link {
  display: block; padding: 10px 14px; border-radius: var(--r-xs);
  font-size: 14px; font-weight: 500; color: var(--text); transition: background .12s;
}
.dd-link:hover { background: var(--bg-alt); color: var(--navy); }

.burger-btn {
  display: none; background: none; border: 1.5px solid var(--border);
  cursor: pointer; padding: 8px; color: var(--navy); border-radius: var(--r-xs);
}

/* ── MOBILE MENU ── */
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,31,60,.45); z-index: 499; backdrop-filter: blur(4px);
}
.mob-overlay.open { display: block; }
.mob-panel {
  position: fixed; inset: 0 0 0 auto;
  width: min(360px, 100vw); background: var(--bg); z-index: 500;
  display: flex; flex-direction: column; padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top, 0px));
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -24px 0 80px rgba(13,31,60,.15);
}
.mob-panel.open { transform: translateX(0); }
.mob-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mob-close {
  background: var(--bg-alt); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: var(--r-xs);
  color: var(--text); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.mob-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mob-nav a,
.mob-nav summary {
  display: block; padding: 13px 16px; border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; font-size: 16px;
  list-style: none; cursor: pointer; transition: background .12s;
}
.mob-nav a:hover, .mob-nav summary:hover { background: var(--bg-alt); }
.mob-nav details summary::-webkit-details-marker,
.mob-nav details summary::marker { display: none; }
.mob-sub { padding: 4px 0 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.mob-sub a { font-size: 14px; padding: 10px 14px; color: var(--muted); }
.mob-foot { margin-top: 24px; }

/* ── SECTION UTILITIES (shared across pages) ── */
.section     { padding-block: 96px; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); font-family: 'Poppins', sans-serif; margin-bottom: 14px;
}
.eyebrow::before { content: ''; display: block; width: 16px; height: 2px; background: var(--blue); border-radius: 1px; }
.section-h { font-size: clamp(28px, 3.8vw, 44px); color: var(--navy); margin-bottom: 16px; }
.section-p { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.7; }
.s-head    { margin-bottom: 60px; }
.s-row     { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 60px; }
.s-row .section-p { margin-bottom: 0; }

/* ── CTA BAND (shared) ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2E5A 60%, #1B3A6B 100%);
  padding-block: 108px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.cta-glow-a {
  position: absolute; top: -100px; left: -100px; width: 400px; height: 400px;
  border-radius: 50%; background: radial-gradient(circle, rgba(240,94,35,.15), transparent 70%);
  pointer-events: none;
}
.cta-glow-b {
  position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px;
  border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.1), transparent 70%);
  pointer-events: none;
}
.cta-band h2  { color: #fff; font-size: clamp(30px,4.5vw,50px); margin-bottom: 18px; position: relative; z-index: 1; letter-spacing: -.03em; }
.cta-band p   { color: rgba(255,255,255,.65); font-size: 18px; margin-bottom: 48px; position: relative; z-index: 1; }
.cta-actions  { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── PAGE HERO BASE (service / about / insights pages) ── */
.page-hero {
  padding: 130px max(24px, env(safe-area-inset-left, 24px)) 64px;
  background: var(--bg); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(21,101,192,.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero::after {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,94,35,.07), transparent 65%);
  pointer-events: none;
}
.hero-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-lt); border: 1px solid rgba(240,94,35,.2);
  border-radius: 100px; padding: 6px 16px;
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--orange); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 18px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { font-size: 13px; color: var(--muted); }
.breadcrumb span { font-size: 13px; color: var(--blue); font-weight: 500; }

/* ── FOOTER ── */
footer { background: #060F1E; padding-block: 80px 36px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: rgba(255,255,255,.35); }
.footer-contacts { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.footer-contacts a { font-size: 13px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 8px; transition: color .15s; }
.footer-contacts a:hover { color: #fff; }
.footer-credentials { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.footer-credentials span { font-size: 12px; font-family: 'Poppins', sans-serif; font-weight: 600; color: rgba(255,255,255,.45); letter-spacing: .04em; }
.cred-dot { color: rgba(255,255,255,.18) !important; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.soc-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s; flex-shrink: 0;
}
.soc-btn:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.soc-btn svg   { width: 16px; height: 16px; fill: rgba(255,255,255,.6); transition: fill .2s; }
.soc-btn:hover svg { fill: #fff; }
.soc-btn.fb:hover { background: rgba(24,119,242,.25); border-color: rgba(24,119,242,.5); }
.soc-btn.li:hover { background: rgba(10,102,194,.25); border-color: rgba(10,102,194,.5); }
.soc-btn.ig:hover { background: rgba(225,48,108,.2);  border-color: rgba(225,48,108,.4); }
.soc-btn.yt:hover { background: rgba(255,0,0,.2);     border-color: rgba(255,0,0,.35); }
.soc-btn.tw:hover { background: rgba(0,0,0,.3);        border-color: rgba(255,255,255,.2); }
.fc-h   { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13px; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.f-links a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .15s; }
.f-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom span { font-size: 13px; color: rgba(255,255,255,.45); }
.fb-links { display: flex; gap: 20px; }
.fb-links a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .15s; }
.fb-links a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media(max-width: 1060px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media(max-width: 768px) {
  .nav-links, .nav-cta-desk { display: none; }
  .burger-btn { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding-block: 72px; }
  .cta-band { padding-block: 72px; }
}
@media(max-width: 500px) {
  .cta-actions { flex-direction: column; }
  .s-row { flex-direction: column; align-items: flex-start; }
}
