/* =========================================================
   Allied Coaching Platform — CSS Stylesheet
   Base Styling
   Sections:
     1. Design tokens
     2. Reset & base
     3. Header
     4. Site navigation
     5. Page layout & section headings
     6. Cards
     7. Month calendar
     8. Day detail: toolbar, table, slots, status badges
     9. Buttons & form controls
    10. Shared components (materials list, product list, news, footer)
    11. Tooltips & utilities
    12. Responsive
   ========================================================================== */
/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ars-navy: #00445b;
  --ars-navy-dark: #00303f;
  --ars-navy-darker: #012531;
  --ars-red: #ed1c24;
  --ars-red-dark: #c8151c;

  --ars-ink: #2f2f33;
  --ars-ink-strong: #212529;
  --ars-muted: #6b757b;
  --ars-muted-light: #9aa4a9;
  --ars-border: #ebebeb;
  --ars-border-strong: #d7dde0;
  --ars-bg: #f7f8fa;
  --ars-white: #ffffff;

  --ars-success-bg: #e9f4ef;
  --ars-success-text: #14614a;
  --ars-success-dot: #1f7a5c;

  --ars-danger-bg: #fdecec;
  --ars-danger-text: #a8161c;
  --ars-danger-dot: var(--ars-red);

  --ars-warning-bg: #fdf4e3;
  --ars-warning-text: #8a6114;
  --ars-warning-dot: #c98a12;

  --ars-neutral-bg: #e5e4e2;
  --ars-neutral-text: var(--ars-muted);
  --ars-neutral-dot: #c3cace;

  --ars-today-bg: #e6e8e6;
  --ars-today-border: var(--ars-red);

  --ars-font: Helvetica, Arial, sans-serif;
  --ars-radius: 4px;
  --ars-radius-sm: 3px;
  --ars-shadow: 0 1px 3px rgba(0, 48, 64, .10), 0 1px 2px rgba(0, 48, 64, .06);
  --ars-shadow-lg: 0 12px 24px rgba(0, 24, 32, .22);
  --ars-max-width: 1560px;
  --ars-transition: 150ms cubic-bezier(0, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

a { color: var(--ars-navy); }
a:hover { color: var(--ars-red); }

button { font-family: inherit; }

input[type="file"]:focus,
input[type="date"]:focus,
select:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 68, 91, .25);
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.site-header {
	background: #00445b;
	border-bottom: 3px solid #ed1c24;
}
.site-header__inner {
	max-width: 1560px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.site-header__logo {
	background: #00445b;
	border-radius: 3px;
	padding: 9px 12px;
	display: flex;
	flex: none;
}
.site-header__logo img { width: 132px; display: block; }

.site-header__brand { flex: 1 1 240px; min-width: 0; }
.site-header__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255,255,255,.6);
}
.site-header__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	letter-spacing: -0.01em;
}

.site-header__right { display: flex; align-items: center; gap: 20px; flex: none; }

.site-header__clock { text-align: right; }
.site-header__clock-time {
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.site-header__clock-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255,255,255,.6);
}

.site-header__divider { width: 1px; height: 38px; background: rgba(255,255,255,.2); }

.site-header__user { display: flex; align-items: center; gap: 11px; }
.site-header__avatar {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(255,255,255,.14);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.site-header__user-name { font-size: 16px; font-weight: 600; color: #fff; }

/* --------------------------------------------------------------------------
   4. Site navigation — sits directly under the header, in normal flow
   -------------------------------------------------------------------------- */
.site-nav {
  background: var(--ars-navy-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  position: relative;
  z-index: 20;
}
.site-nav__inner {
  max-width: var(--ars-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.site-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__item { position: relative; }
.site-nav__item--logout { margin-left: auto; }

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 16px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color var(--ars-transition), background var(--ars-transition);
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__item:hover > .site-nav__link,
.site-nav__item.is-open > .site-nav__link {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.site-nav__item--logout .site-nav__link:hover { color: #ff9a9a; }

.site-nav__caret {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--ars-transition);
  opacity: .7;
}
.site-nav__item.has-submenu:hover .site-nav__caret,
.site-nav__item.has-submenu.is-open .site-nav__caret {
  transform: rotate(225deg);
  margin-top: 3px;
}

.site-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--ars-navy-darker);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--ars-shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ars-transition), transform var(--ars-transition), visibility var(--ars-transition);
}
.site-nav__item.has-submenu:hover .site-nav__submenu,
.site-nav__item.has-submenu.is-open .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__submenu a {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
.site-nav__submenu a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--ars-transition), opacity var(--ars-transition);
}
.site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Page layout & section headings
   -------------------------------------------------------------------------- */
.page-shell {
  max-width: var(--ars-max-width);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.section-heading { margin: 0 0 20px; }
.section-heading__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ars-navy);
  letter-spacing: -0.01em;
}
.section-heading__rule {
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--ars-red);
  margin: 10px 0 0;
}
.section-heading__desc { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ars-muted); }

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--ars-white);
  border: 1px solid var(--ars-border);
  border-radius: var(--ars-radius);
  box-shadow: var(--ars-shadow);
  padding: 20px;
  margin: 0 0 24px;
}
.card--flush { padding: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Month calendar
   -------------------------------------------------------------------------- */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.cal-nav__link { font-size: 14px; font-weight: 600; color: var(--ars-muted); text-decoration: none; }
.cal-nav__link:hover { color: var(--ars-navy); }
.cal-nav__title { font-size: 20px; font-weight: 700; color: var(--ars-navy); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 0 0 8px;
}
.cal-weekdays__cell {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ars-muted);
  padding: 6px 0;
}

.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { display: block; text-decoration: none; }
.cal-day--empty { min-height: 72px; }

.cal-day-btn {
  font-family: var(--ars-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  background: #fff;
  color: var(--ars-ink-strong);
  border: 1px solid var(--ars-border);
  border-radius: var(--ars-radius);
  width: 100%;
  min-height: 72px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background var(--ars-transition), box-shadow var(--ars-transition), border-color var(--ars-transition);
}
.cal-day-btn:hover { border-color: var(--ars-navy); }
.cal-day-btn__note {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ars-muted);
  text-align: center;
}

.cal-day-btn--viewing {
  font-weight: 700;
  background: var(--ars-navy);
  color: #fff;
  border-color: var(--ars-navy);
}
.cal-day-btn--viewing .cal-day-btn__note { color: rgba(255, 255, 255, .75); }

.cal-day-btn--today {
  font-weight: 700;
  background: var(--ars-today-bg);
  color: var(--ars-red);
  border: 1px solid var(--ars-today-border);
  box-shadow: inset 0 0 0 1px var(--ars-today-border);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ars-border);
  font-size: 12px;
  color: var(--ars-muted);
}
.cal-legend__item { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend__swatch { width: 12px; height: 12px; border-radius: 3px; }
.cal-legend__swatch--viewing { background: var(--ars-navy); }
.cal-legend__swatch--today { background: var(--ars-today-bg); border: 1px solid var(--ars-today-border); }

/* --------------------------------------------------------------------------
   8. Day detail: toolbar, table, slots, status badges
   -------------------------------------------------------------------------- */
.day-card__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ars-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.day-card__title { font-size: 19px; font-weight: 700; color: var(--ars-navy); }

.day-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ars-border);
  background: #fafbfc;
}
.day-toolbar__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.day-toolbar__field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ars-muted);
}
.day-toolbar__actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }

.field-input {
  font-family: var(--ars-font);
  font-size: 14px;
  color: var(--ars-ink);
  background: #fff;
  border: 1px solid var(--ars-border-strong);
  border-radius: var(--ars-radius-sm);
  padding: 9px 12px;
  min-width: 220px;
}
select.field-input { cursor: pointer; }

.day-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.day-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.day-table__col-head {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ars-muted);
  background: #f2f7f8;
  text-align: left;
}

.slot-row--dim { background: var(--ars-bg); }
.slot-time {
  width: 104px;
  padding: 14px 16px;
  vertical-align: top;
  border-top: 1px solid var(--ars-border);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ars-navy);
  white-space: nowrap;
}
.slot-cell { padding: 14px 16px; vertical-align: middle; border-top: 1px solid var(--ars-border); }
.slot-location { font-size: 13px; font-weight: 600; color: var(--ars-muted); text-align: center; }

.slot-booking-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.slot-booking-info { min-width: 0; }
.slot-booking-name { margin: 0; font-size: 16px; font-weight: 700; color: var(--ars-ink-strong); }
.slot-booking-contact { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ars-muted); word-break: break-word; }

/* Status badges (also used as the interactive slot-status buttons) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  width: 100%;
  max-width: 180px;
}
.badge__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.badge--Booked { background: var(--ars-danger-bg); color: var(--ars-danger-text); }
.badge--Available { background: var(--ars-success-bg); color: var(--ars-success-text); }
.badge--Reserved { background: var(--ars-warning-bg); color: var(--ars-warning-text); }
.badge--Unavailable { background: var(--ars-neutral-bg); color: var(--ars-neutral-text); }

/* Modifier for badges rendered as clickable <button> elements (the slot-status toggle) */
.badge--btn {
  border: 0;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter var(--ars-transition), transform var(--ars-transition);
}
.badge--btn:hover { filter: brightness(0.95); }
.badge--btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   9. Buttons & form controls
   -------------------------------------------------------------------------- */
.ars-btn {
  font-family: var(--ars-font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--ars-radius-sm);
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: filter var(--ars-transition), transform var(--ars-transition);
}
.ars-btn:hover { filter: brightness(0.94); }
.ars-btn:active { transform: translateY(1px); }

.ars-btn--primary { background: #34a56f; color: #fff; border-color: #34a56f; }
.ars-btn--navy { background: var(--ars-navy); color: #fff; border-color: var(--ars-navy); }
.ars-btn--danger { background: var(--ars-red); color: #fff; border-color: var(--ars-red); }
.ars-btn--outline { background: #fff; color: var(--ars-navy); border-color: var(--ars-border-strong); }
.ars-btn--block { width: 100%; padding: 12px; }

.file-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--ars-bg);
  border: 1px dashed var(--ars-border-strong);
  border-radius: var(--ars-radius-sm);
  font-family: var(--ars-font);
  font-size: 14px;
  color: var(--ars-ink);
  padding: 14px;
  cursor: pointer;
}
.text-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--ars-bg);
  border: 1px dashed var(--ars-border-strong);
  border-radius: var(--ars-radius-sm);
  font-family: var(--ars-font);
  font-size: 1.2em;
  color: var(--ars-ink);
  padding: 14px;
  cursor: pointer;
}
.btn-stack { display: grid; gap: 10px; }
.btn-stack a { text-decoration: none; }

/* --------------------------------------------------------------------------
   10. Shared components (used across other pages of the portal)
   -------------------------------------------------------------------------- */
.subsection-heading { margin: 0 0 14px; }
.subsection-heading__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ars-navy); }
.subsection-heading__rule {
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--ars-red);
  margin: 8px 0 0;
}

.card-divider { border: 0; border-top: 1px solid var(--ars-border); margin: 20px 0; }
.field-label { font-size: 16px; font-weight: 600; color: var(--ars-ink-strong); margin: 0 0 4px; }
.field-hint { font-size: 13px; color: var(--ars-muted); margin: 0 0 12px; }

.materials-row { display: flex; align-items: center; gap: 16px; }
.materials-row__text { flex: 1; min-width: 0; }
.materials-row__title { font-size: 16px; font-weight: 600; color: var(--ars-ink-strong); }
.materials-row__meta { font-size: 13px; color: var(--ars-muted); }
.materials-row__link { flex: none; line-height: 0; }
.materials-row__link img { width: 56px; }

.ars-prod {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background var(--ars-transition);
}
.ars-prod:hover { background: #f2f7f8; }
.ars-prod + .ars-prod { border-top: 1px solid var(--ars-border); }
.ars-prod__icon { width: 28px; height: 28px; object-fit: contain; flex: none; }
.ars-prod__text { min-width: 0; }
.ars-prod__title { display: block; font-size: 15px; font-weight: 600; color: var(--ars-navy); }
.ars-prod__desc { display: block; font-size: 13px; color: var(--ars-muted); line-height: 1.5; }
.ars-prod__chevron { margin-left: auto; color: var(--ars-red); font-size: 16px; flex: none; }

.news-grid { display: grid; gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--ars-border); border-radius: var(--ars-radius); box-shadow: var(--ars-shadow); overflow: hidden; }
.news-card__img { display: block; width: 100%; height: 170px; object-fit: cover; }
.news-card__body { padding: 18px 20px 20px; }
.news-card__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4863a0; }
.news-card__title { margin: 8px 0 10px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ars-navy); text-wrap: pretty; }
.news-card__desc { font-size: 14px; line-height: 1.6; color: var(--ars-ink); text-wrap: pretty; }
.news-card__desc p { margin: 0 0 10px; }
.news-card__desc p:last-child { margin: 0; }

.ars-link {
  display: inline-block;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ars-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--ars-red);
  padding-bottom: 2px;
}
.ars-link:hover { color: var(--ars-red); }

.site-footer { background: var(--ars-navy); border-top: 3px solid var(--ars-red); }
.site-footer__inner {
  max-width: var(--ars-max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer__logo { height: 38px; display: block; }
.site-footer__meta { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------------------
   11. Tooltips & utilities
   -------------------------------------------------------------------------- */
.tooltip { position: relative; display: inline-block; border-bottom: 1px dotted var(--ars-border-strong); }
.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #003040;
  color: #fff;
  text-align: center;
  font-size: 12px;
  border-radius: var(--ars-radius-sm);
  padding: 6px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -70px;
  opacity: 0;
  transition: opacity 180ms;
}
.tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }

.ars-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ars-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-nav__toggle { display: flex; }
  .site-nav__inner { flex-wrap: wrap; padding: 6px 20px; }
  .site-nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 6px 0 12px;
  }
  .site-nav.is-open .site-nav__list { display: flex; }
  .site-nav__item--logout { margin-left: 0; }
  .site-nav__link { padding: 12px 6px; }
  .site-nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .04);
    display: none;
    border-radius: 0;
  }
  .site-nav__item.has-submenu.is-open .site-nav__submenu { display: block; }
}

@media (max-width: 720px) {
  .page-shell { padding: 20px 16px 40px; }
  .cal-day-btn { font-size: 15px; min-height: 56px; }
  .day-toolbar__actions { margin-left: 0; width: 100%; }
  .day-toolbar__actions .ars-btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .site-header__inner { justify-content: center; text-align: center; }
  .site-header__right { width: 100%; justify-content: center; }
  .cal-weekdays__cell { font-size: 9px; }
  .cal-day-btn { font-size: 12px; padding: 4px; }
  .cal-day-btn__note { display: none; }
  .day-card__head { flex-direction: column; align-items: flex-start; }
  .badge { max-width: none; }
}
