/*
  ECA Digital para Escolas — versão clara editorial
  Hero navy mantido. Demais seções em paleta clara (paper + cream).
  Texto principal em navy #14213d. Fotos navy contrastam contra fundo claro.
  
  WIX: cole este arquivo em Site Design → CSS
  E adicione em Configurações → Custom Code → Head:
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap" rel="stylesheet">
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

:root {
  --bg-deep:    #0e1622;
  --bg-mid:     #0b1526;
  --bg-paper:   #fafaf6;
  --bg-cream:   #f3efe5;
  --bg-card:    #ffffff;
  --ink:        #14213d;
  --ink-soft:   rgba(20, 33, 61, 0.72);
  --ink-mute:   rgba(20, 33, 61, 0.5);
  --line:       rgba(20, 33, 61, 0.1);
  --line-soft:  rgba(20, 33, 61, 0.06);
  --on-dark:    rgba(255, 255, 255, 0.92);
  --on-dark-2:  rgba(217, 227, 236, 0.72);
  --on-dark-3:  rgba(255, 255, 255, 0.08);
  --teal:       #117e7a;
  --teal-dark:  #0b5e5c;
  --yellow:     #f5c84c;
  --coral:      #df6756;
  --shadow-sm:  0 4px 12px rgba(20, 33, 61, 0.06);
  --shadow-md:  0 12px 32px rgba(20, 33, 61, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: grid; text-decoration: none; line-height: 1.05; }
.brand span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand strong { color: var(--ink); font-size: 1rem; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}
.nav a { text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: var(--teal); }

/* ─── HERO (dark) ─── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 88vh, 820px);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--on-dark);
}
.hero__photo-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-image: url('https://res.cloudinary.com/dmcrh56be/image/upload/v1777945270/landing-pages/eca-digital/palestrante-renato-amaral.jpg');
  background-size: cover;
  background-position: top center;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, #0e1622 0%, #0e1622 34%, rgba(14,22,34,0.85) 50%, rgba(14,22,34,0.25) 72%, rgba(14,22,34,0.5) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 660px; }
.hero__tag {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(245, 200, 76, 0.12);
  border: 1px solid rgba(245, 200, 76, 0.3);
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero__tag span {
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-wrap: pretty;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero__lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--on-dark-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ─── BUTTONS ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.button--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 126, 122, 0.22);
}
.button--primary:hover { background: var(--teal-dark); }
.button--ghost-light {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.button--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ─── SECTION BASE ─── */
.section { padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px); }
.section__intro { max-width: 680px; }
.section__intro--center {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  color: var(--ink);
  font-weight: 700;
  text-wrap: pretty;
}
.lede {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}
h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 800;
}

/* ─── PROBLEM ─── */
.problem { background: var(--bg-paper); }
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.issue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.issue-card__photo {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--bg-mid);
  background-size: cover;
  background-position: center;
}
.issue-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 38, 0.3);
}
.issue-card__num {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}
.issue-card__body { padding: 22px 24px 26px; }
.issue-card__body p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ─── VALUE ─── */
.value {
  background: var(--bg-cream);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.value__copy .lede { margin-bottom: 36px; }
.audience-label {
  margin: 0 0 12px;
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.audience-tags li {
  padding: 8px 13px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}
.value__photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-mid);
  box-shadow: var(--shadow-md);
}
.value__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── TOPICS ─── */
.topics { background: var(--bg-paper); }
.topic-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
details {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}
details[open] { border-color: var(--teal); }
summary {
  position: relative;
  min-height: 58px;
  padding: 18px 56px 18px 22px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
details[open] summary::after { content: '−'; }
details p {
  margin: 0;
  padding: 0 22px 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.97rem;
}

/* ─── BENEFITS ─── */
.benefits { background: var(--bg-cream); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 28px 32px;
}
.benefit-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--teal);
}
.benefit-card__icon svg { width: 100%; height: 100%; }
.benefit-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ─── FORMATS ─── */
.formats { background: var(--bg-paper); }
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 36px;
}
.format-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.format-card__photo {
  aspect-ratio: 4/5;
  background-color: var(--bg-mid);
  background-size: cover;
  background-position: center;
}
.format-card__body { padding: 22px 24px 26px; }
.format-card__body p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ─── CONTACT ─── */
.contact {
  background: var(--bg-deep);
  color: var(--on-dark);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 520px);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.contact .eyebrow { color: var(--yellow); }
.contact h2 { color: #fff; }
.contact__copy p { color: var(--on-dark-2); }
.contact__copy { position: sticky; top: 100px; }
.contact__copy p { margin: 18px 0 0; font-size: 1.05rem; max-width: 480px; }

.contact__form-slot {
  min-height: 240px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.contact__copy { position: sticky; top: 100px; }
.contact__copy p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 480px;
}
.contact__form-slot {
  min-height: 240px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}

/* ─── FOOTER ─── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}
.footer p { margin: 0; }
.footer a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  text-decoration: none;
}
.footer a:hover { color: var(--yellow); }

/* ─── FOCUS ─── */
summary:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ─── RESPONSIVE 860px ─── */
@media (max-width: 860px) {
  .site-header { position: static; align-items: flex-start; }
  .nav { gap: 14px; font-size: 0.88rem; }
  .hero { min-height: auto; padding-top: 60px; padding-bottom: 60px; }
  .hero__photo-bg { width: 100%; opacity: 0.4; }
  .hero::before {
    background: linear-gradient(to bottom, rgba(14,22,34,0.96) 0%, rgba(14,22,34,0.85) 60%, rgba(14,22,34,0.95) 100%);
  }
  .hero__content { max-width: 100%; }
  .value, .contact { grid-template-columns: 1fr; }
  .issue-grid, .benefit-grid, .format-grid { grid-template-columns: 1fr; }
  .contact__copy { position: static; }
}

/* ─── RESPONSIVE 560px ─── */
@media (max-width: 560px) {
  .site-header, .footer { flex-direction: column; align-items: flex-start; }
  .hero__actions, .button { width: 100%; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); line-height: 1.06; }
  .section__intro--center { text-align: left; }
  summary { padding: 16px 50px 16px 18px; }
  details p { padding: 0 18px 18px; }
}
/* ─── FORM ─── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.15s, background 0.15s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2314213d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.contact-form .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}
.hp-field { display: none; }

/* ─── CONTACT — FIXES & COMPACTAÇÃO ─── */

/* reduz padding vertical da seção (não precisa do tamanho das outras) */
.contact {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* fix: lede sumindo no fundo dark */
.contact .contact__copy p { color: var(--on-dark-2); }

/* fix: hidden sendo derrotado pelo display:grid do .field */
.field[hidden] { display: none; }

/* compactação do box e dos campos */
.contact__form-slot { padding: 22px; }
.contact-form { gap: 12px; }
.field { gap: 4px; }
.field label { font-size: 0.78rem; }
.field input,
.field select,
.field textarea {
  padding: 10px 12px;
  font-size: 0.94rem;
}
.field textarea { min-height: 80px; rows: 3; }
.contact-form .button { margin-top: 4px; }

@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
}