/* ===================================================================
   XVII Jornadas de Saúde Materna e Pediátrica do Médio Ave
   Paleta inspirada no cartaz oficial
   =================================================================== */

:root {
  --cream:      #faf3e7;
  --cream-2:    #fffaf1;
  --teal-dark:  #1c6674;
  --teal:       #3f9aa6;
  --teal-soft:  #a9d5d8;
  --coral:      #f0805f;
  --coral-soft: #f7b9a3;
  --yellow:     #f7c948;
  --navy:       #22394f;
  --navy-soft:  #5a6b7a;
  --ink:        #2c3e50;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 10px 30px rgba(28, 102, 116, 0.10);
  --shadow-sm:  0 4px 14px rgba(28, 102, 116, 0.08);
  --maxw:       1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.c-coral { color: var(--coral); }
.c-teal  { color: var(--teal-dark); }
.c-navy  { color: var(--navy); }

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(3.5rem, 9vw, 6rem);
  border-bottom: 3px dashed var(--teal-soft);
  min-height: clamp(560px, 62vw, 760px);
  display: flex;
  align-items: center;
}
.hero__inner { width: 100%; }
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
}
/* ilustração mãe-filho, canto inferior direito */
.hero__art {
  position: absolute;
  z-index: 1;
  right: max(1vw, calc((100vw - var(--maxw)) / 2 - 40px));
  bottom: clamp(20px, 4vw, 56px);
  width: min(40vw, 460px);
  height: auto;
  pointer-events: none;
}
.hero__eyebrow {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(.9rem, 2.5vw, 1.15rem);
  margin-bottom: .3rem;
}
.hero__title {
  font-weight: 800;
  line-height: 1.02;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__date {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.hero__date-big {
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  color: var(--coral);
  line-height: 1;
}
.hero__date-big em {
  font-style: normal;
  color: var(--navy);
  font-size: .7em;
  font-weight: 700;
}
.hero__date-month {
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  font-size: clamp(1rem, 3vw, 1.4rem);
  line-height: 1.1;
}
.hero__place p { color: var(--navy); font-size: clamp(1rem, 2.5vw, 1.2rem); }
.hero__place strong { color: var(--teal-dark); }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* blobs decorativos */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  z-index: 0;
}
.hero__blob--teal   { width: 300px; height: 300px; background: var(--teal-soft);   top: -110px; right: -50px; }
.hero__blob--coral  { width: 230px; height: 230px; background: var(--coral-soft);  bottom: -90px; left: -70px; }
.hero__blob--yellow { width: 120px; height: 120px; background: var(--yellow); opacity:.7; top: 40px; right: 32%; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #e56d4c; }
.btn--ghost { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--lg { font-size: 1.15rem; padding: 1rem 2.4rem; }
.btn--pdf {
  background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-sm);
}
.btn--pdf:hover { background: #14525e; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ================= SECTION HEAD ================= */
.section-head { max-width: var(--maxw); margin: 0 auto 2rem; text-align: center; }
.section-head h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  padding-bottom: .4rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 0;
  height: 4px;
  background: var(--coral);
  border-radius: 2px;
}
.section-head p { color: var(--navy-soft); margin-top: .8rem; font-size: 1.05rem; }

/* ================= PROGRAMA ================= */
.programa { padding: clamp(3rem, 7vw, 5rem) 1.5rem; }

.tabs {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  background: var(--cream-2);
  padding: .6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: 1rem .6rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy-soft);
  font-family: inherit;
  transition: all .18s ease;
}
.tab__date { font-weight: 700; font-size: 1.1rem; }
.tab__theme { font-size: .9rem; }
.tab--active { color: #fff; box-shadow: var(--shadow-sm); }
#tab8.tab--active { background: var(--teal-dark); }
#tab9.tab--active { background: var(--coral); }
.tab:not(.tab--active):hover { background: rgba(63,154,166,.12); color: var(--teal-dark); }

.day { display: none; max-width: var(--maxw); margin: 0 auto; }
.day--active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

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

.period {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.period__title {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  padding: .6rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  font-size: 1.1rem;
}
.period__title--teal  { background: var(--teal-dark); }
.period__title--coral { background: var(--coral); }

/* slots */
.slot {
  display: flex;
  gap: .9rem;
  padding: .7rem 0;
}
.slot__time {
  flex: 0 0 52px;
  font-weight: 700;
  color: var(--coral);
  font-size: .95rem;
  padding-top: .05rem;
  font-variant-numeric: tabular-nums;
}
.slot__body { flex: 1; border-left: 3px solid transparent; padding-left: .9rem; }
.slot__title { font-weight: 600; color: var(--ink); }
.slot__title--muted { font-weight: 500; color: var(--navy-soft); font-style: italic; }
.slot__speaker { font-size: .9rem; color: var(--navy-soft); font-style: italic; margin-top: .1rem; }
.slot__mesa {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: .12rem .55rem;
  border-radius: 999px;
  margin-bottom: .35rem;
}
.slot__mod { font-size: .85rem; color: var(--navy-soft); font-style: italic; margin-top: .2rem; }

/* variantes de slot */
.slot--mesa .slot__body {
  border-left-color: var(--teal);
  background: rgba(169,213,216,.18);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .7rem .9rem;
}
.slot--mesa .slot__title { color: var(--teal-dark); font-weight: 700; font-size: 1.02rem; }
.slot--talk .slot__body { border-left-color: var(--coral-soft); }
.slot--break .slot__body { border-left: none; }
.slot--break .slot__title { color: var(--navy-soft); font-weight: 600; }
.slot--plain .slot__title { color: var(--navy); font-weight: 700; }
.slot--highlight .slot__body {
  border-left: none;
  background: var(--yellow);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
}
.slot--highlight .slot__title { color: var(--navy); font-weight: 700; }
.slot--highlight .slot__time { color: var(--navy); }

.day__download { text-align: center; margin-top: 2rem; }

/* ================= INFO ================= */
.info { padding: clamp(3rem, 7vw, 5rem) 1.5rem; background: var(--cream-2); border-top: 3px dashed var(--teal-soft); border-bottom: 3px dashed var(--teal-soft); }
.info__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info__card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.info__icon { font-size: 2.4rem; display: block; margin-bottom: .6rem; }
.info__card h3 { color: var(--teal-dark); font-size: 1.3rem; margin-bottom: .8rem; }
.info__card p { color: var(--navy); margin-bottom: .3rem; }
.info__card strong { color: var(--ink); }
.info__link {
  display: inline-block;
  margin-top: .8rem;
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
}
.info__link:hover { text-decoration: underline; }
.info__card .info__link + .info__link { margin-left: 1rem; }

/* ================= INSCRIÇÕES ================= */
.inscricoes { padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; text-align: center; }
.inscricoes__inner { max-width: 640px; margin: 0 auto; }
.inscricoes h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.inscricoes p { color: var(--navy); font-size: 1.1rem; margin-bottom: .5rem; }
.inscricoes__note { color: var(--navy-soft); font-size: .95rem; margin-bottom: 1.8rem; }

/* ================= FOOTER ================= */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 1.5rem 2rem;
}
.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__col h4 {
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .9rem;
  margin-bottom: .8rem;
}
.footer__col p { color: rgba(250,243,231,.85); font-size: .95rem; margin-bottom: .2rem; }
.footer__legal {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  color: rgba(250,243,231,.5);
  font-size: .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,243,231,.15);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 820px) {
  .hero__content { max-width: none; }
  .hero__art {
    width: 70%;
    right: -10%;
    top: auto;
    bottom: -6%;
    transform: none;
    opacity: .16;
  }
  .day__grid { grid-template-columns: 1fr; }
  .info__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 480px) {
  .slot__time { flex-basis: 46px; font-size: .85rem; }
  .hero__cta .btn { flex: 1; text-align: center; }
}
