:root {
  --blue-deep: #0B3D91;
  --blue-mid: #3B6BC9;
  --red: #D0202E;
  --white: #FFFFFF;
  --off-white: #F4F6FA;
  --text: #1a2433;
  --muted: #5d6b7f;
  --line: rgba(11, 61, 145, 0.12);
  --shadow: 0 22px 55px rgba(11, 61, 145, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --nav-height: 78px;
  --mobile-bar-height: calc(72px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

main {
  overflow: hidden;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
  scroll-margin-top: 110px;
}

.alt-bg {
  background: #eef3fb;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--blue-deep);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--red);
}

.section-tag::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  display: inline-block;
  border-radius: 999px;
}

.section-tag.light {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 61, 145, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #F2545F);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.desktop-nav a {
  position: relative;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.active {
  color: var(--white);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  background: linear-gradient(135deg, #edf4ff 0%, #ffffff 35%, #f6f8fc 100%);
  padding-top: 60px;
  padding-bottom: 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(11,61,145,0.12), transparent 30%),
              radial-gradient(circle at bottom left, rgba(208,32,46,0.1), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 38px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--blue-deep);
  font-family: "Oswald", sans-serif;
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
}

.hero-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 18px 26px rgba(208, 32, 46, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #b41723;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(11,61,145,0.25);
  color: var(--blue-deep);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(11,61,145,0.04);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfe9fd;
  min-height: 520px;
}

.hero-image-wrap img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  right: -10px;
  bottom: 22px;
  background: rgba(11,61,145,0.9);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(11,61,145,0.2);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.fact-item {
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 26px rgba(11,61,145,0.04);
}

.fact-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.fact-item strong {
  color: var(--blue-deep);
  font-size: 1.05rem;
}

.media-grid,
.festive-gallery,
.proposals-grid {
  display: grid;
  gap: 24px;
}

.media-grid,
.festive-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proposals-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-card,
.festive-card,
.proposal-card,
.law-column {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(11,61,145,0.08);
  box-shadow: 0 18px 40px rgba(17,30,53,0.05);
}

.media-card img,
.festive-card img {
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 18px 18px 22px;
}

.card-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11,61,145,0.08);
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-body h3 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.35;
}

.proposals-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proposal-card {
  padding: 28px 22px 24px;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,61,145,0.12), rgba(59,107,201,0.08));
  color: var(--blue-deep);
}

.icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proposal-card h3 {
  margin: 16px 0 8px;
  font-size: 1.3rem;
  color: var(--blue-deep);
}

.proposal-card p {
  margin: 0;
  color: var(--muted);
}

.community-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.district-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.district-tab {
  background: transparent;
  border: 1px solid rgba(11,61,145,0.16);
  color: var(--blue-deep);
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.district-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(208,32,46,0.2);
}

.district-panel {
  display: none;
  animation: fadeUp 0.25s ease;
}

.district-panel.active {
  display: block;
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  background: rgba(11,61,145,0.06);
  color: var(--blue-deep);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip.active {
  background: var(--blue-deep);
  color: var(--white);
}

.community-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.community-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #dde8ff;
  box-shadow: 0 12px 28px rgba(11,61,145,0.08);
}

.community-photo img {
  height: 290px;
  object-fit: cover;
}

.legislative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.law-column {
  padding: 26px 24px;
}

.law-column h3 {
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 1.42rem;
}

.law-column ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.law-column li + li {
  margin-top: 12px;
}

.instagram-float {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d62f8d, #fba540);
  box-shadow: 0 18px 30px rgba(214, 47, 141, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-float:hover,
.instagram-float:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 34px rgba(214, 47, 141, 0.35);
}

.instagram-float svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  background: var(--blue-deep);
  color: var(--white);
  padding: 54px 0 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.7fr;
  gap: 26px;
  align-items: start;
}

.footer-brand h3 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.footer-brand p {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.8);
}

.footer-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-sheet.visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet-panel {
  width: min(100%, 520px);
  background: rgba(255,255,255,0.97);
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(11,61,145,0.08);
  box-shadow: 0 -10px 30px rgba(11,61,145,0.2);
  padding: 12px 18px 26px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.mobile-sheet.visible .sheet-panel {
  transform: translateY(0);
}

.sheet-handle {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(11,61,145,0.2);
  margin: 6px auto 12px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sheet-header h3 {
  margin: 0;
  color: var(--blue-deep);
}

.sheet-close {
  background: transparent;
  border: 0;
  color: var(--blue-deep);
  font-weight: 700;
}

.sheet-links {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.sheet-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(11,61,145,0.04);
  color: var(--blue-deep);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .footer-grid,
  .proposals-grid,
  .legislative-grid,
  .media-grid,
  .festive-gallery,
  .community-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .proposals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-nav {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-grid,
  .split-layout,
  .media-grid,
  .proposals-grid,
  .legislative-grid,
  .festive-gallery,
  .footer-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .community-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .community-photo img {
    height: 130px;
  }

  .festive-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .festive-card img {
    height: 150px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 18vw, 5rem);
  }

  .hero-image-wrap,
  .hero-image-wrap img,
  .about-photo img,
  .community-photo img,
  .media-card img,
  .festive-card img {
    min-height: 280px;
    height: auto;
  }

  .brand-text {
    display: none;
  }

  .site-footer {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .instagram-float {
    right: 16px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  body {
    padding-bottom: var(--mobile-bar-height);
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px calc(12px + env(safe-area-inset-bottom));
    background: rgba(11,61,145,0.96);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 24px rgba(11,61,145,0.18);
    backdrop-filter: blur(10px);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.8);
    padding: 8px 6px 4px;
    border-radius: 12px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav-item.active {
    color: var(--white);
    background: rgba(208, 32, 46, 0.14);
  }

  .bottom-nav-item.active svg {
    color: var(--red);
  }

  .bottom-nav-item span {
    line-height: 1.1;
  }

  .district-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .district-tabs::-webkit-scrollbar {
    display: none;
  }

  .district-tab {
    white-space: nowrap;
  }

  .chip-row {
    padding-bottom: 10px;
  }

  .hero-badge {
    position: static;
    margin-top: 14px;
    align-self: center;
  }

  .hero-visual {
    display: block;
  }
}
