:root {
  --c-bg: #f6f5f3;
  --c-bg-alt: #ececea;
  --c-stone: #a8acaf;
  --c-stone-deep: #7d8184;
  --c-charcoal: #2c2d2f;
  --c-sage: #6b7378;
  --c-white: #ffffff;
  --c-line: rgba(44, 45, 47, 0.14);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --container: 1120px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--c-charcoal);
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--c-sage);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-stone-deep);
  display: inline-block;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--c-charcoal);
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-charcoal);
  color: var(--c-bg);
}

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

.btn-outline {
  background: transparent;
  color: var(--c-charcoal);
}

.btn-outline:hover {
  background: var(--c-charcoal);
  color: var(--c-bg);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

.site-header.scrolled {
  background: rgba(246, 245, 243, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--c-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.15;
}

.brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-stone);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand .mark img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  object-position: center;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: var(--c-stone-deep);
  text-transform: uppercase;
  text-align: left;
  margin-top: 1px;
}

.main-nav ul {
  display: flex;
  gap: 38px;
}

.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-sage);
  transition: width .3s var(--ease);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 26px;
  height: 20px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-charcoal);
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}

.nav-toggle span {
  top: 9px;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.nav-toggle.open span {
  background: transparent;
}

.nav-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 172px 0 130px;
  background: var(--c-bg);
}

.hero-branch {
  position: absolute;
  top: -40px;
  left: -60px;
  width: 420px;
  opacity: .9;
  pointer-events: none;
}

.hero-branch path {
  fill: none;
  stroke: var(--c-stone);
  stroke-width: 1.2;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.4s var(--ease);
}

.hero-branch.drawn path {
  stroke-dashoffset: 0;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}


.hero-content h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--c-sage);
}

.hero-content .lede {
  font-size: 1.06rem;
  color: #54564c;
  max-width: 480px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  z-index: 1;
}

/* ---------- Section shell ---------- */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--c-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.22;
}

.section-head p {
  margin-top: 16px;
  color: #54564c;
  font-size: 0.98rem;
}

.divider {
  display: flex;
  justify-content: center;
  padding: 0 0 8px;
}

.divider svg {
  width: 180px;
  height: 34px;
}

.divider path {
  fill: none;
  stroke: var(--c-stone);
  stroke-width: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About ---------- */
.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-frame {
  width: 100%;
  aspect-ratio: 1/1.08;
  border-radius: 50%;
  background: var(--c-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-frame::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
}

.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  margin-bottom: 22px;
  line-height: 1.25;
}

.about-text p {
  color: #54564c;
  margin-bottom: 18px;
  font-size: 1rem;
}

.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--c-sage);
  margin-top: 26px;
  padding-left: 22px;
  border-left: 2px solid var(--c-stone);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
  border: none;
}

.service-card {
  position: relative;
  background: var(--c-bg);
  padding: 44px 34px;
  overflow: hidden;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(44, 45, 47, 0.06), 0 8px 24px rgba(44, 45, 47, 0.05);
  cursor: pointer;
}

.service-card:hover {
  background: var(--c-bg-alt);
}

.service-card .icon,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
}

.service-card .icon path {
  fill: none;
  stroke: var(--c-sage);
  stroke-width: 1.3;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: black;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  transform: scale(1);
  z-index: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}

/* Entrada suave: a imagem parte levemente ampliada/invisível e "encaixa" quando o card entra na tela */
.service-card.reveal .service-card-bg {
  opacity: 0;
  transform: scale(1.18);
}

.service-card.reveal.in .service-card-bg {
  animation: serviceBgReveal 1.3s var(--ease) .1s forwards;
}

@keyframes serviceBgReveal {
  from {
    opacity: 0;
    transform: scale(1.18);
  }

  to {
    opacity: 0.25;
    transform: scale(1);
  }
}

.service-card.has-bg:hover .service-card-bg {
  opacity: 0.18;
  transform: scale(1.06);
}

.service-card-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Service lightboxes ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  background: rgba(44, 45, 47, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity .35s var(--ease), visibility .35s var(--ease), backdrop-filter .35s var(--ease);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(246, 245, 243, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 26px;
  padding: 58px 46px 44px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(44, 45, 47, 0.28);
  transform: translateY(18px) scale(.96);
  transition: transform .4s var(--ease);
}

.lightbox.open .lightbox-panel {
  transform: translateY(0) scale(1);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.lightbox-close:hover {
  background: var(--c-charcoal);
}

.lightbox-close svg {
  width: 15px;
  height: 15px;
}

.lightbox-close path {
  fill: none;
  stroke: var(--c-charcoal);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: stroke .3s var(--ease);
}

.lightbox-close:hover path {
  stroke: var(--c-bg);
}

.lightbox-title {
  font-size: 1.5rem;
  margin: 0 auto 18px;
  max-width: 360px;
}

.lightbox-text {
  font-size: 0.94rem;
  line-height: 1.68;
  color: #4a4c46;
}

.lightbox-cta-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.lightbox-cta {
  padding: 13px 26px;
}

@media (max-width: 560px) {
  .lightbox-panel {
    padding: 52px 26px 34px;
  }

  .lightbox-cta-wrap {
    justify-content: center;
  }
}

body.lightbox-lock {
  overflow: hidden;
}

/* ---------- Differentiators ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.diff-item {
  text-align: center;
}

.diff-item .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 22px;
}

.diff-item .icon path {
  fill: none;
  stroke: var(--c-stone-deep);
  stroke-width: 1.2;
}

.diff-item h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.diff-item p {
  font-size: 0.92rem;
  color: #5c5e53;
}

/* ---------- Testimonials ---------- */
.testimonials {
  text-align: center;
}

.t-track {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  min-height: 180px;
}

.t-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s var(--ease);
}

.t-slide.active {
  opacity: 1;
  position: relative;
}

.t-slide blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0 0 22px;
  color: var(--c-charcoal);
}

.t-slide cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone-deep);
}

.t-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.t-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--c-stone-deep);
  background: transparent;
  padding: 0;
  transition: background .3s var(--ease);
}

.t-dots button.active {
  background: var(--c-sage);
  border-color: var(--c-sage);
}

/* ---------- Contact ---------- */
.contact .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-stone-deep);
}

.field input,
.field select,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--c-stone);
  background: transparent;
  padding: 10px 2px;
  color: var(--c-charcoal);
  transition: border-color .3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-sage);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-msg {
  font-size: 0.86rem;
  margin-top: 6px;
  min-height: 20px;
  color: var(--c-sage);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.info-block h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-stone-deep);
  margin-bottom: 10px;
}

.info-block p {
  font-size: 1.02rem;
}

.whatsapp-btn {
  margin-top: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-charcoal);
  color: var(--c-bg);
  padding: 56px 0 30px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-stone);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .mark img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  object-position: center;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-nav ul {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  opacity: .85;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(246, 245, 243, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  overflow: visible;
}

.footer-social path,
.footer-social rect,
.footer-social circle {
  fill: none;
  stroke: var(--c-bg);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social circle.dot {
  fill: var(--c-bg);
  stroke: none;
}

.footer-social a {
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.footer-social a:hover {
  background: rgba(246, 244, 238, 0.12);
  border-color: rgba(246, 244, 238, 0.5);
}

/* ---------- Floating social buttons ---------- */
.floating-social {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(44, 45, 47, 0.32);
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.floating-btn:hover {
  background: var(--c-sage);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(44, 45, 47, 0.38);
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.floating-btn path,
.floating-btn rect,
.floating-btn circle {
  fill: none;
  stroke: var(--c-bg);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .floating-social {
    right: 18px;
    bottom: 18px;
    gap: 14px;
  }

  .floating-btn {
    width: 54px;
    height: 54px;
  }

  .floating-btn svg {
    width: 25px;
    height: 25px;
  }
}

.footer-bottom {
  max-width: var(--container);
  margin: 38px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid rgba(246, 245, 243, 0.14);
  font-size: 0.76rem;
  opacity: .6;
}

@media (max-width: 900px) {
  .about .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--c-bg);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 110px 36px 40px;
    z-index: 90;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 26px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 150px 0 90px;
  }

  .hero-ring {
    width: 520px;
    height: 520px;
  }

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

  .section {
    padding: 88px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
