:root {
  --wine: #671d28;
  --wine-dark: #451219;
  --wine-light: #8b3542;

  --cream: #f8f4ef;
  --white: #ffffff;
  --text: #272323;
  --muted: #726b69;

  --border: rgba(103, 29, 40, 0.15);

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 84px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
  display: flex;
  flex-direction: column;

  font-family: "Playfair Display", serif;

  font-size: 21px;
  font-weight: 700;

  line-height: 1.1;

  color: var(--wine-dark);
}

.logo span {
  font-family: "DM Sans", sans-serif;

  font-size: 10px;
  letter-spacing: 0.2em;

  text-transform: uppercase;

  color: var(--wine);
}

.menu {
  display: flex;
  gap: 32px;
}

/* Mobile header/menu styles */
.menu-toggle { display: none; border: none; background: transparent; cursor: pointer; }
.menu-toggle .hamburger { width: 22px; height: 2px; background: var(--wine); display:block; position:relative; }
.menu-toggle .hamburger::before, .menu-toggle .hamburger::after { content: ""; position:absolute; left:0; width:100%; height:2px; background:var(--wine); transition: transform .25s ease; }
.menu-toggle .hamburger::before { top: -7px; }
.menu-toggle .hamburger::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 767px) {
  .menu { display: none; }
  .btn.btn-outline { display: none; }
  .menu-toggle { display: inline-flex; width:44px; height:44px; align-items:center; justify-content:center; border: none; background: transparent; }

  .mobile-menu { display:flex; position: fixed; top:0; right:0; bottom:0; width:80%; max-width:320px; background: var(--cream); box-shadow: -8px 0 30px rgba(0,0,0,0.12); transform: translateX(100%); transition: transform .28s ease; z-index:2500; padding: 80px 20px; flex-direction: column; gap: 14px; }
  .mobile-menu[aria-hidden="false"] { transform: translateX(0); }
  .mobile-menu a { color: var(--wine-dark); font-weight: 600; font-size: 18px; padding: 8px 0; }
  .mobile-menu .btn { margin-top: 12px; }

  /* Hero single-column layout for mobile */
  .hero { min-height: auto; padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  /* Keep the visual arc/bordo locally while reducing block height and
     preserving object-fit. This only affects mobile. */
  .image-card {
    min-height: auto;
    padding: 12px;
    border-radius: 220px 220px 30px 30px; /* preserve arc shape */
    background: var(--wine); /* keep bordô arc on mobile */
    overflow: hidden;
  }

  .image-placeholder {
    height: auto;
    min-height: 0;
    border-radius: 205px 205px 20px 20px;
    overflow: hidden;
  }

  .hero-photo {
    width: 100%;
    height: 260px; /* reduce height on mobile */
    max-height: 320px;
    object-fit: cover;
    object-position: center 36%; /* preserve face framing */
    display: block;
    border-radius: 12px; /* small rounding inside the arc */
  }
  .floating-card { position: static; box-shadow: none; background: white; margin-top: 10px; padding: 10px; border-radius: 8px; }

  /* Ensure container spacing works on smallest widths (320px) */
  .container { width: min(94%, var(--max-width)); }
  /* Prevent background scroll when mobile menu is open */
  body.mobile-menu-open { height: 100%; overflow: hidden; }
}

.menu a {
  font-size: 14px;
  color: var(--muted);

  transition: 0.2s;
}

.menu a:hover {
  color: var(--wine);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 24px;

  border-radius: 999px;

  font-weight: 600;
  font-size: 14px;

  transition: 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.btn-outline {
  border: 1px solid var(--wine);
  color: var(--wine);
}

.btn-outline:hover {
  background: var(--wine);
  color: white;
}

.btn-light {
  background: white;
  color: var(--wine-dark);
}

.btn-light:hover {
  transform: translateY(-2px);
}

/* HERO */

.hero {
  min-height: calc(100vh - 84px);

  display: flex;
  align-items: center;

  padding: 90px 0;

  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 80px;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 20px;

  color: var(--wine);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 720px;

  font-family: "Playfair Display", serif;

  font-size: clamp(3rem, 6vw, 5.4rem);

  line-height: 0.98;
  letter-spacing: -0.04em;

  color: var(--wine-dark);
}

.hero h1 span {
  display: block;

  margin-top: 12px;

  color: var(--wine);
}

.hero-description {
  max-width: 640px;

  margin-top: 32px;

  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 15px;

  margin-top: 38px;
}

.hero-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;

  margin-top: 55px;
  padding-top: 30px;

  border-top: 1px solid var(--border);
}

.hero-details div {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.hero-details strong {
  color: var(--wine-dark);
}

.hero-details span {
  font-size: 13px;
  color: var(--muted);
}

/* HERO VISUAL */

.image-card {
  position: relative;

  min-height: 620px;

  padding: 18px;

  border-radius: 220px 220px 30px 30px;

  background: var(--wine);
}

.image-placeholder {
  height: 100%;
  min-height: 584px;

  border-radius: 205px 205px 20px 20px;

  background:
    linear-gradient(
      150deg,
      #e5d9d1,
      #b99d93
    );

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  color: var(--wine-dark);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 584px;
  object-fit: cover;
  border-radius: 205px 205px 20px 20px;
  display: block;
}

.image-placeholder span {
  font-family: "Playfair Display", serif;
  font-size: 26px;
}

.image-placeholder small {
  margin-top: 8px;
}

.floating-card {
  position: absolute;

  left: -60px;
  bottom: 60px;

  width: 270px;

  padding: 25px;

  border-radius: 20px;

  background: white;

  box-shadow:
    0 20px 50px rgba(50, 20, 25, 0.12);
}

.floating-label {
  display: block;

  margin-bottom: 8px;

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.12em;

  color: var(--wine);
}

/* SECTIONS */

.section {
  padding: 120px 0;
}

.about {
  background: white;
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;

  align-items: start;
}

.section-heading h2,
.section-title-center h2 {
  font-family: "Playfair Display", serif;

  font-size: clamp(2.3rem, 4vw, 4rem);

  line-height: 1.1;

  color: var(--wine-dark);
}

.about-text {
  font-size: 18px;

  color: var(--muted);
}

.about-text p + p {
  margin-top: 20px;
}

.text-link {
  display: inline-block;

  margin-top: 30px;

  color: var(--wine);

  font-weight: 700;
}

/* SERVICES */

.practice {
  background: var(--cream);
}

.section-title-center {
  max-width: 760px;

  margin: 0 auto 60px;

  text-align: center;
}

.section-title-center p {
  max-width: 620px;

  margin: 20px auto 0;

  color: var(--muted);
}

.cards-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 24px;
}

/* Testimonials */
.testimonials {
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  position: relative;
  overflow: hidden;
}

.track-inner {
  display: flex;
  gap: 16px;
  transform: translateX(0);
  transition: transform 0.45s ease;
  will-change: transform;
}

.track-inner .testimonial-card {
  min-width: 260px;
  max-width: 320px;
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonials-carousel { padding: 12px 0; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots { text-align: center; margin-top: 16px; }
.carousel-dots button { border: none; background: var(--border); width: 10px; height: 10px; border-radius: 50%; margin: 0 6px; cursor: pointer; }
.carousel-dots button.active { background: var(--wine); }

/* Modal */
.modal { position: fixed; inset: 0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,0.6); z-index:2000; }
.modal[aria-hidden="false"] { display:flex; }
.modal-content { background: white; padding:18px; border-radius:10px; max-width: 90%; max-height: 90%; }
.modal-content img { max-width: 100%; max-height: 80vh; display:block; }
.modal-close { position: absolute; right: 24px; top: 18px; background: none; border: none; font-size: 26px; cursor: pointer; }

.view-text-btn {
  margin-top: 10px;
  background: var(--wine);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.testimonial-card p {
  color: var(--muted);
  margin: 0;
}

.testimonial-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .track-inner .testimonial-card { min-width: 100%; max-width: 100%; }
  .testimonials-carousel { padding: 0; }
}

.testimonial-author {
  margin-top: 12px;
  font-weight: 700;
  color: var(--wine-dark);
}

.service-card {
  padding: 40px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 24px;

  transition: 0.25s ease;
}

.service-card .profile-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: block;
}

.service-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 22px 50px rgba(60, 20, 30, 0.08);
}

.service-number {
  font-size: 12px;

  color: var(--wine);

  font-weight: 700;

  letter-spacing: 0.12em;
}

.service-card h3 {
  margin-top: 50px;

  font-family: "Playfair Display", serif;

  font-size: 26px;

  color: var(--wine-dark);
}

.service-card p {
  margin-top: 16px;

  color: var(--muted);
}

.service-card a {
  display: inline-block;

  margin-top: 28px;

  font-weight: 600;

  color: var(--wine);
}

/* STEPS */

.steps {
  background: white;
}

.steps-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  margin-top: 60px;

  border-top: 1px solid var(--border);
}

.step {
  padding: 35px;

  border-right: 1px solid var(--border);
}

.step:last-child {
  border-right: none;
}

.step > span {
  color: var(--wine);

  font-size: 12px;
  font-weight: 700;
}

.step h3 {
  margin-top: 35px;

  font-family: "Playfair Display", serif;

  color: var(--wine-dark);

  font-size: 23px;
}

.step p {
  margin-top: 12px;

  color: var(--muted);
}

/* CTA */

.cta {
  background: var(--cream);
}

.cta-box {
  padding: 90px;

  border-radius: 36px;

  background:
    linear-gradient(
      135deg,
      var(--wine-dark),
      var(--wine)
    );

  text-align: center;

  color: white;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}

.cta-box h2 {
  max-width: 800px;

  margin: auto;

  font-family: "Playfair Display", serif;

  font-size: clamp(2.4rem, 5vw, 4.5rem);

  line-height: 1.05;
}

.cta-box p {
  max-width: 600px;

  margin: 25px auto 35px;

  color: rgba(255, 255, 255, 0.75);
}

/* FOOTER */

.footer {
  padding: 45px 0;

  background: #231819;

  color: white;
}

.footer-content {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 30px;
}

.footer p {
  margin-top: 4px;

  font-size: 13px;

  color: rgba(255, 255, 255, 0.55);
}

/* RESPONSIVE */

@media (max-width: 900px) {

  .menu {
    display: none;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-visual {
    margin-top: 30px;
  }

  .image-card {
    max-width: 520px;
    margin: auto;
  }

  .floating-card {
    left: 15px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-details {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .nav .btn-outline {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .image-card {
    min-height: 480px;
  }

  .image-placeholder {
    min-height: 444px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cta-box {
    padding: 60px 25px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ========================================
   CORREÇÃO MENU MOBILE
   ======================================== */

@media (max-width: 767px) {

  .menu-toggle {
    position: relative;
    z-index: 3001;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;

    width: 100%;
    max-width: none;
    height: 100dvh;

    padding: 110px 28px 40px;

    background: var(--cream);

    display: flex;
    flex-direction: column;
    gap: 18px;

    transform: translateX(100%);
    transition: transform 0.28s ease;

    z-index: 3000;

    overflow-y: auto;
  }

  .mobile-menu[aria-hidden="false"] {
    transform: translateX(0);
  }

  .mobile-menu a {
    display: block;

    padding: 12px 0;

    font-size: 20px;
    font-weight: 600;

    color: var(--wine-dark);

    border-bottom: 1px solid rgba(103, 29, 40, 0.12);
  }

  .mobile-menu .btn {
    margin-top: 18px;

    width: 100%;

    border-bottom: none;
  }

  body.mobile-menu-open {
    height: 100%;
    overflow: hidden;
  }

}

