/* Sit.Silom Muay Thai — colors taken from the gym crest */
:root {
  --navy-950: #0f1729;
  --navy-900: #141e33;
  --navy-800: #1b2740;
  --navy-700: #24324f;
  --gold: #c99a45;
  --gold-soft: #e3c07e;
  --gold-deep: #8a6320;   /* gold dark enough for text on bone */
  --bone: #efe6d3;
  --bone-dim: #b9bccb;    /* secondary text on navy */
  --rule: rgba(201, 154, 69, 0.35);

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 4px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--gold-soft); }
h3 { font-size: 1.35rem; }

p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy-950);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8em 1.4em;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-950); }

.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
}
.btn-ghost:hover { background: rgba(201, 154, 69, 0.12); color: var(--bone); border-color: var(--gold); }

.btn-small { padding: 0.5em 1em; font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 41, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.brand img { border-radius: 50%; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  color: var(--bone);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold-soft); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px);
  /* faint waves, borrowed from the center of the crest */
  background:
    radial-gradient(ellipse at 75% 45%, rgba(201, 154, 69, 0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cpath d='M0 14 C 20 2, 40 2, 60 14 S 100 26, 120 14' fill='none' stroke='%23c99a45' stroke-opacity='0.07' stroke-width='1.5'/%3E%3C/svg%3E"),
    var(--navy-900);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 700;
  color: var(--bone);
  letter-spacing: -0.01em;
  max-width: 13ch;
}

.lede {
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--bone-dim);
  max-width: 34em;
}

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

.news {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--bone);
  max-width: 30em;
}

.medallion {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  justify-self: center;
}

.medallion-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ring-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ring-line { fill: none; stroke: var(--gold); stroke-width: 2; }

.ring-text {
  fill: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
}

.medallion-photo {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

@keyframes ring-in {
  from { transform: rotate(-70deg); opacity: 0; }
  to   { transform: rotate(0); opacity: 1; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .medallion { max-width: 380px; order: -1; }
}

/* Shared section heading */
section { padding-block: clamp(64px, 9vw, 112px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: end;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.section-head p { color: var(--bone-dim); max-width: 34em; }

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

/* Schedule */
.schedule { background: var(--navy-800); }

.schedule-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.day-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-tab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  background: transparent;
  color: var(--bone);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: 600 1.15rem/1.2 var(--font-display);
  text-align: left;
  cursor: pointer;
}
.day-tab:hover { border-color: var(--rule); }
.day-tab[aria-selected="true"] {
  background: var(--gold);
  color: var(--navy-950);
}
.day-tab .today {
  font: 500 0.85rem var(--font-body);
}

.day-panel { min-height: 280px; }
.day-panel:focus-visible { outline-offset: 8px; }

.slots { list-style: none; margin: 0; padding: 0; }

.slot {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.slot:first-child { padding-top: 6px; }

.slot-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.slot-name { font-weight: 600; font-size: 1.1rem; }
.slot-note { display: block; font-weight: 400; color: var(--bone-dim); font-size: 0.95rem; }

.slot-tag {
  font-size: 0.85rem;
  color: var(--bone-dim);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.slot-tag.bjj { color: var(--navy-950); background: var(--bone-dim); border-color: var(--bone-dim); }

.closed {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bone-dim);
  padding-top: 6px;
}

.noscript { color: var(--bone-dim); }

@media (max-width: 760px) {
  .schedule-body { grid-template-columns: 1fr; gap: 20px; }
  .day-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .day-tab { width: auto; flex: 0 0 auto; gap: 8px; padding: 8px 14px; font-size: 1.05rem; }
  .slot { grid-template-columns: 1fr auto; }
  .slot-time { grid-column: 1 / -1; font-size: 1.05rem; }
}

/* Classes */
.class-list { margin: 0; }

.class-row {
  display: grid;
  grid-template-columns: 15rem 1fr 11rem;
  gap: 8px 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.class-row:first-child { padding-top: 0; }

.class-row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--bone);
}
.class-row dd { margin: 0; }
.class-desc { color: var(--bone-dim); max-width: 38em; }
.class-when { color: var(--gold-soft); font-weight: 500; text-align: right; }
.class-when span { display: block; }

@media (max-width: 860px) {
  .class-row { grid-template-columns: 1fr; gap: 6px; }
  .class-when { text-align: left; }
  .class-when span { display: inline; }
  .class-when span + span::before { content: "at "; }
}

.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  margin-top: 64px;
}

.feature { margin: 0; }

.feature-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--navy-800);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
/* this photo comes from a poster; crop past the printed text */
.feature-img-kids img { object-position: 50% 32%; }

.feature figcaption { padding-top: 18px; }
.feature h3 { color: var(--gold-soft); }
.feature p { margin-top: 6px; color: var(--bone-dim); }

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

/* The gym */
.gym { background: var(--navy-950); }

.gym-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.mural { margin: 0; }
.mural img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
}
.mural figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--bone-dim);
}

.gym-copy h2 { margin-bottom: 24px; max-width: 16ch; }
.gym-copy > p { color: var(--bone-dim); max-width: 36em; }
.gym-copy > p + p { margin-top: 16px; }

.fight-note {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.fight-note img { border-radius: var(--radius-sm); }
.fight-note h3 { color: var(--gold-soft); }
.fight-note p { margin-top: 8px; color: var(--bone-dim); }

@media (max-width: 760px) {
  .gym-inner { grid-template-columns: 1fr; }
  .mural img { aspect-ratio: 1; }
  .fight-note { grid-template-columns: 96px 1fr; gap: 16px; }
}

/* Visit (light section) */
.visit {
  background: var(--bone);
  color: var(--navy-900);
}
.visit h2 { color: var(--navy-900); }
.visit a:not(.btn) { color: var(--gold-deep); font-weight: 600; }
.visit a:not(.btn):hover { color: var(--navy-900); }
.visit .btn:focus-visible, .visit a:focus-visible { outline-color: var(--navy-900); }

.visit-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.steps {
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 56px;
  max-width: 34em;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold-deep);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-weight: 700;
}
.steps strong { display: block; }

.visit .btn { background: var(--navy-900); border-color: var(--navy-900); color: var(--bone); }
.visit .btn:hover { background: var(--navy-700); border-color: var(--navy-700); }

.visit-card {
  font-style: normal;
  background: var(--navy-900);
  color: var(--bone);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 2px solid var(--gold);
}
.visit-card h3 { color: var(--gold-soft); margin-bottom: 14px; }
.visit-card p + p { margin-top: 10px; }
.visit .visit-card a { color: var(--gold-soft); }
.visit .visit-card a:hover { color: var(--bone); }
.visit .visit-card a:focus-visible { outline-color: var(--gold-soft); }
.visit-card .hours { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--bone-dim); }

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

/* Footer */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--rule);
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--bone-dim);
  font-size: 0.95rem;
}
.footer-inner img { border-radius: 50%; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .medallion-ring { animation: none; }
  .btn { transition: none; }
}
