:root {
  --primary-color: #005f73;
  --secondary-color: #0a9396;
  --accent-color: #e9d8a6;
  --dark-bg: #1d2d35;
  --light-bg: #f4f4f4;
  --text-color: #333;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --gradient: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
}

nav a:hover {
  color: var(--secondary-color);
}

.btn-contact {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
}

.btn-contact:hover {
  background-color: var(--secondary-color);
}

.mobile-menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 60px;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Telemedicine Section */
.telemedicine {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.telemedicine .container {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.tele-content {
  flex: 1;
  min-width: 300px;
}

.tele-image {
  flex: 1;
  min-width: 300px;
}

.tele-image img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badge {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
}

.telemedicine h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin: 1rem 0;
  line-height: 1.2;
}

.highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.tele-benefits {
  margin: 1.5rem 0;
}

.tele-benefits li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.tele-benefits i {
  color: var(--secondary-color);
}

.highlight-list-item {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.1rem;
  background-color: rgba(10, 147, 150, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
}

.btn-gradient {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(10, 147, 150, 0.4);
  transition: var(--transition);
  margin-top: 1.5rem;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 147, 150, 0.6);
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.legal-note {
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* Products Section */
.products {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 4rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.feature-row:hover .feature-image img {
  transform: scale(1.03);
}

.feature-text {
  flex: 1;
  min-width: 300px;
}

.feature-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.feature-text p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.05rem;
}

.btn-outline {
  display: inline-block;
  margin-top: 1rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Product Carousel Styles */
.product-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
}

.product-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.product-carousel .carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.product-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #fff;
}

#carousel-botas,
#carousel-eletroterapia,
#carousel-cinta {
  min-height: 500px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0 10px;
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--dark-bg);
  color: var(--white);
  text-align: center;
}

.about h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.about p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.values-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.value-item {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.value-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.value-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.highlight-card {
  background: linear-gradient(135deg, var(--white) 0%, #f0fdf4 100%);
  border: 2px solid #25D366;
  transform: scale(1.05);
  z-index: 1;
}

.highlight-card:hover {
  transform: scale(1.08);
}

.icon-box {
  width: 70px;
  height: 70px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.highlight-card .icon-box {
  background-color: #dcfce7;
  color: #25D366;
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--secondary-color);
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.btn-whatsapp-large:hover {
  background-color: #128C7E;
  transform: scale(1.05);
}

.phone-number {
  font-size: 0.9rem;
  color: #666;
}

.cnpj {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
}

.flags-container {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.flag-small {
  width: 40px;
  height: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #111;
  color: #888;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.7rem;
  margin-top: 1rem;
  opacity: 0.7;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
}

.fade-in-up.delay-2 {
  animation-delay: 0.4s;
  opacity: 0;
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .feature-text {
    text-align: center;
  }

  .highlight-card {
    transform: scale(1);
  }

  .highlight-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .telemedicine .container {
    flex-direction: column;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    gap: 1rem;
  }

  nav.active ul {
    display: flex;
  }

  .mobile-menu-icon {
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }

  .telemedicine h2,
  .about h2 {
    font-size: 2rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

#telemetry-registration-form {
  padding-bottom: 2rem;
}

.modal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--secondary-color);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 95, 115, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success Message */
.success-message {
  text-align: center;
  display: none;
}

.success-message i {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.success-message h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.success-message p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- BLOG & TUTORIAIS STYLES --- */

.blog-listing {
  padding: 10rem 0 5rem;
  background-color: var(--light-bg);
  min-height: 80vh;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-content h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.blog-card-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  margin-top: auto;
  color: var(--secondary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Single Tutorial Page */
.tutorial-page {
  padding: 10rem 0 5rem;
}

.tutorial-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.tutorial-header h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tutorial-meta {
  color: #888;
  font-size: 0.9rem;
}

.tutorial-hero-image {
  display: block;
  margin: 0 auto 3rem;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
}

.other-tutorials {
  padding-top: 3rem;
  border-top: 2px solid #f0f0f0;
}

.other-tutorials h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.tutorial-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}

.tutorial-content h2 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
}

.tutorial-content p {
  margin-bottom: 1.5rem;
}

.tutorial-content img {
  border-radius: 10px;
  margin: 2rem 0;
}

/* Sharing Component */
.share-section {
  max-width: 800px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  transition: var(--transition);
}

.share-btn.whatsapp {
  background-color: #25D366;
}

.share-btn.facebook {
  background-color: #1877F2;
}

.share-btn.copy {
  background-color: #666;
}

.share-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .tutorial-header h1 {
    font-size: 2rem;
  }

  .blog-listing,
  .tutorial-page {
    padding-top: 8rem;
  }
}

/* Tutorial Content Styling */
.tutorial-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.15rem;
  color: #444;
}

.tutorial-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 3rem 0;
  display: block;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 3rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .tutorial-content p {
    font-size: 1.05rem;
  }
  .tutorial-image, .video-container {
    margin: 2rem 0;
    border-radius: 12px;
  }
}
