/* ==========================================================================
   Dominion City North America
   Design tokens lifted from the Pencil export (design/html exports/).
   ========================================================================== */

/* Fonts are self-hosted rather than loaded from fonts.googleapis.com, so no
   visitor IP reaches Google before consent. Both are variable fonts — one
   file per family covers every weight we use. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1a237e;
  --navy-ghost: #1a237e14;
  --gold: #f5c842;
  --gold-soft: #fff4c2;
  --gold-ring: #e39a2b4d;
  --ink: #1c1c1c;
  --muted: #5b5b5b;
  --muted-2: #757575;
  --line: #e6e7eb;
  --line-2: #d5d7dd;
  --white: #fff;

  --shadow-card: 0 3px 16px 0 #12163b12;
  --shadow-card-hover: 0 10px 28px 0 #17171f24;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --radius-card: 16px;
  --radius-ctl: 10px;
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

/* Visible focus everywhere, matched to the design's gold ring. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

/* -------------------------------------------------------------- header -- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 38px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--navy);
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 96px 64px;
  background-color: #0d1030;
  background-image: linear-gradient(
      100deg,
      rgba(10, 13, 40, 0.92) 0%,
      rgba(10, 13, 40, 0.72) 46%,
      rgba(10, 13, 40, 0.45) 100%
    ),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.06;
  font-weight: 800;
  margin: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 34em;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 8px;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 200, 66, 0.34);
}

/* ------------------------------------------------------------- section -- */

.section {
  padding: 96px 64px 110px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.14;
  font-weight: 700;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  max-width: 46em;
}

/* ----------------------------------------------------------- directory -- */

.directory-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Head sits 40px off the search field; search sits 28px off the results. */
.directory-inner .section-head {
  margin-bottom: 12px;
}

.search-wrap {
  width: 100%;
  max-width: 560px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--line-2);
  border-radius: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}

.search-field svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--muted-2);
}

.search-field input {
  flex: 1 1 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

/* Hide the browser's built-in search clear button (WebKit/Blink add one to
   type="search"). We render our own .search-clear, which also resets the
   filter and restores focus, so the native one is a redundant duplicate. */
.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.search-clear:hover {
  background: var(--line-2);
  color: var(--ink);
}

.search-clear.is-visible {
  display: inline-flex;
}

/* Lives inside .search-wrap so it takes up no room until there is a query.
   min-height stays 0 — an empty note must not reserve vertical space. */
.result-note {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.result-note:not(:empty) {
  margin-top: 12px;
}

.result-note b {
  color: var(--ink);
  font-weight: 600;
}

/* state groups */

.states {
  display: flex;
  flex-direction: column;
  gap: 52px;
  width: 100%;
}

.state-group {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.state-group[hidden] {
  display: none;
}

.state-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.state-head h3 {
  font-size: 22px;
  font-weight: 700;
}

.count-pill {
  background: var(--gold-soft);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
  color: #6b5300;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

/* ----------------------------------------------------------- card ------ */

.campus-card {
  background: var(--gold);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding-left: 5px;
  display: flex;
  transition: box-shadow 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.campus-card[hidden] {
  display: none;
}

.campus-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.campus-card:focus-within {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}

.campus-card-body {
  background: var(--white);
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.campus-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.campus-id {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 0;
  min-width: 0;
}

.campus-name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink);
}

.campus-place {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--muted);
}

.campus-place svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted-2);
}

.campus-watermark {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 41px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--navy-ghost);
  white-space: nowrap;
  user-select: none;
}

.campus-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: var(--radius-ctl);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25; /* design uses `normal`; body's 1.55 made these too tall */
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: #141b63;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

/* ----------------------------------------------------------- empty ----- */

.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  text-align: center;
  width: 100%;
}

.empty-state.is-visible {
  display: flex;
}

.empty-icon {
  width: 66px;
  height: 66px;
  border-radius: 100px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a6d00;
}

.empty-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
}

.empty-state p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------- about ------ */

.about {
  border-top: 1px solid var(--line);
  padding: 96px 64px;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.about-photo {
  width: 560px;
  max-width: 100%;
  aspect-ratio: 7 / 6;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.about-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.14;
  font-weight: 700;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
  max-width: 40em;
}

/* --------------------------------------------------------- events ------ */

.events {
  background: var(--navy);
  color: #fff;
  padding: 104px 64px;
}

.events .eyebrow {
  color: var(--gold);
}

.events .section-head h2 {
  color: #fff;
}

.events-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.event-featured {
  display: flex;
  gap: 44px;
  align-items: center;
  width: 100%;
}

.event-media {
  position: relative;
  width: 720px;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 720 / 440;
  background: #000;
}

.event-media img,
.event-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.video-facade {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}

.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 30, 0.15) 0%,
    rgba(8, 10, 30, 0.55) 100%
  );
}

.video-facade > * {
  position: relative;
  z-index: 1;
}

.play-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.play-ring svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.video-facade:hover .play-ring {
  transform: scale(1.07);
}

.video-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.event-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}

.event-copy h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 700;
  color: #fff;
}

.event-dates {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
}

.event-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 34em;
}

.event-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.event-dormant {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dormant-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.dormant-head h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.dormant-head .status {
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
}

.event-dormant > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 12px;
}

/* --------------------------------------------------------- footer ------ */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 64px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-legal {
  width: 100%;
  font-size: 13px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 6px;
}

/* ---------------------------------------------------------- legal ------ */

.legal {
  padding: 72px 64px 96px;
}

.legal-inner {
  max-width: 720px;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--muted-2);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 10px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 12px;
}

.legal a {
  color: var(--navy);
}

.legal-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted-2);
  font-style: italic;
}

/* Cookie table — scrolls inside itself rather than pushing the page wide. */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 14px;
}

.legal-table caption {
  text-align: left;
  padding: 14px 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}

.legal-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  background: #fbfbfc;
  white-space: nowrap;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table code {
  font-size: 13px;
  background: var(--gold-soft);
  padding: 2px 6px;
  border-radius: 5px;
  color: #6b5300;
}

/* ------------------------------------------------- cookie consent ------ */

.cc-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px 0 rgba(18, 22, 59, 0.18);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-banner h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.cc-banner p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.cc-banner a {
  color: var(--navy);
  text-decoration: underline;
}

/* Accept and Decline are deliberately the same size, padding and font weight.
   Equal prominence is a compliance requirement, not a style preference. */
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-btn {
  flex: 1 1 auto;
  min-width: 150px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: var(--radius-ctl);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.cc-btn-accept {
  background: var(--navy);
  color: var(--white);
}

.cc-btn-accept:hover {
  background: #141b63;
}

.cc-btn-decline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-2);
}

.cc-btn-decline:hover {
  border-color: var(--ink);
}

/* Low-profile reopen control for visitors already in the opt-out model. */
.cc-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.cc-settings-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.cc-status {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.cc-status b {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 560px) {
  .cc-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 20px;
  }
  .cc-actions {
    flex-direction: column;
  }
  .cc-btn {
    width: 100%;
  }
}

/* ------------------------------------------------------ responsive ----- */

@media (max-width: 1080px) {
  .about-inner {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }
  .about-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .event-featured {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .event-media {
    width: 100%;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 20px;
  }
  .site-nav {
    display: none;
  }
  .hero {
    min-height: 560px;
    padding: 72px 20px;
    background-image: linear-gradient(
        180deg,
        rgba(10, 13, 40, 0.55) 0%,
        rgba(10, 13, 40, 0.88) 100%
      ),
      url("../img/hero-mobile.jpg");
  }
  .section,
  .about,
  .events {
    padding: 64px 20px 72px;
  }
  .legal {
    padding: 48px 20px 72px;
  }
  .site-footer {
    padding: 36px 20px;
  }
  .states {
    gap: 40px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .gallery img {
    height: 120px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 380px) {
  .campus-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .campus-actions .btn {
    justify-content: center;
  }
}
