@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --primary: #c0a375;
  /* Gold */
  --primary-hover: #a07e49;
  --success: #90a878;
  /* Muted Green */
  --success-hover: #6a8153;
  --dark: #203748;
  /* Slate Blue */
  --light: #f9f9f9;
  --white: #ffffff;
  --text: #535353;
  --text-light: #8c8c8c;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 0 30px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  text-decoration: none;
}

.btn i {
  font-size: 18px !important;
  padding: 14px 20px !important;
  background-color: rgba(0, 0, 0, 0.15) !important;
  margin-right: 20px !important;
  border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-outline-white i {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
}

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

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

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

.btn-success:hover {
  background-color: var(--success-hover);
  border-color: var(--success-hover);
  color: var(--white);
}

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

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--text);
}

/* Typography Helpers */
.section-title {
  font-weight: bold;
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.section-subtitle {
  display: block;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 50px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: all 0.4s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(32, 55, 72, 0.98);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
  transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links>li>a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 3px;
  padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text) !important;
  font-size: 12px;
}

.dropdown-menu a:hover {
  background-color: var(--light);
  color: var(--primary) !important;
}

/* Slider Section */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* Slight dark overlay */
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 0.2843em;
  margin-top: 3.9rem;
  line-height: 1.1;
  word-wrap: break-word;
}

.hero-content p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Fix for the small ACESSO AOS text */
.nav-links span {
  white-space: nowrap;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
  transition: color 0.3s;
}

.slider-btn:hover {
  color: var(--white);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--white);
}

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

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

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

.bg-dark h2,
.bg-dark h3 {
  color: var(--white);
}

.bg-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* Empresa Section */
.empresa-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.empresa-text {
  flex: 1;
}

.empresa-text p {
  font-size: 16px;
  margin-bottom: 20px;
}

.empresa-img {
  flex: 1;
}

.empresa-img img {
  width: 100%;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto; /* for swiper */
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-content h4 {
  font-size: 16px;
  margin-bottom: 15px;
}

.blog-content p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.blog-content .btn {
  width: 100%;
  text-align: center;
}

/* Swiper Customizations */
.blog-swiper {
  padding: 20px 40px 60px 40px !important; /* Extra horizontal padding for arrows */
  margin: 0 -40px; /* Offset the padding visually so grid aligns with container */
}

.swiper-button-next,
.swiper-button-prev {
  background-color: var(--white);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: var(--primary) !important;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--primary);
  color: var(--white) !important;
  transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background-color: #ccc !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary) !important;
  transform: scale(1.3);
}

/* Exames Grid */
.exames-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.exame-box {
  background: var(--white);
  padding: 40px;
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}

.exame-box ul {
  list-style: none;
}

.exame-box li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.exame-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* Convenios */
.convenios-flex {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
}

.conv-item {
  background: var(--white);
  padding: 20px;
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.conv-item img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.conv-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

/* Footer */
.footer {
  background-color: #1a2c3a;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.footer p,
.footer a {
  font-size: 14px;
  line-height: 1.8;
}

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

.footer a:hover {
  color: var(--white);
}

.footer-logo img {
  max-width: 150px;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #111d26;
  padding: 20px 0;
  font-size: 13px;
}

/* Depoimentos */
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dep-card {
  background: var(--light);
  padding: 40px;
  border-radius: 5px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.dep-card p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 30px;
}

.dep-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dep-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.dep-author h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 2px;
}

.dep-author span {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  color: var(--text-light);
}

/* Contato */
.contato-form {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  flex: 100%;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  background-color: var(--white);
  transition: border-color 0.3s;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .logo img {
    height: auto !important;
    max-width: 200px; /* Prevent logo from pushing hamburger menu off screen */
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    padding: 5px; /* Increase tap area */
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    padding: 100px 30px 40px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links li a {
    font-size: 16px;
    color: var(--dark);
    display: block;
    padding: 10px 0;
  }

  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 20px;
  }

  .nav-links .dropdown:hover .dropdown-menu {
    display: block;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .empresa-flex {
    flex-direction: column;
  }

  .convenios-flex {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .blog-grid,
  .exames-grid,
  .depoimentos-grid {
    grid-template-columns: 1fr;
  }

  .form-row.three-cols { 
    flex-direction: column; 
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 26px; /* Scaled down for mobile */
    margin-top: 1.5rem;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 14px; /* Scaled down for mobile */
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px; /* Nicer gap between buttons */
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0 15px 0 0; /* Less right padding on mobile */
  }

  .hero-buttons .btn i {
    padding: 12px 15px !important; /* Slightly smaller icon block */
    margin-right: 15px !important;
  }

  .slider-btn {
    display: none !important; /* Hide arrows on mobile to prevent text overlap */
  }

  .hero-overlay {
    background-color: rgba(0, 0, 0, 0.65); /* Darker overlay for better legibility on mobile */
  }

  /* Adjust Newsletter form for mobile */
  #newsletter form {
    flex-direction: column;
  }
  #newsletter form input {
    border-radius: 3px;
    margin-bottom: 10px;
  }
  #newsletter form button {
    border-radius: 3px;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .convenios-flex {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.btn-float {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, background-color 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.btn-whatsapp {
  background-color: #25d366;
}
.btn-whatsapp:hover {
  background-color: #20b858;
}

.btn-top {
  background-color: var(--dark);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.btn-top.show {
  opacity: 1;
  pointer-events: auto;
}
.btn-top:hover {
  background-color: var(--primary);
}

/* Modal Iframe Customizations (Blog Post) */
.fancybox-slide--iframe .fancybox-content {
  max-width: 800px !important;
  width: 100%;
  height: 85vh !important;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden !important;
}