/* ==================================================== */
/* ==================== Reset e Base ================== */
/* ==================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

p,
span {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

a,
p,
li,
span,
button,
label,
input,
textarea {
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dent-blue);
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 900px) {
  .container {
    padding: 0 28px;
  }
}

/* ================================================== */
/* ==================== VARIABLES ===================== */
/* ================================================== */
:root {
  --dent-blue: #0f5876;
  --dent-blue-dark: #0a445e;
  --dent-text: #ffffff;
  --dent-pill-bg: #ffffff;
  --dent-pill-text: #0f5876;
  --dent-btn: #0f5876;
  --dent-btn-text: #ffffff;
  --hero-bg-color: #ffffff;
  --dent-blue-light: #f0fbff;
  --dent-accent: rgb(51, 207, 255);
}

/* ================================================== */
/* ==================== LOADER ======================== */
/* ================================================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  color: var(--dent-blue);
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 999999999;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-svg {
  width: 120px;
  height: 120px;
}

/* ================================================== */
/* ==================== TOP BAR ======================= */
/* ================================================== */
.top-contact-bar {
  background-color: var(--dent-blue);
  color: var(--dent-text);
  padding: 10px 0;
  font-size: 13px;
  height: 44px;
}

.container-top {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1720px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-icon {
  width: 14px;
  height: 14px;
  color: var(--dent-accent);
}

.top-item-address,
.top-item-hours,
.top-right {
  display: none;
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-social-link {
  color: #ffffff !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-social-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

.top-social-link:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

@media (min-width: 600px) {
  .top-item-address {
    display: flex;
  }
}

@media (min-width: 768px) {
  .top-contact-bar {
    height: 54px;
    font-size: 14px;
    padding: 16px 0;
  }

  .container-top {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .top-right {
    display: flex;
  }

  .hide-mobile {
    display: flex;
  }

  .ms-auto {
    margin-left: auto;
  }
}

@media (min-width: 950px) {
  .top-item-hours {
    display: flex;
  }
}

/* ================================================== */
/* ==================== MAIN WRAPPER ================== */
/* ================================================== */
.main-wrapper {
  background: #ffffff;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  min-height: 100vh;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* ================================================== */
/* ==================== HEADER ======================== */
/* ================================================== */
.header {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  transition: top 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  justify-content: center;
  width: 100%;
}

.header .container {
  pointer-events: auto;
  width: 100%;
  max-width: 1720px;
  padding: 0 20px;
  transition: none;
}

.barra {
  background: var(--dent-pill-bg);
  color: var(--dent-pill-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 72px;
  border-radius: 40px !important;
  transition:
    height 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.8s ease;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.barra.expansivel {
  height: 336px;
  border-radius: 40px !important;
  transition:
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.8s ease-in-out,
    border-radius 0.3s ease;
}

.barra-topo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 72px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dent-pill-text);
}

.logo-icon {
  display: flex;
  align-items: center;
  color: var(--dent-accent);
}

.logo-text {
  color: var(--dent-pill-text);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: var(--dent-blue);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 10px;
}

.menu-btn span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .header {
    top: 64px;
  }

  .header .container {
    padding: 0 40px;
  }
}

.nav-cta-container {
  display: none;
}

@media (min-width: 900px) {
  .barra {
    height: 88px;
  }

  .barra-topo {
    height: 88px;
    padding: 0 28px;
  }

  .logo-icon svg {
    width: 28px;
    height: 28px;
  }

  .logo {
    font-size: 24px;
  }

  .nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin-right: -40px; /* Offset to keep menu centered even with CTA button */
  }

  .nav-desktop ul {
    display: flex;
    gap: 30px;
    list-style: none;
  }

  .nav-desktop ul li a {
    color: var(--dent-pill-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
  }

  .nav-desktop ul li a:hover {
    opacity: 0.7;
  }

  .nav-cta-container {
    display: block;
  }

  .nav-cta-btn {
    background: var(--dent-accent);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(51, 207, 255, 0.2);
  }

  .nav-cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(51, 207, 255, 0.3);
  }

  .menu-btn {
    display: none;
  }
}

/* ================================================== */
/* ==================== HERO SECTION ================== */
/* ================================================== */
.hero {
  position: relative;
  height: 100vh;
  padding-top: 120px;
  padding-bottom: 280px;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 80%
    ),
    linear-gradient(
      to bottom,
      transparent 50%,
      rgba(255, 255, 255, 0.3) 80%,
      #ffffff 100%
    ),
    url("../images/young-female-patient-visiting-dentist-office.jpg");
  background-size: cover;
  background-position: center right;
  background-color: #ffffff;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 100px;
  position: relative;
  z-index: 20;
  align-items: flex-start;
  text-align: left;
}

.hero-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--dent-pill-text);
}

.hero-description {
  font-size: 16px;
  color: #4a6f80;
  max-width: 700px;
  line-height: 1.5;
  margin: 0;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-hero {
  display: inline-block;
  min-width: 220px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-primary {
  background: var(--dent-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(15, 88, 118, 0.2);
}

.btn-hero-primary:hover {
  background: var(--dent-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 88, 118, 0.3);
}

.btn-hero-secondary {
  background: #ffffff;
  color: var(--dent-pill-text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .hero {
    height: 110vh;
    padding-top: 80px;
    padding-bottom: 200px;
  }

  .hero-content {
    gap: 24px;
    max-width: 700px;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-description {
    font-size: 18px;
  }
}

@media (min-width: 780px) and (min-height: 720px) {
  .hero {
    height: 110vh;
    padding-top: 160px;
  }
}

@media (min-width: 1080px) {
  .hero-btns {
    justify-content: flex-start;
    width: auto;
  }
}

/* ================================================== */
/* ==================== OVERLAP SECTION =============== */
/* ================================================== */
.overlap-section {
  position: relative;
  margin-top: -4px;
  background-color: #ffffff;
  border-radius: 60px 60px 0 0;
  padding: 80px 0;
  z-index: 10;
}

.services-content {
  padding: 40px 12px;
  background-color: var(--dent-blue-light);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.section-subtitle {
  color: var(--dent-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  color: var(--dent-blue);
  font-size: 36px;
  font-weight: 800;
}

.services-slider-container {
  position: relative;
  width: 100%;
}

.services-swiper {
  width: 100%;
  padding: 10px 0 90px 0 !important;
}

.swiper-slide {
  height: auto !important;
}

.service-card {
  height: 100%;
}

.swiper-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 20;
}

.swiper-nav-btn {
  width: 54px;
  height: 54px;
  background: #ffffff;
  color: var(--dent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(15, 88, 118, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(15, 88, 118, 0.05);
}

.swiper-nav-btn:hover {
  background: var(--dent-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 88, 118, 0.2);
}

.swiper-nav-btn svg {
  width: 24px;
  height: 24px;
}

.service-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(15, 88, 118, 0.03);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 88, 118, 0.05);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/young-female-patient-visiting-dentist-office.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transform: scale(1.3) rotate(3deg);
  filter: brightness(0.9);
  transition:
    transform 1s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.8s ease;
  z-index: 0;
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(15, 88, 118, 0.05);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: all 0.5s ease;
}

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--dent-accent);
  transition: all 0.5s ease;
}

.service-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dent-blue);
  margin-bottom: 16px;
}

.service-card-desc {
  font-size: 16px;
  color: #5a7a8a;
  line-height: 1.7;
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--dent-blue);
  font-size: 16px;
  transition: all 0.3s ease;
}

.link-arrow {
  width: 18px;
  height: 18px;
  opacity: 1;
  transform: translateX(5px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 900px) {
  .services-content {
    padding: 60px 20px;
    border-radius: 60px;
    gap: 48px;
  }

  .service-card {
    padding: 48px 40px;
    border-radius: 40px;
  }

  .service-card::after {
    opacity: 0;
    transform: scale(1.5) rotate(0deg);
    filter: none;
  }

  .service-card:hover::after {
    opacity: 0.3;
    transform: scale(1.3) rotate(3deg);
    filter: brightness(0.9);
  }

  .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(15, 88, 118, 0.04);
    border-color: rgba(15, 88, 118, 0.1);
  }

  .service-card:hover .service-icon-box {
    background: var(--dent-blue);
    transform: rotate(-5deg);
  }

  .service-card:hover .service-icon {
    color: #ffffff;
  }

  .service-link {
    opacity: 0;
    transform: translateX(-15px);
    gap: 8px;
  }

  .service-card:hover .service-link {
    opacity: 1;
    transform: translateX(5px);
    gap: 12px;
  }

  .swiper-controls {
    left: 0;
    transform: none;
  }

  .services-swiper {
    padding-bottom: 80px !important;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 42px;
  }
}

/* ================================================== */
/* ==================== ABOUT SECTION ================= */
/* ================================================== */
.about-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-image {
  position: relative;
  display: flex;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

.about-stats {
  position: absolute;
  bottom: 12px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 20;
}

.stat-card {
  flex: 1;
  min-width: 0;
  background: var(--dent-blue);
  padding: 16px 12px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 88, 118, 0.2);
}

.stat-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.dot-green {
  background-color: #4ade80;
}
.dot-yellow {
  background-color: #fbbf24;
}
.dot-blue {
  background-color: #60a5fa;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.3;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.about-text {
  font-size: 18px;
  color: #5a7a8a;
  margin: 24px 0 32px;
  line-height: 1.8;
}

.btn-small {
  min-width: auto;
  width: fit-content;
  padding: 12px 28px;
  font-size: 15px;
}

@media (min-width: 580px) {
  .about-stats {
    bottom: 24px;
    left: 15px;
    right: 15px;
    gap: 12px;
  }
}

@media (min-width: 881px) {
  .about-section {
    padding: 100px 0;
  }

  .about-container {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .about-image img {
    height: 100%;
  }

  .stat-card {
    min-width: 140px;
    padding: 24px 20px;
    gap: 12px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-label {
    font-size: 13px;
  }

  .about-content {
    text-align: left;
    align-items: flex-start;
  }
}

/* ================================================== */
/* ================= REVIEWS SECTION ================= */
/* ================================================== */
.reviews-section {
  padding: 80px 0;
  overflow: hidden;
}

.reviews-content {
  padding: 60px 20px;
  background-color: var(--dent-blue-light);
  border-radius: 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.reviews-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.reviews-swiper {
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.reviews-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.review-slide {
  width: auto;
  min-width: 320px;
  max-width: 400px;
}

.review-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(15, 88, 118, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(15, 88, 118, 0.03);
}

.review-stars {
  display: flex;
  gap: 4px;
}

.star-icon {
  width: 18px;
  height: 18px;
  color: #fbbf24;
}

.star-icon.fill {
  fill: #fbbf24;
}

.review-text {
  font-size: 16px;
  color: #5a7a8a;
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(15, 88, 118, 0.08);
  padding-top: 15px;
  width: 100%;
}

.author-name {
  font-weight: 700;
  color: var(--dent-blue);
  font-size: 16px;
}

.author-title {
  font-size: 13px;
  color: #8aa4af;
  font-weight: 500;
}
