/* ==========================================
   Service Details — Shared CSS
   Temas: residencia (roxo) | vestibular (vermelho)
   ========================================== */

/* === Variables === */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
  --accent-green: #42b983;
  --border-color: rgba(255,255,255,0.1);
  --primary-color: #42b983;
  --primary-dark: #38a169;

  /* Defaults — residência (roxo) */
  --sd-accent: #5e72e4;
  --sd-accent-light: #8b9dff;
  --sd-accent-rgb: 94, 114, 228;
  --sd-gradient: linear-gradient(135deg, #5e72e4, #825ee4);
  --sd-hero-bg: linear-gradient(135deg, #0a0a1a 0%, #0a0a0a 50%, #0a0f1a 100%);
  --sd-cta-bg: linear-gradient(135deg, #0a0a1a 0%, #0a0a0a 100%);
}

[data-theme="vestibular"] {
  --sd-accent: #f5365c;
  --sd-accent-light: #ff6b8a;
  --sd-accent-rgb: 245, 54, 92;
  --sd-gradient: linear-gradient(135deg, #f5365c, #ff6b8a);
  --sd-hero-bg: linear-gradient(135deg, #1a0a10 0%, #0a0a0a 50%, #150a15 100%);
  --sd-cta-bg: linear-gradient(135deg, #1a0a10 0%, #0a0a0a 100%);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
}

/* === Navbar === */
.navbar-custom {
  background: var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.navbar-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand-custom {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.navbar-brand-custom span { color: var(--accent-green); }

.btn-back {
  background: var(--accent-green);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

/* === Hero === */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--sd-hero-bg);
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(var(--sd-accent-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--sd-accent-rgb), 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--sd-accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--sd-accent-rgb), 0.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title span { color: var(--sd-accent); }

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--sd-gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(var(--sd-accent-rgb), 0.3);
}

.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--sd-accent-rgb), 0.4);
  color: #fff;
}

.btn-secondary-hero {
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* === Section Heading === */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* === Features === */
.features-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.feature-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sd-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--sd-accent-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(var(--sd-accent-rgb), 0.1);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--sd-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #fff;
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Method === */
.method-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.method-step {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px 28px 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.method-step:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--sd-accent-rgb), 0.3);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--sd-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--sd-accent-rgb), 0.4);
}

.step-icon {
  font-size: 2.5rem;
  color: var(--sd-accent);
  margin: 16px 0;
}

.method-step h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.method-step p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* === Results === */
.results-section {
  padding: 80px 0;
  background: var(--sd-gradient);
  position: relative;
  overflow: hidden;
}

.results-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.results-heading-white { color: #fff; }
.results-subheading-white { color: rgba(255,255,255,0.85); }

.result-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  transition: all 0.3s ease;
}

.result-card:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

.result-number {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.result-label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* === Testimonials Section (service pages) === */
.sd-testimonials {
  padding: 100px 0;
  background: var(--bg-primary);
}

.sd-testimonials .section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.sd-testimonials .testimonial-card-premium {
  opacity: 1;
  transform: none;
  animation: none;
}

.sd-testimonials .testimonials-cta {
  text-align: center;
  margin-top: 40px;
}

.sd-testimonials .btn-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: transparent;
  border: 2px solid var(--accent-green);
  border-radius: 50px;
  color: var(--accent-green);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sd-testimonials .btn-ver-todos:hover {
  background: var(--accent-green);
  color: #fff;
  transform: translateY(-3px);
}

/* === Pricing === */
.pricing-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 48px 40px;
  border: 2px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--sd-accent);
  box-shadow: 0 12px 40px rgba(var(--sd-accent-rgb), 0.15);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sd-gradient);
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-description {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.plan-price { margin: 28px 0; }

.price-currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  vertical-align: top;
}

.price-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  display: block;
  margin-top: 8px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  text-align: left;
}

.plan-features li {
  padding: 10px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.plan-features li i { color: var(--accent-green); font-size: 1.1rem; }

.btn-pricing {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-pricing-primary {
  background: var(--sd-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--sd-accent-rgb), 0.3);
}

.btn-pricing-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--sd-accent-rgb), 0.4);
  color: #fff;
}

.btn-pricing-secondary {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-pricing-secondary:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* === FAQ === */
.faq-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover { border-color: rgba(var(--sd-accent-rgb), 0.3); }

.faq-question {
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.faq-question:hover { color: var(--sd-accent); }

.faq-question i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  color: var(--sd-accent);
}

.faq-answer {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
  display: none;
}

/* === CTA === */
.cta-section {
  padding: 100px 0;
  background: var(--sd-cta-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--sd-accent-rgb), 0.06) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.cta-small-text {
  font-size: 0.9rem;
  margin-top: 24px;
  color: var(--text-muted);
}

.btn-cta-large {
  padding: 18px 44px;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--sd-gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 32px rgba(var(--sd-accent-rgb), 0.3);
}

.btn-cta-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(var(--sd-accent-rgb), 0.4);
  color: #fff;
}

/* === Footer === */
.footer-grid {
  padding: 28px 0 20px;
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.footer-compact-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.footer-logo span { color: var(--primary-color); }
.footer-logo:hover { color: #ffffff; }

.footer-tagline {
  color: #555555;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 320px;
}

.footer-compact-newsletter {
  width: 360px;
  flex-shrink: 0;
}

.newsletter-input-group {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(66,185,131,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
  border-color: rgba(66,185,131,0.35);
  box-shadow: 0 0 0 3px rgba(66,185,131,0.06);
}

.newsletter-input-group input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 16px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}

.newsletter-input-group input[type="email"]::placeholder { color: #555555; }

.newsletter-input-group button {
  background: var(--primary-color);
  border: none;
  padding: 11px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.newsletter-input-group button:hover { background: #2ecc71; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  color: #555555;
  font-size: 0.82rem;
  margin: 0;
}

.footer-bottom strong { color: #888888; }

.footer-credits a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credits a:hover { color: #2ecc71; }

/* === Scroll to Top === */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--sd-accent);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  z-index: 999;
  display: none;
  transition: all 0.3s;
  align-items: center;
  justify-content: center;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-heading h2 { font-size: 2rem; }
  .cta-section h2 { font-size: 2rem; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary-hero, .btn-secondary-hero { width: 100%; justify-content: center; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-8px); }

  .footer-compact {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-compact-brand { align-items: center; }
  .footer-compact-newsletter { width: 100%; }
}
