/* ==========================================================================
   Cardio Life Palmas — CSS Estático Moderno (Vibe Coding)
   ========================================================================== */

/* --- Variables --- */
:root {
  --primary: #951f2c;
  --primary-light: #c2293a;
  --primary-dark: #6e1721;
  --text: #333;
  --text-light: #656565;
  --bg: #fff;
  --bg-light: #fdfdfd;
  --bg-gray: #f5f5f5;
  --font: 'Lato', sans-serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius: 8px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); color: var(--primary); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; font-weight: 700; border-radius: 4px;
  transition: all var(--transition); text-transform: uppercase;
  letter-spacing: 1px; cursor: pointer; border: none; font-size: 0.95rem;
}
.btn-primary {
  background: var(--primary); color: #fff; box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--primary-light); color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar { background: var(--primary); color: #fff; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: flex-end; }
.top-bar-social, .social-links { display: flex; gap: 15px; }
.top-bar-social a, .social-links a {
  color: #fff; font-size: 1.2rem; display: flex; align-items: center; opacity: 0.8; transition: all var(--transition);
}
.top-bar-social a:hover, .social-links a:hover { opacity: 1; color: #fff; transform: scale(1.15); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header, .header { background: var(--bg); padding: 20px 0; box-shadow: var(--shadow-sm); position: relative; z-index: 100; }
.header-inner, .header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

.logo img { max-height: 80px; width: auto; transition: transform var(--transition); }
.logo:hover img { transform: scale(1.02); }

.header-info-boxes, .header-info { display: flex; gap: 30px; align-items: center; }

.info-box, .info-item { display: flex; align-items: center; gap: 12px; }
.info-box > i, .icon-wrapper {
  min-width: 42px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-gray); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem; transition: all var(--transition);
}
.info-box:hover > i, .info-item:hover .icon-wrapper {
  background: var(--primary); color: #fff; transform: rotateY(180deg);
}
.info-box-content, .text-wrapper { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--text-light); }
.info-box-content strong, .text-wrapper strong { color: var(--text); font-weight: 700; font-size: 0.95rem; }
.info-box-content a, .text-wrapper a { color: var(--text); font-weight: 600; }
.info-box-content a:hover, .text-wrapper a:hover { color: var(--primary); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  background: #fff; border-top: 1px solid #eee; box-shadow: var(--shadow-md);
  position: sticky; top: 0; z-index: 999; transition: all var(--transition);
}
.navbar.sticky-active { background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); }
.navbar-inner, .nav-container { display: flex; justify-content: center; align-items: center; }
.nav-menu { display: flex; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 18px 22px; color: var(--text); font-weight: 700;
  text-transform: uppercase; font-size: 0.9rem; position: relative; transition: color var(--transition);
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
  background: var(--primary); transform: scaleX(0); transition: transform var(--transition);
  transform-origin: bottom right;
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); transform-origin: bottom left; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.menu-toggle, .nav-toggle {
  display: none; background: none; border: none; font-size: 2rem;
  color: var(--primary); cursor: pointer; padding: 10px;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider { width: 100%; height: calc(100vh - 220px); min-height: 350px; max-height: 700px; background: #111; }
.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; overflow: hidden; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.swiper-slide-active img { transform: scale(1); }
.swiper-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 100%);
}
.swiper-button-next, .swiper-button-prev {
  color: #fff !important; background: rgba(149,31,44,0.7);
  width: 48px !important; height: 48px !important; border-radius: 50%;
  transition: all var(--transition) !important;
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 18px !important; font-weight: bold; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--primary); transform: scale(1.1); }
.swiper-pagination-bullet { background: #fff !important; opacity: 0.5 !important; }
.swiper-pagination-bullet-active { background: var(--primary) !important; opacity: 1 !important; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section, .section-padding { padding: 70px 0; }
.section-title {
  text-align: center; font-size: 2.2rem; margin-bottom: 45px;
  position: relative; padding-bottom: 15px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; background: var(--primary); border-radius: 2px;
}

/* --- Convênios Carousel --- */
.section-title-left { text-align: left; font-size: 1.8rem; margin-bottom: 25px; color: var(--primary); font-weight: 700; }
.convenios-wrapper { position: relative; padding: 0 50px; }
.convenios-carousel { padding: 10px 0; }
.convenios-carousel .swiper-slide {
  display: flex; justify-content: center; align-items: center;
  background: #fff; height: 100px; border: 1px solid #eee;
}
.convenios-carousel img {
  max-height: 70px; width: auto; max-width: 90%; object-fit: contain;
}
.convenios-wrapper .swiper-button-next,
.convenios-wrapper .swiper-button-prev {
  width: 40px; height: 40px; background: #fff; border: 1px solid #007bff; border-radius: 2px; color: #007bff; margin-top: -20px;
}
.convenios-wrapper .swiper-button-next:hover,
.convenios-wrapper .swiper-button-prev:hover { background: #007bff; color: #fff; transform: none; }
.convenios-wrapper .swiper-button-next:after,
.convenios-wrapper .swiper-button-prev:after { font-size: 16px !important; }
.convenios-wrapper .swiper-button-prev { left: 0; }
.convenios-wrapper .swiper-button-next { right: 0; }


/* --- Service Cards (3 cards) --- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.cards-grid-5 { grid-template-columns: repeat(5, 1fr); }

.service-card {
  background: var(--bg-light); padding: 30px 10px; border-radius: 0;
  transition: all var(--transition); display: flex; align-items: flex-start; gap: 15px; text-align: left;
}
.service-card:hover { box-shadow: none; transform: none; }
.service-card > i { font-size: 72px; width: 72px; height: 72px; line-height: 72px; color: var(--primary); flex-shrink: 0; text-align: center; }
.service-card-body { flex: 1; }
.service-card h3 { font-size: 20px; text-transform: uppercase; margin: 10px 0; color: var(--primary); font-weight: 700; line-height: 20px; }
.service-card h3 a { color: var(--primary); }
.service-card h3 a:hover { color: var(--primary); text-decoration: none; }
.service-card p { font-size: 16px; color: var(--text); margin: 0; }
.card-link { display: none; } /* Removido para igualar ao original */

/* --- Specialty / Exam Cards --- */
.specialty-card {
  background: var(--bg-light); border-radius: var(--radius); overflow: hidden;
  text-align: center; transition: all var(--transition); border: 1px solid #eee;
}
.specialty-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.specialty-card img {
  width: 100%; height: auto; display: block; border-bottom: 1px solid #eee;
}
.specialty-card h3 { padding: 15px 10px; font-size: 0.95rem; text-transform: uppercase; margin: 0; }

/* --- Instagram --- */
.instagram-placeholder {
  text-align: center; padding: 40px; background: var(--bg-gray);
  border-radius: var(--radius); font-size: 1.1rem;
}
.instagram-placeholder a { font-weight: 700; }

.ig-static-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.ig-post {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.ig-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  transition: transform var(--transition);
}
.ig-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition);
}
.ig-post:hover .ig-overlay { opacity: 1; }
.ig-post:hover .ig-img { transform: scale(1.05); }

/* --- Blog Cards --- */
.blog-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition); border: 1px solid #eee;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.blog-card-image {
  width: 100%; height: 200px; background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
  display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 0.9rem;
}
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.blog-card-body .blog-date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; display: block; }
.blog-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 15px; }

/* --- Page Title --- */
.page-title-section {
  background: var(--bg-gray); padding: 50px 0; text-align: center;
}
.page-title-section h1 { font-size: 2.5rem; margin: 0; }

/* --- Contact Form --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; color: var(--text); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px;
  font-family: var(--font); font-size: 1rem; transition: border-color var(--transition);
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(149,31,44,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.contact-info-box {
  background: var(--bg-gray); padding: 30px; border-radius: var(--radius);
}
.contact-info-box h3 { margin-bottom: 20px; }
.contact-info-box p { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.contact-info-box i { color: var(--primary); font-size: 1.3rem; }

/* Contact Page Grid */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: flex-start;
}
.contact-map {
  margin-top: 25px;
  border-radius: 8px;
  overflow: hidden;
}

/* ==========================================================================
   Footer Top
   ========================================================================== */
.footer-top { padding: 50px 0; background: #fff; border-top: 1px solid #eee; }
.footer-top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-top-col h4 { color: var(--text-light); font-size: 1.3rem; margin-bottom: 15px; }
.footer-top-col iframe { border-radius: var(--radius); max-width: 100%; }
.footer-top-col address { font-style: normal; color: var(--text-light); line-height: 1.8; }
.footer-top-col address a { color: var(--text); font-weight: 600; }
.footer-top-col address a:hover { color: var(--primary); }
.footer-top-col address i { color: var(--primary); margin-right: 5px; }
.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.3rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: scale(1.1); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer, .footer {
  background: var(--bg-gray); padding: 25px 0; text-align: center; border-top: 1px solid #e0e0e0;
}
.site-footer p, .footer-content p { color: var(--text-light); font-size: 0.9rem; }

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.whatsapp-float {
  position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
  background: #25d366; color: #FFF; border-radius: 50%;
  font-size: 34px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.whatsapp-float:hover {
  color: #FFF; background: #20b858;
  transform: scale(1.1) rotate(-5deg); box-shadow: 2px 2px 15px rgba(37,211,102,0.5);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- WOW Animations Custom Classes --- */
.sppb-wow { visibility: hidden; }

@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.fadeInLeft { animation-name: fadeInLeft; visibility: visible !important; }

@keyframes flipInX {
  from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
  40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); animation-timing-function: ease-in; }
  60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; }
  80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }
  to { transform: perspective(400px); opacity: 1; }
}
.flipInX { animation-name: flipInX; backface-visibility: visible !important; visibility: visible !important; }

.animated { animation-fill-mode: both; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .header-info-boxes, .header-info { display: none; }
  .navbar-inner, .nav-container { justify-content: space-between; }
  .menu-toggle, .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; width: 100%; background: #fff;
    flex-direction: column; box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.5s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-menu.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .nav-menu a { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
  .hero-slider { height: 50vh; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .cards-grid, .cards-grid-5 { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 28px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  .section, .section-padding { padding: 50px 0; }
  .page-title-section { padding: 35px 0; }
  .page-title-section h1 { font-size: 2rem; }
  .ig-static-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- FIX GLOBAL FONT AWESOME ICONS --- */
i.fas, i.far, i.fab { font-family: 'Font Awesome 5 Free' !important; font-style: normal !important; font-variant: normal !important; text-rendering: auto !important; line-height: 1; }
i.fas { font-weight: 900 !important; }
i.far { font-weight: 400 !important; }
i.fab { font-family: 'Font Awesome 5 Brands' !important; font-weight: 400 !important; }

