:root {
  /* Soft, warm palette: charcoal instead of black, off-white instead of white, apricot instead of bright orange. */
  --bg: #2b2623;
  --bg-deep: #241f1c;
  --card: #36302b;
  --card-strong: #3d3631;
  --text: #ede4d9;
  --muted: #c9bcae;
  --primary: #e0a36b;
  --primary-strong: #cf8b53;
  --accent: #ecc596;
  --on-primary: #2b2623;
  --border: rgba(224, 163, 107, 0.26);
  --hairline: rgba(237, 228, 217, 0.08);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-tag {
  margin: 0 0 18px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 3.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(43, 38, 35, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand strong,
.brand span {
  display: block;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--on-primary);
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--on-primary);
  box-shadow: 0 8px 20px rgba(207, 139, 83, 0.2);
}

.button-secondary {
  background: rgba(237, 228, 217, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero {
  padding: 110px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.lead {
  font-size: 1.08rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stats li {
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(237, 228, 217, 0.03);
  border: 1px solid var(--hairline);
}

.stats strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.coach-photo-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(224, 163, 107, 0.16), rgba(236, 197, 150, 0.08), var(--bg-deep));
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.coach-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(43, 38, 35, 0.85);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.coach-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 12px 30px rgba(224, 163, 107, 0.16);
}

/* With a photo, the portrait fills the whole frame. */
.coach-photo-card.has-photo {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.coach-photo-card.has-photo .coach-portrait {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: hidden;
}

.coach-photo-card.has-photo .coach-badge {
  z-index: 1;
}

.coach-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.coach-details {
  padding-top: 22px;
}

.name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.role {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.card-grid,
.testimonial-grid,
.blog-grid {
  display: grid;
  gap: 28px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.program-card,
.testimonial-card,
.blog-card,
.contact-form {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.program-card {
  padding: 28px 24px;
}

.program-card.featured {
  background: linear-gradient(180deg, rgba(224, 163, 107, 0.1), var(--card));
  border-color: var(--border);
}

.program-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(224, 163, 107, 0.14);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 18px;
}

.program-card ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.program-card li {
  margin-bottom: 8px;
  color: var(--muted);
}

.program-details {
  margin: 22px 0 0;
}

.program-details dt {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-details dd {
  margin: 2px 0 14px;
  color: var(--muted);
}

.section-heading {
  max-width: 700px;
}

.carousel {
  max-width: 760px;
  margin: 30px auto 0;
}

/* All slides share one grid cell, so the track is as tall as the tallest slide and never jumps. */
.carousel-track {
  display: grid;
}

.carousel-track > * {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.carousel-track > .is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.carousel-track > .is-leaving {
  transform: translateX(-24px);
}

.testimonial-card {
  padding: 36px 34px;
  text-align: center;
}

.gallery-carousel {
  max-width: 900px;
}

/* Photos are letterboxed rather than cropped, so portrait and landscape shots both show in full. */
.gallery-slide {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.gallery-slide img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-slide .gallery-backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(28px) brightness(0.55);
  transform: scale(1.15);
}

.testimonial-card p {
  color: var(--text);
  font-size: 1.12rem;
  margin-bottom: 22px;
}

.testimonial-card footer strong {
  color: var(--primary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover,
.carousel-dots button[aria-current="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: transparent;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track > * {
    transition: none;
  }
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-card footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.blog-card {
  padding: 24px 22px;
}

.meta {
  display: inline-block;
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.blog-card h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--text);
}

.blog-card a {
  color: var(--primary);
  font-weight: 700;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  padding: 13px 14px;
  background: rgba(237, 228, 217, 0.03);
  color: var(--text);
  font: inherit;
}

/* Native dropdown lists ignore translucent backgrounds, so give the options solid colours. */
.contact-form select option {
  background: var(--card-strong);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(237, 228, 217, 0.4);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-phone {
  margin: 18px 0 26px;
  font-size: 1.05rem;
  color: var(--text);
}

.contact-phone a,
.social-link {
  color: var(--primary);
  font-weight: 700;
}

.social-link-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 22px;
}

.form-status {
  min-height: 22px;
  color: var(--primary);
  font-weight: 600;
}

.form-status.success {
  color: #1d8f5f;
}

.form-status.error {
  color: #b42318;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 42px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  min-height: 100vh;
}

.admin-card {
  width: 100%;
  min-height: calc(100vh - 48px);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.admin-login,
.admin-editor {
  display: grid;
  gap: 18px;
  width: 100%;
}

.admin-login {
  max-width: 420px;
}

.admin-login label,
.admin-editor label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  width: 100%;
}

.admin-login input,
.admin-editor input,
.admin-add-user input,
.admin-editor textarea,
.admin-editor [contenteditable="true"] {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(237, 228, 217, 0.03);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  box-sizing: border-box;
}

.admin-editor textarea {
  min-height: 220px;
  resize: vertical;
}

.admin-editor [contenteditable="true"] {
  min-height: 220px;
  line-height: 1.7;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.admin-status {
  min-height: 24px;
  color: var(--primary);
  font-weight: 600;
}

.admin-error {
  color: #e89a8f;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.6rem;
}

.admin-header a {
  color: var(--primary);
  font-weight: 600;
}

.admin-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(237, 228, 217, 0.03);
}

.admin-section h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.admin-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* Same 4:5 frame as the website, so the preview shows how the photo will be cropped. */
.admin-photo-preview {
  width: 120px;
  height: 150px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.admin-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-gallery:empty {
  display: none;
}

.admin-gallery li {
  display: grid;
  gap: 8px;
}

.admin-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-deep);
}

.button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
}

.admin-editor textarea.admin-short {
  min-height: 90px;
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-users {
  margin-top: 28px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-user-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.admin-owner-tag {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-add-user {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-add-user input {
  flex: 1 1 240px;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .card-grid,
  .testimonial-grid,
  .blog-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .site-header {
    position: static;
  }

  .hero {
    padding-top: 80px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 86px 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
