/*
 * Cedar County — "Bold & Vibrant" template
 * Energetic, community-forward design. Saturated brand colors in full-bleed
 * bands, oversized display headings, colorful service tiles, pill CTAs, and
 * geometric/diagonal accents. Pure hand-written CSS, system fonts only.
 */

/* ---------- Design tokens ---------- */
:root {
  --ink: #15052b;          /* near-black plum for text */
  --ink-soft: #4a3a5e;
  --paper: #ffffff;
  --cream: #fff7ef;        /* warm off-white band */

  --magenta: #ff2d75;
  --magenta-dark: #d2004f;
  --blue: #2f5bff;
  --blue-dark: #1733c9;
  --orange: #ff7a18;
  --yellow: #ffd23f;
  --teal: #00c2a8;
  --purple: #7c3aed;
  --green: #19c37d;

  --radius: 18px;
  --pill: 9999px;
  --shadow: 0 18px 40px rgba(21, 5, 43, 0.18);
  --shadow-sm: 0 8px 20px rgba(21, 5, 43, 0.12);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-dark); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10000;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Top strip ---------- */
.topstrip {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.topstrip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* keep clear of the fixed top-right template switcher */
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 230px;
}
.topstrip__alert { color: var(--yellow); }
.topstrip__links { display: flex; gap: 18px; flex-wrap: wrap; }
.topstrip__links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.topstrip__links a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header / brand ---------- */
.site-header {
  background: var(--magenta);
  background-image: linear-gradient(110deg, var(--magenta) 0%, var(--purple) 100%);
  color: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brandmark {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sm);
}
.brandmark span:first-child { font-size: 22px; }
.brandmark span:last-child { font-size: 11px; margin-top: 3px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.brand-text small {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
}

/* ---------- Primary nav ---------- */
.mainnav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.mainnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.mainnav li { margin: 0; }
.mainnav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 20px;
  border-bottom: 4px solid transparent;
}
.mainnav a:hover { background: rgba(255, 255, 255, 0.08); }
.mainnav a[aria-current="page"] {
  border-bottom-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: var(--pill);
  padding: 15px 30px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--solid { background: var(--magenta); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}
.btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blue);
  background-image: linear-gradient(125deg, var(--blue) 0%, var(--purple) 55%, var(--magenta) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* diagonal geometric accent that degrades to nothing on old browsers */
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  background: var(--yellow);
  opacity: 0.18;
  transform: rotate(45deg);
  border-radius: 60px;
}
.hero .container { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 78px; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--pill);
  margin: 0 0 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p {
  margin: 0 0 30px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  max-width: 56ch;
  opacity: 0.96;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Quick links band ---------- */
.quickband { background: var(--yellow); }
.quickband .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
  align-items: center;
}
.quickband .lead {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  margin-right: 6px;
}
.quickband a {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--pill);
}
.quickband a:hover { background: var(--magenta); }

/* ---------- Sections ---------- */
.band { padding: 64px 0; }
.band--cream { background: var(--cream); }
.band--ink { background: var(--ink); color: #fff; }
.band--blue {
  background: var(--blue);
  background-image: linear-gradient(120deg, var(--blue), var(--purple));
  color: #fff;
}

.section-head { max-width: 720px; margin: 0 0 38px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--magenta);
  margin: 0 0 10px;
}
.band--ink .section-head .kicker,
.band--blue .section-head .kicker { color: var(--yellow); }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; font-size: 19px; color: var(--ink-soft); }
.band--ink .section-head p,
.band--blue .section-head p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Service tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 24px 60px;
  min-height: 150px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__num {
  position: absolute;
  right: 14px;
  bottom: -16px;
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.22;
  letter-spacing: -0.04em;
}
.tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.tile p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}
.tile__go {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}
/* cycle through the bright palette */
.tile.c1 { background: var(--magenta); }
.tile.c2 { background: var(--blue); }
.tile.c3 { background: var(--orange); }
.tile.c4 { background: var(--teal); }
.tile.c5 { background: var(--purple); }
.tile.c6 { background: var(--green); }
.tile.c7 { background: var(--magenta-dark); }
.tile.c8 { background: var(--blue-dark); }
.tile.c9 { background: var(--ink); }
.tile.c0 { background: #e0a400; color: var(--ink); }
.tile.c0 .tile__num { opacity: 0.28; }

/* ---------- Department cards ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.dept-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  border-top: 8px solid var(--magenta);
}
.dept-card:nth-child(6n + 2) { border-top-color: var(--blue); }
.dept-card:nth-child(6n + 3) { border-top-color: var(--orange); }
.dept-card:nth-child(6n + 4) { border-top-color: var(--teal); }
.dept-card:nth-child(6n + 5) { border-top-color: var(--purple); }
.dept-card:nth-child(6n + 6) { border-top-color: var(--green); }
.dept-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.dept-card p { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.dept-card .phone {
  display: inline-block;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  background: var(--cream);
  padding: 8px 16px;
  border-radius: var(--pill);
  font-size: 15px;
}
.dept-card .phone:hover { background: var(--yellow); }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.news-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.tag {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--pill);
}
.news-card:nth-child(6n + 2) .tag { background: var(--blue); }
.news-card:nth-child(6n + 3) .tag { background: var(--orange); }
.news-card:nth-child(6n + 4) .tag { background: var(--teal); }
.news-card:nth-child(6n + 5) .tag { background: var(--purple); }
.news-card:nth-child(6n + 6) .tag { background: var(--green); }
.news-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.news-card p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--magenta);
  background-image: linear-gradient(120deg, var(--magenta), var(--orange));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(40deg);
  border-radius: 50px;
}
.page-hero .container { position: relative; z-index: 1; padding-top: 54px; padding-bottom: 54px; }
.page-hero .crumbs {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  opacity: 0.95;
}
.page-hero .crumbs a { color: #fff; text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

/* ---------- CTA strip ---------- */
.cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 28px;
  margin-top: 8px;
}
.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.cta p { margin: 0 0 24px; font-size: 18px; opacity: 0.9; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Help cards ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.help-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
}
.help-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.help-card p { margin: 0 0 12px; opacity: 0.9; font-size: 15px; }
.help-card .val { font-weight: 800; color: var(--yellow); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.info-stack { display: grid; gap: 16px; }
.info-block {
  background: #fff;
  border-left: 8px solid var(--blue);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.info-block:nth-child(5n + 1) { border-left-color: var(--magenta); }
.info-block:nth-child(5n + 2) { border-left-color: var(--blue); }
.info-block:nth-child(5n + 3) { border-left-color: var(--orange); }
.info-block:nth-child(5n + 4) { border-left-color: var(--teal); }
.info-block:nth-child(5n + 5) { border-left-color: var(--purple); }
.info-block h3 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  color: var(--ink-soft);
}
.info-block p { margin: 0; font-size: 17px; font-weight: 600; }
.map-embed {
  margin-top: 4px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 10px solid var(--magenta);
}
.form-card h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 16px;
  border: 2px solid #e6dced;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: #fff;
}
.form-note { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
}
.site-footer .container { padding-top: 56px; padding-bottom: 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}
.site-footer h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  color: var(--yellow);
}
.site-footer p { margin: 0 0 10px; opacity: 0.88; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: #fff; text-decoration: none; opacity: 0.88; font-size: 15px; }
.site-footer a:hover { opacity: 1; color: var(--yellow); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  opacity: 0.75;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topstrip .container { padding-right: 22px; justify-content: center; text-align: center; }
  .topstrip__links { justify-content: center; }
  .site-header .container { flex-direction: row; }
  .mainnav a { padding: 12px 14px; font-size: 13px; }
  .band { padding: 48px 0; }
  .hero .container { padding-top: 52px; padding-bottom: 56px; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .mainnav ul { justify-content: center; }
  .btn { display: block; width: 100%; }
  .hero__actions, .cta__actions { flex-direction: column; }
  .quickband .container { justify-content: flex-start; }
}
