@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --terra: #C4531A;
  --terra-dark: #8B3A12;
  --terra-light: #E8703A;
  --cream: #FAF5EF;
  --warm-white: #FFF9F5;
  --charcoal: #1A1410;
  --mid: #5C3D2E;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

.section-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  background: rgba(196, 83, 26, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
#header.hidden { transform: translateY(-100%); }
#header.scrolled {
  background: rgba(26, 20, 16, 0.92);
  backdrop-filter: blur(24px);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: #FFB07A; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #FFB07A;
  transition: width 0.3s;
}
.nav-links a:hover { color: #FFB07A; }
.nav-links a:hover::after { width: 100%; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.btn-whatsapp:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(26,20,16,0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn-whatsapp-mobile {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--terra);
  color: #fff;
  padding: 0.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/interior1.jpeg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,20,16,0.82) 0%, rgba(140,58,18,0.6) 60%, rgba(196,83,26,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: #FFB07A;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.2s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s 0.4s both;
}
.hero-title em {
  font-style: italic;
  color: #FFB07A;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.6s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--terra);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  animation: fadeUp 0.8s 0.8s both;
  box-shadow: 0 12px 40px rgba(196,83,26,0.5);
}
.hero-cta:hover {
  background: var(--terra-light);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(196,83,26,0.6);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s 1.5s both;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

section:not(#inicio) {
  padding: 7rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#sobre {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
#sobre::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,83,26,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sobre-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.sobre-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.sobre-img-wrap:hover img { transform: scale(1.05); }
.sobre-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196,83,26,0.2);
  border-radius: 24px;
}

.sobre-text .section-title { margin-bottom: 1.5rem; }
.sobre-text p {
  color: #5C4A3A;
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.sobre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.pill {
  background: rgba(196,83,26,0.1);
  color: var(--terra-dark);
  border: 1px solid rgba(196,83,26,0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

#servicos {
  background: linear-gradient(160deg, #1A1410 0%, #3D2010 100%);
  position: relative;
  overflow: hidden;
}
#servicos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,176,122,0.4), transparent);
}

#servicos .section-label { color: #FFB07A; }
#servicos .section-title { color: #fff; margin-bottom: 0.5rem; }
.servicos-sub {
  color: rgba(255,255,255,0.5);
  margin-bottom: 3.5rem;
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--terra-light));
  transform: scaleX(0);
  transition: transform 0.4s;
}
.service-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  border-color: rgba(255,176,122,0.3);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card svg { color: #FFB07A; }
.service-card h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.service-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

#galeria {
  background: var(--warm-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 320px 320px;
  gap: 1rem;
  margin-top: 3rem;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  width: 100%;
  height: 100%;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(140,58,18,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 1;
}

#contato {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
#contato::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(196,83,26,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contato-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
  font-weight: 600;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(196,83,26,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--terra);
}
.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.2rem;
}
.info-value {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.5;
}

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid rgba(196,83,26,0.15);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
  display: block;
}

footer {
  background: var(--charcoal);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}
footer a {
  color: #FFB07A;
  text-decoration: none;
  font-weight: 500;
}
footer a:hover { text-decoration: underline; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: #fff;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}
.modal-box p {
  color: #5C4A3A;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin: 1.5rem 0 0.5rem;
}
.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--charcoal);
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(196,83,26,0.1); }

@media (max-width: 900px) {
  .nav-links, .btn-whatsapp { display: none; }
  .hamburger { display: flex; }
  .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px 260px; }
  .gallery-item:first-child { grid-column: 1 / -1; grid-row: span 1; }
  .map-wrap { min-height: 300px; }
  .map-wrap iframe { min-height: 300px; }
  .hero-title { font-size: 3rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  section:not(#inicio) { padding: 4.5rem 1.2rem; }
  .modal-box { padding: 2rem 1.5rem; }
}
