/* CSS Reset & Base Variables */
:root {
  /* Colors */
  --bg-color: #FDFBF7;
  --text-color: #2A2421;
  --primary-color: #B88E40;
  --primary-hover: #9a7633;
  --secondary-color: #EEDBE0;
  --muted-color: #F5F1EB;
  --accent-color: #EAF0E9;
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Fraunces', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  
  /* Sizes */
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --container-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

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

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.text-balance {
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-dark {
  background-color: var(--text-color);
  color: #fff;
  height: 3.5rem;
  padding-inline: 2.5rem;
  font-size: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  padding-block: 1.25rem;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding-block: 0.75rem;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .logo { font-size: 1.875rem; }
}

.logo:hover {
  color: var(--primary-color);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(42, 36, 33, 0.8);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-cta {
  height: 2.5rem;
  padding-inline: 1.5rem;
}

.mobile-toggle {
  display: block;
  padding: 0.5rem;
  color: var(--text-color);
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-color);
  padding-block: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-cta {
  height: 3rem;
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--bg-color);
}

.carousel-viewport {
  overflow: hidden;
  height: 100%;
}

.carousel-container {
  display: flex;
  height: 100%;
  touch-action: pan-y;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px);
  opacity: 0.4;
  transform: scale(1.1);
}

.slide-content-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 768px) {
  .slide-content-wrapper { padding: 3rem; }
}

@media (min-width: 1024px) {
  .slide-content-wrapper { padding: 6rem; }
}

.slide-inner {
  position: relative;
  width: 100%;
  max-width: 64rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .slide-inner {
    flex-direction: row;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .slide-inner { gap: 6rem; }
}

.slide-text-col {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 32rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.2s;
}

.carousel-slide.active .slide-text-col {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .slide-text-col {
    align-items: flex-start;
    text-align: left;
  }
}

.slide-title {
  font-size: 2.25rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

@media (min-width: 768px) { .slide-title { font-size: 3rem; } }
@media (min-width: 1024px) { .slide-title { font-size: 4.5rem; } }

.slide-desc {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 28rem;
  font-weight: 300;
}

@media (min-width: 768px) { .slide-desc { font-size: 1.25rem; } }

.slide-cta {
  display: inline-flex;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--primary-color);
  padding-inline: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: background-color 0.2s;
}

.slide-cta:hover { background-color: var(--primary-hover); }

.slide-cta svg {
  margin-left: 0.5rem;
}

.slide-img-col {
  position: relative;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.4s;
}

.carousel-slide.active .slide-img-col {
  opacity: 1;
  transform: scale(1);
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 20;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text-color);
  transition: background-color 0.2s;
}

.carousel-btn:hover, .carousel-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.8);
  outline: none;
}

.play-pause-btn {
  margin-left: 1rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.dot.active {
  width: 1.5rem;
  background-color: var(--primary-color);
}

/* Sobre Section */
.section-sobre {
  padding-block: 6rem;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) { .section-sobre { padding-block: 8rem; } }

.sobre-bg-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 800px;
  height: 800px;
  background-color: rgba(238, 219, 224, 0.2);
  border-radius: 50%;
  filter: blur(64px);
  transform: translateY(-50%) translateX(33.33%);
  pointer-events: none;
}

.relative { position: relative; }
.z-10 { z-index: 10; }

.sobre-content {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-size: 1.875rem;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .section-title { font-size: 3rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.75rem; } }

.divider {
  height: 1px;
  width: 6rem;
  background-color: rgba(184, 142, 64, 0.5);
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.sobre-text {
  color: rgba(42, 36, 33, 0.8);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.625;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) { .sobre-text { font-size: 1.25rem; } }

.sobre-cta { margin-top: 3rem; }

/* Serviços Section */
.section-servicos {
  padding-block: 6rem;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.servicos-bg-decor-1 {
  position: absolute;
  top: 25%;
  left: 0;
  width: 600px;
  height: 600px;
  background-color: rgba(184, 142, 64, 0.05);
  border-radius: 50%;
  filter: blur(64px);
  transform: translateX(-50%);
  pointer-events: none;
}

.servicos-bg-decor-2 {
  position: absolute;
  bottom: 25%;
  right: 0;
  width: 600px;
  height: 600px;
  background-color: rgba(122, 139, 118, 0.05);
  border-radius: 50%;
  filter: blur(64px);
  transform: translateX(33.33%);
  pointer-events: none;
}

.category-block { margin-bottom: 5rem; }
.mt-12 { margin-top: 3rem; }

.category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-line {
  height: 1px;
  background-color: var(--primary-color);
  width: 3rem;
}

.category-title {
  font-size: 1.875rem;
  text-align: center;
  color: var(--text-color);
}

@media (min-width: 768px) { .category-title { font-size: 3rem; } }

.category-desc {
  text-align: center;
  color: rgba(42, 36, 33, 0.6);
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Service Card */
.service-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: left;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card-img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) { .service-card-content { padding: 2rem; } }

.service-card.no-img .service-card-content {
  justify-content: center;
  min-height: 300px;
}

.service-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.service-card-title {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.service-card:hover .service-card-title {
  color: var(--primary-color);
}

.service-card-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(42, 36, 33, 0.6);
  margin-bottom: 1rem;
}

.service-card-summary {
  color: rgba(42, 36, 33, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: auto;
}

.service-card-link svg {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  background-color: var(--bg-color);
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  border-radius: var(--radius-xl);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.05);
  color: var(--text-color);
  transition: background-color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background-color: rgba(0,0,0,0.1);
}

.modal-content {
  padding: 1.5rem;
}

@media (min-width: 768px) { .modal-content { padding: 3rem; } }

.modal-header { margin-bottom: 1.5rem; padding-right: 2rem; }

.modal-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.875rem;
  color: var(--text-color);
}

@media (min-width: 768px) { .modal-title { font-size: 2.25rem; } }

.modal-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(42, 36, 33, 0.6);
  margin-top: 0.5rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-image-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.modal-image-container.hidden { display: none; }

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text {
  color: rgba(42, 36, 33, 0.8);
  font-size: 1rem;
  line-height: 1.75;
}

.modal-text p {
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

/* Footer */
.footer {
  background-color: #2A2421;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo {
  font-size: 1.875rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-desc {
  max-width: 20rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-title {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.flex-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-address {
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .fab-whatsapp {
    bottom: 2.5rem;
    right: 2.5rem;
  }
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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