/* ============================================
   4º Congresso Internacional Online de Cirurgia Veterinária
   ANCLIVEPA-SP
   ============================================ */

:root {
  --navy-dark: #00101e;
  --navy: #082738;
  --navy-light: #10394a;
  --navy-border: #204655;
  --cyan: #00e6e2;
  --cyan-dark: #007d80;
  --cyan-accent: #008c91;
  --text-light: #a6bfcc;
  --text-muted: #69818c;
  --text-dark: #072738;
  --text-dark-alt: #6E9BA8;
  --white: #f7fcff;
  --off-white: #f6f6f6;
  --bg-light: #f0f7f8;
  --border-light: #c6d8df;
  --error: #d64545;
  --success: #0bb27a;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-xxl: 16px;
  --container-max: 1176px;
  --container-padding: 132px;
}

/* ============ RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-dark);
  color: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============ CONTAINER ============ */
.container {
  max-width: calc(var(--container-max) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0, 230, 226, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 230, 226, 0.35);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-header {
  min-width: 260px;
}

.btn-form {
  width: 100%;
  margin-top: 8px;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--navy-dark);
  padding: 32px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(166, 191, 204, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.main-nav a {
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--navy-dark);
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 16, 30, 0.95) 0%, rgba(0, 16, 30, 0.12) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 464px;
  gap: 64px;
  align-items: start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.eyebrow-dark {
  color: var(--cyan-dark);
  font-size: 11px;
}

.hero-title {
  margin: 0;
  line-height: 1;
}

.hero-title img {
  max-width: 648px;
  width: 100%;
  height: auto;
}

.hero-subtitle {
  font-size: 25px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  max-width: 648px;
}

.hero-description {
  font-size: 16px;
  color: var(--text-light);
  max-width: 550px;
  line-height: 1.4;
}

.highlights {
  display: flex;
  list-style: none;
  gap: 12px;
  margin-top: 8px;
}

.highlights li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.highlights-number {
  font-size: 30px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.4;
}

.highlights-label {
  font-size: 11px;
  color: var(--text-light);
}

/* ============ SIGNUP CARD ============ */
.signup-card {
  background: var(--bg-light);
  border-radius: var(--radius-xxl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-dark);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.signup-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-dark);
  letter-spacing: 0.02em;
}

.signup-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label,
.form-radio-group legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-dark);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(0, 125, 128, 0.15);
}

.form-group input.input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.1);
}

.error-message {
  font-size: 11px;
  color: var(--error);
  font-weight: 500;
  display: none;
  margin-top: 2px;
}

.error-message.active {
  display: block;
}

.form-radio-group {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--cyan-dark);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--cyan-dark);
  border-radius: 50%;
}

.radio-label input[type="radio"]:focus-visible + .radio-custom {
  box-shadow: 0 0 0 3px rgba(0, 125, 128, 0.2);
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-text[hidden],
.btn-loading[hidden] {
  display: none !important;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(7, 39, 56, 0.3);
  border-top-color: var(--text-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  background: rgba(11, 178, 122, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.form-error {
  background: rgba(214, 69, 69, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-dark {
  background: var(--navy-dark);
  color: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.section-title-light {
  color: var(--white);
  font-size: 44px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.4;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
}

.section-title,
.eyebrow,
.section-lead,
.final-cta-description {
  max-width: 100%;
}

.two-columns p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ============ PROGRAMAÇÃO ============ */
.day-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
  width: 100%;
}

.day-header {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.day-date {
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
}

.day-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.speaker-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 410px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.speaker-photo {
  height: 168px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--navy-light);
  flex-shrink: 0;
}

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

.speaker-flags {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(7, 39, 56, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.speaker-flags .flag {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.speaker-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.speaker-photo-placeholder svg {
  width: 40px;
  height: 40px;
}

.speaker-photo-placeholder span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 0.04em;
}

.speaker-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

.speaker-topic {
  font-size: 22px;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}

.speaker-name {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: auto;
  opacity: 0.85;
}

.interval-banner {
  grid-column: 1 / -1;
  background: rgba(0, 230, 226, 0.08);
  border: 1px dashed rgba(0, 230, 226, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
  text-align: center;
}

.section-cta {
  margin-top: 24px;
  display: flex;
}

.section-cta .btn {
  align-self: flex-start;
}

/* ============ BENEFÍCIOS ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
  width: 100%;
}

.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 206px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.benefit-number {
  font-size: 30px;
  font-weight: 700;
  color: var(--cyan-accent);
}

.benefit-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.benefit-description {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ============ CHAMADA FINAL ============ */
.section-navy .section-title {
  font-size: 46px;
}

.final-cta-description {
  font-size: 16px;
  color: var(--text-light);
  max-width: 800px;
  line-height: 1.4;
}

/* ============ ANCLIVEPA ============ */
.anclivepa-section .container.anclivepa-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
  flex-direction: unset;
}

.anclivepa-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.anclivepa-logo {
  width: 320px;
  height: auto;
  max-width: 100%;
}

.anclivepa-tagline {
  font-size: 20px;
  font-weight: 500;
  color: var(--cyan);
  line-height: 1.4;
}

.anclivepa-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.anclivepa-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.anclivepa-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.anclivepa-highlight {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  padding: 24px 0;
}

.site-footer p {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  :root {
    --container-padding: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr 420px;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-padding: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .signup-card {
    max-width: 464px;
    margin: 0 auto;
    width: 100%;
  }

  .section-title {
    font-size: 36px;
  }

  .section-title-light,
  .section-navy .section-title {
    font-size: 38px;
  }

  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .anclivepa-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .two-columns {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 24px;
  }

  .site-header {
    padding: 20px 0;
  }

  .logo img {
    height: 44px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(166, 191, 204, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .main-nav.active {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero-title img {
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-description {
    font-size: 15px;
  }

  .highlights {
    flex-wrap: wrap;
    gap: 16px;
  }

  .highlights li {
    min-width: 90px;
  }

  .highlights-number {
    font-size: 26px;
  }

  .signup-card {
    padding: 20px;
  }

  .signup-title {
    font-size: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-title-light,
  .section-navy .section-title {
    font-size: 30px;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .speaker-card {
    min-height: auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    min-height: auto;
  }

  .anclivepa-logo {
    width: 240px;
  }

  .anclivepa-title {
    font-size: 24px;
  }

  .btn {
    width: 100%;
    max-width: 100%;
  }

  .section-cta .btn,
  .section-light .btn {
    align-self: stretch;
  }

  .btn-form {
    width: 100%;
  }

  .site-footer p {
    font-size: 11px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title,
  .section-title-light,
  .section-navy .section-title {
    font-size: 26px;
  }

  .day-date {
    font-size: 22px;
  }

  .day-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .signup-card {
    padding: 16px;
  }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline-offset: 4px;
}
