:root {
  --brand: #4a8c5e;
  --muted: #6c757d;
  --bg: #f8f9fa;
  --focus: #ffbf47;
  --dark: #0c0f1a;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: #fff;
  color: #0f172a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
}
.site-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.05);
  padding: 0.75rem 0;
}
.site-nav .collapse {
  flex: 1;
}
.site-nav .collapse:not(.show) {
  display: flex;
}
.brandmark {
  text-decoration: none;
  color: inherit;
  gap: 0.75rem;
  margin-right: 2rem;
}
.brandmark__logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-right: 0.5rem;
}
.brandmark__city {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #6b7280;
}
.brandmark__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.08em;
}
.nav-toggle {
  background: transparent;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  margin: 0 auto;
}
.nav-list {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  gap: 2rem;
  align-items: center;
}
.nav-list > .nav-item {
  position: relative;
}
.nav-link {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  padding: 0.35rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover,
.nav-link:focus {
  color: #4a8c5e;
}
.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}
.nav-link.dropdown-toggle {
  padding-right: 1rem;
}
.nav-link.dropdown-toggle::before {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.4rem;
  font-size: 0.7rem;
  opacity: 0.6;
}
.nav-item.dropdown {
  padding-bottom: 20px;
  margin-bottom: -20px;
}
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown .dropdown-menu:hover {
  display: block;
}
.nav-item.dropdown .dropdown-menu:not(.megamenu) {
  margin-top: 20px;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

@media (max-width: 991.98px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav .collapse:not(.show) {
    display: none;
  }
  .site-nav .collapse {
    width: 100%;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 0;
  }
  .site-nav {
    padding: 0.5rem 0;
  }
}

@media (min-width: 992px) {
  .site-nav .collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
}

/* Utility for skip link */
.sr-only-focusable {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 10px;
  padding: 10px;
  z-index: 2000;
  background: #fff;
  border: 2px solid var(--brand);
}

.section-padded {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-header p,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
}

.text-white-75 {
  color: #f8fafc !important;
}
.text-white-50 {
  color: #e2e8f0 !important;
}

/* HERO */
.hero {
  min-height: 60vh;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: url("assets/hero-wave.svg") bottom center / cover no-repeat;
  z-index: 1;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 10, 40, 0.85), rgba(6, 15, 50, 0.55));
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content {
  max-width: 780px;
}
.hero-weather {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hero-weather i {
  font-size: 1.25rem;
}
.hero-search {
  margin-top: 2rem;
  max-width: 600px;
}
.hero-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}
.hero-search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.hero-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.hero-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 1em;
  width: 1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
  opacity: 0.7;
}

/* Parallax fallback for mobile */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 60vh;
    padding-bottom: 4rem;
  }
  .hero-weather {
    top: 0;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
  .hero-weather i {
    font-size: 1.1rem;
  }
  .hero-search {
    margin-top: 1.5rem;
  }
  .hero-search-input {
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    font-size: 0.95rem;
  }
  .hero-search-icon {
    left: 1rem;
    font-size: 1rem;
  }
}

/* Quick links overlapping hero */
.quick-links {
  position: relative;
  margin-top: -140px;
  z-index: 5;
  padding-bottom: 1rem;
}
.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  padding: 1.5rem;
  transition: box-shadow 0.28s ease, border 0.42s ease;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  border-top: 5px solid transparent;
}
.quick-link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 140, 94, 0.15);
  transform: translate(-100%, -100%);
  transition: transform 0.42s ease;
  z-index: 0;
  border-radius: 50%;
}
.quick-link-card > * {
  position: relative;
  z-index: 1;
}
.quick-link-card:hover::before,
.quick-link-card:focus::before {
  transform: translate(0, 0);
}
.quick-link-card:hover,
.quick-link-card:focus {
  box-shadow: 0 35px 60px rgba(74, 140, 94, 0.2);
  color: #4a8c5e;
  border-top-color: var(--brand);
}
.quick-links .row > article:nth-child(even) {
  transform: translateY(10px);
}
.quick-link-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf2f7;
  color: #6b7280;
  font-size: 1.6rem;
}
.quick-link-text {
  font-weight: 600;
  text-align: center;
}
.quick-link-card:hover .quick-link-icon,
.quick-link-card:focus .quick-link-icon {
  background: rgba(74, 140, 94, 0.12);
  color: #4a8c5e;
}

@media (max-width: 768px) {
  .quick-links {
    margin-top: -60px;
  }
  .quick-link-card {
    padding: 1.25rem 0.5rem;
  }
}

/* Events hub */
.events-hub {
  background: #ffffff;
}
.event-calendar {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
}
.event-calendar__header h3 {
  font-weight: 700;
}
.calendar-nav {
  border: none;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.calendar-nav:hover {
  background: #e8f5ec;
  color: var(--brand);
}
.calendar-nav:active {
  transform: scale(0.92);
}
.event-calendar__weekdays,
.event-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.event-calendar__weekdays span {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0f172a;
}
.event-calendar__grid .day {
  border: none;
  border-radius: 0.85rem;
  height: 52px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.event-calendar__grid .day.muted {
  color: #475569;
}
.event-calendar__grid .day.is-selected {
  background: #4a8c5e;
  color: #fff;
  box-shadow: 0 20px 35px rgba(74, 140, 94, 0.3);
}
.event-calendar__grid .day.has-events::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a8c5e;
  position: absolute;
  bottom: 8px;
}
.event-calendar__grid .day.is-selected.has-events::after {
  background: #fff;
}
.event-list {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.event-list__header {
  margin-bottom: 1.5rem;
}
.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #edf2f7;
}
.event-item:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}
.event-items {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.event-items::-webkit-scrollbar {
  width: 6px;
}
.event-items::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}
.event-list__cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  color: #4a8c5e;
  text-decoration: none;
}

.badge-dept {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}
.badge-dept--civic-engagement {
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
}
.badge-dept--cultural-affairs {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}
.badge-dept--transportation {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}
.badge-dept--design-construction {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}
.badge-dept--youth-services {
  background: rgba(132, 204, 22, 0.2);
  color: #65a30d;
}
.badge-dept--digital-services {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}
.badge-dept--small-business-services {
  background: rgba(217, 70, 239, 0.15);
  color: #d946ef;
}
.badge-dept--parks-recreation {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.badge-dept--climate-sustainability {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
.badge-dept--public-safety {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* News band */
.news-band {
  position: relative;
  background: #f5f7fb;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 5rem;
}
.news-band[data-parallax] {
  background-attachment: fixed;
}
.news-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -100px;
  height: 180px;
  background: url("assets/hero-wave.svg") top center / cover no-repeat;
  transform: scaleY(-1);
  z-index: 2;
  pointer-events: none;
}
.news-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 160px;
  background: url("assets/hero-wave.svg") bottom center / cover no-repeat;
  z-index: 2;
  pointer-events: none;
}
.news-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.95));
  z-index: 0;
}
.news-band .container {
  position: relative;
  z-index: 3;
  padding-bottom: 50px;
}
.news-band__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.news-band__link:hover,
.news-band__link:focus {
  background: rgba(255, 255, 255, 1);
  color: #4a8c5e;
  transform: translateY(-2px);
}
.news-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.08);
}
.news-card .card-img-top {
  height: 200px;
  border-radius: 1.25rem 1.25rem 0 0;
}

/* Mega menu */
.megamenu {
  border-top: 1px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 40px 60px rgba(15, 23, 42, 0.15);
  max-height: 480px;
  overflow: hidden;
  margin-top: 20px !important;
  border-radius: 0 !important;
  left: 0 !important;
  right: 0 !important;
}
.megamenu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.megamenu .dropdown-item {
  color: #0f172a;
  transition: background-color 0.2s ease;
}
.megamenu .dropdown-item:hover,
.megamenu .dropdown-item:focus {
  background-color: #e8f5ec;
  color: #0f172a;
}
.megamenu-links li + li {
  margin-top: 0.4rem;
}
.megamenu-sublinks {
  margin-top: 0.4rem;
  margin-left: 1rem;
}
.megamenu-sublinks li + li {
  margin-top: 0.25rem;
}
.megamenu-sublinks .dropdown-item {
  font-size: 0.9rem;
  padding-left: 0.5rem;
  color: #64748b;
}
.megamenu-image {
  background: #fff;
  padding: 0.5rem;
}
.megamenu-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.service-card__media {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.service-card__body {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  align-items: flex-start;
}
.service-card .icon-stack {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.service-card:hover,
.service-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 30px 45px rgba(74, 140, 94, 0.2);
}

/* Feature band */
.feature-band {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
}
.subscribe-band {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.subscribe-band__intro h2 {
  font-size: 2.6rem;
}
.subscribe-band__intro p {
  font-size: 1.2rem;
}
.subscribe-band .text-white-75 {
  color: #ffffff !important;
}

.subscribe-panel {
  background: #f5f7fb;
}
.subscribe-panel__form {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}
.subscribe-panel__form .form-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}
.feature-band__overlay,
.subscribe-band__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.news-full-band .feature-band__overlay {
  background: linear-gradient(180deg, rgba(5, 7, 24, 0.78), rgba(5, 7, 24, 0.92));
}
.news-full-band {
  padding-top: 80px;
  padding-bottom: 80px;
}
.news-full-band .container {
  min-height: 560px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
}
.glass-card {
  background: rgba(4, 7, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
}
.feature-band .accordion-button {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: none;
}
.feature-band .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}
.feature-band .accordion-button::after {
  filter: invert(1);
}
.faq-accordion .accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.faq-accordion .accordion-body {
  background: rgba(4, 7, 18, 0.4);
}
.feature-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}
.metric-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

/* Notice panel */
.notice-panel {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 40px rgba(15, 23, 42, 0.1);
  padding: 2rem;
}

/* Card image rounding */
.card-img-top {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.news-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 25px 40px rgba(15, 23, 42, 0.08);
}
.news-card .card-footer {
  background: transparent;
  border-top: 0;
}

/* Initiatives */
.initiative-card {
  position: relative;
  min-height: 320px;
  border-radius: 1.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.initiative-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.85));
}
.initiative-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  z-index: 1;
}
.initiative-card a {
  color: #fff;
  font-weight: 600;
}

/* Events */
.event-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card__media {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.event-card .card-body {
  padding: 1.4rem;
}
.badge-on-media {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.4rem 0.7rem;
}
.event-card:hover,
.event-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 35px 50px rgba(74, 140, 94, 0.2);
}
.event-date {
  width: 65px;
  background: black;
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  opacity: 0.8;
}

/* Stories */
.story-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  height: 100%;
}
.story-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.story-card__body {
  padding: 1.25rem;
}

/* Subscribe */
.subscribe-band .container {
  position: relative;
  z-index: 1;
}
.subscribe-form {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 1rem;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
}
.subscribe-form input {
  background: rgba(255, 255, 255, 0.95);
}

/* Footer */
footer a:focus,
footer a:hover {
  text-decoration: underline;
}

.footer {
  background: #0b1220;
  padding: 4rem 0 2.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.footer-links {
  margin-top: 1rem;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-link {
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}
.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width 0.3s ease;
}
.footer-link:hover,
.footer-link:focus {
  color: var(--brand) !important;
}
.footer-link:hover::after,
.footer-link:focus::after {
  width: 100%;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social:hover,
.footer-social:focus {
  background: var(--brand);
  color: #fff !important;
  transform: translateY(-3px);
}
.footer .btn-light {
  background: #e8f5ec;
  border-color: #e8f5ec;
  color: var(--brand);
  font-weight: 600;
}
.footer .btn-light:hover,
.footer .btn-light:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Focus visible for accessibility */
:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .hero,
  .feature-band,
  .subscribe-band {
    background-attachment: scroll;
  }
}

/* Small utility */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.news-full-band .container {
  min-height: 520px;
}

/* Marquee Ticker Bar */
.ticker-bar {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
}
.ticker-bar::before,
.ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}
.ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}
.ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.ticker-move {
  display: flex;
  animation: ticker 48s linear infinite;
  white-space: nowrap;
}
.ticker-move:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 3rem;
  color: #495057;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ticker-item i {
  font-size: 1.1rem;
  opacity: 0.7;
  color: #6c757d;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-move {
    animation: none;
  }
}
