/* Mens Sana LLC landing page styles.
   Refined minimalism. Warm paper, deep evergreen accent, editorial type pairing. */

:root {
  /* Color */
  --paper:        #faf8f3;
  --paper-2:      #f3efe6;
  --surface:      #ffffff;
  --ink:          #1b1916;
  --ink-soft:     #46423a;
  --muted:        #6b665b;
  --accent:       #1f4a3d;
  --accent-deep:  #163a30;
  --accent-tint:  #e7efea;
  --line:         #e4ddcf;
  --line-strong:  #d4ccbb;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0:  1rem;       /* 16 */
  --step-1:  1.125rem;   /* 18 */
  --step-2:  1.375rem;   /* 22 */
  --step-3:  1.75rem;    /* 28 */
  --step-4:  2.25rem;    /* 36 */
  --step-5:  3rem;       /* 48 */
  --step-6:  clamp(2.6rem, 6vw, 4.5rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --maxw: 70rem;
  --maxw-narrow: 44rem;
  --radius: 14px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* Focus + skip link */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.container.narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--space-7); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-icon {
  height: 3.2rem;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}
/* Nav */
.site-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 200ms ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  /* soft atmospheric wash, top-right */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 88% -10%, var(--accent-tint), transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, #f0ece1, transparent 55%);
  z-index: -1;
}
.hero-inner { text-align: center; }
.hero-seal-img {
  display: block;
  width: 12rem;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 16px 24px rgba(15, 40, 32, 0.45));
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--accent);
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.hero-gloss {
  margin: 0 auto 1.6rem;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
.hero-title {
  font-size: var(--step-6);
  max-width: 20ch;
  margin-inline: auto;
  font-weight: 500;
}
.hero-title .accent { color: var(--accent); }
.hero-lede {
  margin: 1.6rem auto 0;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}
.hero-sub {
  margin: 1.1rem auto 0;
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 58ch;
}
.cred-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.4rem 0 0;
  padding: 0;
}
.cred-strip li {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cred-key {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.cred-val { font-size: 0.98rem; font-weight: 600; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

/* Section heads */
.section-head { max-width: 56ch; margin-bottom: var(--space-5); }
.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, var(--step-5)); max-width: 20ch; }
.section-intro {
  margin: 1.1rem 0 0;
  font-size: var(--step-2);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Grid + cards */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -22px rgba(22, 58, 48, 0.45);
  border-color: var(--line-strong);
}
.card-title {
  font-size: var(--step-2);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.card-body { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* Projects */
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.project:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px -24px rgba(22, 58, 48, 0.4);
}
.project-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}
.project-title { font-size: var(--step-3); font-weight: 600; }
.project-body { margin: 0; color: var(--ink-soft); max-width: 64ch; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.badge-live {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.badge-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9ff0c9;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.project-link:hover { text-decoration: underline; }
.project-link-arrow { transition: transform 200ms ease; }
.project-link:hover .project-link-arrow { transform: translateX(4px); }

/* Email links: keep mailto, add a 'Copied' confirmation on click */
.email-link { position: relative; }
.email-link::after {
  content: "Copied";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.32rem 0.55rem;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.email-link.is-copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .email-link::after { transition: opacity 160ms ease; }
}

/* Prose + contact */
.prose { color: var(--ink-soft); margin: 1.2rem 0 0; max-width: 62ch; }
.prose em { font-family: var(--font-display); font-style: italic; color: var(--ink); }

.contact-details { margin: 2rem 0 0; display: grid; gap: 0; }
.contact-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.2rem;
}
.contact-row dd { margin: 0; font-size: var(--step-1); color: var(--ink); }

/* FAQ */
.faq-list { margin: 2.5rem 0 0; }
.faq-item { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.faq-a { margin: 0; color: var(--ink-soft); max-width: 64ch; }

/* Footer */
.site-footer {
  background: var(--accent-deep);
  color: #e8efe9;
  padding-block: var(--space-5);
}
.footer-seal {
  width: 12rem;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 30rem;
}
.footer-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
}
.footer-llc {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9fc0b1;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.footer-detail { margin: 0; font-size: 0.96rem; line-height: 1.6; color: #cfe0d7; }
.footer-detail a { color: #eaf3ee; text-underline-offset: 3px; }
.footer-detail a:hover { color: #fff; }
.footer-address { color: #a9c2b6; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; justify-self: end; }
.footer-nav a { color: #cfe0d7; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-copy { font-size: 0.85rem; color: #a9c2b6; }

/* All content is visible by default (no scroll-reveal). */
@media (prefers-reduced-motion: reduce) {
  .card, .project, .nav-list a::after, .project-link-arrow { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0 clamp(1.25rem, 5vw, 2.5rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }
  .nav-list.is-open {
    max-height: 30rem;
    padding-block: 0.5rem 1rem;
  }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 0.9rem 0; }
  .nav-list a::after { display: none; }
  .contact-row { grid-template-columns: 1fr; gap: 0.25rem; }
  /* Footer stacks and centers below 760px */
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.75rem; }
  .footer-brand { align-items: center; max-width: none; }
  .footer-nav { justify-self: center; align-items: center; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .header-inner { min-height: 4.5rem; }
  .wordmark-icon { height: 2.8rem; }
  .hero-seal-img { width: 8.5rem; }
  .footer-seal { width: 8.5rem; margin: 0 auto; }
}
