/* ==========================================================================
   ICN Facility Rental — Stylesheet
   Design concept: a community center booking desk / directory board.
   Condensed display type reads like gym scoreboard & building signage;
   Inter carries the body copy and forms. Flat hairline structure instead
   of card-and-shadow kit — this is a schedule board, not a SaaS dashboard.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1e2a38;
  --ink-soft: #3a4757;
  --ink-faint: #6b7684;
  --paper: #eef0ea;
  --paper-raised: #ffffff;
  --line: #d3d6c9;
  --amber: #c1872f;
  --amber-dark: #96691f;
  --maroon: #8c3a2b;
  --maroon-bg: #f6e9e6;
  --green: #3f6b4c;
  --green-bg: #e7efe6;
  --gold-bg: #f7edda;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1120px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  margin: 0 0 0.4em 0;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { max-width: 62ch; }
p.wide { max-width: none; }

a { color: var(--ink); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--amber);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand span { color: var(--amber); }

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: #cfd6de;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
  display: inline-block;
}

nav.site-nav a:hover { color: #fff; }

nav.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--amber);
}

/* Drop-down (Reserve menu) */
nav.site-nav .nav-drop { position: relative; }
.nav-drop-toggle {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #cfd6de;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-drop-toggle:hover, .nav-drop.open .nav-drop-toggle { color: #fff; }
.nav-drop-toggle.active { color: #fff; border-bottom-color: var(--amber); }
.nav-caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform .15s;
}
.nav-drop.open .nav-caret { transform: rotate(180deg); }
nav.site-nav ul.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 270px;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
  background: var(--ink);
  border: 1px solid #3a4757;
  border-top: 3px solid var(--amber);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.nav-drop.open ul.nav-sub { display: flex; }
nav.site-nav .nav-sub a {
  display: block;
  padding: 11px 16px;
  border-bottom: none;
  border-left: 3px solid transparent;
  white-space: nowrap;
}
nav.site-nav .nav-sub a:hover { background: #26333f; }
nav.site-nav .nav-sub a.active { border-left-color: var(--amber); background: #26333f; }
@media (max-width: 760px) {
  nav.site-nav ul.nav-sub { position: static; min-width: 0; box-shadow: none; margin: 4px 0 8px; width: 100%; }
  nav.site-nav .nav-drop.open { flex-basis: 100%; }
  nav.site-nav .nav-sub a { white-space: normal; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 64px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.hero-eyebrow {
  font-weight: 600;
  color: var(--amber);
  margin: 0 0 10px;
}

.hero p.lede {
  color: #d6dbe1;
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Facility board (scoreboard-style cards) ---------- */

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  background: var(--ink);
  gap: 2px;
}

.board-cell {
  background: #26333f;
  color: #fff;
  padding: 20px;
}

.board-cell .label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.board-cell .stat {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}

.board-cell .stat-label {
  font-size: 0.8rem;
  color: #b7c0c9;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
}

/* ---------- Home: two large booking choices ---------- */

.hero .container > .choice-grid,
.hero .container > .hero-note { grid-column: 1 / -1; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px;
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--amber);
  transition: background .15s, transform .15s;
}
.choice:hover { background: #d29a40; transform: translateY(-2px); }
.choice:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.choice-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a3410;
}
.choice-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1;
}
.choice-text { font-size: 1rem; line-height: 1.45; max-width: 46ch; }
.choice-go { margin-top: auto; padding-top: 8px; font-weight: 700; }
.hero-note { color: #b7c0c9; margin: 4px 0 0; font-size: 0.95rem; max-width: none; }
.hero-note a { color: #fff; }
@media (max-width: 760px) {
  .choice-grid { grid-template-columns: 1fr; }
}

/* ---------- Home: Community Open Hours ---------- */

.oh-eyebrow { font-weight: 700; color: var(--amber-dark); margin: 0 0 6px; }
.oh-intro { font-size: 1.05rem; max-width: 60ch; }
.oh-today {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-left: 6px solid var(--amber);
}
.oh-today strong { color: var(--amber); }
.oh-week {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.oh-week li {
  background: var(--paper-raised);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.oh-day { font-weight: 700; color: var(--ink-faint); font-size: 0.9rem; }
.oh-sport { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; }
.oh-week li.is-today { background: var(--gold-bg); box-shadow: inset 0 -5px 0 var(--amber); }
.oh-week li.is-today .oh-day::after {
  content: "Today";
  margin-left: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: 1px;
}
.oh-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
  margin: 26px 0 0;
}
.oh-facts div { border-top: 1px solid var(--line); padding: 12px 0; }
.oh-facts dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.oh-facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 860px) {
  .oh-week { grid-template-columns: 1fr 1fr; }
  .oh-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .oh-week { grid-template-columns: 1fr; }
  .oh-week li { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .oh-facts { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: #fff; }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-soft); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Sections ---------- */

section.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

section.block:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* ---------- Facility cards (facilities page) ---------- */

.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.facility-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 6px solid var(--amber);
  padding: 26px;
}

.facility-card h3 { margin-bottom: 4px; }
.facility-card .cap { color: var(--ink-faint); font-weight: 600; margin-bottom: 18px; }

table.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
}
table.rate-table th, table.rate-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
table.rate-table th { font-weight: 700; color: var(--ink-faint); font-size: 0.82rem; }

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

/* ---------- Forms ---------- */

form .field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.field .hint {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}

textarea { resize: vertical; min-height: 100px; }

input:focus, select:focus, textarea:focus, a:focus, button:focus {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
}

.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--maroon);
}

.field-error {
  color: var(--maroon);
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 600;
  display: none;
}
.field-error.visible-error { display: block; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--maroon);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

.radio-row {
  display: flex;
  gap: 18px;
}
.radio-row label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Steps (genuinely sequential content) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: none; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--amber-dark);
}

/* ---------- Alerts / messages ---------- */

.message {
  padding: 16px 18px;
  border-left: 4px solid var(--ink);
  background: #fff;
  margin-bottom: 20px;
  font-weight: 500;
}
.message.success { border-color: var(--green); background: var(--green-bg); }
.message.error { border-color: var(--maroon); background: var(--maroon-bg); }
.message.notice { border-color: var(--amber); background: var(--gold-bg); }

/* ---------- Status pill ---------- */

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: capitalize;
}
.status-pending { background: var(--gold-bg); color: var(--amber-dark); }
.status-approved { background: var(--green-bg); color: var(--green); }
.status-rejected { background: var(--maroon-bg); color: var(--maroon); }
.status-cancelled { background: #e7e7e2; color: var(--ink-faint); }

/* ---------- Price summary ---------- */

.price-box {
  background: var(--ink);
  color: #fff;
  padding: 22px 24px;
  border-top: 4px solid var(--amber);
}
.price-box .row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.price-box .row:last-of-type { border-bottom: none; }
.price-box .row.total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber);
  border-top: 2px solid rgba(255,255,255,0.3);
  margin-top: 6px;
  padding-top: 12px;
}

/* ---------- Calendar / list of activities ---------- */

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-row {
  display: grid;
  grid-template-columns: 100px 110px 120px 1fr 150px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.activity-row:first-child { border-top: none; }
.activity-row .date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.activity-row .day { color: var(--ink-faint); font-weight: 600; }
.activity-header {
  display: grid;
  grid-template-columns: 100px 110px 120px 1fr 150px;
  gap: 14px;
  padding: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  border-bottom: 2px solid var(--line);
}
@media (max-width: 700px) {
  .activity-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .activity-header { display: none; }
}

/* ---------- Availability grid ---------- */

.avail-result {
  padding: 18px 20px;
  margin-top: 18px;
  font-weight: 600;
}
.avail-open { background: var(--green-bg); color: var(--green); border-left: 4px solid var(--green); }
.avail-taken { background: var(--maroon-bg); color: var(--maroon); border-left: 4px solid var(--maroon); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: #b7c0c9;
  padding: 40px 0 30px;
  margin-top: 40px;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer.site-footer a { color: #d6dbe1; text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer .foot-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}
footer.site-footer small { color: var(--ink-faint); }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 32px; }
.text-faint { color: var(--ink-faint); }
.hidden { display: none !important; }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.loading-inline {
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- ICN Bellevue logo (header & footer) ---------- */
/* White version of the logo, placed directly on the dark navy header/footer. */
.brand { align-items: center; gap: 14px; }
.brand-logo, .foot-logo { display: inline-flex; line-height: 0; flex: none; }
.brand-logo img { height: 56px; width: auto; display: block; }

.foot-brand-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-logo img { height: 96px; width: auto; display: block; }
footer.site-footer .foot-about { color: #b7c0c9; margin: 6px 0 0; max-width: 46ch; }

@media (max-width: 600px) {
  .brand-logo img { height: 44px; }
  .foot-logo img { height: 76px; }
}
