/* betmatchhealth.pro – Corporate Wellness & Health Consulting */

:root {
  --bg: #0a0c12;
  --bg-elevated: #12151e;
  --bg-soft: #161a26;
  --accent: #44dd88;
  --accent-dim: rgba(68, 221, 136, 0.14);
  --accent-glow: rgba(68, 221, 136, 0.35);
  --text: #e8ebe6;
  --text-muted: #9aa3b0;
  --border: rgba(232, 235, 230, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 4px;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(68, 221, 136, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(40, 90, 70, 0.18), transparent 50%),
    linear-gradient(180deg, #0a0c12 0%, #0d1018 40%, #0a0c12 100%);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: #6eebb0;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Burger —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #0a0c12 !important;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: #6eebb0;
  color: #0a0c12 !important;
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  animation: rise-in 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
  animation: rise-in 0.9s var(--ease) 0.12s both;
}

.hero-body {
  color: var(--text-muted);
  max-width: 42rem;
  animation: rise-in 0.9s var(--ease) 0.2s both;
}

.hero-body p + p {
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  animation: rise-in 0.9s var(--ease) 0.28s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #0a0c12;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: #6eebb0;
  color: #0a0c12;
  box-shadow: 0 8px 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  animation: fade-scale 1.1s var(--ease) 0.15s both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, transparent 40%, rgba(68, 221, 136, 0.12));
  pointer-events: none;
}

/* —— Sections shared —— */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-media {
  margin: 2.5rem 0;
}

.section-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* —— Services —— */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease);
}

.service-item:first-child {
  border-top: 1px solid var(--border);
}

.service-item:hover {
  border-color: rgba(68, 221, 136, 0.35);
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.service-item h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.65rem;
  background: var(--accent);
  border-radius: 1px;
  vertical-align: middle;
}

.service-item p {
  color: var(--text-muted);
  padding-left: 1.15rem;
}

/* —— Client success —— */
.stories-grid {
  display: grid;
  gap: 1.75rem;
}

.story {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
}

.story:hover {
  border-color: rgba(68, 221, 136, 0.4);
  transform: translateY(-3px);
}

.story-company {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.story h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.story p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* —— Programs —— */
.programs-list {
  display: grid;
  gap: 0;
}

.program {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.program:first-child {
  border-top: 1px solid var(--border);
}

.program-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  min-width: 2rem;
}

.program h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.program p {
  color: var(--text-muted);
}

/* —— Why —— */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

.why-item {
  padding: 1.25rem 1.35rem;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.why-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.why-visual {
  margin-top: 2.5rem;
}

.why-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* —— Legal pages —— */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
}

.legal-content {
  padding-bottom: 4.5rem;
}

.legal-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.legal-block p + p {
  margin-top: 0.85rem;
}

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

.legal-block ul {
  margin-top: 0.75rem;
  padding-left: 1.15rem;
}

.legal-block li {
  list-style: disc;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* —— Footer —— */
.site-footer {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.footer-brand span {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* —— Animations —— */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero-lead,
  .hero-body,
  .hero-actions,
  .hero-visual,
  .story {
    animation: none;
  }

  .story:hover {
    transform: none;
  }
}

/* —— Responsive —— */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }

  .stories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 300px);
    background: #0e1119;
    border-left: 1px solid var(--border);
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 1000;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
  }

  .nav-backdrop.is-visible {
    display: block;
  }

  .hero {
    padding: 2.75rem 0 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}
