/*
  SaúdeCorp - Landing Page
  Folha de estilos principal
*/

/* Reset e configuração base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores principais */
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #0ea5e9;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #2563eb;

  /* Cores de destaque para contato */
  --whatsapp: #22c55e;
  --whatsapp-foreground: #ffffff;

  /* Tipografia */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;

  /* Espaçamento */
  --section-padding: 4rem;
  --container-max: 80rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--input);
}

.btn-outline:hover {
  background-color: var(--secondary);
  border-color: var(--border);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  flex-shrink: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

.logo-subtitle {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted-foreground);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  opacity: 1;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  border-radius: var(--radius-sm);
}

.menu-toggle:hover {
  background-color: var(--secondary);
}

.hidden {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.8;
  padding: 0.5rem 0;
}

.mobile-link:hover {
  color: var(--primary);
  opacity: 1;
}

#hospitais{
    padding:90px 0;
    background:#fff;
}

#hospitais .section-header{
    margin-bottom:40px;
}

.table-wrapper{
    width:100%;
    overflow:hidden;
    border-radius:18px;
    border:1px solid #e5e7eb;
    box-shadow:0 10px 35px rgba(15,23,42,.06);
}

.hospital-table{
    width:100%;
    border-collapse:collapse;
}

.hospital-table thead{
    background:#2563eb;
    color:#fff;
}

.hospital-table th{
    padding:18px 26px;
    text-align:left;
    font-size:16px;
    font-weight:600;
}

.hospital-table td{
    padding:16px 26px;
    font-size:15px;
    border-bottom:1px solid #eef2f7;
}

.hospital-table tbody tr:nth-child(even){
    background:#fafcff;
}

.hospital-table tbody tr:hover{
    background:#edf5ff;
}

.hospital-table td:last-child,
.hospital-table th:last-child{
    width:180px;
    white-space:nowrap;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #eff6ff 0%, var(--background) 100%);
}

@media (min-width: 768px) {
  .hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

.hero-inner {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.hero-benefits {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image-wrapper {
  order: -1;
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    order: 1;
  }
}

.hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.1), transparent);
  pointer-events: none;
}

/* Seções comuns */
.section-header {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* Operadoras */
.operators {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  /*background-color: var(--background);*/
}

.operators-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .operators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .operators-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.operator-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.operator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.operator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  /*background-color: rgba(37, 99, 235, 0.1);*/
  color: var(--primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.operator-card:hover .operator-icon {
  /*background-color: var(--primary);*/
  color: var(--primary-foreground);
}

.operator-name {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.operator-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Planos */
.plans {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--muted);
}

.plans-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.plan-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--accent);
}

.plan-title {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.plan-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.plan-description {
  margin-top: 0.75rem;
  flex-grow: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.plan-features {
  margin-top: 1.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--card-foreground);
}

.plan-features li::before {
  content: "";
  margin-top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* Contato */
.contact {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--background);
}

.contact-grid {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }
}

.contact-info-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-method:hover {
  background-color: var(--secondary);
  border-color: var(--border);
}

.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-whatsapp {
  background-color: var(--whatsapp);
  color: var(--whatsapp-foreground);
}

.contact-phone {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.contact-email {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--accent);
}

.contact-location {
  background-color: rgba(15, 23, 42, 0.1);
  color: var(--foreground);
}

.contact-method-content {
  display: flex;
  flex-direction: column;
}

.contact-method-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.contact-method-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Formulário */
.contact-form-wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .contact-form-wrapper {
    padding: 2rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-submit {
  width: 100%;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

.error-message {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--muted);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-description {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.footer-list {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background-color: var(--foreground);
  color: var(--background);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transform: translateY(150%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateY(0);
}

.toast.success {
  background-color: #22c55e;
  color: #ffffff;
}

.toast.error {
  background-color: #ef4444;
  color: #ffffff;
}
