/* =============================================================
   CABEÇALHO, LOGO, TEMA E CARROSSEL
============================================================= */

/* -------------------------------------------------------------
   LOGO E ALTERNADOR DE TEMA
------------------------------------------------------------- */
.logo {
  max-width: 320px;
  margin: 8px auto 0;
  padding-top: 26px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.logo .ld {
  display: none;
}

:root[data-theme="dark"] .logo .ll {
  display: none;
}

:root[data-theme="dark"] .logo .ld {
  display: block;
}

.theme {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 14px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}

.theme:hover {
  transform: scale(1.06);
  border-color: var(--rose);
}

.theme svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme .sun {
  display: none;
}

:root[data-theme="dark"] .theme .sun {
  display: block;
}

:root[data-theme="dark"] .theme .moon {
  display: none;
}

/* -------------------------------------------------------------
   CARROSSEL DE FOTOS
------------------------------------------------------------- */
.carousel-section {
  margin: 20px 0 8px;
}

.carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 32px;
  background: var(--soft);
  box-shadow: var(--shadow-md);
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.85s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  overflow: hidden;
}

.carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(28, 10, 16, 0.58), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel-slide:has(figcaption)::after {
  opacity: 1;
}

.carousel-slide figcaption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 2;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(28, 12, 18, 0.26);
  color: #fff;
  opacity: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background 0.25s ease;
}

.carousel:hover .carousel-arrow,
.carousel-arrow:focus-visible {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(28, 12, 18, 0.46);
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 12, 18, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.car-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s ease;
}

.car-dot.active {
  width: 20px;
  background: #fff;
}
