/* =========================================================
   WEBER COUNTY – MODERN CIVIC HOMEPAGE STYLES
   ========================================================= */

/* -------------------------------
   DESIGN TOKENS
-------------------------------- */
:root {
  --wc-navy: #0b2545;
  --wc-blue: #1f5fa5;
  --wc-sky: #eaf2fb;
  --wc-accent: #1273db;

  --wc-gray-900: #1b1f24;
  --wc-gray-600: #5c6773;
  --wc-gray-200: #e6ebf1;

  --wc-white: #ffffff;

  --wc-navy-dark: #13283f;
  --wc-navy-soft: #244766;
  --wc-sky: #eef4fa;
  --wc-surface: #f7f9fc;
  --wc-white: #ffffff;
  --wc-accent: #6fa8dc;
  --wc-accent-soft: rgba(111, 168, 220, 0.14);

  --wc-text: #13283f;
  --wc-text-soft: #526579;
  --wc-border: #d8e0ea;

  --wc-shadow-sm: 0 8px 18px rgba(19, 40, 63, 0.08);
  --wc-shadow-md: 0 14px 34px rgba(19, 40, 63, 0.12);
  --wc-shadow-lg: 0 22px 50px rgba(19, 40, 63, 0.18);

  --wc-radius-sm: 0.85rem;
  --wc-radius-md: 1.1rem;
  --wc-radius-lg: 1.5rem;

  --wc-shell: min(1200px, calc(100% - 2rem));
}

/* -------------------------------
   BASE RESET
-------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--wc-gray-900);
  line-height: 1.6;
  background-color: var(--wc-white);
}

a {
  color: var(--wc-blue);
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

/* FIX mobile horizontal overflow caused by Bootstrap rows */
@media (max-width: 768px) {
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* -------------------------------
   TYPOGRAPHY
-------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-transform: none;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

p {
  color: var(--wc-gray-600);
  margin-bottom: 1rem;
}

/* =========================================================
   HERO
   ========================================================= */

#banner {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: #0e2237;
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 27, 44, 0.72) 0%, rgba(10, 27, 44, 0.5) 36%, rgba(10, 27, 44, 0.32) 100%),
    linear-gradient(180deg, rgba(12, 26, 42, 0.16) 0%, rgba(12, 26, 42, 0.3) 100%);
}

.tt-content {
  position: relative;
  z-index: 3;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.tt-inner {
  width: var(--wc-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 7rem;
}

.hero-copy {
  max-width: 46rem;
  color: var(--wc-white);
}

.hero-copy .eyebrow,
.hero-copy .tt-title,
.hero-copy .tt-description {
  color: var(--wc-white);
}

.tt-title {
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.tt-description {
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: 1.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem;
  border-radius: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.hero-btn-primary {
  background: #537518;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus-visible {
  color: #ffffff;
  background: #7fac28;
  transform: translateY(-1px);
}

.hero-btn-secondary {
  background: var(--wc-navy);
  color: #ffffff;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus-visible {
  color: #ffffff;
  background: var(--wc-navy);
}

.hero-panel {
  padding: 1.7rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(28, 53, 82, 0.9), rgba(19, 40, 63, 0.95));
  box-shadow: 0 20px 45px rgba(9, 24, 39, 0.3);
  backdrop-filter: blur(8px);
  color: var(--wc-white);
}

.hero-panel h2 {
  margin-bottom: 1.25rem;
  color: var(--wc-white);
  font-size: 1.95rem;
}

.hero-search-form {
  margin-bottom: 1.5rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  background: #e6edf6;
  border-radius: 1rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.search-input {
  flex: 1;
  min-width: 0;
}

.search-input input {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1b2b3c;
  font-size: 1rem;
  line-height: 1.4;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
}

.search-input input::placeholder {
  color: #5f6f82;
  opacity: 1;
}

.search-bar button {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--wc-navy-soft);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.search-bar button:hover,
.search-bar button:focus-visible {
  background: var(--wc-navy-dark);
}

.search-bar button:focus-visible,
.search-input input:focus-visible {
  outline: 3px solid rgba(111, 168, 220, 0.45);
  outline-offset: 2px;
}

.popular-label {
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.popular-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(49, 95, 145, 0.9);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.popular-links a:hover,
.popular-links a:focus-visible {
  background: rgba(111, 168, 220, 0.22);
  color: #ffffff;
}

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  height: 78px;
  background:
    radial-gradient(circle at 12% 100%, transparent 54px, #ffffff 56px),
    radial-gradient(circle at 36% 100%, transparent 72px, #ffffff 74px),
    radial-gradient(circle at 62% 100%, transparent 64px, #ffffff 66px),
    radial-gradient(circle at 86% 100%, transparent 60px, #ffffff 62px);
  background-size: 25% 100%;
  background-repeat: repeat-x;
}

/* =========================================================
   HOMEPAGE SERVICES
   Matched to banner aesthetic
   ========================================================= */

.services-section--homepage {
  position: relative;
  z-index: 5;
  margin-top: -4rem;
  padding: 0 0 3.5rem;
  background: transparent;
  width: 100%;
  margin-bottom: 0;
}

.services-section--homepage .section-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.25rem;
}

.services-btns--homepage {
  width: 100%;
}

.services-grid--homepage {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.service-btn--homepage {
  width: 100%;
  min-width: 0;
}

/* card */
.service-btn--homepage {
  position: relative;
  min-height: 10.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  text-decoration: none;
  color: #13283f;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}


/* icon */
.service-btn--homepage i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: .5rem 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 53, 82, 1), rgba(28, 53, 82, 0.7));
  border: 1px solid rgba(28, 53, 82, 0.08);
  font-size: 1.7rem;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

/* text */
.service-btn--homepage span {
  display: block;
  max-width: 11.5rem;
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.35;
  font-weight: 700;
  color: #13283f;
  text-wrap: balance;
}

/* hover / focus */
.service-btn--homepage:hover ,
.service-btn--homepage:focus-visible {
  text-decoration: none;
  color: #13283f;
}

.service-btn--homepage:hover i,
.service-btn--homepage:focus-visible i {
  color: #132834;
  border-color: rgba(111, 168, 220, 0.32);
  background: linear-gradient(180deg, rgba(111, 168, 220, 0.16), rgba(111, 168, 220, 0.06));
  box-shadow:
    0 18px 34px rgba(19, 40, 63, 0.14),
    0 6px 16px rgba(19, 40, 63, 0.08);
    transform: translateY(-6px);
}

.service-btn--homepage:hover span,
.service-btn--homepage:focus-visible span {
  color: #13283f;
}

/* active */
.service-btn--homepage:active {
  transform: translateY(-2px);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {
  .services-grid--homepage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .services-section--homepage {
    margin-top: -2rem;
    padding-bottom: 3rem;
  }

  .services-grid--homepage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-btn--homepage {
    min-height: 10rem;
  }
}

@media (max-width: 768px) {
  .services-section--homepage {
    margin-top: 0;
    padding: 2rem 0 2.5rem;
  }

  .services-grid--homepage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .service-btn--homepage {
    min-height: 9.25rem;
    padding: 1.15rem 0.9rem 1rem;
  }

  .service-btn--homepage i {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.5rem;
  }

  .service-btn--homepage span {
    font-size: 0.93rem;
  }
}

@media (max-width: 480px) {
  .services-grid--homepage {
    grid-template-columns: 1fr;
  }

  .service-btn--homepage {
    min-height: auto;
    padding: 1.15rem 1rem;
    gap: 0.65rem;
  }

  .service-btn--homepage span {
    max-width: none;
  }
}

/* -------------------------------
   FEATURED NOTICE
-------------------------------- */
.feat-notices .card {
  background: white;
  color: linear-gradient(135deg, var(--wc-blue), var(--wc-navy));
  border-radius: 1rem;
  border: none;
}

.feat-notices .card-title {
  color: linear-gradient(135deg, var(--wc-blue), var(--wc-navy));
  border-bottom: 1px solid var(--wc-blue);
  padding-bottom: 1rem;
}

.feat-notices a {
  color: var(--wc-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* -------------------------------
   NEWS
-------------------------------- */
h2.news-title {
  text-align: center;
  margin-top: 0;
}

.news-post-card {
  background: var(--wc-white);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.news-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.news-post-card h3.card-title {
  font-size: 1.2rem;
}

.news-post-card h4.card-subtitle {
  font-size: 1rem;
}


/* Commission meeting footer */
#footer-middle {
  background-image: url("images/overlay.png"), url("../../images/WSU_D2N1689.jpg");
  background-size: auto, cover;
  background-attachment: fixed, fixed;
  background-repeat: repeat, no-repeat;
  background-color: rgba(21, 27, 33, 0.6);
  color: #ffffff;
}

#footer-middle a {
  color: #ffffff;
}

#footer-middle .content {
  padding: 2.5em 0 1.5em;
  background-color: rgba(21, 27, 33, 0.8);
}

#footer-middle .content > .inner {
  display: flex;
  margin: 0 auto;
  width: 70em;
}

#footer-middle .content > .inner > * {
  padding-left: 3em;
  width: 25%;
}

#footer-middle .content > .inner .about {
  width: 50%;
}

#footer-middle .content > .inner .about:first-child {
  padding-left: 0;
}

#footer-middle .button {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px #ffffff;
  color: #ffffff !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#footer-middle .button:hover {
  background-color: rgba(255, 255, 255, 0.075);
}

#footer-middle .button:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media screen and (max-width: 1280px) {
  #footer-middle .content {
    padding: 5em 3em 3em;
  }

  #footer-middle .content > .inner {
    width: 100%;
  }

  #footer-middle .content > .inner > * {
    width: 30%;
  }

  #footer-middle .content > .inner .about {
    width: 40%;
  }
}

@media screen and (max-width: 980px) {
  #footer-middle .content > .inner {
    flex-wrap: wrap;
  }

  #footer-middle .content > .inner > * {
    width: 50%;
    padding-left: 0;
  }

  #footer-middle .content > .inner .about {
    width: 100%;
    margin: 0 0 2em 0;
  }
}

@media screen and (max-width: 480px) {
  #footer-middle .content {
    padding: 2.5em 1.5em 0.5em;
  }

  #footer-middle .content > .inner > * {
    width: 100%;
  }
}

body.is-mobile #footer-middle {
  background-attachment: scroll, scroll;
}

/* -------------------------------
   IMPORTANT INFO
-------------------------------- */
h2.section-title {
  border-bottom: 2px solid var(--wc-accent);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.important-info {
  width: 90%;
  max-width: 1200px;
  margin: 4rem auto;
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-box {
  background: var(--wc-white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--wc-gray-200);
  text-align: center;
  color: var(--wc-navy);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.info-box i {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--wc-blue);
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background-color: var(--wc-sky);
  text-decoration: none;
}

/* -------------------------------
   CALENDARS
-------------------------------- */
.calendar-info {
  width: 90%;
  max-width: 1200px;
  margin: 4rem auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* CALENDAR CARDS – ICON ABOVE TEXT */
.calendar-card {
  display: flex;
  flex-direction: column;     
  align-items: center;        
  justify-content: center;    
  text-align: center;
  gap: 0.75rem;
  text-decoration: none;
  background: var(--wc-white);
  border: 1px solid var(--wc-gray-200);
  border-radius: 1.25rem;
  padding: 2rem;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

/* ICON */
.calendar-card i {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

/* TEXT */
.calendar-card span {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.calendar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background-color: var(--wc-sky);
  text-decoration: none;
}

/* -------------------------------
   RESOURCES
-------------------------------- */
.resource-btns-section {
  width: 90%;
  max-width: 1200px;
  margin: 4rem auto;
}

.resource-btn {
  background: var(--wc-white);
  border-radius: 1rem;
  border: 1px solid var(--wc-gray-200);
  width: 9rem;
  height: 9rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--wc-navy);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.resource-btn i {
  font-size: 2.5rem;
  color: var(--wc-blue);
  margin-bottom: 0.5rem;
}

.resource-btn span {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.resource-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background-color: var(--wc-sky);
  text-decoration: none;
}

/* -------------------------------
   RESPONSIVE
-------------------------------- */
@media (max-width: 768px) {
  .tt-inner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .service-btn,
  .resource-btn {
    width: 100%;
    height: auto;
    padding: 1.5rem;
  }
}

footer {
  color: #fff !important;
}

footer p {
  color: #fff !important;
}