/* Kiloeaters — shared stylesheet */

:root {
  --navy: #12233f;
  --navy-dark: #0b1830;
  --gold: #e8871e;
  --gold-light: #f7b267;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-600: #5a6472;
  --text: #1c2733;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.brand .logo-mark {
  height: 48px;
  width: auto;
  display: block;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 22px;
  display: block;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 24px 80px;
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-tagline {
  font-family: 'Anton', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin: 0 0 18px;
}

@media (max-width: 640px) {
  .hero-tagline { font-size: 1.2rem; }
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 18px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 30px;
  color: #d7dee8;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.page-hero p {
  color: #d7dee8;
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 72px 24px;
}

section.alt {
  background: var(--gray-50);
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 1.9rem;
  margin: 0 0 12px;
  color: var(--navy);
}

.section-heading p {
  color: var(--gray-600);
}

/* Grids / cards */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 2px 8px rgba(18,35,63,0.05);
}

.card h3 {
  color: var(--navy);
  margin-top: 0;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(232,135,30,0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* Athlete profile cards */
.athlete-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: 0 2px 8px rgba(18,35,63,0.05);
}

.athlete-photo {
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

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

.athlete-body { padding: 22px; }

.athlete-body h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.athlete-body .tag {
  display: inline-block;
  background: rgba(232,135,30,0.12);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Photo banners / gallery */
.photo-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}

.photo-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-top: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.gallery-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Placeholder blocks */
.placeholder-box {
  border: 2px dashed #c9cfd8;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--gray-600);
  background: var(--gray-50);
  font-size: 0.9rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats .stat-number {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
}

.stats .stat-label {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-top: 8px;
  font-weight: 600;
}

/* Editorial split blocks (big photo + text, alternating) */
.split-block {
  display: flex;
  align-items: stretch;
  gap: 48px;
  margin-bottom: 64px;
}

.split-block.reverse { flex-direction: row-reverse; }

.split-block .split-media {
  flex: 1 1 50%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
}

.split-block .split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-block .split-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-block .split-text .tag {
  display: inline-block;
  background: rgba(232,135,30,0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.split-block .split-text h3 {
  font-size: 1.7rem;
  color: var(--navy);
  margin: 0 0 14px;
}

.split-block .split-text p {
  color: var(--gray-600);
  margin: 0;
}

.split-media { position: relative; }

.split-media .inset-photo {
  position: absolute;
  width: 130px;
  height: 130px;
  bottom: -20px;
  right: -20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 8px 20px rgba(11,24,48,0.28);
}

.split-media .inset-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Instagram CTA band with photo backdrop */
.social-cta {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 90px 24px;
  background-size: cover;
  background-position: center;
}

.social-cta h2 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.social-cta p {
  color: #e7ecf3;
  max-width: 480px;
  margin: 0 auto 26px;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 {
  margin-top: 0;
  font-size: 1.9rem;
}

.cta-band p {
  color: #d7dee8;
  max-width: 560px;
  margin: 0 auto 26px;
}

/* Timeline / list */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 54px;
  margin-bottom: 20px;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list h4 {
  margin: 0 0 4px;
  color: var(--navy);
}
.step-list p { margin: 0; color: var(--gray-600); }

/* Forms */
form.contact-form {
  display: grid;
  gap: 18px;
}

.form-row { display: grid; gap: 8px; }

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d3d8df;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row textarea { resize: vertical; min-height: 120px; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c2cf;
  padding: 48px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  text-align: center;
  color: #8b95a3;
}

.footer-bottom p {
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-banner img { height: 300px; }
  .split-block, .split-block.reverse { flex-direction: column; gap: 28px; margin-bottom: 48px; }
  .split-block .split-media { min-height: 280px; }
  .split-media .inset-photo { width: 90px; height: 90px; bottom: -14px; right: -14px; }
}

@media (max-width: 640px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 12px 24px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-logo { height: 90px; }
  .gallery-grid, .gallery-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .photo-banner img { height: 220px; }
}
