/* Clínica Viva Novamente - Estilo principal */
:root {
  --primary: #0d6e6e;
  --primary-dark: #0a5252;
  --primary-light: #e6f3f3;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}
.logo-accent { color: var(--accent); }
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4a4a 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text);
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-card ul {
  list-style: none;
  margin-top: 16px;
}

.about-card li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.about-card li:last-child {
  border-bottom: none;
}

.about-card li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

/* Features / Treatments */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4a4a 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* SEO Landing content */
.landing-hero {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 40px;
}

.landing-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 12px;
}

.landing-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.landing-content h2 {
  color: var(--primary);
  margin: 28px 0 14px;
  font-size: 1.35rem;
}

.landing-content p {
  margin-bottom: 14px;
}

.landing-content ul {
  margin: 12px 0 20px 20px;
}

.landing-content li {
  margin-bottom: 8px;
}

.related-links {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.related-links h3 {
  margin-bottom: 16px;
  color: var(--primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.related-grid a {
  display: block;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: background 0.2s;
}

.related-grid a:hover {
  background: #d0e8e8;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: #0a3d3d;
  color: #e0f0f0;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-seo {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  margin-top: 10px;
}

.footer-seo h4 {
  margin-bottom: 14px;
}

.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-seo-links a {
  font-size: 0.82rem;
  opacity: 0.8;
}

.footer-seo-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Floating WhatsApp - compacto, esquerda, piscante */
.float-whatsapp {
  position: fixed;
  bottom: 20px;
  left: 14px;
  right: auto;
  width: auto;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  background: #25d366;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  animation: whatsapp-blink 1.6s ease-in-out infinite;
}

.float-whatsapp:hover {
  transform: scale(1.04);
  background: #1da851;
  animation: none;
  box-shadow: 0 3px 14px rgba(37, 211, 102, 0.55);
}

.float-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: white;
  flex-shrink: 0;
}

.float-whatsapp span {
  white-space: nowrap;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes whatsapp-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 2px 16px rgba(37, 211, 102, 0.65);
  }
}

@media (max-width: 480px) {
  .float-whatsapp {
    left: 10px;
    bottom: 14px;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    gap: 5px;
    font-size: 0.75rem;
  }
  .float-whatsapp svg {
    width: 16px;
    height: 16px;
  }
  .float-whatsapp span {
    font-size: 0.75rem;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0 60px;
  }
  .landing-content {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
