/* ============================================================
   BEYOND — Personal Trainer · styles
   Mobile-first, no framework, no build step.
   Brand: black / white / green (#40B038).
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1d20;
  --card: #17191c;
  --text: #f4f4f5;
  --muted: #9ca3af;
  --line: #26282c;
  --accent: #40b038;        /* brand green */
  --accent-2: #5fca4f;      /* brighter green for links/text on dark */
  --accent-ink: #06110a;    /* text on the green */
  --radius: 14px;
  --maxw: 1080px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,12,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand-logo { height: 30px; width: auto; }
.site-nav { display: none; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: .4rem .2rem; }
.site-nav a:hover { color: var(--accent-2); }
.site-nav .nav-cta { background: var(--accent); color: var(--accent-ink); padding: .5rem 1.1rem; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--accent-2); color: var(--accent-ink); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem var(--pad) 1.5rem; gap: .3rem;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { text-align: center; margin-top: .5rem; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 72% -10%, rgba(64,176,56,.18), transparent 62%),
    radial-gradient(700px 340px at 0% 110%, rgba(64,176,56,.08), transparent 60%),
    var(--bg);
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(3.5rem, 12vw, 6.5rem);
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.hero-logo { height: clamp(52px, 15vw, 84px); width: auto; margin-bottom: .4rem; }
.hero h1 { font-size: clamp(2rem, 6.5vw, 3.3rem); line-height: 1.1; margin: 0; letter-spacing: -.02em; max-width: 18ch; }
.hero-tagline { color: var(--muted); font-size: clamp(1.05rem, 2.6vw, 1.22rem); max-width: 48ch; margin: 0; }
.hero-tagline em { color: var(--accent-2); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .6rem; }
.hero-note { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 9vw, 5rem) 0; }
.section-alt { background: var(--surface); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--accent-2); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; margin: 0 0 .45rem; }
#chi-sono p { color: #d8dade; }

/* ---------- Services ---------- */
.services-grid { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; transition: border-color .2s ease, transform .12s ease; }
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-card h3 { color: var(--text); }
.service-card p { margin: 0; color: var(--muted); }
.services-note { margin-top: 1.7rem; color: var(--muted); }

/* ---------- Lo studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1.6rem; align-items: start; }
@media (min-width: 860px) { .studio-grid { grid-template-columns: 1.1fr .9fr; } }
.studio-media { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.studio-media figure { margin: 0; }
.studio-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
@media (min-width: 860px) { .studio-media { grid-template-columns: 1fr; } }
.studio-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.studio-features li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.studio-features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.studio-features strong { color: var(--text); }

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours th, .hours td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours-note { color: var(--muted); margin-top: 1rem; }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 820px) { .location-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.location-info address { font-style: normal; font-size: 1.1rem; line-height: 1.75; }
.location-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.location-map iframe { border-radius: var(--radius); display: block; border: 1px solid var(--line); filter: grayscale(.2); }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; background: #101214; color: var(--text); width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7078; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin: .3rem 0 0; font-weight: 700; min-height: 1.2em; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #ff6b6b; }
.form-privacy { font-size: .82rem; color: var(--muted); margin: 0; }
.contact-alt { margin-top: 1.8rem; color: var(--muted); }
.contact-alt a { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #08080a; color: var(--muted); padding-top: 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { height: 32px; width: auto; margin-bottom: .7rem; }
.footer-brand p { margin: 0; }
.footer-nap .nap-name { color: var(--text); margin: 0 0 .3rem; line-height: 1.4; }
.footer-nap .nap-name span { color: var(--muted); font-weight: 400; }
.footer-nap address { font-style: normal; line-height: 1.9; }
.footer-nap a, .footer-social a { color: var(--muted); text-decoration: none; }
.footer-nap a:hover, .footer-social a:hover { color: var(--accent-2); }
.footer-social p { color: var(--text); margin: 0 0 .3rem; font-weight: 600; }
.footer-social a { display: block; padding: .15rem 0; }
.footer-bottom { padding: 1.2rem 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }
