:root {
  --primary: #2d4a3e;
  --primary-light: #4a6d5f;
  --accent: #c5a059;
  --accent-light: #e0c28d;
  --bg-cream: #fdfaf5;
  --text-main: #1a1f1d;
  --text-muted: #545b58;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 20px 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled {
  padding: 12px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 64px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.button-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(45, 74, 62, 0.2);
}

.button-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(45, 74, 62, 0.3);
  background: var(--primary-light);
}

.button-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 24px;
}

.button-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.button-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.button-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 160px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text {
  font-size: 1.2rem;
  opacity: 1;
  margin-bottom: 40px;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.2); /* Changed to dark glass for better contrast against bright images */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* About Section Overlap */
.section-overlap {
  position: relative;
  z-index: 10;
  padding: 80px 0 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  margin-top: -240px; /* Only the image overlaps now */
}

.image-wrapper {
  position: relative;
  padding-right: 40px;
  padding-bottom: 40px;
}

.image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 0;
  bottom: 0;
  left: 40px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.experience-badge strong {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-serif);
  line-height: 1;
}

.experience-badge span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 16px;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--primary);
}

.check-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.2rem;
}

/* Services / Pillars */
.section-dark {
  background: var(--primary);
  color: var(--white);
  padding: 120px 0;
}

.section-header.text-center {
  text-align: center;
  margin-bottom: 80px;
}

.section-dark h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3.5rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  border-color: var(--accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--primary);
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 32px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  opacity: 0.8;
  font-size: 1rem;
}

/* Ambient Section */
.section-ambient {
  padding: 120px 0;
}

.ambient-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.ambient-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 24px;
}

.ambient-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
}

/* Structure Gallery */
.section-structure {
  padding: 120px 0;
  background-color: var(--white);
}

.section-description {
  max-width: 700px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-seo-local {
  padding: 120px 0;
  background: linear-gradient(180deg, #fff 0%, #f8f5ef 100%);
}

.seo-local-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.seo-local-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 74, 62, 0.08);
}

.seo-local-card h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.seo-local-card p {
  color: var(--text-muted);
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.city-tags span {
  background: rgba(45, 74, 62, 0.08);
  color: var(--primary);
  border: 1px solid rgba(45, 74, 62, 0.1);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.section-faq-seo {
  padding: 120px 0;
  background: var(--white);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.faq-item {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  border: 1px solid rgba(45, 74, 62, 0.08);
}

.faq-item h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.faq-item p {
  color: var(--text-muted);
}

.faq-item a {
  color: var(--primary);
  font-weight: 700;
}

.gallery-container {
  position: relative;
  margin-top: 60px;
  display: flex;
  align-items: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

/* Carousel for Desktop */
@media (min-width: 1024px) {
  .gallery-grid {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 20px 0;
  }

  .gallery-card {
    flex: 0 0 350px; /* Tamanho fixo para as fotos no carrossel desktop */
  }

  .carousel-btn {
    display: flex !important;
  }
}

.carousel-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--primary);
  z-index: 10;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: -25px; }
.carousel-btn.next { right: -25px; }

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.gallery-image-box {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999; /* Aumentado para garantir que fique acima de tudo */
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1200px;
  max-height: 80vh;
  object-fit: contain; /* Garante que a foto não seja cortada no modal */
  border-radius: var(--radius-md);
  animation: zoomIn 0.3s ease;
}

#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  font-family: var(--font-sans);
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .lightbox-content {
    width: 95%;
  }
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--accent);
}

.stat span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.ambient-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.main {
  grid-column: 1 / 9;
  height: 450px;
}

.gallery-item.side {
  grid-column: 9 / 13;
  height: 450px;
  margin-top: 60px;
}

/* Contact Premium */
.contact-card-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  padding: 80px;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.info-list {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-cream);
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.2rem;
}

.info-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Footer */
.premium-footer {
  background: #111;
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 300px;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  padding-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.credits a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.credits a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #25d366;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Animations Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Nav Toggle Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  width: 24px;
  height: 14px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  transition: all 0.3s;
}

.hamburger span:first-child { top: 0; }
.hamburger span:last-child { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 0 100px;
  }
  
  .about-image {
    margin-top: 0;
  }
  
  .about-grid, .ambient-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .seo-local-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item.side {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 54px;
    width: auto;
  }

  .site-header {
    padding: 12px 0;
    background: var(--white) !important;
    position: fixed;
    width: 100%;
    box-shadow: var(--shadow-sm);
  }

  .navbar {
    padding: 0 10px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 40px;
    transition: right 0.4s ease;
    gap: 40px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.is-open {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .contact-card-premium {
    grid-template-columns: 1fr;
  }
  
  .contact-map {
    height: 300px;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}
