/* ==========================================================================
   Kolar Strength Club — Design Tokens
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: clamp(2.25rem, 4vw + 1rem, 3.25rem);
  --text-hero: clamp(2.75rem, 7vw + 1rem, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 6.5rem;
  --space-20: 8.5rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  /* Fonts */
  --font-display: 'Clash Grotesk', 'Cabinet Grotesk', 'General Sans', sans-serif;
  --font-body: 'General Sans', 'Satoshi', sans-serif;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;

  /* ---- Dark (default) ---- */
  --color-bg: #14110f;
  --color-bg-rgb: 20, 17, 15;
  --color-surface: #1c1712;
  --color-surface-2: #221c16;
  --color-surface-raised: #26201a;
  --color-border: oklch(1 0 0 / 0.1);
  --color-border-strong: oklch(1 0 0 / 0.18);
  --color-divider: oklch(1 0 0 / 0.07);
  --color-text: #f4ede3;
  --color-text-muted: #bcaf9f;
  --color-text-faint: #857a6d;
  --color-primary: #dc7f35;
  --color-primary-hover: #ea9550;
  --color-primary-active: #b8621f;
  --color-primary-contrast: #180f06;
  --color-overlay-scrim: oklch(0.1 0.01 40 / 0.55);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 24px 64px oklch(0 0 0 / 0.45);
}

[data-theme='light'] {
  color-scheme: light;
  --color-bg: #f6f0e6;
  --color-bg-rgb: 246, 240, 230;
  --color-surface: #fbf7f0;
  --color-surface-2: #f0e8da;
  --color-surface-raised: #ffffff;
  --color-border: oklch(0.2 0.02 40 / 0.12);
  --color-border-strong: oklch(0.2 0.02 40 / 0.22);
  --color-divider: oklch(0.2 0.02 40 / 0.09);
  --color-text: #241c14;
  --color-text-muted: #5c5040;
  --color-text-faint: #857a68;
  --color-primary: #b85e1e;
  --color-primary-hover: #a04f16;
  --color-primary-active: #7e3f11;
  --color-primary-contrast: #fff8ee;
  --color-overlay-scrim: oklch(0.2 0.02 40 / 0.45);
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 40 / 0.1);
  --shadow-md: 0 8px 24px oklch(0.2 0.02 40 / 0.14);
  --shadow-lg: 0 24px 64px oklch(0.2 0.02 40 / 0.18);
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, oklch(from var(--color-primary) l c h / 0.08), transparent 70%),
    var(--color-bg);
}

.container {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: 56rem;
}

section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-3);
}

h3 {
  font-size: var(--text-xl);
}

p {
  color: var(--color-text-muted);
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  background: oklch(from var(--color-bg) l c h / 0.94);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--color-divider);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav ul {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
}

.main-nav a:not(.btn) {
  color: var(--color-text-muted);
  position: relative;
  padding-block: var(--space-1);
}

.main-nav a:not(.btn):hover {
  color: var(--color-text);
}

.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.theme-toggle:hover,
.nav-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.icon-moon {
  display: none;
}
[data-theme='light'] .icon-sun {
  display: none;
}
[data-theme='light'] .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-faint);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: var(--text-xs);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--color-divider);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  filter: saturate(1.05) contrast(1.03);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.08 0.01 40 / 0.35) 0%, oklch(0.08 0.01 40 / 0.55) 45%, var(--color-bg) 96%),
    linear-gradient(90deg, oklch(0.08 0.01 40 / 0.75) 0%, oklch(0.08 0.01 40 / 0.2) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16) var(--space-10);
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-hover);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: var(--text-hero);
  color: #f7f1e7;
  max-width: 20ch;
}

.hero-sub {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  max-width: 46ch;
  color: oklch(0.92 0.01 60 / 0.88);
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.92 0.01 60 / 0.7);
  font-weight: 600;
}

.hero-credentials li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-credentials li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary-hover);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-scroll {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.92 0.01 60 / 0.6);
  writing-mode: vertical-rl;
}

.hero-scroll svg {
  width: 14px;
  height: 14px;
  animation: bob 2.2s var(--ease-in-out) infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-8);
}

.about-portrait {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.about-portrait img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.about-portrait .name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 600;
}

.about-portrait .role {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: 2px;
}

.about-body p {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Training style
   ========================================================================== */

.style-section {
  padding-block: var(--space-16);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.style-header {
  max-width: 44rem;
  margin-bottom: var(--space-10);
}

.style-header p {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
}

.style-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.style-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--color-border);
}

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

.principle-list {
  display: flex;
  flex-direction: column;
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.principle:first-child {
  padding-top: 0;
}

.principle:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.principle-index {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1;
}

.principle h3 {
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.principle p {
  font-size: var(--text-sm);
}

.quote-block {
  margin-top: var(--space-10);
  padding: var(--space-6);
  border-left: none;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  position: relative;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  font-style: normal;
  max-width: none;
}

.quote-block cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 600;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.services-header p {
  max-width: 34ch;
  text-align: right;
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
}

.service-row {
  display: grid;
  grid-template-columns: 5rem 1.3fr 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.service-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-faint);
  font-weight: 600;
}

.service-row h3 {
  color: var(--color-text);
}

.service-row .service-desc {
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.service-detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-detail strong {
  color: var(--color-text);
  font-weight: 600;
  display: block;
}

.service-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   Divider / photo band
   ========================================================================== */

.photo-band {
  height: 46vh;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, transparent 12%, transparent 88%, var(--color-bg) 100%);
}

.photo-band-caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: 1;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.95 0.01 60 / 0.75);
  font-weight: 600;
}

/* ==========================================================================
   Instagram / reels
   ========================================================================== */

.reels {
  padding-block: var(--space-16);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.reels-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.reel-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  aspect-ratio: 9/14;
}

.reel-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reel-caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}

.testimonials-header {
  max-width: 36rem;
  margin-bottom: var(--space-10);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.testimonial-card {
  margin: 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.testimonial-card p {
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: none;
}

.testimonial-card cite {
  margin-top: auto;
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ==========================================================================
   Contact / CTA
   ========================================================================== */

.cta {
  padding-block: var(--space-20);
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 30%, oklch(from var(--color-primary) l c h / 0.14), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
}

.cta h2 {
  color: var(--color-text);
}

.cta p {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.cta-contact {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-sm);
}

.cta-contact a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.cta-contact a:hover {
  color: var(--color-primary);
}

.cta-contact svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-inner .brand {
  font-size: var(--text-base);
}

.footer-inner .brand svg {
  width: 24px;
  height: 24px;
}

.footer-k-logo {
  display: inline-block;
  width: 44px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-primary);
  background-color: currentColor;
  -webkit-mask-image: url('assets/logo-k-mask.png');
  mask-image: url('assets/logo-k-mask.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: right;
}

.footer-meta a {
  color: var(--color-text-faint);
}

.footer-meta a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid,
  .style-layout {
    grid-template-columns: 1fr;
  }

  .style-image {
    aspect-ratio: 16/10;
    order: -1;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-header p {
    text-align: left;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .service-num {
    display: none;
  }

  .service-tag {
    text-align: left;
  }

  .reel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav ul {
    display: none;
  }

  .main-nav .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand-name span {
    display: none;
  }

  .brand {
    font-size: var(--text-base);
    gap: var(--space-2);
  }

  .brand svg {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-scroll {
    display: none;
  }

  .reel-grid {
    grid-template-columns: 1fr;
  }

  .reel-card {
    aspect-ratio: 9/13;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-interactive),
    visibility var(--transition-interactive);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
