/* ===========================
   RESET
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  overflow-x: hidden;
  background-color: #000;
  min-height: 100%;
  min-height: -webkit-fill-available;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   LANGUAGE BUTTONS
=========================== */
.lang-btn img {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 4px;
}

.lang-btn img:hover {
  transform: scale(1.15);
}

header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
}

/* ===========================
   HERO BACKGROUND
=========================== */
.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center top 23%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  height: 95vh;
  height: 95dvh;
  min-height: 95vh;
  min-height: 95dvh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Gradient overlay - Desktop - REMOVIDO para não vazar */
.hero-bg::after {
  display: none;
}

.hero-bg::before {
  display: none;
}

/* ===========================
   HERO CONTENT
=========================== */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* ===========================
   HERO TITLE
=========================== */
.hero-title {
  margin-top: 40px;
  font-weight: 900;
  line-height: 1.1;
  font-family: 'Playfair Display', serif;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.8),
    2px 2px 15px rgba(0, 0, 0, 1);
}

.hero-title span {
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.8),
    2px 2px 15px rgba(0, 0, 0, 1);
}

/* Title font sizes */
.font-midium {
  font-size: 1.5rem;
}

.font-larger {
  font-size: 2.5rem;
  font-style: italic;
}

/* ===========================
   LOGO HERO
=========================== */
.logo-hero {
  height: 150px;
  width: auto;
  max-width: 90%;
  cursor: pointer;
  transition: transform 0.3s;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  display: block;
  margin: 0 auto;
}

.logo-hero:hover {
  transform: scale(1.05);
}

/* ===========================
   CARDS SECTION
=========================== */
.cards-section {
  padding: 60px 0 80px;
  background-color: #000;
}

.card-item {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: none;
  -webkit-box-shadow: none;
}

.card-item:hover {
  transform: scale(1.05);
  box-shadow: none;
  -webkit-box-shadow: none;
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card-item:hover img {
  transform: scale(1.08);
}

.card-overlay {
  display: none;
}

.card-item:hover .card-overlay {
  display: none;
}

.card-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-text h3 {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-text p {
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 8px;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===========================
   BUTTON LINKS
=========================== */
.btn-links-small {
  background: #fff;
  color: #000;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-links-small:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ===========================
   TABLET
=========================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2rem;
  }
}

/* ===========================
   MOBILE - TODOS OS SMARTPHONES
   Valores padrão que funcionam em iPhone e Android
=========================== */
@media (max-width: 768px) {
  
  body {
    height: 100vh;
    height: 100dvh;
    height: -webkit-fill-available;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .hero-bg {
    height: 52vh;
    height: 52dvh;
    min-height: 300px;
    max-height: 450px;
    background-position: center top;
    background-attachment: scroll;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .hero-bg::before,
  .hero-bg::after {
    display: none;
  }

  .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 20px 5px 20px;
    margin-top: auto;
    text-align: center;
  }

  /* TÍTULO - Tamanho maior para iPhone e Android */
  .hero-title {
    font-size: 1.4rem !important;
    margin: 0 auto 8px auto;
    line-height: 1.2;
    width: 100%;
    text-align: center;
  }

  .font-midium {
    font-size: 1.2rem !important;
  }

  .font-larger {
    font-size: 1.6rem !important;
  }

  /* LOGO - Tamanho maior para iPhone e Android */
  .logo-hero {
    height: 100px !important;
    margin: 5px auto 0 auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) brightness(1.1);
    -webkit-filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) brightness(1.1);
  }

  .cards-section {
    margin-top: 0;
    padding-top: 15px;
    padding-bottom: 20px;
    position: relative;
    z-index: 100;
    background-color: #000;
    box-shadow: none;
    min-height: auto;
    isolation: isolate;
  }

  .btn-links-small {
    padding: 8px 24px;
    font-size: 12px;
    margin-bottom: 12px;
  }

  .text-center.mb-10 {
    margin-bottom: 12px;
  }

  /* CARDS - Altura fixa para iPhone e Android */
  .card-item {
    border-radius: 10px;
    margin-bottom: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    min-height: 350px !important;
    max-height: 420px !important;
    height: 350px !important;
    aspect-ratio: unset !important;
    filter: none;
    -webkit-filter: none;
  }

  .card-item img {
    object-position: center top;
  }

  .card-item:hover {
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
  }

  .card-text h3 {
    font-size: 1rem !important;
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: 0 8px;
  }

  .card-text p {
    font-size: 0.8rem !important;
    margin-top: 4px;
  }

  .grid.grid-cols-2 {
    gap: 10px;
  }

  .container.mx-auto.px-4 {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===========================
   TELAS PEQUENAS (iPhone SE, etc)
=========================== */
@media (max-width: 768px) and (max-height: 700px) {
  .hero-bg {
    height: 48vh;
    height: 48dvh;
    min-height: 250px;
    max-height: 350px;
  }

  .hero-title {
    font-size: 1.1rem !important;
  }

  .font-midium {
    font-size: 1rem !important;
  }

  .font-larger {
    font-size: 1.3rem !important;
  }

  .logo-hero {
    height: 60px !important;
  }

  .card-item {
    min-height: 200px !important;
    max-height: 250px !important;
    height: 200px !important;
  }

  .btn-links-small {
    padding: 6px 20px;
    font-size: 11px;
  }
}

/* ===========================
   TELAS ALTAS (iPhone Pro Max, etc)
=========================== */
@media (max-width: 768px) and (min-height: 800px) {
  .hero-bg {
    height: 55vh;
    height: 55dvh;
    max-height: 500px;
  }

  .card-item {
    min-height: 400px !important;
    max-height: 480px !important;
    height: 400px !important;
  }

  .hero-title {
    font-size: 1.5rem !important;
  }

  .font-midium {
    font-size: 1.3rem !important;
  }

  .font-larger {
    font-size: 1.8rem !important;
  }

  .logo-hero {
    height: 120px !important;
  }

  .card-text h3 {
    font-size: 1.1rem !important;
  }

  .card-text p {
    font-size: 0.85rem !important;
  }
}

/* ===========================
   LANDSCAPE
=========================== */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-bg {
    height: 70vh;
    height: 70dvh;
    min-height: 250px;
  }

  .cards-section {
    padding-top: 10px;
    padding-bottom: 15px;
  }

  .card-item {
    max-height: 150px !important;
    height: 150px !important;
    min-height: 120px !important;
  }
}