/* ArthroPlus — editorial / cinematic layout (Syne + IBM Plex Sans) */

:root {
  --bg-page: #dfe6e2;
  --bg-wash: #ecf2ef;
  --bg-mint: #d4ebe6;
  --surface: #fafcfb;
  --surface-glass: rgba(12, 18, 17, 0.88);
  --text: #0c1210;
  --text-soft: #2a3330;
  --muted: #5c6b66;
  --accent: #0d5c56;
  --accent-bright: #14b8a6;
  --accent-hover: #0f7669;
  --accent-warm: #ff5c2e;
  --accent-warm-deep: #ea3b12;
  --accent-warm-soft: rgba(255, 92, 46, 0.14);
  --line: rgba(12, 18, 17, 0.12);
  --line-strong: rgba(13, 92, 86, 0.45);
  --shadow-sm: 0 1px 0 rgba(12, 18, 17, 0.06);
  --shadow-md: 0 18px 50px rgba(12, 18, 17, 0.12);
  --shadow-lg: 0 28px 80px rgba(8, 20, 18, 0.35);
  --radius-xl: 6px;
  --radius-lg: 6px;
  --radius-md: 4px;
  --max-width: 1180px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

::selection {
  background: rgba(255, 92, 46, 0.35);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-optical-sizing: auto;
  background-color: var(--bg-page);
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 72px,
      rgba(13, 92, 86, 0.04) 72px,
      rgba(13, 92, 86, 0.04) 73px
    ),
    linear-gradient(180deg, #e8ede9 0%, #d8e0dc 100%);
  color: var(--text);
  line-height: 1.62;
  min-height: 100vh;
}

h1,
h2,
h3,
.section-title,
.hero h1,
.brand-mark {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  display: block;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* --- Header: dark bar (all pages) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header--dark {
  background: linear-gradient(180deg, #080c0b 0%, #0a1211 100%);
  border-bottom: 3px solid var(--accent-warm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.site-header--dark::after {
  display: none;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  transform: rotate(-4deg);
  background: linear-gradient(145deg, #1a3d38 0%, #0d2824 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  box-shadow:
    4px 4px 0 var(--accent-warm),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.site-header--dark .brand-text span:first-child {
  color: #8b9d99;
}

.site-header--dark .brand-text span:last-child {
  color: #f1f5f4;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text span:first-child {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.brand-text span:last-child {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header--dark .nav-links {
  background: rgba(255, 255, 255, 0.05);
}

.nav-link {
  padding: 10px 18px;
  color: #b8c9c4;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 92, 46, 0.15);
}

.nav-link.active {
  color: #0a0f0e;
  background: var(--accent-warm);
  box-shadow: none;
}

.contact-inline {
  color: #8b9d99;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: none;
}

.contact-inline a {
  color: #5eead4;
}

.contact-inline a:hover {
  color: var(--accent-warm);
}

.button,
button {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: var(--font-display);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button.primary {
  background: var(--accent-warm);
  color: #0a0a0a;
  padding: 16px 28px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #0a0f0e;
  border: 2px solid #0a0f0e;
}

.button.primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0a0f0e;
}

.button.ghost {
  border: 2px solid var(--line-strong);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: 4px;
  background: var(--surface);
}

.button.ghost:hover {
  background: rgba(13, 92, 86, 0.08);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(255, 92, 46, 0.2);
  border: 1px solid rgba(255, 92, 46, 0.5);
  color: #ffcdb8;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.hero--cinema .pill {
  background: rgba(255, 92, 46, 0.12);
  border-color: rgba(255, 92, 46, 0.35);
  color: #fdba8c;
}

/* --- Hero: full-width dark cinematic --- */
.hero {
  padding: 0;
}

.hero--cinema {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  margin: 0;
  background:
    radial-gradient(ellipse 90% 70% at 90% 10%, rgba(255, 92, 46, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 5% 90%, rgba(20, 184, 166, 0.12) 0%, transparent 50%),
    linear-gradient(168deg, #020807 0%, #0a1c19 38%, #0f2a26 100%);
  border-bottom: 8px solid var(--accent-warm);
  box-shadow: inset 0 -20px 60px rgba(0, 0, 0, 0.35);
}

.hero--cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.02) 3px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(50%, 240px);
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(255, 92, 46, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-bright));
}

.hero--cinema h1 {
  font-size: clamp(2.35rem, 5vw + 1rem, 3.75rem);
  margin: 12px 0 8px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #f8faf9;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--accent-warm);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.hero--cinema .lead {
  color: #c5d4d0;
  font-size: 1.08rem;
  margin-bottom: 22px;
}

.hero--cinema .lead strong {
  color: #fff;
}

.hero--cinema .cite-note,
.hero--cinema .cite-note .muted {
  color: #8b9d99 !important;
}

.hero--cinema .cite-note a {
  color: #5eead4 !important;
  text-decoration: underline;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.bullet-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #d8e4e1;
  font-size: 0.98rem;
}

.bullet-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 3px;
  background: var(--accent-warm);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.hero-visual {
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    linear-gradient(145deg, #0f2522 0%, #061210 100%);
  border: 3px solid var(--accent-warm);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 360px;
  display: grid;
  place-items: center;
  box-shadow:
    12px 12px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero--cinema .hero-visual::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 140, 90, 0.15), transparent 55%);
  pointer-events: none;
}

.hero--cinema .hero-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(94, 234, 212, 0.25);
  border-radius: 3px;
  pointer-events: none;
}

.hero-visual img {
  width: 74%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  position: relative;
  z-index: 1;
}

/* Ingredients row: light hero-visual */
.section--ingredients .hero-visual {
  background: linear-gradient(160deg, #e8f5f2 0%, #d0ebe5 100%);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  min-height: 320px;
}

.section--ingredients .hero-visual::before,
.section--ingredients .hero-visual::after {
  display: none;
}

.section--ingredients .hero-visual img {
  filter: drop-shadow(0 16px 32px rgba(12, 18, 17, 0.15));
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.page-home main > .section:nth-child(even) {
  background: transparent;
  margin: 0;
}

.section--warm {
  background: linear-gradient(100deg, #fff5eb 0%, #f0faf7 48%, #e8f2ef 100%);
  border-top: 1px solid rgba(12, 18, 17, 0.08);
  border-bottom: 1px solid rgba(12, 18, 17, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.section--edge {
  background: transparent;
}

.section--void {
  background: linear-gradient(180deg, #050a09 0%, #0f1f1d 50%, #0a1514 100%);
  color: #e2ece9;
  border-top: 1px solid rgba(255, 92, 46, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section--void .section-title {
  color: #f8faf9;
}

.section--void .section-ref-note {
  color: #94a3af;
}

.section--void .section-ref-note a {
  color: #5eead4;
}

.section--void .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.section--void .feature-card h3 {
  color: var(--accent-warm);
}

.section--void .feature-card .muted {
  color: #9db0ab;
}

.section--void .panel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section--ingredients {
  background: linear-gradient(180deg, #f4f9f7 0%, #e5f0ec 100%);
}

.panel {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: clamp(1.65rem, 2.5vw + 0.5rem, 2.4rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.15;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 720px;
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(13, 92, 86, 0.35);
  transform: translateY(-2px);
}

.feature-card h3,
.card h3 {
  margin: 4px 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.stat-card {
  background: linear-gradient(135deg, #f0fdf9 0%, var(--surface) 100%);
  border: 2px solid rgba(13, 92, 86, 0.25);
}

.stat-card p {
  color: var(--text-soft);
  margin: 0;
}

.info-block {
  background: linear-gradient(165deg, #fff8f3 0%, var(--surface) 60%);
  border: 2px solid rgba(255, 92, 46, 0.22);
}

.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 rgba(12, 18, 17, 0.08);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lifestyle-grid .image-frame {
  aspect-ratio: 4/3;
}

.lifestyle-grid .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-page);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
}

.step a {
  color: var(--accent);
  font-weight: 700;
}

.step a:hover {
  text-decoration: underline;
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--accent-warm);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 #0a0f0e;
}

.callout {
  background: var(--bg-wash);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.order-section {
  background: linear-gradient(135deg, #0a1f1c 0%, #1a0a06 100%);
  border: 3px solid var(--accent-warm);
  box-shadow: 12px 12px 0 rgba(12, 18, 17, 0.15);
  color: #e8f0ee;
}

.order-section .section-title {
  color: #fff;
}

.order-section .muted {
  color: #a8bdb7;
}

.order-section .pill {
  color: #fec8a8;
}

.order-section .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2ece9;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: block;
  margin-bottom: 6px;
  color: #c5d4d0;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-section .input {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.order-section .input::placeholder {
  color: #6b7d79;
}

.order-section .input:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25);
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 92, 86, 0.15);
}

/* --- Footer --- */
.footer {
  margin-top: 0;
  padding: 48px 0 56px;
  background: #020605;
  border-top: 6px solid var(--accent-warm);
  color: #cbd5d1;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer .list-inline {
  gap: 16px;
}

.footer a {
  color: #f1f5f4;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer a:hover {
  color: var(--accent-warm);
}

.footer small,
.footer .legal-line {
  color: #6b7a76;
  font-size: 0.84rem;
  line-height: 1.65;
}

.footer .muted {
  color: #9eada8;
}

.footer .legal-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #5eead4;
}

.content-page {
  padding: 56px 0 40px;
  min-height: 50vh;
}

/* Product frame on legal/composition pages (not cinematic hero) */
.content-page .hero-visual {
  background: linear-gradient(160deg, #e8f5f2 0%, #d0ebe5 100%);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  min-height: 280px;
}

.content-page .hero-visual::before,
.content-page .hero-visual::after {
  display: none;
}

.content-page .hero-visual img {
  filter: drop-shadow(0 14px 28px rgba(12, 18, 17, 0.12));
}

.content-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-left: 6px solid var(--accent-warm);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.content-card h1,
.content-card h2 {
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.content-card p {
  margin: 0 0 16px;
}

.list-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 8px 12px;
  border-radius: 4px;
  border: 2px solid var(--line);
  background: var(--bg-wash);
  font-weight: 600;
  color: var(--muted);
}

.legal-text p {
  color: var(--text-soft);
}

.legal-text p strong {
  color: var(--accent);
}

.page-home .hero h1 .accent-word {
  color: var(--accent-warm);
}

.corporate-block .section-title {
  margin-bottom: 12px;
}

/* Hero ref links on dark */
.hero--cinema .ref-link {
  color: #fbbf24;
}

.hero--cinema .ref-link:hover {
  color: #fde68a;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .site-header .inner {
    flex-wrap: wrap;
  }

  .contact-inline {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 6px;
  }

  .hero-grid {
    gap: 28px;
  }

  .brand-mark {
    transform: rotate(0deg);
  }
}

@media (max-width: 640px) {
  body {
    background-image: linear-gradient(180deg, #e8ede9 0%, #d8e0dc 100%);
  }

  .hero--cinema {
    padding-top: 2.5rem;
  }

  .panel,
  .hero-card,
  .hero-visual,
  .content-card {
    padding: 20px 16px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.72rem;
  }
}

/* References & in-page citations */
.ref-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.ref-link:hover {
  color: var(--accent-hover);
}

.cite-note,
.section-ref-note {
  font-size: 0.92rem;
  margin-top: 14px;
  line-height: 1.55;
}

.section-ref-note {
  margin-top: 0;
  margin-bottom: 18px;
}

.ref-list {
  margin: 16px 0 0;
  padding-left: 1.35rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ref-list li {
  margin-bottom: 12px;
}

.ref-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ref-list a:hover {
  color: var(--accent-hover);
}

.info-block .steps a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-block .steps a:hover {
  color: var(--accent-hover);
}
