/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background-color: #f7f5f2;
  color: #2e2a26;
  line-height: 1.6;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background-color: #2e2a26;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.top-bar-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.top-bar-logo span {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7f5f2;
  line-height: 1.3;
}

.top-bar-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #f7f5f2;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* ===== LAYOUT PRINCIPAL ===== */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 54px;
  left: 0;
  width: 240px;
  height: calc(100vh - 54px);
  background-color: #2e2a26;
  color: #f7f5f2;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-logo { display: none; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sidebar-nav .nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: rgba(247, 245, 242, 0.75);
  transition: all 0.18s ease;
}

.sidebar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f7f5f2;
}

.sidebar-nav .nav-link.active {
  background-color: #7c8a5a;
  color: #fff;
}

.sidebar-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(247, 245, 242, 0.65);
  line-height: 1.8;
}

.sidebar-contact a {
  color: rgba(247, 245, 242, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-contact a:hover { color: #fff; }

/* Botão fechar sidebar (mobile) */
.sidebar-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #f7f5f2;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Overlay mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
}

.sidebar-overlay.active { display: block; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 240px;
  margin-top: 54px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTIONS ===== */
section { padding: 4.5rem 0; }

@media (min-width: 992px) {
  section { padding: 5.5rem 0; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary { background-color: #7c8a5a; color: #fff; }
.btn-primary:hover { background-color: #6c7a4c; }

.btn-ghost {
  background-color: transparent;
  color: #2e2a26;
  border-color: rgba(0, 0, 0, 0.18);
}

.btn-ghost:hover { background-color: rgba(0, 0, 0, 0.04); }

/* ===== HERO ===== */
.hero {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.hero-grid { display: grid; gap: 2.5rem; }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.52);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 2.4rem; }
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
  color: rgba(0, 0, 0, 0.75);
}

.hero-bullets { margin-bottom: 2rem; }

.hero-bullets li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  padding-left: 1.2rem;
  position: relative;
}

.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7c8a5a;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ===== CAROUSEL ===== */
.hero-carousel {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  height: 490px;
  background-color: #d5c6b1;
}

@media (max-width: 899px) {
  .hero-carousel { height: 280px; }
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover { background: rgba(0, 0, 0, 0.6); }
.carousel-btn.prev { left: 0.85rem; }
.carousel-btn.next { right: 0.85rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active { background: #fff; }

/* ===== SECTION HEADER ===== */
.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.section-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1.6rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
  max-width: 32rem;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 160px;
}

.service-title { font-weight: 600; font-size: 1rem; }
.service-text { font-size: 0.9rem; color: rgba(0, 0, 0, 0.72); }
.service-link { margin-top: auto; font-size: 0.9rem; color: #7c8a5a; }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-image {
  position: relative;
  padding-top: 70%;
  background-color: #d5c6b1;
  overflow: hidden;
  cursor: pointer;
}

.project-image:hover::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.25);
}

.project-image--1::before,
.project-image--2::before,
.project-image--3::before,
.project-image--4::before,
.project-image--5::before,
.project-image--6::before,
.project-image--7::before,
.project-image--8:before,
.project-image--9:before  {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.project-image:hover .project-image--1::before,
.project-image:hover .project-image--2::before,
.project-image:hover .project-image--3::before,
.project-image:hover .project-image--4::before,
.project-image:hover .project-image--5::before,
.project-image:hover .project-image--6::before,
.project-image:hover .project-image--7::before,
.project-image:hover .project-image--8::before,
.project-image:hover .project-image--9::before  {
  transform: scale(1.04);
}

.project-image--1::before { background-image: url("images/foto_01.png"); }
.project-image--2::before { background-image: url("images/foto_02.png"); }
.project-image--3::before { background-image: url("images/foto_03.png"); }
.project-image--4::before { background-image: url("images/foto_07.jpeg"); }
.project-image--5::before { background-image: url("images/foto11.jpeg"); }
.project-image--6::before { background-image: url("images/teste_2.jpg"); }
.project-image--7::before { background-image: url("images/foto_12.jpeg"); }
.project-image--8::before { background-image: url("images/foto_10.jpeg"); }
.project-image--9::before { background-image: url("images/foto_08.jpeg"); }

.project-body {
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.9rem;
}

.project-title { font-weight: 600; margin-bottom: 0.25rem; }
.project-meta { color: rgba(0, 0, 0, 0.7); font-size: 0.85rem; }

/* ===== EXPERTISE ===== */
.benefits-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit-card {
  padding: 1.25rem 1.2rem;
  border-radius: 1rem;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.benefit-title { font-weight: 600; margin-bottom: 0.35rem; }
.benefit-text { color: rgba(0, 0, 0, 0.7); }

/* ===== ABOUT ===== */
.about-grid { display: grid; gap: 2rem; }

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.about-text {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.7;
}

.about-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
}

.about-image {
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 220px;
  background-color: #d5c6b1;
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/logo_resized.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

/* ===== CONTACT / CTA ===== */
.cta-section { background-color: #e4ddcf; }

.quote-grid { display: grid; gap: 2.5rem; }

@media (min-width: 900px) {
  .quote-grid {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }
}

.quote-text h2 {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.quote-text p {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 0.6rem;
}

.contact-info {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 2;
}

.contact-info a {
  color: #2e2a26;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.business-hours { margin-top: 1.25rem; font-size: 0.9rem; }
.business-hours h4 { font-weight: 600; margin-bottom: 0.35rem; }
.business-hours p { color: rgba(0, 0, 0, 0.75); margin-bottom: 0.15rem; }

.form-card {
  background-color: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.form-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }

@media (min-width: 600px) {
  .form-grid--columns {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
  }
}

.form-field { display: flex; flex-direction: column; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  background-color: #faf8f4;
  font-family: inherit;
  transition: border-color 0.18s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: #7c8a5a; }

.form-field textarea {
  border-radius: 0.9rem;
  min-height: 90px;
  resize: vertical;
}

.form-helper {
  margin: 0.75rem 0 1rem;
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.5;
}

.send-btn { width: 100%; margin-top: 0.25rem; }

/* ===== FOOTER ===== */
footer {
  background-color: #2e2a26;
  color: #f7f5f2;
  padding: 2.75rem 0 2rem;
  margin-top: auto;
}

.footer-bottom {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(247, 245, 242, 0.7);
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 900px) {
  .sidebar {
    top: 54px;
    height: calc(100vh - 54px);
    transform: translateX(-100%);
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-close { display: block; }

  .top-bar-menu-btn { display: flex; }

  .main-content {
    margin-left: 0;
    margin-top: 54px;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0.75rem;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
/* ===== BEFORE & AFTER ===== */
.ba-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); max-width: 1200px; margin: 0 auto; }
}

.ba-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ba-label-title {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2e2a26;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 370px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.ba-line {
  flex: 1;
  width: 2px;
  background: #fff;
  opacity: 0.85;
}

.ba-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  color: #2e2a26;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.ba-tag {
  position: absolute;
  bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.ba-tag--before {
  left: 0.75rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
}

.ba-tag--after {
  right: 0.75rem;
  background: #7c8a5a;
  color: #fff;
}