/* Fort Gay Police Department | fortgaywvpolice.gov */

@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy-950: #071327;
  --navy-900: #0a1a33;
  --navy-800: #0f2547;
  --navy-700: #16335f;
  --navy-600: #1f4a85;
  --gold-600: #9a7418;
  --gold-500: #c99a2e;
  --gold-400: #d9b25a;
  --gold-300: #ead08f;
  --red-700: #a4161a;
  --red-800: #85110f;
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --white: #ffffff;
  --ink: #13213a;
  --muted: #4a5670;
  --line: #d9d4c7;
  --on-dark: #e9edf5;
  --on-dark-muted: #b7c1d4;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", "Public Sans", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(7, 19, 39, .08), 0 8px 24px rgba(7, 19, 39, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold-400); color: var(--navy-950); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.eyebrow { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--gold-600); margin-bottom: .75rem; display: block; }
.eyebrow--gold { color: var(--gold-400); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--radius); font-family: var(--label); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-400); color: var(--navy-950); border-color: var(--gold-400); }
.btn--gold:hover { background: var(--gold-300); border-color: var(--gold-300); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--call, .btn--navy { background: var(--navy-800); color: var(--white); }
.btn--call:hover, .btn--navy:hover { background: var(--navy-700); }

/* Official banner */
.gov-banner { background: var(--navy-950); color: var(--on-dark-muted); font-size: .8125rem; line-height: 1.4; }
.gov-banner summary { list-style: none; cursor: pointer; display: block; padding: .45rem 0; }
.gov-banner summary > * { vertical-align: middle; }
.gov-banner summary::-webkit-details-marker { display: none; }
.gov-banner__flag { display: inline-block; width: 20px; height: 13px; margin-right: .5rem; }
.gov-banner__how { color: var(--gold-300); text-decoration: underline; text-underline-offset: .2em; display: inline-flex; align-items: center; gap: .3rem; margin-left: .6rem; white-space: nowrap; }
.gov-banner__how::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.gov-banner details[open] .gov-banner__how::after { transform: rotate(-135deg) translateY(-1px); }
.gov-banner__detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem 2.5rem; padding: .75rem 0 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.gov-banner__item { display: flex; gap: .75rem; align-items: flex-start; }
.gov-banner__item svg { width: 32px; height: 32px; flex: none; color: var(--gold-400); }
.gov-banner__item strong { color: var(--on-dark); }

/* Emergency strip */
.alert-strip { background: var(--red-700); color: var(--white); }
.alert-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1.75rem; padding-top: .55rem; padding-bottom: .55rem; font-family: var(--label); font-weight: 600; font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.alert-strip a { color: inherit; text-decoration-color: rgba(255, 255, 255, .6); }
.alert-strip p + p { position: relative; }
@media (min-width: 560px) { .alert-strip p + p::before { content: ""; position: absolute; left: -.9rem; top: 50%; width: 1px; height: 1em; transform: translateY(-50%); background: rgba(255, 255, 255, .45); } }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1rem 2rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__emblem { width: 72px; height: 72px; flex: none; filter: drop-shadow(0 2px 4px rgba(7, 19, 39, .25)); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.1; color: var(--navy-900); }
.brand__sub { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--gold-600); margin-top: .25rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; color: var(--navy-900); text-decoration: none; padding: .5rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold-500); }

@media (max-width: 899px) {
  .site-header__inner { gap: .75rem 1rem; }
  .site-nav { order: 3; width: 100%; border-top: 1px solid var(--line); padding-top: .35rem; }
  .site-nav ul { justify-content: space-between; gap: .25rem 1rem; }
}
@media (max-width: 559px) {
  .brand__emblem { width: 56px; height: 56px; }
  .brand__sub { font-size: .75rem; letter-spacing: .08em; }
  .btn--call { display: none; }
  .site-nav a { font-size: .98rem; letter-spacing: .05em; }
}

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--navy-900); color: var(--on-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 19, 39, .95) 0%, rgba(10, 26, 51, .86) 42%, rgba(10, 26, 51, .55) 72%, rgba(10, 26, 51, .35) 100%),
  linear-gradient(0deg, rgba(7, 19, 39, .75) 0%, rgba(7, 19, 39, 0) 40%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); color: var(--white); max-width: 16ch; text-wrap: balance; }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin-top: 1rem; font-size: .95rem; color: var(--on-dark-muted); }
.hero__note a { color: var(--gold-300); font-weight: 700; }

.hero__photo { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.hero__frame { position: relative; padding: 10px; background: linear-gradient(145deg, var(--gold-300), var(--gold-500) 45%, var(--gold-600)); border-radius: 3px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.hero__frame img { width: 100%; border-radius: 1px; }
.hero__frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .35); pointer-events: none; }
.hero__photo figcaption { margin-top: 1rem; padding-left: 1rem; border-left: 3px solid var(--gold-500); font-size: .98rem; color: var(--on-dark); line-height: 1.45; }
.hero__photo figcaption .eyebrow { margin-bottom: .2rem; font-size: .8rem; }

.hero__rule { position: relative; display: flex; align-items: center; gap: 1rem; color: var(--gold-400); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 1.5rem; }
.hero__rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 178, 90, .7)); }
.hero__rule span:last-child { background: linear-gradient(270deg, transparent, rgba(217, 178, 90, .7)); }
.hero__rule svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { justify-self: start; max-width: 420px; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 19, 39, .9) 0%, rgba(10, 26, 51, .88) 55%, rgba(7, 19, 39, .95) 100%); }
}
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* Load motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero__photo { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .hero__photo { animation-delay: .2s; animation-duration: .9s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Section heads */
.section-head { margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy-900); }

/* Services */
.services { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0; background:
  repeating-radial-gradient(circle at 100% 0%, transparent 0 22px, rgba(201, 154, 46, .07) 22px 23px),
  var(--paper); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy-700); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.card__icon { width: 34px; height: 34px; color: var(--gold-500); margin-bottom: 1rem; }
.card h3 { font-size: 1.35rem; color: var(--navy-900); margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 1.25rem; }
.card__link { margin-top: auto; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; color: var(--navy-700); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card__link::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.card__link:hover::after { transform: translateX(3px) rotate(45deg); }
.card__link::before { content: ""; position: absolute; inset: 0; }
.card:has(.card__link:hover) { border-color: var(--gold-400); }
.card--urgent { border-top-color: var(--red-700); }
.card--urgent .card__icon, .card--urgent .card__link { color: var(--red-700); }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .cards { grid-template-columns: 1fr; } }

/* Mission */
.mission { position: relative; isolation: isolate; background: var(--navy-900); color: var(--on-dark); overflow: hidden; }
.mission__media { position: absolute; inset: 0 0 0 50%; z-index: -1; }
.mission__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.mission__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(10, 26, 51, .7) 35%, rgba(10, 26, 51, .25) 100%); }
.mission__inner { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.mission h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); color: var(--white); max-width: 18ch; text-wrap: balance; }
.mission__quote { margin: 1.75rem 0 0; max-width: 34rem; padding-left: 1.25rem; border-left: 3px solid var(--gold-500); }
.mission__quote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--white); }
.mission__quote footer { margin-top: .75rem; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; color: var(--gold-400); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; max-width: 46rem; }
.values li { padding-top: 1rem; border-top: 1px solid rgba(217, 178, 90, .5); }
.values h3 { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 1.15rem; color: var(--gold-300); margin-bottom: .4rem; }
.values p { font-size: .98rem; color: var(--on-dark-muted); }
@media (max-width: 899px) {
  .mission__media { inset: 0; }
  .mission__media::after { background: linear-gradient(180deg, rgba(10, 26, 51, .82) 0%, rgba(10, 26, 51, .94) 45%, var(--navy-900) 100%); }
}
@media (max-width: 639px) { .values { grid-template-columns: 1fr; gap: 1rem; } }

/* News */
.news { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--white); }
.news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.story { position: relative; padding: 1.4rem 1.5rem 1.6rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.story:hover { border-color: var(--gold-400); transform: translateY(-2px); }
.story__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.story__meta span { color: var(--gold-600); }
.story h3 { font-size: 1.25rem; line-height: 1.3; }
.story h3 a { color: var(--navy-900); text-decoration: none; }
.story h3 a::after { content: ""; position: absolute; inset: 0; }
.story h3 a:hover { text-decoration: underline; }
.news__note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 899px) { .news__list { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy-900); margin-bottom: 1.75rem; }
.contact__list { margin: 0; border-top: 1px solid var(--line); }
.contact__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .25rem 1.5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.contact__row dt { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .98rem; color: var(--muted); padding-top: .1rem; }
.contact__row dd { margin: 0; font-size: 1.1rem; color: var(--ink); overflow-wrap: anywhere; }
.contact__row dd a { color: var(--navy-700); font-weight: 600; }
.contact__row--urgent dd a { color: var(--red-700); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; text-decoration: none; line-height: 1; }
.contact__visit { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; align-items: flex-end; }
.contact__visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__visit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 19, 39, .8) 0%, rgba(7, 19, 39, 0) 60%); }
.contact__card { position: relative; margin: 1.25rem; padding: 1.5rem; background: rgba(10, 26, 51, .92); color: var(--on-dark); border-top: 3px solid var(--gold-500); border-radius: var(--radius); max-width: 22rem; }
.contact__addr { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.3; color: var(--white); margin-bottom: 1.1rem; }
@media (max-width: 899px) { .contact__grid { grid-template-columns: 1fr; } .contact__visit { min-height: 360px; } }
@media (max-width: 479px) { .contact__row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer a { color: var(--on-dark); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 2rem; padding-top: 3rem; padding-bottom: 2.25rem; }
.site-footer__brand { display: flex; gap: 1rem; align-items: center; }
.site-footer__brand img { width: 64px; height: 64px; flex: none; }
.site-footer__name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: .2rem; }
.site-footer__contact p + p, .site-footer__links p + p { margin-top: .35rem; }
.site-footer__contact strong { color: var(--on-dark); font-weight: 600; }
.site-footer__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; padding-bottom: 1.75rem; font-size: .85rem; }
.site-footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .1); }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* 404 */
.notfound { padding: clamp(4rem, 10vw, 8rem) 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--navy-900); margin-bottom: 1rem; }
.notfound p { color: var(--muted); max-width: 44ch; margin-bottom: 1.75rem; }

@media print {
  .gov-banner, .site-nav, .btn, .hero__bg, .mission__media, .contact__visit { display: none !important; }
  .hero, .mission, .site-footer { background: none; color: #000; }
  .hero h1, .mission h2, .mission__quote p { color: #000; }
}
