/* Estilos específicos da página index.html (o design system está em ../site.css) */

h3 {
        font-size: clamp(1.5rem, 3vw, 2rem);
        line-height: 1.3;
      }

p, .lead {
        font-family: var(--font-sans);
        line-height: 1.7;
        margin-bottom: var(--space-md);
      }

.lead {
        /* Texto fluido: ~15px em celulares pequenos até ~17,6px em telas grandes */
        font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.1rem);
        color: var(--color-secondary);
      }

/* Títulos de seção fluidos (Bootstrap .display-5 é fixo em 3rem) */
.content-section .display-5 {
        font-size: clamp(1.65rem, 1.2rem + 2.2vw, 3rem);
      }

/* ========================================
         HERO SECTION
      ======================================== */
.masthead {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Ocupa a tela inteira (svh evita "pulos" na barra de endereço dos celulares) */
        height: 100vh;
        height: 100svh;
        min-height: 380px;
        overflow: hidden;
      }

.masthead::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
          180deg,
          rgba(15, 21, 15, 0.3) 0%,
          rgba(28, 39, 28, 0.5) 100%
        );
        z-index: 1;
      }

.masthead video {
        filter: brightness(0.85);
      }

.masthead .container-fluid {
        z-index: 2;
      }

.masthead img {
        filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
        animation: fadeInDown 1.2s ease-out;
        /* Logo fluido: nunca maior que 500px nem que 80% da tela */
        width: min(500px, 80vw);
        height: auto;
      }

/* ========================================
         SEÇÃO PRINCIPAL
      ======================================== */
.content-section {
        /* Sem padding no topo: o card "invade" o hero via margem negativa */
        padding: 0 0 var(--space-2xl);
        background-color: var(--color-primary);
      }

.content-container {
        background: linear-gradient(
          135deg,
          var(--color-accent-soft) 0%,
          rgba(232, 227, 213, 0.95) 100%
        );
        border-radius: 24px;
        padding: var(--space-xl);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
        /* Sobe o card por cima da borda inferior do vídeo do hero */
        margin-top: -358px;
        position: relative;
        z-index: 3;
      }

/* ========================================
         DIVIDER ELEGANTE
      ======================================== */
.elegant-divider {
        position: relative;
        padding-left: var(--space-lg);
      }

.elegant-divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 80%;
        background: linear-gradient(
          to bottom,
          transparent 0%,
          var(--color-primary) 20%,
          var(--color-primary) 80%,
          transparent 100%
        );
        border-radius: 4px;
      }

/* ========================================
         SELOS DE AVALIAÇÃO (louros de festival)
      ======================================== */
/* Painel escuro, mas compacto: contraste para os louros dourados */
.awards {
        background: linear-gradient(160deg, var(--color-primary) 0%, #121912 100%);
        border: 1px solid rgba(201, 184, 150, 0.25);
        border-radius: 16px;
        padding: var(--space-md) var(--space-md) var(--space-lg);
        margin-bottom: var(--space-xl);
        text-align: center;
      }

.awards-eyebrow {
        font-family: var(--font-sans);
        font-size: 0.82rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.24em;
        color: var(--color-accent-warm);
        margin-bottom: var(--space-md);
      }

.awards-grid {
        display: grid;
        /* Colunas do tamanho do conteúdo (não 1fr): os selos das pontas
           ficam junto do central em vez de esticados até as bordas */
        grid-template-columns: repeat(3, auto);
        justify-content: center;
        gap: var(--space-lg);
        align-items: center;
      }

/* Cada selo: louro à esquerda, nota no meio, louro espelhado à direita */
.award {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
      }

.laurel {
        flex: 0 0 auto;
        width: clamp(26px, 2.65vw, 34px);
        height: auto;
        /* Garante a proporção do viewBox mesmo com height:auto */
        aspect-ratio: 56 / 164;
        color: var(--color-accent-warm);
        opacity: 0.9;
      }

.laurel-right {
        transform: scaleX(-1);
      }

.award-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 var(--space-xs);
      }

.award-score {
        font-family: var(--font-serif);
        font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.4rem);
        font-weight: 600;
        line-height: 1.1;
        color: var(--color-text-light);
      }

.award-max {
        font-size: 0.46em;
        font-weight: 500;
        color: var(--color-accent-warm);
      }

.award-source {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-family: var(--font-sans);
        font-size: 0.77rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--color-accent-soft);
        margin-top: 2px;
      }

.award-source i {
        font-size: 0.96rem;
        color: var(--color-accent-warm);
      }

/* Booking não tem ícone no Font Awesome: monograma tipográfico */
.award-mark-booking {
        font-weight: 700;
        font-size: 0.96rem;
        letter-spacing: -0.02em;
        color: var(--color-accent-warm);
      }

/* Variante do .section-divider (site.css) para o fundo claro do card:
   o dourado padrão quase some sobre o bege */
.section-divider-dark {
        width: 120px;
        background: linear-gradient(
          to right,
          transparent 0%,
          var(--color-primary) 50%,
          transparent 100%
        );
        opacity: 0.35;
        margin: var(--space-xl) auto 0;
      }

/* ========================================
         CAROUSEL
      ======================================== */
.carousel {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 48px rgba(28, 39, 28, 0.2);
      }

.carousel-item {
        position: relative;
      }

.carousel-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.1) 0%,
          rgba(0, 0, 0, 0.5) 100%
        );
        z-index: 0;
      }

.carousel-caption {
        z-index: 2 !important;
        background: rgba(28, 39, 28, 0.85) !important;
        backdrop-filter: blur(12px);
        border-radius: 16px;
        padding: var(--space-md) !important;
        border: 1px solid rgba(201, 184, 150, 0.2);
      }

.carousel-caption h5 {
        font-family: var(--font-serif);
        color: var(--color-accent-warm);
        font-weight: 600;
        margin-bottom: var(--space-sm);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }

.carousel-caption p,
      .carousel-caption ul {
        color: var(--color-text-light);
        font-size: clamp(0.9rem, 1.5vw, 1rem);
      }

.carousel-control-prev-icon,
      .carousel-control-next-icon {
        background-color: rgba(28, 39, 28, 0.8) !important;
        border-radius: 50%;
        padding: var(--space-md) !important;
        transition: var(--transition-fast);
      }

.carousel-control-prev-icon:hover,
      .carousel-control-next-icon:hover {
        background-color: var(--color-accent-warm) !important;
        transform: scale(1.1);
      }

/* ========================================
         GALLERY CARDS
      ======================================== */
.gallery-card {
        transition: var(--transition-smooth);
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(232, 227, 213, 0.6);
        background: #fafaf8;
      }

.gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(28, 39, 28, 0.18) !important;
        border-color: var(--color-accent-warm);
      }

.gallery-card img {
        transition: transform 0.6s ease;
        object-fit: cover;
        /* Altura fluida: ~130px em celulares pequenos até 210px em telas grandes */
        height: clamp(130px, 10vw + 90px, 210px);
      }

.gallery-card:hover img {
        transform: scale(1.08);
      }

.gallery-card .card-body {
        padding: var(--space-sm);
      }

.gallery-card .card-title {
        font-family: var(--font-serif);
        font-size: clamp(1rem, 0.85rem + 0.7vw, 1.3rem);
        color: var(--color-primary);
        margin-bottom: var(--space-xs);
      }

.gallery-card .card-text {
        font-family: var(--font-sans);
        color: var(--color-secondary);
        font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
        line-height: 1.5;
        margin-bottom: 0;
      }

/* ========================================
         FORMULÁRIO DE CONTATO
      ======================================== */
.form-control {
        font-family: var(--font-sans);
        padding: 14px 20px;
        border-radius: 12px;
        border: 2px solid var(--color-neutral-medium);
        background-color: #fff;
        transition: var(--transition-fast);
        font-size: 15px;
      }

.form-control:focus {
        border-color: var(--color-accent-warm);
        box-shadow: 0 0 0 4px rgba(201, 184, 150, 0.15);
        outline: none;
      }

.form-control::placeholder {
        color: var(--color-secondary);
        opacity: 0.7;
      }

.btn-success {
        background: linear-gradient(135deg, var(--color-accent-warm) 0%, #b5a47f 100%);
        border: none;
        color: var(--color-primary);
        padding: 16px 40px;
        border-radius: 12px;
        font-family: var(--font-sans);
        font-weight: 600;
        font-size: 16px;
        letter-spacing: 0.02em;
        box-shadow: 0 4px 16px rgba(201, 184, 150, 0.3);
        transition: var(--transition-smooth);
      }

.btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(201, 184, 150, 0.45);
        background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-accent-warm) 100%);
      }

footer p {
        margin: 0;
        opacity: 0.9;
      }

/* ========================================
         MAPA (dentro do card de conteúdo)
      ======================================== */
.map-wrapper {
        width: 100%;
        /* Cantos arredondados como os demais blocos do card */
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
      }

.map-wrapper iframe {
        display: block;
        width: 100%;
        border: 0;
        /* Altura fluida: 300px em celulares até 520px em telas grandes */
        height: clamp(300px, 45vh, 520px);
      }

/* ========================================
         RESPONSIVIDADE
         Breakpoints: 992px (tablets deitados),
         768px (tablets), 576px (celulares),
         400px (celulares pequenos)
      ======================================== */

/* Tablets em pé e telas menores */
@media (max-width: 992px) {
        .carousel-item {
          height: 45vh !important;
          min-height: 360px !important;
        }
      }

/* Tablets pequenos / celulares grandes */
@media (max-width: 768px) {
        :root {
          --space-xl: 48px;
          --space-2xl: 64px;
        }

        .content-container {
          padding: var(--space-md);
          border-radius: 16px;
        }

        /* Selos empilhados: lado a lado os louros ficariam pequenos demais */
        .awards {
          padding: var(--space-md) var(--space-sm) var(--space-lg);
        }

        .awards-grid {
          grid-template-columns: 1fr;
          gap: var(--space-md);
        }

        .laurel {
          width: 36px;
        }

        /* Colunas empilhadas: o traço vira horizontal, separando
           "Encontre um Paraíso..." de "Nossas Suítes" */
        .elegant-divider {
          padding-left: 0;
          padding-top: var(--space-md);
          margin-top: var(--space-md);
        }

        .elegant-divider::before {
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 120px;
          max-width: 60%;
          height: 3px;
          background: linear-gradient(
            to right,
            transparent 0%,
            var(--color-primary) 20%,
            var(--color-primary) 80%,
            transparent 100%
          );
        }
      }

/* Celulares */
@media (max-width: 576px) {
        :root {
          --space-xl: 32px;
          --space-2xl: 48px;
        }

        .content-container {
          padding: var(--space-sm);
          border-radius: 12px;
          /* Invasão mais sutil em telas pequenas */
          margin-top: -280px;
        }

        .masthead {
          min-height: 320px;
        }

        .carousel-item {
          height: 40vh !important;
          min-height: 300px !important;
        }

        .carousel-caption {
          padding: var(--space-sm) !important;
        }

        .carousel-caption p {
          margin-bottom: 2px;
        }
      }

/* Celulares pequenos (iPhone SE, Galaxy A0x etc.) */
@media (max-width: 400px) {
        .carousel-item {
          min-height: 260px !important;
        }

        .gallery-card .card-text {
          display: none; /* só título, para caber 2 colunas confortavelmente */
        }

        .map-wrapper iframe {
          height: 260px;
        }
      }

/* ========================================
         ACESSIBILIDADE
      ======================================== */
*:focus-visible {
        outline: 3px solid var(--color-accent-warm);
        outline-offset: 2px;
      }

@media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }
