/* ===== EMBRACON - Formação de Síndico | Static Export CSS ===== */

:root {
  --teal: #00414A;
  --yellow: #D8DE3E;
  --midteal: #126363;
  --offwhite: #F2F4F3;
  --gray: #A7B0AE;
  --slate: #253333;
  --white: #FFFFFF;
  --radius: 0.5rem;
  --font: 'Barlow', ui-sans-serif, system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  line-height: 1.2;
}

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

.container { max-width: 1152px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 960px; }

/* ===== Scroll Progress ===== */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px; z-index: 9999;
  background: var(--yellow);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease-out;
}

/* ===== Badges & Eyebrows ===== */
.badge {
  display: inline-flex; width: fit-content; align-items: center;
  border-radius: 999px; padding: 6px 16px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(216, 222, 62, 0.15); color: var(--yellow);
}
.eyebrow {
  display: block; font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--midteal);
}
.eyebrow.yellow { color: var(--yellow); }

/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  max-width: 48rem; margin: 1rem auto 0;
  font-size: 1.875rem; font-weight: 700; color: var(--teal); line-height: 1.3;
}
.section-header h2.white { color: var(--white); }
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-header h2 { font-size: 2.5rem; } }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--teal);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,65,74,0.95), rgba(0,65,74,0.85), rgba(0,65,74,0.5));
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 1152px; width: 100%; margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 1024px) {
  .hero-content { flex-direction: row; align-items: center; gap: 3rem; padding: 4rem 2rem; }
}
.hero-left { flex: 1; }
@media (min-width: 1024px) { .hero-left { max-width: 58%; } }
.hero-left h1 {
  font-size: 1.875rem; font-weight: 800; color: var(--white);
  line-height: 1.2; margin-top: 1.5rem;
}
@media (min-width: 640px) { .hero-left h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero-left h1 { font-size: 3rem; } }
@media (min-width: 1280px) { .hero-left h1 { font-size: 3.25rem; } }

.hero-left p {
  margin-top: 1.5rem; max-width: 36rem; font-size: 1rem; color: rgba(242,244,243,0.9);
}
@media (min-width: 640px) { .hero-left p { font-size: 1.125rem; } }
.hero-left p strong { color: var(--white); }

.mobile-form-wrap { margin: 1.5rem 0; }
.hero-right { display: none; }
@media (min-width: 1024px) { .hero-right { display: block; flex: 1; max-width: 28rem; } }

.bullet-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; }
.bullet-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; color: var(--white); }
.check-icon {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: rgba(216,222,62,0.2); color: var(--yellow);
  font-size: 0.7rem; font-weight: 700;
}

/* ===== FORM CARD ===== */
.form-card {
  background: var(--white); border-radius: 1rem;
  padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.form-card-footer {
  background: rgba(37,51,51,0.8); border: 1px solid var(--midteal);
}
.form-card h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--teal);
  margin-bottom: 1.25rem; line-height: 1.4;
}
.form-card-footer h3 { color: var(--offwhite); }

.form-fields { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--teal); }
.form-card-footer .form-group label { color: var(--offwhite); }

.form-input {
  height: 3rem; width: 100%; padding: 0 0.75rem;
  border: 1px solid rgba(167,176,174,0.4); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font); color: var(--teal);
  background: var(--white); outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(216,222,62,0.2); }
.form-input::placeholder { color: var(--gray); }
.form-card-footer .form-input {
  background: var(--teal); border-color: var(--midteal); color: var(--white);
}
.form-card-footer .form-input::placeholder { color: var(--gray); }

/* Toggle Group */
.toggle-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.toggle-btn {
  height: 3rem; border-radius: 0.75rem; border: 2px solid rgba(167,176,174,0.4);
  background: var(--white); color: var(--slate);
  font-size: 0.875rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all 0.2s;
}
.toggle-btn:hover { border-color: rgba(216,222,62,0.6); }
.toggle-btn.active {
  border-color: var(--yellow); background: var(--yellow); color: var(--teal);
}
.form-card-footer .toggle-btn {
  border-color: var(--midteal); background: var(--teal); color: var(--offwhite);
}

.form-error {
  margin-top: 0.75rem; font-size: 0.875rem; font-weight: 500; color: #ef4444;
}

.submit-btn {
  margin-top: 1.5rem; width: 100%; display: flex; align-items: center;
  justify-content: center; gap: 0.5rem;
  border-radius: 0.75rem; border: none;
  background: var(--yellow); color: var(--teal);
  padding: 1rem 1.5rem; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.025em;
  font-family: var(--font); cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(216,222,62,0.3);
  transition: filter 0.2s, box-shadow 0.2s;
}
.submit-btn:hover:not(:disabled) { filter: brightness(1.1); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.form-footer-note {
  margin-top: 0.75rem; display: flex; align-items: center;
  justify-content: center; gap: 0.375rem;
  font-size: 0.75rem; color: rgba(37,51,51,0.6);
}
.form-card-footer .form-footer-note { color: var(--gray); }

/* Success state */
.form-success {
  border-radius: 1rem; padding: 2rem; text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  background: var(--white);
}
.form-success-footer { background: var(--slate); }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow); font-size: 3rem;
}
.form-success h3 { font-size: 1.5rem; font-weight: 700; color: var(--teal); margin-bottom: 0.5rem; }
.form-success-footer h3 { color: var(--white); }
.form-success p { font-size: 1rem; color: var(--slate); }
.form-success-footer p { color: var(--offwhite); }
.spinner {
  width: 20px; height: 20px; border: 3px solid rgba(0,65,74,0.2);
  border-top-color: var(--teal); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAIN / MISSION ===== */
.pain-mission { background: var(--offwhite); padding: 5rem 0; }
@media (min-width: 640px) { .pain-mission { padding: 7rem 0; } }
.pain-grid { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
.pain-grid p { font-size: 1.125rem; line-height: 1.7; color: var(--slate); margin-bottom: 1.25rem; }
.pain-grid p strong { color: var(--teal); }
.highlight-text { font-size: 1.25rem !important; font-weight: 600; color: var(--teal) !important; }

.values-row { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.value-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: var(--white); padding: 1rem 1.5rem; border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.value-icon { font-size: 1.75rem; }
.value-card span:last-child { font-size: 0.875rem; font-weight: 500; color: var(--teal); }

/* ===== PILLARS ===== */
.pillars { background: var(--white); padding: 5rem 0; }
@media (min-width: 640px) { .pillars { padding: 7rem 0; } }
.pillars-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar-card {
  display: flex; flex-direction: column; border-radius: 1rem;
  border: 1px solid rgba(167,176,174,0.2); background: var(--offwhite);
  padding: 1.75rem; transition: all 0.3s;
}
.pillar-card:hover { border-color: var(--yellow); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); }
.pillar-icon {
  width: 56px; height: 56px; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; background: var(--teal);
  font-size: 1.75rem;
  transition: background 0.3s;
}
.pillar-card:hover .pillar-icon { background: var(--yellow); }
.pillar-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--teal); margin-bottom: 0.5rem; line-height: 1.4; }
.pillar-card p { font-size: 1rem; line-height: 1.6; color: rgba(37,51,51,0.8); }

/* ===== INSTRUCTORS ===== */
.instructors { background: var(--teal); padding: 5rem 0; }
@media (min-width: 640px) { .instructors { padding: 7rem 0; } }
.instructors-grid { display: grid; gap: 2rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .instructors-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.instructor-card {
  overflow: hidden; border-radius: 1rem;
  background: rgba(37,51,51,0.4); border: 1px solid rgba(18,99,99,0.4);
}
.instructor-img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.instructor-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); transition: filter 0.5s;
}
.instructor-card:hover .instructor-img { filter: grayscale(0%); }
.instructor-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--teal), rgba(0,65,74,0.2), transparent);
}
.instructor-name-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.instructor-name-bar h3 { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.credentials-list { list-style: none; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.credentials-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; color: rgba(242,244,243,0.9); }
.cred-icon { flex-shrink: 0; font-size: 1.25rem; }

/* ===== FOOTER ===== */
.footer { background: var(--teal); overflow: hidden; }
.footer-cta { border-top: 1px solid rgba(18,99,99,0.4); padding: 4rem 0; }
@media (min-width: 640px) { .footer-cta { padding: 5rem 0; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; } }
.footer-cta h2 { font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1.3; }
@media (min-width: 640px) { .footer-cta h2 { font-size: 1.875rem; } }
.footer-cta-text { margin-top: 1rem; font-size: 1.125rem; color: rgba(242,244,243,0.8); }

.footer-bottom {
  border-top: 1px solid rgba(18,99,99,0.4);
  background: rgba(37,51,51,0.3); padding: 2rem 0;
}
.footer-logo-wrap { display: flex; justify-content: center; }
.footer-logo-box { max-width: 20rem; background: var(--teal); padding: 0.75rem; border-radius: 0.5rem; }
.footer-logo { width: 100%; }
.copyright { text-align: center; margin-top: 1rem; font-size: 0.875rem; color: var(--gray); }

/* ===== ANIMATIONS ===== */
[data-animate] { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
[data-animate="slide-right"] { transform: translateX(-30px); }
[data-animate="slide-up"] { transform: translateY(30px); }
[data-animate="fade-up"] { transform: translateY(20px); }
[data-animate="fade-left"] { transform: translateX(-20px); }
[data-animate="fade-right"] { transform: translateX(20px); }
[data-animate].visible { opacity: 1; transform: translate(0, 0); }
