:root{
  --brand-black: #172437;
  --brand-slate: #253348;
  --brand-gold:  #D7BC82;
  --text: #172437;
  --bg: #ffffff;
  --bg-soft: #F7F6F3;
  --muted: #6a7171;
  --border: #e6e3dc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --navy: #0B1F3A;
  --navy-2: #0E2A4A;
  --gold: #D7BC82;
  --bf-navy: #14253D;
  --bf-gold: #C9A24A;
  --bf-bg: #ffffff;
  --bf-border: rgba(20,37,61,.12);
  --bf-muted: rgba(20,37,61,.70);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
.container{ width:min(1120px, calc(100% - 48px)); margin:0 auto; }

/* ===== Blakeford-style Header (Clean / White / Gold) ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bf-bg);
  border-bottom: 1px solid var(--bf-border);
  box-shadow: 0 10px 30px rgba(20,37,61,.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
}
.brandMark{
  display:none;
}
.brandLogo{
  display: none;
}
.brandText{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
}
.companyLine{
  display:none !important;
}
.productLine{
  font-weight: 950;
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--bf-navy);
  line-height: 1;
}
.productLine::after{
  content: none;
}
.productTag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top: 2px;
  font-weight: 900;
  font-size: 12px;
  color: var(--bf-muted);
}
.productTag .dot{
  width:6px;height:6px;border-radius:99px;background: var(--bf-gold);
}
.navlinks{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
}
.navlinks a{
  text-decoration:none;
  color: var(--bf-navy);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20,37,61,.12);
  background: rgba(20,37,61,.03);
}
.navlinks a:hover{
  background: rgba(201,162,74,.12);
  border-color: rgba(201,162,74,.35);
  text-decoration: none;
}
.utility{
  display:flex;
  align-items:center;
  gap: 10px;
}
.langBtn{
  border: 1px solid rgba(201,162,74,.50);
  background: rgba(201,162,74,.10);
  color: var(--bf-navy);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
}
.langBtn:hover{
  background: rgba(201,162,74,.16);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; justify-content:center; align-items:center;
  padding: 12px 16px; border-radius:999px;
  border: 1px solid var(--border);
  font-weight:800; font-size:14px; cursor:pointer;
  text-decoration:none;
}
.btn:hover{ text-decoration:none; }
.btn-primary{
  background: var(--bf-gold);
  border: 1px solid rgba(201,162,74,.80);
  color: #10223A;
  font-weight: 950;
}
.btn-primary:hover{
  filter: brightness(.98);
}
.btn-ghost{
  border: 1px solid rgba(20,37,61,.14);
  background: rgba(255,255,255,.85);
  color: var(--bf-navy);
  font-weight: 900;
}
.btn-ghost:hover{
  background: rgba(201,162,74,.10);
  border-color: rgba(201,162,74,.35);
}
.btn-full{ width:100%; }

/* ===== Homepage hero redesign ===== */
.heroShell{
  background:
    radial-gradient(900px 520px at 15% 20%, rgba(201,162,74,.16), transparent 62%),
    radial-gradient(900px 520px at 85% 10%, rgba(20,37,61,.10), transparent 60%),
    #FAFAF8;
  border-bottom: 1px solid rgba(20,37,61,.10);
  padding: 60px 0 42px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 980px){ .heroGrid{ grid-template-columns: 1fr; } }

.heroMain, .heroAside{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(20,37,61,.10);
  box-shadow: 0 18px 50px rgba(20,37,61,.08);
  border-radius: 18px;
  padding: 22px;
}
.heroTitle{
  font-size: 44px;
  line-height: 1.02;
  margin: 0 0 10px;
  letter-spacing: -.02em;
  color: var(--bf-navy);
}
@media (max-width: 560px){ .heroTitle{ font-size: 34px; } }

.heroSubtitle{
  margin: 0 0 16px;
  color: rgba(20,37,61,.72);
  line-height: 1.6;
  max-width: 60ch;
}
.searchBar{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.searchInput{
  flex:1;
  min-width: 260px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 16px;
  background: #fff;
}
.quickLinks{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.quickLinks a{ text-decoration:none; }

.kpiRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.kpi{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.kpi .k{ font-size: 12px; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .08em;}
.kpi .v{ font-size: 18px; font-weight: 950; margin-top: 4px;}

/* ===== Legacy hero (city profiles etc.) ===== */
.hero{
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.heroInner{
  display:grid; grid-template-columns: 1.15fr .85fr;
  gap:30px; padding: 44px 0; align-items:center;
}
.heroCard{
  background:white; border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:28px;
}
.kicker{
  color: var(--brand-gold);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:12px;
}
h1{
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height:1.05;
}
.subhead{ color:var(--muted); font-size:17px; line-height:1.6; margin:0 0 18px; }

/* ===== CTA Footer ===== */
.ctaFooter{
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

/* ===== Sections ===== */
.section{ padding: 34px 0; }
.sectionTitle{ font-size:24px; margin:0 0 12px; font-weight:800; }
.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:16px; }
.card{
  grid-column: span 4;
  background:white;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.card h3{ margin: 2px 0 8px; font-size:16px; font-weight:800; }
.card p{ margin:0; color:var(--muted); line-height:1.55; font-size:14px; }

.card-link{
  grid-column: span 4;
  display:block;
  background:white;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  text-decoration:none;
  color:inherit;
  transition: border-color .2s, transform .15s;
}
.card-link:hover{ border-color: var(--brand-gold); transform:translateY(-2px); text-decoration:none; }
.card-link h3{ margin: 2px 0 8px; font-size:16px; font-weight:800; }
.card-link p{ margin:0; color:var(--muted); line-height:1.55; font-size:14px; }
.card-coming{ opacity:.45; pointer-events:none; }

.stat-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:16px; }
.stat-card{
  background:white;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:24px 18px;
  text-align:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.stat-number{
  display:block;
  font-size:2.2rem;
  font-weight:900;
  color: var(--brand-gold);
  margin-bottom:4px;
}
.stat-label{ color:var(--muted); font-size:13px; }

/* ===== Tables ===== */
.table{
  width:100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  margin: 16px 0;
}
.table th, .table td{
  padding:12px; border-bottom:1px solid var(--border);
  text-align:left; font-size:14px;
}
.table th{
  background: var(--bg-soft);
  font-weight:900;
}
.deadline{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(215,188,130,.22);
  border: 1px solid rgba(215,188,130,.45);
  font-weight: 900;
  font-size: 12px;
}

/* ===== KPIs ===== */
.kpi-row{ display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:16px; margin-bottom:24px; }
.kpi-box{
  background:white;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:20px;
  text-align:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.kpi-val{
  display:block;
  font-size:1.8rem;
  font-weight:900;
  color: var(--brand-gold);
}
.kpi-label{
  display:block;
  font-size:.78rem;
  color:var(--muted);
  margin-top:4px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

/* ===== City Profiles ===== */
.profile-hero{
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 34px;
}
.profile-hero h1{ font-size:2.8rem; font-weight:900; }
.profile-sub{ color:var(--muted); font-size:15px; margin-top:6px; }
.profile-section{ padding:34px 0; border-bottom:1px solid var(--border); }
.profile-section:last-child{ border-bottom:none; }
.profile-section h2{ font-size:20px; font-weight:800; margin-bottom:14px; }
.profile-section p{ color:var(--muted); max-width:700px; margin-bottom:12px; line-height:1.65; font-size:14px; }

/* ===== Forms ===== */
.form-container{ max-width:580px; }
.form-subtitle{ color:var(--muted); margin-bottom:24px; font-size:15px; }
.lead-form{ display:flex; flex-direction:column; gap:18px; }
.form-group{ display:flex; flex-direction:column; gap:6px; }
.form-group label{ font-size:13px; font-weight:700; }
.form-group input,
.form-group select,
.form-group textarea{
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--brand-black);
  font-family: inherit;
  font-size:14px;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;
  border-color: var(--brand-gold);
}
.form-group select{ appearance:none; cursor:pointer; }
.form-check{
  flex-direction:row;
  align-items:flex-start;
  gap:10px;
}
.form-check input[type="checkbox"]{
  width:18px; height:18px; margin-top:2px;
  accent-color: var(--brand-gold);
  flex-shrink:0;
}
.form-check label{ font-size:12px; color:var(--muted); line-height:1.5; font-weight:400; }
.form-msg{ font-size:14px; min-height:1.4em; margin-top:4px; }
.form-msg.success{ color:#16a34a; }
.form-msg.error{ color:#dc2626; }

/* ===== Footer ===== */
.footer{
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner{ text-align:center; }
.footer-brand{ font-size:15px; font-weight:800; margin-bottom:10px; color: var(--brand-black); }
.footer-brand .gold{ color: var(--brand-gold); }
.footer-links{ display:flex; justify-content:center; gap:20px; margin-bottom:10px; flex-wrap:wrap; }
.footer-links a{ color:var(--muted); font-size:13px; }
.footer-links a:hover{ color:var(--brand-black); }
.footer-copy{ color:var(--muted); font-size:12px; }

/* ===== Utilities ===== */
.menu-btn{
  display:none;
  background:none;
  border:none;
  color: var(--brand-black);
  font-size:1.5rem;
  cursor:pointer;
}
.rtl{ direction: rtl; }
.rtl .table th, .rtl .table td{ text-align:right; }

/* ===== Pills / tiles / tabs / results ===== */
.pill{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color:var(--muted);
  background:#fff;
  line-height:1;
}
.pillGold{
  border-color: rgba(215,188,130,.55);
  background: rgba(215,188,130,.12);
  color: var(--text);
}
.cityTile{
  display:block;
  grid-column: span 3;
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cityTile h3{ margin:2px 0 6px; }
.cityTile p{ margin:0; color:var(--muted); }
.cityTile:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
@media (max-width: 980px){ .cityTile{ grid-column: span 6; } }
@media (max-width: 560px){ .cityTile{ grid-column: span 12; } }

.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.tabBtn{
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  border-radius: 999px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
}
.tabBtn.active{
  border-color: rgba(215,188,130,.9);
  background: rgba(215,188,130,.16);
}

.stack{ display:flex; flex-direction:column; gap:10px; }
.resultRow{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  text-decoration:none;
  color: inherit;
  background:#fff;
}
.resultRow:hover{
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.mutedSmall{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ===== City Page UI (Data-first) ===== */
.cityHeader{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(20,37,61,.10);
  box-shadow: 0 18px 50px rgba(20,37,61,.08);
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
}
.cityHeaderTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.cityTitle{
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
  color: var(--bf-navy);
  font-weight: 950;
  letter-spacing: -0.02em;
}
.citySub{
  margin-top: 8px;
  color: rgba(20,37,61,.70);
  max-width: 85ch;
  font-weight: 600;
}
.badgesRow{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.badge{
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20,37,61,.12);
  background: rgba(20,37,61,.03);
  color: var(--bf-navy);
}
.badgeGold{
  border-color: rgba(201,162,74,.35);
  background: rgba(201,162,74,.12);
}
.chipsRow{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.statChip{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(20,37,61,.10);
  background: rgba(255,255,255,.85);
  min-width: 150px;
}
.statChip .k{
  font-size: 12px;
  font-weight: 900;
  color: rgba(20,37,61,.62);
}
.statChip .v{
  font-size: 18px;
  font-weight: 950;
  color: var(--bf-navy);
  margin-top: 4px;
}
.kpiGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.kpiCard{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(20,37,61,.10);
  border-radius: 16px;
  padding: 14px;
}
.kpiLabel{
  font-size: 12px;
  font-weight: 950;
  color: rgba(20,37,61,.62);
}
.kpiValue{
  margin-top: 8px;
  font-size: 22px;
  font-weight: 950;
  color: var(--bf-navy);
}
.kpiNote{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(20,37,61,.65);
  font-weight: 650;
}
.scoreGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.scoreCard{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(20,37,61,.10);
  border-radius: 16px;
  padding: 14px;
}
.scoreTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.scoreName{
  font-weight: 950;
  color: var(--bf-navy);
}
.scoreVal{
  font-weight: 950;
  color: rgba(20,37,61,.70);
  font-size: 13px;
}
.bar{
  height: 10px;
  background: rgba(20,37,61,.10);
  border-radius: 999px;
  overflow:hidden;
  margin-top: 10px;
}
.bar > span{
  display:block;
  height:100%;
  background: var(--bf-gold);
  border-radius: 999px;
}
.tabs{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.tabBtn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20,37,61,.12);
  background: rgba(20,37,61,.03);
  color: var(--bf-navy);
  font-weight: 950;
  cursor:pointer;
}
.tabBtn.active{
  background: rgba(201,162,74,.16);
  border-color: rgba(201,162,74,.40);
}
.tabPanel{
  display:none;
  margin-top: 14px;
}
.tabPanel.active{
  display:block;
}
.sectionCard{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(20,37,61,.10);
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
}
.dataGrid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dataRow{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(20,37,61,.08);
  border-radius: 14px;
  background: rgba(20,37,61,.02);
}
.dataRow .k{
  font-weight: 900;
  color: rgba(20,37,61,.70);
}
.dataRow .v{
  font-weight: 950;
  color: var(--bf-navy);
  text-align:right;
}

/* ===== News Feed ===== */
.newsWrap{
  margin-top: 14px;
}
.newsGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.newsItem{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(20,37,61,.10);
  border-radius: 18px;
  padding: 14px;
}
.newsMeta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  font-weight: 900;
  font-size: 12px;
  color: rgba(20,37,61,.65);
}
.newsTag{
  background: rgba(201,162,74,.14);
  border: 1px solid rgba(201,162,74,.35);
  color: var(--bf-navy);
  padding: 6px 10px;
  border-radius: 999px;
}
.newsTitle{
  margin: 10px 0 6px 0;
  font-weight: 950;
  color: var(--bf-navy);
  letter-spacing: -0.01em;
  font-size: 16px;
}
.newsSummary{
  margin: 0;
  color: rgba(20,37,61,.75);
  font-weight: 650;
  line-height: 1.35;
}
.newsLink{
  display:inline-block;
  margin-top: 10px;
  font-weight: 950;
  color: var(--bf-navy);
  text-decoration: underline;
}
.mutedSmall{
  font-size: 13px;
  color: rgba(20,37,61,.45);
  font-weight: 650;
  padding: 12px 0;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .kpiGrid{ grid-template-columns: repeat(2, 1fr); }
  .scoreGrid{ grid-template-columns: 1fr; }
  .dataGrid2{ grid-template-columns: 1fr; }
  .cityTitle{ font-size: 36px; }
  .newsGrid{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .heroShell .heroMain > div[style*="grid-template-columns: repeat(3"]{
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 980px){
  .heroInner, .heroGrid{ grid-template-columns:1fr; }
  .card, .card-link{ grid-column: span 12; }
  .navlinks{
    display:none; flex-direction:column;
    position:absolute; top:60px; left:0; right:0;
    background: var(--bf-bg);
    backdrop-filter:blur(10px);
    padding:24px; gap:14px;
    border-bottom:1px solid var(--bf-border);
    z-index:49;
  }
  .navlinks.open{ display:flex; }
  .menu-btn{ display:block; color: var(--bf-navy); }
  .heroAside{ min-height:220px; }
}
@media (max-width: 720px){
  .navlinks a{ padding: 9px 12px; font-size: 13px; }
}
@media (max-width: 520px){
  .nav{ gap: 10px; }
  .navlinks{ gap: 8px; }
}
