:root {
  --ink: #0b0b0b;
  --charcoal: #191919;
  --paper: #f7f5ef;
  --white: #fffdf7;
  --muted: #6b6b6b;
  --yellow: #f4d84e;
  --red: #d7262e;
  --green: #3fa55b;
  --line: rgba(11, 11, 11, 0.16);
  --dark-line: rgba(255, 253, 247, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(11, 11, 11, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.coach-emblem {
  display: grid;
  place-items: center;
  color: var(--yellow);
  background:
    radial-gradient(circle at center, var(--charcoal) 0 45%, transparent 46%),
    conic-gradient(var(--yellow), #f9ed98, var(--yellow), var(--yellow));
  border: 5px solid var(--charcoal);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--yellow);
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.horse {
  font-family: Oswald, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  line-height: 1.05;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: Oswald, "Noto Sans Thai", sans-serif;
  letter-spacing: 0;
}

.brand-copy strong {
  font-size: 1.38rem;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(11, 11, 11, 0.74);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.lang-toggle,
.nav-cta,
.button {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 900;
}

.lang-toggle {
  width: 48px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
}

.nav-cta,
.button.primary {
  color: var(--ink);
  background: var(--yellow);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 253, 247, 0.62);
  background: rgba(255, 253, 247, 0.08);
}

.button.line {
  color: var(--white);
  background: var(--green);
}

.button.call {
  color: var(--white);
  background: var(--charcoal);
}

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  align-items: end;
  padding: 150px clamp(20px, 6vw, 84px) 74px;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.62) 48%, rgba(7, 7, 7, 0.12)),
    linear-gradient(0deg, rgba(7, 7, 7, 0.72), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-family: Oswald, "Noto Sans Thai", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 940px;
  font-size: clamp(3.3rem, 8vw, 8.2rem);
  text-transform: uppercase;
}

h1 small {
  display: block;
  margin-top: 10px;
  color: var(--yellow);
  font-size: clamp(1.55rem, 3vw, 3.3rem);
  line-height: 1;
}

h2 {
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

h3 {
  font-size: 1.5rem;
}

.hero p:not(.eyebrow),
.intro-panel p,
.portfolio-copy p,
.coach-card p,
.contact p {
  max-width: 690px;
  line-height: 1.72;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 253, 247, 0.84);
  font-size: 1.08rem;
}

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

.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 42px;
  z-index: 2;
  width: min(330px, calc(100% - 36px));
  padding: 20px;
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card span,
.hero-card strong {
  display: block;
}

.hero-card span {
  color: var(--red);
  font-weight: 900;
}

.hero-card strong {
  margin: 5px 0 8px;
  font-family: Oswald, "Noto Sans Thai", sans-serif;
  font-size: 1.65rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ink);
}

.proof-strip article {
  min-height: 126px;
  padding: 26px clamp(18px, 3vw, 42px);
  color: var(--white);
  border-right: 1px solid var(--dark-line);
}

.proof-strip span {
  display: block;
  color: var(--yellow);
  font-family: Oswald, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
}

.proof-strip strong {
  display: block;
  margin-top: 12px;
  font-size: 0.94rem;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 36px;
  align-items: end;
}

.intro-panel {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 8px solid var(--red);
  border-radius: var(--radius);
}

.intro-panel p {
  margin-top: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.gallery-filter {
  padding: 8px 11px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.training-grid article {
  min-height: 270px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 8px solid var(--yellow);
  border-radius: var(--radius);
}

.training-grid article:nth-child(even) {
  border-top-color: var(--red);
}

.training-grid span {
  color: var(--red);
  font-family: Oswald, sans-serif;
  font-size: 2.4rem;
}

.training-grid h3 {
  margin: 28px 0 12px;
}

.training-grid p,
.gallery-card p,
.schedule-board p {
  color: var(--muted);
  line-height: 1.62;
}

.portfolio {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 84px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(215, 38, 46, 0.2), transparent 32%),
    var(--charcoal);
}

.portfolio-copy {
  position: sticky;
  top: 108px;
  align-self: start;
}

.portfolio-copy h2 {
  color: var(--yellow);
}

.portfolio-copy p {
  color: rgba(255, 253, 247, 0.76);
}

.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.gallery-filter {
  min-height: 40px;
  background: transparent;
  color: var(--white);
  border-color: var(--dark-line);
}

.gallery-filter.active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 216, 78, 0.88), rgba(244, 216, 78, 0.1) 42%),
    linear-gradient(45deg, rgba(215, 38, 46, 0.75), transparent 44%),
    #2a2a2a;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}

.gallery-card:nth-child(2n) {
  background:
    linear-gradient(135deg, rgba(63, 165, 91, 0.72), transparent 42%),
    linear-gradient(45deg, rgba(244, 216, 78, 0.68), transparent 52%),
    #242424;
}

.gallery-card small {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-card h3 {
  margin: 16px 0 10px;
}

.gallery-card p {
  color: rgba(255, 253, 247, 0.76);
}

.schedule-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.schedule-board article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.schedule-board span {
  color: var(--red);
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
}

.schedule-board strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.coaches {
  background: var(--white);
}

.coach-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 1040px;
}

.coach-emblem {
  width: 160px;
  height: 160px;
  font-family: Oswald, sans-serif;
  font-size: 5rem;
}

.coach-card p:not(.eyebrow) {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 84px);
  color: var(--white);
  background: var(--ink);
}

.contact p {
  color: rgba(255, 253, 247, 0.76);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

textarea {
  min-height: 112px;
  padding-top: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 38, 46, 0.16);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 84px);
  color: var(--white);
  background: var(--charcoal);
  border-top: 1px solid var(--dark-line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 83px 14px auto;
    display: grid;
    gap: 8px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .proof-strip,
  .training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .portfolio,
  .contact,
  .coach-card {
    grid-template-columns: 1fr;
  }

  .portfolio-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy small {
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .hero {
    min-height: auto;
    padding-top: 128px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .proof-strip,
  .training-grid,
  .gallery-grid,
  .schedule-board {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .hero-actions {
    display: grid;
  }

  .site-footer {
    display: grid;
  }
}
