/* ==========================================
   VARIÁVEIS CSS
   ========================================== */
:root {
  --primary-color: #c89b8c;
  --secondary-color: #18342f;
  --third-color: #b3746c;
  --accent-color: #d4a5a5;
  --light-bg: #faf8f6;
  --white: #ffffff;
  --text-dark: #2d3436;
  --text-light: #636e72;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  background-color: var(--white);
  padding: 1.2rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 60px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

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

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--light-bg) 0%, #fff5f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h1 .highlight {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Hero Shape - Responsivo */
.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.hero-shape {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  /* border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(200, 155, 140, 0.3);
  overflow: hidden;
  /* animation: morphing 8s ease-in-out infinite; */
}

.hero-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-icon {
  font-size: 200px;
  color: white;
  opacity: 0.5;
}

@keyframes morphing {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-whatsapp {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(200, 155, 140, 0.3);
  border: none;
}

.btn-whatsapp:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200, 155, 140, 0.4);
}

.btn-whatsapp i {
  font-size: 24px;
}

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   NEFROLOGIA SECTION
   ========================================== */
.nefrologia-section {
  padding: 100px 0;
  background-color: var(--white);
}

.nefrologia-text h3 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.nefrologia-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.info-box {
  background-color: var(--light-bg);
  padding: 2.5rem;
  border-radius: 20px;
  border-left: 5px solid var(--primary-color);
  margin-top: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-box h4 {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box ul li {
  padding: 0.7rem 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
}

.info-box ul li::before {
  content: "●";
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ==========================================
   SOBRE SECTION
   ========================================== */
.sobre-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, #fff5f0 100%);
}

/* Sobre Shape - Responsivo */
.sobre-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.sobre-shape {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4 / 5;
  background: var(--primary-color);
  /* border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(44, 95, 111, 0.3);
  overflow: hidden;
  /* animation: morphing2 8s ease-in-out infinite; */
}

.sobre-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes morphing2 {
  0%,
  100% {
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  }
  25% {
    border-radius: 60% 40% 50% 50% / 45% 50% 50% 55%;
  }
  50% {
    border-radius: 40% 60% 60% 40% / 50% 35% 65% 50%;
  }
  75% {
    border-radius: 55% 45% 40% 60% / 60% 45% 55% 40%;
  }
}

.sobre-text h3 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 400;
}

.sobre-text .subtitle {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 400;
}

.sobre-text .crm {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.sobre-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ==========================================
   ESPECIALIDADES SECTION
   ========================================== */
.especialidades-section {
  padding: 100px 0;
  background-color: var(--white);
}

.especialidade-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid var(--light-bg);
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.especialidade-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.especialidade-card:hover::before {
  opacity: 0.05;
}

.especialidade-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(200, 155, 140, 0.2);
  border-color: var(--primary-color);
}

.especialidade-card i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.especialidade-card:hover i {
  transform: scale(1.15);
  color: var(--secondary-color);
}

.especialidade-card h4 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.especialidade-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ==========================================
   ATENDIMENTO SECTION
   ========================================== */
.atendimento-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, #fff5f0 100%);
}

.atendimento-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.atendimento-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(200, 155, 140, 0.2);
}

.atendimento-item i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.atendimento-item:hover i {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.atendimento-item h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 1.3rem;
}

.atendimento-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================
   ESPAÇO SECTION
   ========================================== */
.espaco-section {
  padding: 100px 0;
  background-color: var(--white);
}

.espaco-card {
  position: relative;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.espaco-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.espaco-card .placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

.espaco-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   AGENDE SECTION
   ========================================== */
.agende-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, #fff5f0 100%);
  text-align: center;
  color: var(--secondary-color);
}

.agende-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.agende-section p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-agende {
  background-color: var(--white);
  color: var(--secondary-color);
  padding: 18px 50px;
  border-radius: 50px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: none;
}

.btn-agende:hover {
  background-color: var(--light-bg);
  color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-agende i {
  font-size: 28px;
}

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

.accordion-button {
  background-color: var(--light-bg);
  color: var(--secondary-color);
  font-weight: 400;
  font-size: 1.1rem;
  padding: 1.5rem 2rem;
  border: none;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(25%) sepia(30%) saturate(1000%)
    hue-rotate(160deg);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 2rem;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
  background-color: var(--light-bg);
}

.accordion-item {
  border: none;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background-color: var(--secondary-color);

  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--white);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  line-height: 2;
  display: block;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section i {
  margin-right: 8px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(200, 155, 140, 0.4);
}

.social-links i {
  font-size: 22px;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .section-title h2 {
    font-size: 2.3rem;
  }

  .hero-shape,
  .sobre-shape {
    max-width: 400px;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .hero-shape,
  .sobre-shape {
    max-width: 350px;
  }

  .placeholder-icon {
    font-size: 150px;
  }

  .agende-section h2 {
    font-size: 2.2rem;
  }

  .agende-section p {
    font-size: 1.1rem;
  }

  .especialidade-card,
  .atendimento-item {
    padding: 2rem 1.5rem;
  }

  .info-box {
    padding: 2rem;
  }

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

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .hero-shape,
  .sobre-shape {
    max-width: 300px;
  }

  .placeholder-icon {
    font-size: 120px;
  }

  .btn-whatsapp,
  .btn-agende {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .btn-whatsapp i,
  .btn-agende i {
    font-size: 20px;
  }

  .especialidade-card i,
  .atendimento-item i {
    font-size: 3rem;
  }

  .espaco-card {
    height: 250px;
  }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

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

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* Loading animation for images */
img {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
