@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy-950: #060f24;
  --navy-900: #0c1a44;
  --navy-800: #173271;
  --ink: #173160;
  --gold: #c8a154;
  --gold-soft: #ebd9af;
  --line: #d6def0;
  --bg: #f2f6ff;
  --white: #fff;
  --max: 1220px;
  --shadow-sm: 0 12px 28px rgba(9, 20, 50, 0.08);
  --shadow-lg: 0 28px 56px rgba(8, 18, 44, 0.2);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}

#bcr-election-search {
  scroll-margin-top: 96px;
}

.jump-link {
  background: rgba(255, 255, 255, .86);
  color: var(--navy-800);
  border: 1px solid rgba(24, 52, 115, .18);
}
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, #dee8ff 0%, transparent 28%),
    radial-gradient(circle at 12% 14%, #ffefd1 0%, transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #f3f7ff 45%, #f9fbff 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(var(--max), 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  background: rgba(8, 18, 47, 0.9);
  border-bottom: 1px solid rgba(200, 161, 84, 0.28);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .88rem 0;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .04em;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

nav a {
  color: #dce8ff;
  font-size: .9rem;
  font-weight: 700;
  padding: .46rem .68rem;
  border-radius: 999px;
  transition: .2s ease;
}

nav a.active,
nav a:hover {
  color: #f8e8c4;
  background: rgba(200, 161, 84, .22);
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.1rem;
  align-items: center;
  padding: 4rem 0 3rem;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .35rem .82rem;
  background: linear-gradient(135deg, #f7e5bf, #fff5dd);
  border: 1px solid rgba(200, 161, 84, .45);
  border-radius: 999px;
  color: #6f5117;
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 .9rem;
}

h1, h2, h3, h4 {
  margin: .32rem 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.25rem, 4.4vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.08rem, 2.4vw, 1.6rem); color: var(--navy-800); font-weight: 600; }
h3 { font-size: 1.55rem; }

p, li { color: #234173; line-height: 1.76; }

.hero-sub { max-width: 65ch; }

.cta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: .82rem 1.14rem;
  font-size: .88rem;
  font-weight: 800;
  transition: .2s ease;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }
.primary { background: linear-gradient(135deg, #e2c787, #be923d); color: #191919; }
.secondary { background: linear-gradient(135deg, #1a3676, #102655); color: #fff; }
.tertiary { background: #fff; color: #183473; border: 1px solid rgba(24, 52, 115, .35); }

.photo-wrap { display: flex; justify-content: center; }
.photo {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  border: 3px solid rgba(235, 217, 175, .9);
  box-shadow: var(--shadow-lg);
}

.hero-kpis {
  margin-top: 1.2rem;
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-kpis .chip {
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .62rem;
  text-align: center;
}

.hero-kpis strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy-900);
  font-family: "Cormorant Garamond", serif;
}

.section { padding: 2.25rem 0; }
.page-title { margin-bottom: .6rem; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.18rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(200,161,84,.32), rgba(200,161,84,.96), rgba(200,161,84,.32));
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.metric { text-align: center; }
.metric strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--navy-900); }


.campaign-banner {
  border-radius: 28px;
  border: 1px solid rgba(200, 161, 84, .28);
  background:
    radial-gradient(circle at top right, rgba(232, 206, 145, .22), transparent 28%),
    linear-gradient(145deg, #09193f, #14306e);
  box-shadow: var(--shadow-lg);
}

.large-banner {
  overflow: hidden;
  padding: 1rem;
}

.campaign-poster {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid rgba(235, 217, 175, .35);
  box-shadow: var(--shadow-sm);
}

.campaign-actions {
  display: grid;
  gap: .75rem;
}

.banner-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem 0 .25rem;
}
.logo-strip {
  margin-top: .8rem;
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-badge {
  background: #fff;
  border: 1px solid #d4def2;
  border-radius: 12px;
  padding: .8rem;
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
  color: #1f3f76;
}

.process { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e1c37f, #b58a31);
  color: #1d1d1d;
  font-weight: 900;
  margin-bottom: .45rem;
}

.conversion-panel,
.highlight {
  border-radius: 24px;
  border: 1px solid rgba(200, 161, 84, .3);
  background: linear-gradient(145deg, #0b1d49, #122d69);
  box-shadow: var(--shadow-lg);
  padding: 1.45rem;
}

.conversion-panel h3,
.conversion-panel p,
.conversion-panel li,
.highlight h3,
.highlight p,
.highlight li { color: #ecf3ff; }

.faq {
  display: grid;
  gap: .7rem;
}

.faq details {
  background: #fff;
  border: 1px solid #d5dff3;
  border-radius: 12px;
  padding: .85rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #1a3770;
}

.form { display: grid; gap: 1rem; max-width: 780px; }
.form label { display: grid; gap: .35rem; font-weight: 700; color: #1c3569; }
input, textarea {
  font: inherit;
  border-radius: 11px;
  border: 1px solid #bfd0f7;
  background: #fff;
  padding: .72rem;
}
input:focus, textarea:focus { outline: none; border-color: #6889de; box-shadow: 0 0 0 3px rgba(104, 137, 222, .18); }
#status { margin: 0; font-weight: 700; color: #2d4f95; }

.map-wrap iframe, .map-card iframe { width: 100%; min-height: 340px; border: 0; border-radius: 12px; }

.site-footer {
  margin-top: 2.3rem;
  background: linear-gradient(145deg, #060f26, #0b1d49);
  border-top: 1px solid rgba(200, 161, 84, .27);
  color: #e6eeff;
  padding: 2.2rem 0 1rem;
}

.footer-grid { display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr 1fr; }
.site-footer h4 { color: var(--gold-soft); }
.site-footer p, .site-footer li, .site-footer a { color: #dce8ff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.copyright { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(200, 161, 84, .2); font-size: .88rem; }

.floating-actions { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .58rem; z-index: 90; }
.float-btn {
  min-width: 132px;
  text-align: center;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
  color: #fff;
  padding: .73rem .9rem;
  box-shadow: var(--shadow-lg);
}
.float-btn.call { background: linear-gradient(135deg, #183170, #214590); }
.float-btn.whatsapp { background: linear-gradient(135deg, #129050, #1aa75f); }

/* AI Chatbot */
.chat-launcher {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 95;
  border: 0;
  border-radius: 999px;
  padding: .78rem 1rem;
  background: linear-gradient(135deg, #163273, #0d214d);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.chatbot {
  position: fixed;
  left: 1rem;
  bottom: 4.4rem;
  width: min(380px, calc(100vw - 1.5rem));
  max-height: 70vh;
  background: #fff;
  border: 1px solid #d2ddf5;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 96;
  display: none;
}

.chatbot.open { display: flex; flex-direction: column; }
.chat-head {
  background: linear-gradient(145deg, #0b1d49, #12306e);
  color: #fff;
  padding: .75rem .9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  font-weight: 700;
}
.chat-head button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}

.chat-log {
  padding: .75rem;
  overflow-y: auto;
  display: grid;
  gap: .6rem;
  background: #f5f8ff;
}

.msg {
  padding: .62rem .7rem;
  border-radius: 12px;
  font-size: .86rem;
  line-height: 1.55;
}

.msg.bot { background: #fff; border: 1px solid #d6e0f5; color: #1a376d; }
.msg.user { background: linear-gradient(135deg, #1b3779, #143065); color: #fff; margin-left: 1rem; }

.chat-tools {
  padding: .6rem .7rem;
  border-top: 1px solid #d6def1;
  background: #fff;
  display: grid;
  gap: .45rem;
}

.chat-tools .row { display: flex; gap: .4rem; }
.chat-tools input, .chat-tools select {
  width: 100%;
  border: 1px solid #c3d2f3;
  border-radius: 10px;
  padding: .55rem;
  font-size: .82rem;
}
.chat-tools button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a3777, #102857);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: .56rem .7rem;
  cursor: pointer;
}

.chat-note { font-size: .72rem; color: #5e7098; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .campaign-banner { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2.3rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: 1fr; }
  
.campaign-banner {
  border-radius: 28px;
  border: 1px solid rgba(200, 161, 84, .28);
  background:
    radial-gradient(circle at top right, rgba(232, 206, 145, .22), transparent 28%),
    linear-gradient(145deg, #09193f, #14306e);
  box-shadow: var(--shadow-lg);
}

.large-banner {
  overflow: hidden;
  padding: 1rem;
}

.campaign-poster {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid rgba(235, 217, 175, .35);
  box-shadow: var(--shadow-sm);
}

.campaign-actions {
  display: grid;
  gap: .75rem;
}

.banner-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem 0 .25rem;
}
.logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .campaign-poster { min-height: 260px; }
  .banner-actions { grid-template-columns: 1fr; }
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav { width: 100%; overflow-x: visible; padding-bottom: .25rem; flex-wrap: wrap; justify-content: flex-start; }
  nav a { white-space: normal; }
  .grid, .grid.two, .footer-grid, .hero-kpis { grid-template-columns: 1fr; }
  .floating-actions { display: none; }
  .chatbot { left: .6rem; bottom: 4.2rem; }
  .chat-launcher { left: .6rem; }
}

.bcr-search {
  padding-top: 1.4rem;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  margin-top: 1rem;
}

.search-form input {
  font: inherit;
  border-radius: 999px;
  border: 1px solid #bfd0f7;
  background: #fff;
  padding: .85rem 1rem;
}

.search-meta {
  margin: .9rem 0 0;
  font-size: .92rem;
  color: #45639a;
}

.results-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.result-card {
  border: 1px solid #d3def3;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.result-card h4 {
  margin-bottom: .55rem;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1rem;
}

.result-meta span {
  color: #284779;
  font-size: .92rem;
}

.result-meta strong {
  color: var(--navy-900);
}

@media (max-width: 720px) {
  .campaign-poster { min-height: 260px; }
  .banner-actions { grid-template-columns: 1fr; }
  .search-form {
    grid-template-columns: 1fr;
  }

  .result-meta {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .large-banner {
    padding: .65rem;
  }

  .campaign-poster {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #0b1d49;
  }

  .banner-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Final overflow guards */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

main, section, .container, .hero, .grid, .grid.two, .process, .footer-grid, .logo-strip, .campaign-banner {
  max-width: 100%;
  min-width: 0;
}

.btn {
  white-space: normal;
  text-align: center;
}

.cta-row > .btn,
.banner-actions > .btn,
.search-form > * {
  min-width: 0;
}

img,
iframe {
  max-width: 100%;
}

/* Responsive nav refresh */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .28rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(200, 161, 84, .34);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 14px 28px rgba(4, 11, 28, .18);
  cursor: pointer;
  transition: .2s ease;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f8e8c4;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle:hover {
  background: rgba(200, 161, 84, .14);
}

.site-nav {
  display: flex;
}

@media (max-width: 860px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: .75rem;
    padding: .8rem 0;
  }

  .brand {
    font-size: 1.35rem;
    line-height: 1.1;
    max-width: calc(100% - 64px);
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: .75rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(8, 18, 47, .98), rgba(12, 26, 68, .98));
    border: 1px solid rgba(200, 161, 84, .24);
    box-shadow: 0 22px 42px rgba(4, 10, 24, .28);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 14px;
    font-size: .98rem;
    line-height: 1.2;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Final mobile refinements */
@media (max-width: 860px) {
  body {
    padding-bottom: 5.5rem;
  }

  .site-header .nav-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: .5rem .75rem !important;
    flex-wrap: nowrap !important;
  }

  .site-header .brand {
    max-width: 100% !important;
    margin: 0;
    line-height: 1;
    letter-spacing: .03em;
  }

  .site-header .menu-toggle {
    margin-left: 0 !important;
    justify-self: end;
    align-self: center;
  }

  .site-header .site-nav {
    grid-column: 1 / -1;
    margin-top: .15rem;
  }

  .floating-actions {
    display: grid !important;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    gap: .6rem;
    grid-template-columns: 1fr 1fr;
  }

  .float-btn {
    min-width: 0;
    width: 100%;
    padding: .85rem .75rem;
    font-size: .92rem;
    box-shadow: 0 18px 30px rgba(6, 15, 36, .2);
  }

  .chatbot {
    bottom: 6.25rem !important;
  }

  .chat-launcher {
    bottom: 6.25rem !important;
  }
}

@media (max-width: 720px) {
  .large-banner {
    padding: .4rem !important;
  }

  .campaign-poster {
    width: 100%;
    height: 70svh !important;
    min-height: 70svh !important;
    max-height: 70svh !important;
    object-fit: contain !important;
    object-position: center top !important;
    border-radius: 18px;
    background: linear-gradient(180deg, #0b1d49 0%, #112960 100%);
  }

  .banner-actions {
    gap: .75rem;
    margin-top: .9rem;
  }
}
