/* CN Fitness — shared stylesheet (tokens + chrome + home page)
   Static 1:1 clone of https://cnfitness.net/. No build step, no framework.
   Fonts are loaded with a <link> tag in each page head (not @import). */

:root {
  /* palette — dark theme with a crimson primary, derived from shot.png */
  --background: #0a0708;
  --surface: #141010;
  --surface-2: #1a1414;
  --foreground: #f5f3f2;
  --muted-foreground: #a8a2a1;
  --primary: #e11d2b;
  --primary-foreground: #ffffff;
  --border: rgba(245, 240, 240, 0.10);
  --border-strong: rgba(245, 240, 240, 0.16);
  --input: rgba(245, 240, 240, 0.14);
  --input-bg: #1c1615;

  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;

  --shadow-card: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -6px rgba(225, 29, 43, 0.45);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 80rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.page { display: flex; min-height: 100vh; flex-direction: column; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.flex-1 { flex: 1 1 auto; }

/* ---- eyebrow / shared type helpers ---- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
}
.accent { color: var(--primary); }
.muted { color: var(--muted-foreground); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: scale(1.05); }
.btn-outline {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--background); }
.btn-ghost {
  background: rgba(10, 7, 8, 0.4);
  color: var(--foreground);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--background); }
.btn-outline-primary {
  background: var(--background);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: var(--primary-foreground); }

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 7, 8, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 3rem; width: 3rem; border-radius: 0.4rem; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav { display: none; align-items: center; gap: 0.25rem; }
.nav a {
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--foreground); }
.header-cta { display: none; }

/* ---- icons ---- */
.icon { width: 1rem; height: 1rem; stroke: currentColor; }
.icon-primary { color: var(--primary); }

/* ---- section rhythm ---- */
.section { padding-top: 5rem; padding-bottom: 5rem; }
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(20, 16, 16, 0.4); }
.band-top { border-top: 1px solid var(--border); background: rgba(20, 16, 16, 0.4); }
.section-head { max-width: 42rem; }
.section-head h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); }

/* =============================================================
   page: home
   ============================================================= */

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero .bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(245, 240, 240, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 240, 240, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(225, 29, 43, 0.28), transparent);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 43, 0.4);
  background: rgba(225, 29, 43, 0.1);
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
}
.badge .dot { height: 0.4rem; width: 0.4rem; border-radius: 999px; background: var(--primary); animation: pulse-dot 2s ease-in-out infinite; }
.hero h1 { margin-top: 1.5rem; font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 0.95; }
.hero-lede { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.hero-stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.hero-stat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.hero-stat .icon { color: var(--primary); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media .glow { position: absolute; inset: -1rem; border-radius: 1.75rem; background: linear-gradient(to bottom right, rgba(225, 29, 43, 0.4), transparent); filter: blur(60px); }
.hero-frame { position: relative; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border-strong); box-shadow: var(--shadow-card); }
.hero-frame > img { width: 100%; height: 100%; object-fit: cover; }
.rating-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(10, 7, 8, 0.8);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rating-card .row { display: flex; align-items: center; gap: 0.75rem; }
.stars { display: flex; }
.star { width: 1rem; height: 1rem; color: var(--primary); fill: var(--primary); }
.rating-card p { font-size: 0.875rem; font-weight: 500; }

/* ---- steps ---- */
.steps { margin-top: 3rem; display: grid; gap: 1.5rem; }
.step { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--background); padding: 1.5rem; }
.step .num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--primary); }
.step h3 { margin-top: 0.5rem; font-size: 1.25rem; }
.step p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---- services ---- */
.services-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.service {
  position: relative;
  display: grid;
  gap: 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 2rem;
}
.service.featured { border-color: var(--primary); background: rgba(225, 29, 43, 0.05); box-shadow: var(--shadow-glow); }
.service-icon { display: flex; height: 4rem; width: 4rem; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--primary); color: var(--primary-foreground); flex-shrink: 0; }
.service-icon svg { width: 2rem; height: 2rem; }
.service-head { display: flex; align-items: center; gap: 0.75rem; }
.service-index { font-family: var(--font-display); font-size: 0.875rem; color: var(--muted-foreground); }
.tag { border-radius: 999px; background: var(--primary); padding: 0.15rem 0.65rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary-foreground); }
.service h3 { margin-top: 0.5rem; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.service > div > p { margin-top: 0.75rem; max-width: 42rem; color: var(--muted-foreground); }
.service-feats { margin-top: 1.25rem; display: grid; gap: 0.5rem; }
.service-feats li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.service-feats .icon { color: var(--primary); margin-top: 0.15rem; flex-shrink: 0; }
.service .btn { align-self: center; justify-self: start; }

/* ---- packages ---- */
.packages-wrap { border-radius: var(--radius-2xl); border: 1px solid var(--border-strong); background: var(--surface); padding: 2rem; }
.packages-head { text-align: center; }
.packages-head h2 { margin-top: 0.75rem; font-size: 2.25rem; }
.packages-head p { margin: 0.75rem auto 0; max-width: 36rem; color: var(--muted-foreground); }
.packages { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
.pkg { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--border-strong); background: var(--background); padding: 1.5rem; text-align: center; }
.pkg.featured { border-color: var(--primary); background: rgba(225, 29, 43, 0.05); box-shadow: var(--shadow-glow); }
.pkg .num { font-family: var(--font-display); font-size: 3.75rem; color: var(--foreground); line-height: 1; }
.pkg .sub { margin-top: 0.25rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.pkg .name { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.pkg-flag { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); border-radius: 999px; background: var(--primary); padding: 0.25rem 0.75rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary-foreground); white-space: nowrap; }

/* ---- about ---- */
.about-grid { display: grid; gap: 3rem; }
.about-copy h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 3rem); }
.about-copy .lede { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted-foreground); }
.about-copy p + p { margin-top: 1rem; color: var(--muted-foreground); }
.about-features { margin-top: 2rem; display: grid; gap: 0.75rem; }
.feature { display: flex; gap: 0.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--background); padding: 1rem; }
.feature .icon { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }
.feature .ftitle { font-weight: 700; }
.feature p { font-size: 0.875rem; color: var(--muted-foreground); }
.about-media { position: relative; }
.about-media .glow { position: absolute; inset: -1.5rem; border-radius: 1.75rem; background: rgba(225, 29, 43, 0.3); filter: blur(60px); }
.about-media img { position: relative; width: 100%; height: 100%; border-radius: var(--radius-2xl); border: 1px solid var(--border-strong); object-fit: cover; box-shadow: var(--shadow-card); }

/* ---- reviews ---- */
.reviews-head { text-align: center; }
.reviews-head h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 3rem); }
.reviews-rating { margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.reviews-rating .star { width: 1.25rem; height: 1.25rem; }
.reviews-rating span { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.reviews { margin-top: 3rem; display: grid; gap: 1.25rem; }
.review { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-xl); border: 1px solid var(--border-strong); background: var(--surface); padding: 1.5rem; }
.review .quote-icon { width: 2rem; height: 2rem; color: rgba(225, 29, 43, 0.4); }
.review blockquote { margin: 1rem 0 0; flex: 1 1 auto; font-size: 0.875rem; color: rgba(245, 243, 242, 0.9); }
.review figcaption { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-strong); padding-top: 1rem; }
.review .name { font-size: 0.875rem; font-weight: 700; }
.review .star { width: 0.875rem; height: 0.875rem; }
.reviews-actions { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }

/* ---- contact ---- */
.contact-grid { display: grid; gap: 3rem; }
.contact-copy h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 3rem); }
.contact-copy .lede { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-foreground); }
.contact-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-line { display: flex; align-items: center; gap: 1rem; border-radius: var(--radius-xl); border: 1px solid var(--border-strong); background: var(--background); padding: 1.25rem; transition: background-color 0.2s ease, border-color 0.2s ease; }
.contact-line.accent-line { border-color: rgba(225, 29, 43, 0.4); background: rgba(225, 29, 43, 0.05); }
.contact-line.accent-line:hover { background: rgba(225, 29, 43, 0.1); }
.contact-line:hover { border-color: rgba(225, 29, 43, 0.4); }
.contact-ic { display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: var(--radius-md); flex-shrink: 0; }
.contact-ic.fill { background: var(--primary); color: var(--primary-foreground); }
.contact-ic.ring { background: var(--background); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(225, 29, 43, 0.3); }
.contact-ic svg { width: 1.5rem; height: 1.5rem; }
.contact-line .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.contact-line .big { font-family: var(--font-display); font-size: 1.25rem; }
.contact-mini { display: grid; gap: 1rem; }
.contact-card { border-radius: var(--radius-xl); border: 1px solid var(--border-strong); background: var(--background); padding: 1.25rem; }
.contact-card .icon { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.contact-card .label { margin-top: 0.75rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.contact-card .val { font-weight: 500; }

/* ---- form ---- */
.form-card { border-radius: var(--radius-2xl); border: 1px solid var(--border-strong); background: var(--background); padding: 1.5rem; }
.form-card h3 { font-size: 1.5rem; }
.form-card > p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.field label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.field label .req { color: var(--primary); }
.field input,
.field select,
.field textarea {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background: var(--input-bg);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--foreground);
}
.field textarea { resize: none; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--primary); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%); background-position: calc(100% - 20px) 1.25rem, calc(100% - 15px) 1.25rem; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form .btn { width: 100%; margin-top: 0.25rem; }
.form-note { text-align: center; font-size: 0.72rem; color: var(--muted-foreground); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- final CTA ---- */
.cta-wrap { position: relative; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid rgba(225, 29, 43, 0.3); background: linear-gradient(to bottom right, rgba(225, 29, 43, 0.2), var(--surface) 55%, var(--surface)); padding: 2.5rem; }
.cta-wrap .blob { position: absolute; right: -5rem; top: -5rem; height: 15rem; width: 15rem; border-radius: 999px; background: rgba(225, 29, 43, 0.3); filter: blur(60px); }
.cta-inner { position: relative; display: grid; gap: 1.5rem; }
.cta-inner h2 { margin-top: 0.75rem; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.cta-inner .lede { margin-top: 0.75rem; max-width: 36rem; color: var(--muted-foreground); }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ---- footer ---- */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border); background: rgba(20, 16, 16, 0.4); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.footer-brand img { height: 3rem; width: 3rem; border-radius: 0.4rem; }
.footer-brand .row { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand p { margin-top: 1rem; max-width: 28rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col li { display: flex; align-items: center; gap: 0.5rem; }
.footer-col a:hover { color: var(--foreground); }
.footer-col .icon { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; text-align: center; font-size: 0.72rem; color: var(--muted-foreground); }

/* ---- entrance motion (pure CSS, always ends visible) ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}
.hero-copy > * { animation: fade-up 0.7s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.2s; }
.hero-media { animation: fade-in 0.9s ease both 0.15s; }
.section-head, .packages-head, .reviews-head, .contact-copy { animation: fade-up 0.7s ease both; }

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

/* ---- responsive ---- */
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-actions { flex-direction: row; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .packages { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .contact-mini { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .service-feats { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .header-cta { display: inline-flex; }
  .reviews-actions { flex-direction: row; }
  .cta-actions { flex-direction: row; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
  .nav { display: flex; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 4rem; padding-top: 7rem; padding-bottom: 7rem; }
  .packages { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .service { grid-template-columns: auto 1fr auto; align-items: center; padding: 2.5rem; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: span 2; }
}
