/* =========================================
   Santo Amaro Lençóis - Ultra Modern Luxury Theme
   ========================================= */

/* --- Variables --- */
:root {
  /* Colors */
  --clr-lagoon-blue: #026C80;
  --clr-lagoon-dark: #013A45;
  --clr-sand: #F2E3D0;
  --clr-sand-light: #FBF9F6;
  --clr-gold: #D4AF37;
  --clr-gold-light: #F3E5AB;
  --clr-text-main: #2C3539;
  --clr-text-light: #596A73;
  --clr-white: #ffffff;
  --clr-whatsapp: #25D366;
  
  /* Typography */
  --ff-primary: 'Montserrat', sans-serif;
  --ff-heading: 'Playfair Display', serif;
  
  /* Shadows & Transitions */
  --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 30px 60px rgba(1, 58, 69, 0.12);
  --shadow-pill: 0 4px 20px rgba(0,0,0,0.06);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* --- Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-primary);
  color: var(--clr-text-main);
  background-color: var(--clr-sand-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--clr-lagoon-dark);
  line-height: 1.1;
}

/* --- Buttons --- */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--ff-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  border-radius: 50px; /* Modern Pill Shape */
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold), #b38c22);
  color: var(--clr-white);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--clr-lagoon-dark);
  border: 1px solid rgba(1, 58, 69, 0.2);
  width: 100%;
  margin-top: 1.5rem;
}

.btn-outline:hover {
  background-color: var(--clr-lagoon-dark);
  color: var(--clr-white);
  border-color: var(--clr-lagoon-dark);
  transform: translateY(-3px);
}

/* --- Header / Floating Pill --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.8rem 5%;
  top: 15px; /* Floats down slightly */
}

/* The actual background is applied to a pseudo element for modern pill look */
header::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 5%; 
  right: 5%; 
  bottom: 0;
  background: transparent;
  border-radius: 100px;
  transition: var(--transition-smooth);
  z-index: -1;
  pointer-events: none;
}

header.scrolled::before {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-pill);
}





.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white; /* Default color for Hero */
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.brand-main {
  font-family: var(--ff-heading);
  font-size: 1.7rem;
  font-weight: 700;
  white-space: nowrap;
}

header.scrolled .logo a {
  color: var(--clr-lagoon-dark);
  text-shadow: none;
}

header.scrolled .brand-main {
  font-size: 1.2rem;
}

.logo img {
  height: 120px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

header.scrolled .logo img {
  height: 90px;
  filter: none;
}

/* --- Hero Section & Slideshow --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 10s ease-out;
  transform: scale(1);
}

.slide.slide-active {
  opacity: 1;
  transform: scale(1.08); /* Slower, more cinematic zoom */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(1,58,69,0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--clr-white);
  max-width: 900px;
  padding: 0 30px;
  margin-top: 50px;
}

.hero-content h1 {
  color: var(--clr-white);
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0.9;
}

.btn-scroll {
  display: inline-block;
  padding: 16px 40px;
  background-color: transparent;
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  font-family: var(--ff-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-scroll:hover {
  background-color: var(--clr-white);
  color: var(--clr-lagoon-dark);
  border-color: var(--clr-white);
  transform: scale(1.05);
}

/* --- Sub-banner (Localização) --- */
.location-banner {
  background: linear-gradient(135deg, var(--clr-lagoon-dark), #012b33);
  color: var(--clr-white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.location-banner::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--clr-sand-light);
    border-radius: 50% 50% 0 0;
}

.location-banner h2 {
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.location-banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}
.location-banner strong {
    color: var(--clr-gold-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Tours Section --- */
.tours-section {
  padding: 5rem 0 8rem;
  background-color: var(--clr-sand-light);
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
}

/* --- Tour Card (Glassy/Modern Style) --- */
.tour-card {
  background: var(--clr-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.03);
}

.tour-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 260px;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  position: relative;
}
/* Shadow overlay inside image */
.card-img::after {
    content:'';
    position: absolute;
    bottom:0; width:100%; height:40%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.tour-card:hover .card-img {
  transform: scale(1.1);
}

.card-content {
  padding: 2.5rem 2rem;
  background: var(--clr-white);
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--clr-lagoon-dark);
}

.card-content p {
  color: var(--clr-text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.7;
}

.tour-details {
  background-color: var(--clr-sand-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--clr-gold);
  font-size: 0.9rem;
  color: var(--clr-text-main);
  margin-bottom: 1.5rem;
}

.tour-details strong {
  color: var(--clr-lagoon-dark);
  display: block;
  margin-bottom: 0.3em;
}
.tour-details strong:nth-of-type(2) {
    margin-top: 1em;
}

/* Highlight Premium Tour */
.highlighted-tour {
  border: 1px solid var(--clr-gold);
}
.highlighted-tour::before {
    content: '★ Premium';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--clr-gold);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.noturno-tour {
    background-color: #f0f4f7;
}
.noturno-tour .card-content {
    background-color: transparent;
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--clr-whatsapp);
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition-smooth);
  animation: pulse 2s infinite;
}

.whatsapp-float svg {
    width: 38px;
    height: 38px;
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(-5deg);
  background-color: #1ebe5d;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Footer --- */
footer {
  background-color: var(--clr-lagoon-dark);
  color: rgba(255,255,255,0.7);
  padding: 6rem 0 0;
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.footer-logo {
  height: 250px;
  width: 250px;
  object-fit: contain;
  margin: 0 auto 1.5rem auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 1.1rem;
  max-width: 400px;
  line-height: 1.8;
  margin: 0 auto;
}

.footer-contact {
  flex: 1;
  min-width: 320px;
}

.footer-contact h4 {
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
  font-family: var(--ff-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.footer-contact a {
  color: var(--clr-white);
  transition: color 0.3s;
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--clr-gold);
}

.footer-bottom {
  text-align: center;
  padding: 2rem;
  background-color: rgba(0,0,0,0.2);
  font-size: 0.95rem;
}

/* --- Inner Tour Pages --- */
.inner-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.inner-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(1,58,69,0.8));
}
.inner-hero-content {
  position: relative;
  z-index: 5;
  color: white;
}
.inner-hero-content h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1rem;
}

.tour-details-section {
  padding: 5rem 0;
  background: var(--clr-sand-light);
}

.tour-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.tour-main-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.tour-main-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-text-light);
  margin-bottom: 1.5rem;
}

.tour-sidebar {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 120px;
  height: fit-content;
}
.tour-sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--clr-sand);
  padding-bottom: 10px;
}
.sidebar-item {
  margin-bottom: 1.5rem;
}
.sidebar-item strong {
  display: block;
  color: var(--clr-lagoon-dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-item span {
  color: var(--clr-text-light);
  font-size: 1rem;
}

.modalidades {
  margin-top: 3rem;
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--clr-gold);
}
.modalidades h3 {
  margin-bottom: 1rem;
  color: var(--clr-lagoon-dark);
}
.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.mod-card {
  padding: 1.5rem;
  background: var(--clr-sand-light);
  border-radius: 8px;
}
.mod-card h4 {
  color: var(--clr-gold);
  margin-bottom: 0.5rem;
}

/* --- Modal Cadastur --- */
.cadastur-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(1, 58, 69, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cadastur-modal.active {
  display: flex;
  opacity: 1;
}
.modal-content-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.4s ease;
}
.cadastur-modal.active .modal-content-img {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.3s;
}
.modal-close:hover {
  transform: scale(1.2) rotate(90deg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  header {
    padding: 1.5rem;
  }
  header.scrolled {
      padding: 1rem;
      top: 10px;
  }
  header::before, header.scrolled::before {
      border-radius: 50px;
  }
  
  .logo-text {
    font-size: 0.9rem;
    max-width: 130px;
  }
  .logo-brand {
    max-width: 151px;
  }
  .brand-name {
    font-size: 0.6rem;
  }
  .brand-main {
    font-size: 0.95rem;
    white-space: normal;
  }
  .nav-cta {
    display: none; 
  }
  .section-title h2 {
    font-size: 2.2rem;
  }
  .tours-grid {
      gap: 2rem;
  }
  .hero-content h1 {
      font-size: 2.5rem;
  }
  .whatsapp-float {
      bottom: 20px;
      right: 20px;
      width: 55px;
      height: 55px;
  }
  .whatsapp-float svg {
      width: 30px;
      height: 30px;
  }

  /* --- Tour Pages Responsive --- */
  .inner-hero {
    height: 40vh;
    min-height: 300px;
  }
  .inner-hero-content h1 {
    font-size: 2.2rem;
    padding: 0 15px;
  }
  .tour-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tour-sidebar {
    position: static;
    margin-top: 1rem;
    padding: 1.5rem;
  }
  .mod-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tour-main-content h2 {
    font-size: 1.8rem;
  }
  .modalidades {
    padding: 1.5rem;
  }
}
