/* City of Redstone, Oklahoma — homepage
   Palette: navy #173B57, red #B33A3A, white/near-white neutrals (cream replaced per client request)
   Type: Fraunces (display serif, civic/confident) + Public Sans (body, standard for government UI) */

:root {
  --navy: #173B57;
  --navy-dark: #102943;
  --red: #B33A3A;
  --red-dark: #93302f;
  --cream: #FAFAFA;
  --cream-deep: #EDEEF0;
  --ink: #1C2530;
  --line: #D9DCE0;
  --white: #FFFFFF;

  --font-display: "Libre Caslon Text", "Georgia", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --radius: 3px;
  --shadow: 0 10px 30px -18px rgba(16, 41, 67, 0.35);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

img { object-fit: cover; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

.text-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.text-link:hover, .text-link:focus-visible { border-color: currentColor; }

.services h2 { margin-bottom: 1.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--primary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* Alert bar */
.alert-bar {
  background: var(--navy-dark);
  color: var(--cream);
  font-size: 0.9rem;
}
.alert-bar__inner { padding-block: 0.6rem; }
.alert-bar a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.alert-bar a:hover { color: var(--white); }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--navy); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); font-weight: 700; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  position: relative;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; flex: 1; justify-content: flex-end; }
.primary-nav ul { display: flex; gap: 1.5rem; }
.primary-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a:focus-visible { border-color: var(--red); }

.site-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); position: relative; }
.site-search input { border: 0; background: transparent; padding: 0.55rem 0.75rem; width: 190px; }
.site-search input:focus-visible { outline: none; }
.site-search:focus-within { outline: 3px solid var(--navy); outline-offset: 1px; }
.site-search button { background: transparent; border: 0; padding: 0.5rem 0.7rem; color: var(--navy); }
.site-search .form-message { position: absolute; top: 110%; right: 0; background: var(--navy); color: var(--white); padding: 0.4rem 0.6rem; font-size: 0.8rem; white-space: nowrap; border-radius: var(--radius); }

/* Hero */
.hero { position: relative; color: var(--white); }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  filter: saturate(0.9) brightness(0.62) sepia(0.12) hue-rotate(-6deg);
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,41,67,0.92) 0%, rgba(16,41,67,0.68) 42%, rgba(16,41,67,0.28) 78%);
}
.hero__content { position: relative; padding-block: 6.5rem 5.5rem; max-width: 640px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 700; color: var(--cream); opacity: 0.85; margin-bottom: 1rem; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem); margin-bottom: 1.25rem; }
.hero__intro { font-size: 1.1rem; opacity: 0.92; margin-bottom: 2rem; max-width: 34rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Quick services */
.services { padding-block: 3.5rem 2.5rem; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.service-card:hover, .service-card:focus-visible { background: var(--cream-deep); }
.service-card__icon { color: var(--red); flex-shrink: 0; }

/* Redstone in Progress */
.progress { background: var(--navy); color: var(--cream); padding-block: 4rem; }
.progress__layout { display: grid; grid-template-columns: 0.85fr 2fr; gap: 3rem; }
.progress h2 { color: var(--white); margin-bottom: 0.75rem; }
.progress__intro p { opacity: 0.85; margin-bottom: 1.25rem; }
.progress .text-link { color: #E7B7A9; }
.progress__list { display: grid; gap: 1.75rem; }
.progress__item { padding-top: 1.75rem; border-top: 1px solid rgba(245, 240, 230, 0.18); }
.progress__item:first-child { padding-top: 0; border-top: 0; }
.progress__status { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: #E7B7A9; margin-bottom: 0.4rem; }
.progress__item h3 { color: var(--white); margin-bottom: 0.4rem; }
.progress__item p:not(.progress__status) { opacity: 0.85; }

/* News */
.news { padding-block: 4.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; gap: 1rem; }
.news__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.75rem;
}
.news__card--feature { grid-row: span 2; }
.news__card { display: flex; flex-direction: column; }
.news__card img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 3/2; }
.news__card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.news__date { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--red); }
.news__card h3 { font-size: 1.05rem; }
.news__card--feature h3 { font-size: 1.4rem; }
.news__card p:not(.news__date) { color: #4A5566; font-size: 0.95rem; }

/* Meetings */
.meetings { background: var(--white); padding-block: 4.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meetings__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.meetings h2 { margin-bottom: 1.75rem; }
.meetings__list { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.meeting-item { display: flex; gap: 1.1rem; align-items: flex-start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.meeting-item:last-child { border-bottom: 0; padding-bottom: 0; }
.meeting-item__date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 58px; padding: 0.4rem 0; flex-shrink: 0;
}
.meeting-item__date span { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--red); }
.meeting-item__date strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.meeting-item h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.meeting-item p { color: #4A5566; font-size: 0.9rem; }
.meetings__figure img { border-radius: var(--radius); aspect-ratio: 3/2; }
.meetings__figure figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: #4A5566; }

/* Leadership */
.leadership { padding-block: 5rem; }
.leadership__layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.leadership__media img { border-radius: var(--radius); aspect-ratio: 4/3; }
.leadership h2 { margin-bottom: 1.5rem; }
.leadership blockquote { margin: 0 0 1.5rem; }
.leadership blockquote p { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--navy); font-weight: 500; }
.leadership__name { font-weight: 700; color: var(--navy); }
.leadership__title { color: #4A5566; font-size: 0.9rem; }

/* Departments */
.departments { background: var(--cream-deep); padding-block: 4rem; }
.departments h2 { margin-bottom: 1.75rem; }
.departments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 2rem;
}
.departments__grid a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.departments__grid a:hover, .departments__grid a:focus-visible { color: var(--red); }

/* Newsletter */
.newsletter { background: var(--navy-dark); color: var(--white); padding-block: 3.5rem; }
.newsletter__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.newsletter__inner h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.5rem; }
.newsletter__inner p { opacity: 0.8; max-width: 32rem; }
.newsletter__form { display: flex; gap: 0.6rem; position: relative; flex-shrink: 0; }
.newsletter__form input {
  padding: 0.8rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08); color: var(--white); min-width: 240px;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter__form .form-message { position: absolute; top: 110%; left: 0; font-size: 0.85rem; color: #E7B7A9; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); padding-top: 3.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__brand img { margin-bottom: 0.75rem; }
.site-footer__city { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.site-footer__brand p { opacity: 0.75; font-size: 0.9rem; margin-bottom: 0.25rem; }
.site-footer h3 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; color: var(--cream); opacity: 0.85; font-size: 0.92rem; }
.site-footer a:hover, .site-footer a:focus-visible { opacity: 1; text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid rgba(245,240,230,0.15);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; opacity: 0.75;
}
.site-footer__disclosure { font-style: italic; }
.site-footer__credit a { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .progress__layout, .meetings__layout, .leadership__layout { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .news__card--feature { grid-column: span 2; grid-row: auto; }
  .departments__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 5.5rem 1.5rem 2rem; gap: 2rem;
    transform: translateX(100%); transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 1rem; }
  .site-search input { width: 100%; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .news__card--feature { grid-column: auto; }
  .departments__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .newsletter__inner { flex-direction: column; align-items: flex-start; }
  .newsletter__form { width: 100%; flex-wrap: wrap; }
  .newsletter__form input { min-width: 0; flex: 1; }
  .hero__content { padding-block: 4.5rem 3.5rem; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
}
