/* ============================================================
   Diamilli Valen — bio-style landing page
   Layout borrowed from helenabezzan.com/bio-instagram/
   ============================================================ */

:root {
  --bg: #fdfaf6;
  --white: #ffffff;
  --ink: #4c1f2f;
  --accent: #e8e0d5;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-w: 1080px;
  --narrow-w: 560px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.page {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.narrow {
  max-width: var(--narrow-w);
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding-top: 8px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 6.5vw, 34px);
  line-height: 1.25;
  margin: 0 auto 8px;
  max-width: 26ch;
}

.hero-tagline mark {
  background: var(--accent);
  color: var(--ink);
  font-style: italic;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Programas / cards ---------- */

.programas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 56px 0;
}

.card {
  position: relative;
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 440px;
  isolation: isolate;
  box-shadow: 0 16px 32px rgba(76, 31, 47, 0.14);
  transition: transform 0.2s ease;
}

.card:hover { transform: scale(1.015); }

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.card-bg.pos-top { object-position: center top; }

.card-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(76, 31, 47, 0.12) 0%, rgba(76, 31, 47, 0.1) 22%, rgba(76, 31, 47, 0.58) 56%, rgba(76, 31, 47, 0.97) 100%);
}

.card .tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.card-body {
  margin-top: auto;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--white);
}

.card-heading {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Split card (Mentoria LEGADO): the source photo is a busy
   group-call screenshot, so instead of a full-bleed overlay it
   gets a contained photo strip up top that fades into a solid
   ink panel — the text always has a clean background. */
.card--split {
  flex-direction: column;
  background: var(--ink);
}

.card-split-photo {
  position: relative;
  flex: 0 0 62%;
  overflow: hidden;
  background: linear-gradient(135deg, #6b2c42 0%, var(--ink) 100%);
}

.card-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 88% center;
}

.card-split-scrim-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(76, 31, 47, 0.55) 30%, rgba(76, 31, 47, 0) 55%);
}

.card-split-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(76, 31, 47, 0) 0%, var(--ink) 90%);
}

.card-split-photo .card-heading {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  color: var(--white);
}

.card-split-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px 20px;
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 14px 22px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  text-align: center;
}

.card .btn { align-self: stretch; }

/* ---------- Depoimentos ---------- */

.media-section {
  margin: 56px 0;
  text-align: center;
}

.media-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 28px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.video-frame {
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink);
}

/* ---------- Bio ---------- */

.bio-wrap {
  margin: 56px 0 40px;
}

.bio-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 28px;
}

.bio-card {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bio-text {
  padding: 36px 24px 30px;
  color: var(--white);
}

.bio-text p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.bio-text .pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  text-align: center;
  margin-top: 32px;
  color: var(--white);
}

.bio-photo {
  position: relative;
  aspect-ratio: 4 / 5;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bio-photo-fade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 70px;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(76, 31, 47, 0) 100%);
}

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

.site-footer {
  margin-top: 56px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.social-links svg { width: 20px; height: 20px; }

.btn-whatsapp {
  background: var(--ink);
  color: var(--white);
  padding: 16px 28px;
  width: 100%;
  max-width: 320px;
}

.btn-whatsapp svg { width: 18px; height: 18px; }

.copyright {
  margin-top: 24px;
  font-size: 12.5px;
  color: rgba(76, 31, 47, 0.6);
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .card-heading { font-size: 28px; }
}

/* Desktop: cards form a 1/2/1 rhombus — every card is the exact
   same size, the singles are just centered alone in their row
   instead of stretched to fill it. */
@media (min-width: 860px) {
  .page { padding: 48px 32px 80px; }

  .programas {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .programas .card:nth-child(1),
  .programas .card:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }

  .programas .card {
    height: 420px;
  }

  .programas .card-bg--destrave { object-position: 62% 40%; }
  .programas .card-bg--palestras { object-position: center 18%; }

  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .bio-card {
    flex-direction: row;
    align-items: stretch;
  }

  .bio-text {
    flex: 1 1 56%;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .bio-photo {
    flex: 1 1 44%;
    aspect-ratio: auto;
  }

  .bio-photo-fade {
    inset: 0 auto 0 0;
    width: 90px;
    height: auto;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(76, 31, 47, 0) 100%);
  }
}
