/* ===================================================================
   LAMGO — Liga Acadêmica de Ginecologia e Obstetrícia (Multivix Serra)
   Shared design system for index.html (link da bio) and liga.html (site)
   =================================================================== */

:root {
  --rose-50:  #fdf2f5;
  --rose-100: #fce8ed;
  --rose-200: #f6cfdb;
  --rose-300: #eeadc0;
  --rose-400: #e187a1;
  --rose-500: #d15e80;
  --rose-600: #b8436a;
  --rose-700: #973456;
  --rose-800: #6e2740;
  --rose-900: #4a1a2b;

  --ink:      #3a2530;
  --ink-soft: #6b5460;
  --cream:    #fffaf9;
  --white:    #ffffff;

  --shadow-sm: 0 2px 10px rgba(151, 52, 86, 0.08);
  --shadow-md: 0 10px 30px rgba(151, 52, 86, 0.14);
  --shadow-lg: 0 20px 55px rgba(151, 52, 86, 0.20);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --font-head: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--rose-800);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0 0 1em; text-align: justify; text-justify: inter-word; hyphens: auto; }

button.btn, button.bio-link {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-600);
  background: var(--rose-100);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; text-align: center; }

.section-alt {
  background: linear-gradient(180deg, var(--rose-50) 0%, #fdeef2 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: var(--rose-400);
  color: var(--rose-700);
}
.btn-outline:hover {
  background: var(--rose-100);
  transform: translateY(-3px);
}

.btn-ghost {
  background: var(--white);
  color: var(--rose-700);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 249, 0.97);
  border-bottom: 1px solid var(--rose-100);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--rose-800);
  font-size: 1.15rem;
}
.nav-brand img { width: 56px; height: 56px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .92rem;
  font-weight: 600;
}
.nav-links a { color: var(--ink-soft); transition: color .2s ease; }
.nav-links a:hover { color: var(--rose-600); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 36px 24px;
    gap: 26px;
    font-size: 1.1rem;
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--rose-700); border-radius: 2px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background:
    radial-gradient(700px 420px at 85% -10%, var(--rose-200) 0%, transparent 60%),
    radial-gradient(600px 400px at -10% 110%, var(--rose-100) 0%, transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  text-align: center;
}
.hero-actions, .hero-badges { justify-content: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin: 0 auto; }
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; margin-left: auto; margin-right: auto; text-align: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-badge {
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--rose-700);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-art {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 88vw;
  max-height: 88vw;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-ring {
  position: absolute;
  inset: -22px;
  border: 2px dashed var(--rose-300);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--rose-600);
}
.stat-card span { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
  text-align: center;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose-200);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-100), var(--rose-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; text-align: center; }

/* ---------- Project / highlight banner ---------- */
.project-banner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
@media (max-width: 860px) { .project-banner { grid-template-columns: 1fr; } }
.project-banner-media {
  background: linear-gradient(155deg, var(--rose-600), var(--rose-800));
  color: var(--white);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.project-banner-media p { text-align: center; }
.project-banner-media .tag {
  align-self: center;
  background: rgba(255,255,255,.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-banner-media h3 { color: var(--white); font-size: 1.7rem; }
.project-banner-media p { color: rgba(255,255,255,.88); margin-bottom: 0; }
.project-banner-body { padding: 38px; }
.project-banner-body ul { margin: 0 0 20px; padding-left: 20px; color: var(--ink-soft); }
.project-banner-body li { margin-bottom: 8px; }

/* ---------- Timeline / table ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--rose-200);
}
.timeline li {
  position: relative;
  padding: 4px 0 26px 30px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 4px var(--rose-100);
}
.timeline .t-date {
  font-weight: 700;
  color: var(--rose-700);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.timeline .t-desc { color: var(--ink-soft); font-size: .96rem; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rose-100);
  font-size: .92rem;
}
.info-table th {
  background: var(--rose-600);
  color: var(--white);
  font-weight: 600;
}
.info-table tr:last-child td { border-bottom: none; }

/* ---------- Members ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px;
}
.member {
  text-align: center;
}
.member-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-400), var(--rose-700));
  box-shadow: var(--shadow-sm);
}
.member-name { font-weight: 600; font-size: .92rem; }
.member-role { display: block; font-size: .78rem; color: var(--rose-600); font-weight: 600; margin-top: 2px; }
.founder-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rose-700);
  background: var(--rose-100);
  padding: 4px 10px;
  border-radius: 999px;
}

.leader-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
@media (max-width: 640px) { .leader-row { grid-template-columns: 1fr; } }
.leader-card {
  background: linear-gradient(155deg, var(--rose-50), var(--white));
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader-card .member-avatar { width: 96px; height: 96px; font-size: 1.4rem; margin: 0 0 10px; flex-shrink: 0; }
.leader-card h4 { margin: 0 0 4px; font-size: 1.1rem; }
.leader-card span { font-size: .85rem; color: var(--rose-600); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--rose-600), var(--rose-800));
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 30px; text-align: center; }
.cta-band .btn-primary { background: var(--white); color: var(--rose-700); }
.cta-band .btn-primary:hover { color: var(--rose-800); }
.cta-band .btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.14); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--rose-900);
  color: rgba(255,255,255,.75);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h5 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links a { display: block; font-size: .92rem; margin-bottom: 10px; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-links a:hover { color: var(--rose-300); }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.footer-signature {
  margin-top: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}
.footer-signature a {
  color: var(--rose-300);
  font-weight: 600;
  transition: color .2s ease;
}
.footer-signature a:hover { color: var(--rose-200); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Link-bio page ---------- */
.bio-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(600px 400px at 15% -10%, var(--rose-200) 0%, transparent 60%),
    radial-gradient(600px 500px at 100% 110%, var(--rose-100) 0%, transparent 60%),
    var(--cream);
}
.bio-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.bio-logo {
  width: 172px;
  height: 172px;
  object-fit: contain;
  margin: 0 auto 22px;
}
.bio-card h1 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}
.bio-card .bio-sub {
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: 30px;
  text-align: center;
}
.bio-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bio-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: .96rem;
  color: var(--rose-800);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-align: left;
}
.bio-link:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
  background: var(--rose-50);
}
.bio-link .bio-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.bio-link.primary {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border-color: transparent;
  color: var(--white);
}
.bio-link.primary .bio-icon { background: rgba(255,255,255,.2); }
.bio-link small {
  display: block;
  font-weight: 400;
  font-size: .78rem;
  opacity: .8;
  margin-top: 2px;
}
.bio-footer {
  margin-top: 34px;
  font-size: .8rem;
  color: var(--ink-soft);
  text-align: center;
}
.bio-footer a { color: var(--rose-600); font-weight: 600; }
.bio-signature {
  margin-top: 8px;
  font-size: .78rem;
  color: var(--ink-soft);
  text-align: center;
}
.bio-signature a { color: var(--rose-600); font-weight: 600; }

/* ---------- Drive folder picker modal ---------- */
.drive-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58, 37, 48, .55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.drive-modal.open { display: flex; }
.drive-modal-box {
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.drive-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rose-100);
}
.drive-modal-header h3 { margin: 0; font-size: 1.05rem; color: var(--rose-800); }
.drive-close-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  appearance: none;
}
.drive-close-btn:hover { color: var(--rose-700); }
.drive-breadcrumb {
  padding: 10px 22px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--rose-600);
  border-bottom: 1px solid var(--rose-100);
  overflow-x: auto;
  white-space: nowrap;
}
.drive-crumb { cursor: pointer; }
.drive-crumb:hover { text-decoration: underline; }
.drive-crumb-sep { margin: 0 6px; color: var(--rose-200); }
.drive-file-list { overflow-y: auto; padding: 10px; }
.drive-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: .92rem;
  color: var(--ink);
}
.drive-item:hover { background: var(--rose-50); }
.drive-icon { font-size: 1.15rem; }
.drive-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.drive-arrow, .drive-download { font-size: .78rem; font-weight: 600; color: var(--rose-500); white-space: nowrap; }
.drive-loading, .drive-empty, .drive-error { padding: 26px; color: var(--ink-soft); font-size: .9rem; text-align: center; }
.drive-error a { color: var(--rose-600); font-weight: 600; }
