/* Kraft Fit — Single Page Styles (updated to brand + agent guidelines) */
:root {
  /* Brand colors */
  --accent: #f57042; /* Orange (accent text) */
  --navy: #142245;  /* Brand navy */
  --navy-2: #0f1c3a; /* Deeper navy */
  /* Light theme surfaces */
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --border: #e5e7eb;
  /* Backward-compat mappings */
  --yellow: var(--accent);
  --dark: var(--surface);
  --dark-2: var(--surface-2);
  --text: #0b0b0b;
  --muted: #334155; /* darker for better contrast on light */
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: none; }
/* Focus styles */
a:focus-visible, .btn:focus-visible, .site-nav a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem .75rem; background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand img { display: block; }
.nav-toggle .bar { width: 22px; height: 2px; background: #000; display: block; }
.nav-toggle { background: transparent; border: 0; display: inline-flex; flex-direction: column; gap: 4px; padding: .5rem; cursor: pointer; }
.nav-toggle .bar { width: 22px; height: 2px; background: #000; display: block; }

.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; text-align: right; }
.site-nav a { color: var(--text); padding: .5rem .25rem; display: inline-block; text-decoration: none; font-weight: 500; letter-spacing: .02em; }
.site-nav a:hover { color: var(--navy); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: 1rem; }
}

/* Buttons */
.btn { display: inline-block; padding: .75rem 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; border-radius: 6px; border: 2px solid transparent; transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #e0632a; border-color: #e0632a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,112,66,0.3); }
.btn-secondary { background: #fff; color: var(--navy); border-color: #fff; }
.btn-secondary:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(20,34,69,0.3); }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 72vh; display: grid; place-items: center; text-align: center; }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(20,34,69,.55), rgba(20,34,69,.75)), url('assets/gym-1.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat; background-blend-mode: multiply; filter: saturate(95%); z-index: -1; }
.hero-content { padding: 5rem 0; }
.headline { font-family: 'League Spartan', 'Roboto', 'Open Sans', sans-serif; font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2.25rem, 5vw + 1rem, 5rem); margin: 0 0 .75rem; color: var(--accent); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.subhead { color: var(--muted); max-width: 60ch; margin: 0 auto 1.25rem; }
.hero .subhead { color: #fff; }
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 4rem 0; background: var(--surface); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-title { color: var(--accent); }
.section-dark .section-kicker { color: #e2e8f0; }
.section-dark .feature { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.section-dark .feature-icon { color: var(--accent); }
.section-dark .feature h3 { color: #fff; }
.section-dark .feature p { color: #e2e8f0; }
.section-dark .testimonial { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.section-dark .testimonial figcaption { background: var(--navy); }
.section-dark .testimonial blockquote { color: #fff !important; }
.section-dark .testimonial .author { color: #e2e8f0 !important; }
.section-dark .contact-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.section-dark .contact-card h3 { color: #fff; }
.section-dark .contact-form { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.section-dark .form-notes { color: #e2e8f0; }
.section-dark .form-field label { color: #fff; }
.section-dark .form-field input,
.section-dark .form-field textarea { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }
.section-dark .form-field input::placeholder,
.section-dark .form-field textarea::placeholder { color: #cbd5e1; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header.left { text-align: left; }
.section-title { font-family: 'League Spartan', 'Roboto', 'Open Sans', sans-serif; text-transform: uppercase; font-style: normal; color: var(--accent); font-size: clamp(2rem, 1rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.section-kicker { color: var(--muted); margin-top: .5rem; font-weight: 500; letter-spacing: .02em; }

/* Cards grid */
.grid { display: grid; gap: 1rem; }
.cards {
  grid-template-columns: 1fr; /* Mobile: 1x6 */
}

/* Tablet: 2x3 */
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3x2 */
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card { background: #ffffff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; width: 100%; height: 200px; display: block; }
.card-body { padding: 1rem; }
.card-body h3 { margin: 0 0 .25rem; font-family: 'League Spartan', 'Roboto', 'Open Sans', sans-serif; text-transform: uppercase; font-style: normal; color: var(--navy); font-size: 1.125rem; letter-spacing: -0.01em; font-weight: 800; }
.card-body p { margin: 0; color: var(--muted); }

/* Features */
.features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { background: #ffffff; border: 1px solid var(--border); padding: 1rem; border-radius: 10px; text-align: center; }
.feature-icon { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; display: block; }
.feature h3 { margin: 0 0 .25rem; font-family: 'League Spartan', 'Roboto', 'Open Sans', sans-serif; text-transform: uppercase; font-style: normal; color: var(--navy); font-size: 1.125rem; letter-spacing: -0.01em; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); }

/* About */
.about-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.about-copy p { color: var(--muted); max-width: 65ch; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { position: relative; padding-left: 1.5rem; margin: .25rem 0; }
.checklist li::before { content: '✔'; position: absolute; left: 0; color: var(--accent); }
.about-media { position: relative; }
.about-media .rounded { border-radius: 12px; }
.about-media .overlap { position: absolute; right: 0; bottom: -1rem; width: 52%; border: 3px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; }
}

/* Testimonials */
.testimonials { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testimonial { background: #ffffff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; height: auto; }
.testimonial img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; width: 100%; height: 200px; flex-shrink: 0; }
.testimonial figcaption { background: var(--navy); color: #fff; padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; }
.testimonial blockquote { margin: 0 0 .5rem; font-weight: 600; color: #fff !important; font-size: 1rem; line-height: 1.4; flex-grow: 1; }
.testimonial .author { margin: 0; font-size: .9rem; color: #e2e8f0 !important; font-weight: 500; }

/* FAQ */
.faq details { background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem; margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: .5rem 0 0; }

/* Contact */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { background: #ffffff; border: 1px solid var(--border); padding: 1rem; border-radius: 10px; text-align: center; transition: transform 0.2s ease; }
.contact-card:hover { transform: translateY(-2px); }
.contact-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.contact-card h3 { margin: 0 0 .25rem; font-family: 'League Spartan', 'Roboto', 'Open Sans', sans-serif; text-transform: uppercase; font-style: normal; letter-spacing: -0.01em; }
.contact-card p { margin: 0; }
.contact-card a { text-decoration: none; font-weight: 500; }

/* Contact card color variants */
.lets-train { background: var(--accent); color: #fff; border-color: var(--accent); }
.lets-train .contact-icon { color: var(--accent); }
.lets-train h3 { color: #fff; }
.lets-train a { color: #fff; }
.lets-train a:hover { opacity: 0.8; }

/* Social media icons in contact section */
.contact-card .social-icons { font-size: 1.5em; margin-right: 0.25rem; vertical-align: baseline; }

/* Contact form */
.contact-form { background: #ffffff; border: 1px solid var(--border); padding: 1rem; border-radius: 10px; margin-top: 1rem; }
.form-notes { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin: 0.75rem 0 1.5rem; text-align: center; }
.form-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.form-field { display: grid; gap: .35rem; }
.form-field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.form-field input,
.form-field textarea { width: 100%; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-actions { margin-top: .5rem; }

/* Form status messages */
.form-status { margin-top: .75rem; font-size: .95rem; }
.form-status.success { color: #0a7d44; }
.form-status.error { color: #b00020; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }

.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand img { margin-bottom: 1rem; }
.footer-brand .small { color: var(--muted); margin: 0; font-size: 0.875rem; }

.footer-nav { text-align: center; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: nowrap; gap: 1rem 1.5rem; justify-content: center; white-space: nowrap; }
.footer-nav a { color: var(--text); font-weight: 500; padding: 0.5rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent); }

/* Desktop footer layout */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-brand { align-items: flex-start; text-align: left; }
  .footer-nav { text-align: right; }
  .footer-nav ul { justify-content: flex-end; flex-wrap: nowrap; gap: 0.75rem 1.5rem; }
}

/* Large desktop - three column layout */
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr; gap: 3rem; }
}

/* Accent utility helpers per request */
.accentBG { background-color: var(--accent) !important; color: var(--navy) !important; }
.accentText { color: var(--accent) !important; }
