/* =========================================================
   Altruva Complimentary Guide — Static Flyer
   Design tokens mapped from the Next.js Tailwind theme
   ========================================================= */
:root {
  --background: hsl(40 50% 97%);
  --foreground: hsl(24 30% 20%);
  --primary: hsl(24 57% 35%);
  --primary-foreground: hsl(24 50% 95%);
  --secondary: hsl(40 30% 92%);
  --accent: hsl(24 45% 25%);
  --brown: #4a301b;
  --brown-hover: #5a402b;
  --font-sans: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--brown-hover);
}

.btn-dark {
  background: var(--brown);
}

.btn-dark:hover {
  background: var(--brown-hover);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--secondary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-img-desktop {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), color-mix(in srgb, var(--background) 60%, transparent), transparent);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding-top: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-copy {
  line-height: 1.75;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2rem;
  line-height: 1.25;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2rem;
  line-height: 1.25;
}

.btn-hero-desktop {
  display: none;
}

.hero-cta-mobile {
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* =========================================================
   AGING
   ========================================================= */
.aging {
  position: relative;
  background: var(--background);
}

.aging-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  z-index: 0;
}

.aging-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aging-body {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.aging-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.aging-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--primary);
  margin: 0;
}

.aging-title em {
  font-style: italic;
}

.aging-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.aging-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.aging-card-img {
  position: absolute;
  inset: 0;
}

.aging-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.aging-card:hover .aging-card-img img {
  transform: scale(1.05);
}

.aging-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4) 50%, transparent);
}

.aging-num {
  color: #fff;
  font-weight: 700;
  font-size: 2.25rem;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.aging-text {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   DOCTOR
   ========================================================= */
.doctor {
  background: var(--background);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.doctor-photo {
  display: flex;
  justify-content: center;
}

.doctor-photo img {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 1;
  object-fit: contain;
}

.doctor-name {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.doctor-role {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--accent);
  margin: 0.25rem 0 0;
}

.doctor-bio {
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  max-width: 36rem;
  margin: 1rem 0 0;
}

.doctor .btn {
  margin-top: 1.5rem;
}

/* =========================================================
   REGENERATIVE CLINIC
   ========================================================= */
.regen {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.regen-img-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.regen-img-desktop {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.regen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.regen-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 3rem 1rem 1rem;
}

.regen-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--brown);
  margin: 0;
  line-height: 1.25;
}

.regen-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.regen-stat {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--brown);
}

.regen-stat-num {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

.regen-stat-label {
  font-size: 0.875rem;
  margin: 0;
}

/* =========================================================
   TREATMENTS
   ========================================================= */
.treatments {
  position: relative;
}

.treatments-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  z-index: 0;
}

.treatments-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatments-body {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.treatments-header {
  text-align: center;
  margin-bottom: 2rem;
}

.treat-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.treat-subtitle {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: color-mix(in srgb, var(--primary) 90%, transparent);
  margin: 0.5rem 0 0;
}

.treat-pill {
  display: inline-block;
  margin-top: 1rem;
  background: var(--brown);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
}

.treat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.treat-card {
  position: relative;
}

.treat-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.treat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

.treat-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  border-radius: 1.5rem;
}

.treat-card-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
  margin-top: -6rem;
  padding: 0 1.5rem 1.5rem;
}

.treat-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.8;
  margin: 0;
  line-height: 1;
}

.treat-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

.treat-desc {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   BENEFITS (Sofwave)
   ========================================================= */
.benefits {
  background: url('../images/bg-softwave.webp') center / cover no-repeat;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.benefits-header {
  text-align: center;
}

.benefits-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--brown);
  margin: 0;
}

.benefits-title a:hover {
  text-decoration: underline;
}

.benefits-subtitle {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--brown);
  margin: 0.5rem 0 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.benefit-card-img {
  position: absolute;
  inset: 0;
}

.benefit-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-card-img img {
  transform: scale(1.05);
}

.benefit-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5) 50%, transparent);
}

.benefit-num {
  font-weight: 700;
  font-size: 3.5rem;
  font-style: italic;
  opacity: 0.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.benefit-text {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
}

.benefits-cta {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================================
   VIDEOS
   ========================================================= */
.videos {
  background: var(--secondary);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0 0 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.video-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
}

.video-frame::after {
  content: '';
  width: 68px;
  height: 48px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 14px;
  transition: background 0.2s ease;
  position: relative;
  z-index: 1;
}

.video-frame::before {
  content: '';
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.video-frame:hover::after {
  background: #e53935;
}

.video-card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--primary);
  padding: 1.25rem;
  margin: 0;
}

.videos-cta {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================================
   RESULTS
   ========================================================= */
.results {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.result-card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.result-card img {
  width: 100%;
  height: auto;
}

.results-cta {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================================
   CERTIFICATES
   ========================================================= */
.certificates {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.cert-carousel {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  overflow: hidden;
}

.cert-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 1rem;
  scrollbar-width: thin;
}

.cert-track::-webkit-scrollbar {
  height: 6px;
}

.cert-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .cert-item {
    flex-basis: 50%;
  }
}

@media (min-width: 1024px) {
  .cert-item {
    flex-basis: 33.333%;
  }
}

.cert-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
  display: block;
}

.cert-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cert-btn:hover img {
  transform: scale(1.05);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--primary);
  padding: 4rem 1rem;
  text-align: center;
}

.footer p {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-style: italic;
  color: var(--primary-foreground);
  margin: 0;
}

.footer p + p {
  margin-top: 0.5rem;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 0.5rem;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 101;
}

/* =========================================================
   RESPONSIVE (md = 768px)
   ========================================================= */
@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Hero */
  .hero-img-mobile {
    display: none;
  }
  .hero-img-desktop {
    display: block;
  }
  .hero-body {
    padding-top: 3rem;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    padding-right: 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .btn-hero-desktop {
    display: inline-block;
  }
  .hero-cta-mobile {
    display: none;
  }

  /* Aging */
  .aging-body {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .aging-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .aging-title {
    font-size: 3.75rem;
  }
  .aging-cards {
    gap: 1.5rem;
  }
  .aging-num {
    font-size: 3rem;
  }
  .aging-text {
    font-size: 1rem;
  }

  /* Doctor */
  .doctor {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .doctor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Regen */
  .regen-img-mobile {
    display: none;
  }
  .regen-img-desktop {
    display: block;
  }
  .regen-body {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 3rem;
  }
  .regen-title {
    font-size: 3rem;
  }
  .regen-stats {
    gap: 2rem;
    width: auto;
    margin-top: 2rem;
  }
  .regen-stat {
    padding: 1.25rem;
  }
  .regen-stat-num {
    font-size: 2.25rem;
  }
  .regen-stat-label {
    font-size: 1rem;
  }

  /* Treatments */
  .treatments-body {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .treat-title {
    font-size: 3rem;
  }
  .treat-subtitle {
    font-size: 2.25rem;
  }
  .treat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .treat-num {
    font-size: 4.5rem;
  }

  /* Benefits */
  .benefits-title {
    font-size: 3.75rem;
  }
  .benefits-subtitle {
    font-size: 2.25rem;
  }
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .benefit-num {
    font-size: 4.375rem;
  }
  .benefit-text {
    font-size: 1.25rem;
  }

  /* Videos */
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .section-title {
    font-size: 2.25rem;
  }

  /* Results */
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Footer */
  .footer p {
    font-size: 2.25rem;
  }
}
