/* Andrea Schoenwald — Advanced Muscle Reconditioning
   Design tokens: soft sage/teal palette, DM Serif Display + Karla */

:root {
  --bg: #F2F7F5;
  --surface: #FFFFFF;
  --tint: #E3EFEB;
  --border: #DCE8E4;
  --border-accent: #B9D0C7;
  --primary: #4C7A82;
  --primary-hover: #3F6A72;
  --ink: #2B3A38;
  --body: #5B6E69;
  --body-secondary: #68786F;
  --muted: #8FA69E;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gallery-w: 46vw;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout shell ---------- */

.site {
  position: relative;
  min-height: 100vh;
}

.content-col {
  width: 100%;
  min-height: 100vh;
}

.gallery-col {
  display: none;
}

@media (min-width: 1000px) {
  .content-col { width: 54%; }

  .gallery-col {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: var(--gallery-w);
    height: 100vh;
    overflow: hidden;
    background: var(--tint);
  }

  .gallery-track {
    position: absolute;
    top: 0; left: 0; width: 100%;
    animation: gallery-scroll 100s linear infinite;
    will-change: transform;
  }

  .gallery-track img {
    width: 100%;
    height: 46vh;
    min-height: 320px;
    object-fit: cover;
  }

  @media (prefers-reduced-motion: reduce) {
    .gallery-track { animation: none; }
  }
}

@keyframes gallery-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 247, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  padding: 22px clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  cursor: pointer;
  width: max-content;
}

.logo__name {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  line-height: 1.1;
}

.logo__tag {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.15s ease;
}

nav.main-nav a:hover { color: var(--ink); }

nav.main-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 14px 26px;
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-accent);
  padding: 13px 25px;
}
.btn--outline:hover { color: var(--primary-hover); border-color: var(--primary); }

.btn--small {
  padding: 10px 20px;
  font-size: 13px;
}

/* ---------- Hero (mobile-only image, shown under 1000px) ---------- */

.mobile-hero {
  display: block;
  width: 100%;
  height: 42vh;
  min-height: 260px;
  object-fit: cover;
}

@media (min-width: 1000px) {
  .mobile-hero { display: none; }
}

/* ---------- Sections ---------- */

section {
  padding: 64px clamp(24px, 5vw, 56px);
  border-top: 1px solid var(--border);
}

section:first-of-type { border-top: none; }

.section--surface { background: var(--surface); }
.section--tint { background: var(--tint); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.section-heading {
  font-size: 24px;
  margin-bottom: 44px;
}

h1.page-title {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.25;
  margin-bottom: 20px;
}

.lede {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--body);
  max-width: 480px;
  margin-bottom: 32px;
}

.intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--body);
  max-width: 480px;
  margin-bottom: 44px;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Explainer copy blocks ---------- */

.copy-block p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--body);
  max-width: 520px;
}

.copy-block p + p { margin-top: 18px; }

h3.sub-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 36px 0 18px;
}

.who-helps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 480px;
}

.who-helps li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--body);
}

.who-helps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.expect-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 700px) {
  .expect-grid {
    flex-direction: row;
    gap: 56px;
  }
  .expect-grid > div { flex: 1; }
}

.expect-grid h3 { font-size: 18px; margin-bottom: 14px; }

.expect-grid p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--body-secondary);
}

.expect-grid p + p { margin-top: 14px; }

/* ---------- Team ---------- */

.profile-name { font-size: 22px; margin-bottom: 6px; }

.profile-role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.profile p.bio {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 18px;
}

/* ---------- Contact ---------- */

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
  max-width: 480px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field textarea {
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 122, 130, 0.12);
}

.field textarea { resize: vertical; }

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-grid p.value {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--body);
}

/* ---------- CTA band ---------- */

.cta-band h2 { font-size: 22px; margin-bottom: 14px; }
.cta-band p {
  font-size: 15px;
  font-weight: 300;
  color: var(--body-secondary);
  margin-bottom: 28px;
  max-width: 440px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(24px, 5vw, 56px);
}

footer.site-footer .foot-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

footer.site-footer .foot-copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

/* ---------- Form success state ---------- */

.form-success {
  display: none;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--body);
  max-width: 480px;
  margin-bottom: 56px;
}

.form-success.is-visible { display: block; }
form.contact-form.is-hidden { display: none; }
