/* Kuehs Fitness website – one stylesheet for every page.
   Brand tokens match the app (see Client App docs/04-brand-and-design.md). Add colours here, never inline. */
:root {
  --black: #231f20;      /* logo black: text on light */
  --ink: #141213;        /* deepest background: header, hero, footer, dark bands */
  --ink-2: #1e1b1c;      /* raised surface on ink */
  --orange: #f7941d;     /* logo orange: accents, rules, buttons (black text on it) */
  --orange-600: #e0800f; /* hover / pressed */
  --orange-700: #c46a00; /* orange icons on light backgrounds (≥ 3:1) */
  --orange-50: #fff3e3;  /* callout background */
  --grey-50: #f4f5f7;    /* light bands, cards */
  --grey-200: #dadde2;   /* borders */
  --grey-500: #5f6570;   /* secondary text on white (AA for small text) */
  --on-dark: #ffffff;
  --on-dark-muted: #c9c6c7; /* secondary text on ink (≈ 11:1) */
  --white: #fff;
  --radius: 12px;
  --radius-lg: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(20, 18, 19, .06), 0 8px 24px rgba(20, 18, 19, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.15rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--orange); color: #000; font-weight: 700; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; }
@media (min-width: 600px) { .wrap { padding: 0 1.5rem; } }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.5rem;
  border: 2px solid var(--orange); border-radius: 999px;
  background: var(--orange); color: #000;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--orange-600); border-color: var(--orange-600); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .45rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--on-dark); }
.btn-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--on-dark); border-bottom: 6px solid var(--orange); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-top: .9rem; padding-bottom: .4rem; }
.brand { display: block; padding: .375rem 0; margin-right: auto; }
.brand img { height: 32px; width: auto; }
.site-nav { order: 3; width: 100%; }
.site-nav ul { list-style: none; margin: 0 -.75rem; padding: 0; display: flex; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { color: var(--on-dark); }
.site-nav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -3px 0 var(--orange); }
@media (min-width: 760px) {
  .site-header .bar { flex-wrap: nowrap; padding-top: 1rem; padding-bottom: 1rem; }
  .brand img { height: 36px; }
  .site-nav { order: 0; width: auto; }
  .site-nav ul { margin: 0 .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding: 2rem 0 3rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
  margin: 0 0 1rem; color: var(--orange);
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero .lead { margin: 1.25rem 0 1.75rem; max-width: 34rem; color: var(--on-dark-muted); font-size: 1.125rem; }
.hero-note { margin: 1rem 0 0; color: var(--on-dark-muted); font-size: .95rem; }
.hero-note strong { color: var(--on-dark); }
.hero-photo { position: relative; margin: 0 .75rem .75rem 0; }
.hero-photo::before {
  content: ""; position: absolute; inset: .75rem -.75rem -.75rem .75rem;
  border-radius: var(--radius-lg); background: var(--orange);
}
.hero-photo img { position: relative; width: 100%; border-radius: var(--radius-lg); }
@media (max-width: 479px) { .hero .actions .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero-photo { margin: 0 1.25rem 1.25rem 0; }
  .hero-photo::before { inset: 1.25rem -1.25rem -1.25rem 1.25rem; }
}

/* Smaller dark heading band for inner pages */
.page-head { background: var(--ink); color: var(--on-dark); padding: 2.5rem 0 3rem; }
.page-head .lead { margin: 1rem 0 0; color: var(--on-dark-muted); font-size: 1.125rem; max-width: 38rem; }
.page-head .actions { margin: 2rem 0 1.5rem; }
@media (min-width: 900px) { .page-head { padding: 4rem 0 4.5rem; } }

/* ---------- Key facts strip ---------- */
.facts { border-bottom: 1px solid var(--grey-200); }
.facts ul { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; gap: 1.1rem; }
.facts li { display: flex; gap: .9rem; align-items: flex-start; }
.facts .icon-badge { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-50); color: var(--orange-700); }
.facts .icon-badge .icon { width: 22px; height: 22px; }
.facts strong { display: block; line-height: 1.3; }
.facts span { color: var(--grey-500); font-size: .95rem; line-height: 1.4; }
@media (min-width: 760px) { .facts ul { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 2rem 0; } }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--grey-50); }
.section-dark { background: var(--ink); color: var(--on-dark); }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2, .bar-heading { padding-left: 1rem; border-left: 6px solid var(--orange); }
.section-head p { margin: 1rem 0 0; color: var(--grey-500); font-size: 1.125rem; }
.section-dark .section-head p { color: var(--on-dark-muted); }
@media (min-width: 900px) { .section-head { margin-bottom: 3rem; } }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  margin: 0 0 .8rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--grey-50); color: var(--black);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.tag .icon { width: 1rem; height: 1rem; color: var(--orange-700); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--grey-500); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin: .45rem 0; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / .75rem no-repeat;
}
.card .ticks { margin-top: auto; padding-top: .25rem; }
@media (min-width: 600px) and (max-width: 899px) {
  .card { flex-direction: row; }
  .card img { width: 42%; aspect-ratio: auto; height: auto; min-height: 100%; }
}
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }


/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--grey-200);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: .6rem;
  color: var(--orange); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em;
}
.steps h3 { margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--grey-500); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text > p { font-size: 1.1rem; }
.callout { margin-top: 1.75rem; padding: 1.25rem 1.4rem; border-left: 6px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: var(--orange-50); }
.callout h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.callout .ticks li { margin: .5rem 0; }
.muted { color: var(--grey-500); }
@media (min-width: 760px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }
@media (min-width: 1000px) { .about-grid { gap: 4.5rem; } }

/* ---------- App band ---------- */
.app-grid { display: grid; gap: 2rem; align-items: center; }
.app-grid h2 { color: var(--on-dark); }
.app-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.app-features li {
  display: flex; gap: .85rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08);
}
.app-features .icon { width: 24px; height: 24px; color: var(--orange); }
.section-dark .note { color: var(--on-dark-muted); font-size: .95rem; margin: 1rem 0 0; }
@media (min-width: 600px) { .app-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* ---------- Call-to-action band (orange) ---------- */
.cta { background: var(--orange); color: #000; padding: 3.5rem 0; }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
.cta h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.cta p { margin: .75rem 0 0; font-size: 1.125rem; max-width: 34rem; }
.cta :focus-visible { outline-color: var(--ink); }
@media (max-width: 479px) { .cta .actions .btn { flex: 1 1 100%; } }
@media (min-width: 900px) { .cta { padding: 4.5rem 0; } .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 1.25rem; }
.contact-card {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.4rem;
  border: 1px solid var(--grey-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.contact-card .icon-badge { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--orange); }
.contact-card .icon-badge .icon { width: 28px; height: 28px; }
.contact-card strong { display: block; font-size: 1.15rem; line-height: 1.3; }
.contact-card span { color: var(--grey-500); }
.contact-card .arrow { margin-left: auto; color: var(--orange-700); font-size: 1.5rem; font-weight: 700; }
.where { display: grid; gap: 1.25rem; }
.where-item { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--grey-50); }
.where-item h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.where-item h3 .icon { color: var(--orange-700); }
.where-item p { margin: 0; color: var(--grey-500); }
.contact-note { margin: 1.5rem 0 0; }
@media (min-width: 760px) { .contact-grid, .where { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* ---------- Enquiry form (contact page, D-009) ---------- */
.contact-layout { display: grid; gap: 2.5rem; align-items: start; }
.enquiry {
  display: grid; gap: 1.25rem; padding: 1.4rem;
  border: 1px solid var(--grey-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow);
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; line-height: 1.3; }
.label-hint { font-weight: 400; color: var(--grey-500); }
.field-hint { margin: 0; color: var(--grey-500); font-size: .95rem; line-height: 1.45; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  border: 1px solid var(--grey-200); border-radius: var(--radius); background: var(--grey-50); color: var(--black);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background: var(--grey-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231f20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 1.1rem no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9bec6; }
.field input:focus, .field select:focus, .field textarea:focus { background-color: var(--white); border-color: var(--black); }
.field :focus-visible { outline-offset: 1px; border-radius: var(--radius); }
.enquiry .btn { justify-self: start; }
.form-foot a { color: var(--black); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
/* Spam trap: bots fill it in, people never see it. Hidden with CSS, not type="hidden" (the app's rule). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-social h3 { margin-bottom: 1rem; }
@media (max-width: 479px) { .enquiry .btn { justify-self: stretch; } }
@media (min-width: 600px) { .enquiry { padding: 2rem; } }
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3.5rem; }
  .contact-social .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Prose (privacy policy, 404) ---------- */
.prose { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.prose h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; padding-left: .75rem; border-left: 5px solid var(--orange); }
.prose p, .prose li { color: #3f4349; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin: .4rem 0; }
.prose strong { color: var(--black); }
.prose a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: .95rem; border-top: 6px solid var(--orange); }
.footer-grid { display: grid; gap: 2rem; padding-top: 2.75rem; padding-bottom: 2rem; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-brand p { margin: 0; max-width: 22rem; }
.site-footer h2 { font-size: .8rem; color: var(--on-dark); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--on-dark-muted); text-decoration: none; }
.site-footer li a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--orange); }
.site-footer .icon { width: 20px; height: 20px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .875rem; }
.footer-base p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; padding-top: 3.5rem; } }

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

/* The header already has "Client sign in" on phones; don't repeat it in the hero there. */
@media (max-width: 759px) { .hero .hide-sm { display: none; } }
