/* El Kettlebell Fitness - demo site styles */

:root {
  --ink: #0E0E0E;
  --ink-2: #181716;
  --bone: #F3EEE6;
  --muted: #A39E96;
  --line: rgba(243, 238, 230, .14);
  --red: #D7262B;
  --red-hover: #B51D22;
  --field: #121110;
  --text-light-muted: #4A4641;
  --radius: 8px;
  --radius-lg: 10px;
  --container: 1200px;

  /* Aztec step-fret (greca) band tile, 16x18 */
  --greca-bone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Cpath d='M0 18V2h16v16M4 18V6h8v6H8' fill='none' stroke='%23F3EEE6' stroke-opacity='.15' stroke-width='2'/%3E%3C/svg%3E");
  --greca-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Cpath d='M0 18V2h16v16M4 18V6h8v6H8' fill='none' stroke='%23D7262B' stroke-width='2'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0;
}

p {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--bone);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.label {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 599px) {
  .wrap {
    padding: 0 16px;
  }
}

.section {
  padding: 96px 0;
}
@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }
}

section[id] {
  scroll-margin-top: 72px;
}

.section-head {
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(44px, 6vw, 72px);
}
.section-head .note {
  margin-top: 12px;
  color: var(--text-light-muted);
  font-size: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--bone);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--red {
  background: var(--red);
  color: var(--bone);
}
.btn--red:hover {
  background: var(--red-hover);
}

.btn--outline {
  border-color: var(--bone);
  color: var(--bone);
}
.btn--outline:hover {
  background: var(--bone);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

/* ---------- Greca bands ---------- */

.greca {
  height: 18px;
  background-repeat: repeat-x;
  background-size: 16px 18px;
  background-position: left top;
}
.greca--bone {
  background-image: var(--greca-bone);
}
.greca--red {
  background-image: var(--greca-red);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}
.brand img {
  height: 40px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: "Anton", Impact, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--bone);
}
.brand-sub {
  margin-top: 4px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bone);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover {
  color: var(--red);
}
@media (max-width: 899px) {
  .nav {
    display: none;
  }
}

.header-inner .btn {
  flex-shrink: 0;
}

@media (max-width: 419px) {
  .header-inner {
    gap: 12px;
  }
  .header-inner .btn {
    padding: 0 16px;
  }
  .brand-sub {
    display: none;
  }
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(560px, 100vh, 860px);
  height: clamp(560px, 100svh, 860px);
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(14, 14, 14, .94) 0%,
    rgba(14, 14, 14, .78) 42%,
    rgba(14, 14, 14, .15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 104px);
  max-width: 13ch;
  margin: 16px 0 0;
}

.hero .lede {
  max-width: 44ch;
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--bone);
}

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

.hero > .greca {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

/* ---------- Intro strip ---------- */

.intro {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  padding: 96px 0;
  text-align: center;
}

.intro-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 300px;
  width: auto;
  transform: translate(-50%, -50%);
  opacity: .06;
  pointer-events: none;
}

.intro-quote {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
}
.intro-quote p {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1.1;
  color: var(--bone);
}
.intro-quote cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Classes ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s;
}
.card:hover {
  border-color: rgba(243, 238, 230, .3);
}

.card-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 24px;
}
.card h3 {
  font-size: 28px;
}
.card p.card-text {
  flex: 1;
  font-size: 16px;
  color: var(--muted);
}
.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}
.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Schedule (light section) ---------- */

.schedule {
  background: var(--bone);
  color: var(--ink);
}
.schedule h2 {
  color: var(--ink);
}
.schedule .section-head .note {
  color: var(--text-light-muted);
}

.schedule-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.schedule-info img {
  width: 220px;
  height: auto;
  margin-bottom: 24px;
}
.schedule-info ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.schedule-info li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--red);
}

.booking-card {
  padding: 24px;
  background: #fffdf9;
  border: 1px solid rgba(14, 14, 14, .12);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(14, 14, 14, .08);
}
@media (max-width: 599px) {
  .booking-card {
    padding: 16px;
  }
}

.day-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
.day-pill {
  min-height: 48px;
  padding: 0 2px;
  border: 1px solid rgba(14, 14, 14, .2);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.day-pill:hover {
  border-color: var(--ink);
}
.day-pill[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--bone);
}

.slot-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(14, 14, 14, .12);
  border-radius: var(--radius);
}
.slot-time {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.slot-meta {
  display: block;
  font-size: 16px;
  color: var(--text-light-muted);
}
.slot .btn {
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
}

/* ---------- Coach ---------- */

.coach-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 860px) {
  .coach-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.coach-photo {
  position: relative;
  margin: 0;
}
.coach-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.coach-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
}

.coach-grid h2 {
  font-size: clamp(44px, 6vw, 72px);
  margin-top: 12px;
}
.coach-bio {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 18px;
  color: var(--bone);
}
.coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Community ---------- */

.community {
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.pull {
  margin: 0 0 40px;
  max-width: 34ch;
}
.pull p {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  color: var(--bone);
}
.pull cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: clamp(240px, 64vw, 360px);
  gap: 12px;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 420px; }
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* all photos are portrait; equal tall tiles avoid blurry wide crops */
.gallery .g-tall,
.gallery .g-wide {
  grid-row: auto;
  grid-column: auto;
}
.gallery .g-wide img {
  object-position: center 20%;
}

.community-foot {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.community-foot .btn svg {
  flex-shrink: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

.form-card {
  padding: 28px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (max-width: 599px) {
  .form-card {
    padding: 20px;
  }
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--field);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 17px;
  color-scheme: dark;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 38, 43, .45);
}

.contact-info h2 {
  font-size: clamp(44px, 6vw, 72px);
  margin-top: 12px;
}
.contact-phone {
  margin-top: 28px;
  font-family: "Anton", Impact, sans-serif;
  font-size: 40px;
  line-height: 1.1;
  color: var(--bone);
}
.contact-handle {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 4px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--bone);
  text-decoration: none;
}
.contact-handle:hover {
  color: var(--red);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.site-footer {
  background: var(--ink);
}
.footer-inner {
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-brand img {
  width: 55px;
  height: 64px;
}
.footer-name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bone);
}
.footer-small {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Phone sticky bar ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(14, 14, 14, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mb-name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1.2;
}
.mb-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: 88px;
  }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  background: var(--bone);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .25s, transform .25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 767px) {
  .toast {
    bottom: 96px;
  }
}

/* ---------- 404 ---------- */

.notfound {
  padding: 120px 0;
  min-height: 60vh;
}
.notfound h1 {
  font-size: clamp(48px, 8vw, 96px);
  margin: 12px 0 20px;
}
.notfound p {
  max-width: 48ch;
  margin-bottom: 32px;
  font-size: 18px;
  color: var(--bone);
}
