/* HERO LOGO */

/* HERO */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem 4rem 6rem 5vw;
  animation: fadeUp .9s .2s ease both;
}


.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1.8rem;
  text-align: left;
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 auto 3rem;
  text-align: center;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: .85rem 2rem;
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
  background: transparent;
}

.btn:hover { background: var(--ink); color: var(--cream); }

.btn-gold { background: var(--gold); color: var(--cream); border-color: var(--gold); }
.btn-gold:hover { background: #a0782e; border-color: #a0782e; color: var(--cream); }

.hero-right {
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s .4s ease both;
}

.hero-photo { width: 100%; height: 100%; object-fit: cover; filter: sepia(18%) contrast(1.05); }

.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(184,147,63,.18) 0%, transparent 60%);
}

/* SECTION BASE */
section { padding: 7rem 5vw; }

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; color: var(--gold); }

/* NOME E OAB (entre o hero e o Sobre) */
.name-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 2.5rem 5vw;
  text-align: center;
  background: var(--cream);
}

.name-band-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold);
}

.name-band-oab {
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ABOUT */
#sobre {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

#sobre::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}

.about-visual {
  position: relative;
  align-self: stretch;
}

.about-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}
#sobre .section-title em { color: var(--gold-lt); }

.about-frame {
  background: #2a2a24;
  position: relative;
  overflow: hidden;
}

.about-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; filter: sepia(25%); }

.about-badge {
  position: absolute; top: -1.5rem; right: -1.5rem;
  width: 8rem; height: 8rem;
  background: var(--gold);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--cream);
  font-family: var(--ff-head);
}

.about-badge strong { font-size: 2rem; font-weight: 600; line-height: 1; }
.about-badge span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }

.about-text { padding: 5rem 0; }

.about-text p { color: rgba(245,242,236,.7); margin-bottom: 1.2rem; }

/* SERVICES */
#servicos { background: var(--cream); padding-top: 0; padding-bottom: 0.5rem; }

.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.services-intro { color: var(--muted); text-align: center; max-width: 50ch; font-size: 1rem; line-height: 1.3; white-space: nowrap; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.service-card {
  --pad-x: 2.5rem;
  background: var(--cream);
  padding: 3rem var(--pad-x) 0.3rem;
  position: relative;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .45s;
  cursor: default;
  overflow: hidden;
  border: 1px solid #8B6F4E;
  border-radius: 12px;
  margin: 0.5rem 0.5rem 0;
}

.service-img-wrap {
  width: calc(100% + 2 * var(--pad-x));
  height: 200px;
  overflow: hidden;
  margin: -3rem calc(-1 * var(--pad-x)) 0.5rem;
}

.service-img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.service-num {
  display: none;
}

.service-name {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-align: center;
}

.service-desc { font-size: .88rem; color: var(--muted); line-height: 1.7; }

.service-arrow {
  display: inline-block;
  text-decoration: none;
  margin-top: 0.3rem;
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.arabesco-servico { display: block; margin: 0.3rem auto; width: 180px; }

/* Efeito de hover só em dispositivos com mouse (no celular o toque deixava o efeito "preso") */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 18px 40px rgba(139,111,78,.25);
    border-color: var(--gold);
    z-index: 1;
  }
  .service-card:hover .service-img { transform: scale(1.12); }
}

.arabesco-sobre { display: block; margin: 1rem auto; width: 360px; opacity: .7; }

/* REDES SOCIAIS */
.social-section { background: var(--cream); padding: 3rem 5vw 4rem; text-align: center; }
.social-section .section-title { margin-bottom: 2rem; }
.social-links { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; }
.social-link { color: #8B6F4E; transition: opacity .2s; }
.social-link:hover { opacity: .65; }
.social-link svg { display: block; width: 2rem; height: 2rem; }

/* CONTACT */
#servicos { padding-bottom: 0.5rem; }

#contato {
  background: var(--cream);
  padding-top: 0 !important;
  padding-bottom: 6rem;
  margin-top: 0 !important;
  display: flex;
  justify-content: center;
}

.arabesco-divisor { display: block; margin: 6rem auto 1rem; width: 700px; max-width: 90%; }

.contact-info { padding-top: 0; margin: 0 auto; text-align: center; }
.contact-info .section-title { margin-top: 0 !important; padding-top: 0 !important; text-align: center; }
.contact-info p { color: var(--muted); margin-bottom: 2.5rem; max-width: 36ch; text-align: center; margin-left: auto; margin-right: auto; }

.contact-items { display: flex; flex-direction: row; justify-content: center; gap: 3rem; flex-wrap: wrap; margin: 2rem auto; }

.contact-item { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 1rem; }

.contact-item-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item-value { display: block; font-size: .92rem; color: var(--ink); text-decoration: none; }
a.contact-item-value:hover { color: var(--gold); }

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-2rem); }
  to   { opacity: 1; transform: translateX(0); }
}

/* SCROLL REVEAL (só esconde se o JavaScript estiver ativo) */
.js .reveal {
  opacity: 0; transform: translateY(2.5rem);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }


/* RESPONSIVE */
@media (max-width: 900px) {
  section { padding: 4.5rem 5vw; }

  /* Hero: mantém texto à esquerda e foto à direita, como no desktop */
  #hero { grid-template-columns: 1.15fr 1fr; min-height: auto; padding-top: 4.5rem; }
  .hero-left { padding: 2.5rem 1.2rem 2.5rem 0; }
  .hero-right { min-height: 26rem; }
  .hero-photo { object-position: 60% center; }

  /* Sobre: foto em largura total, texto abaixo */
  #sobre { grid-template-columns: 1fr; gap: 0; }
  .about-visual { margin: 0 -5vw; }
  .about-frame { aspect-ratio: 4 / 5; max-height: 80vh; }
  .about-frame img { object-position: center 25%; }
  .about-badge { top: 1.2rem; right: 1.2rem; width: 6rem; height: 6rem; }
  .about-badge strong { font-size: 1.6rem; }
  .about-text { padding: 3rem 0 4rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-intro { white-space: normal; }
}

/* Hero no celular: lado a lado, com a coluna da foto mais larga e mais alta */
@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr 1.2fr; }
  .hero-right { min-height: 420px; }
  .hero-photo { object-fit: cover; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(1.8rem, 8.4vw, 2.6rem); margin-bottom: 1rem; }
  .hero-sub { font-size: .82rem; line-height: 1.55; margin-bottom: 1.5rem; }
  .btn-group { flex-direction: column; width: 100%; gap: .6rem; }
  .btn { text-align: center; padding: .75rem .5rem; font-size: .68rem; letter-spacing: .08em; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { --pad-x: 1.5rem; margin: .5rem 0 0; }

  .contact-items { flex-direction: column; align-items: center; gap: 1.5rem; }
  .contact-item { width: 100%; max-width: 20rem; text-align: left; }
  .contact-item-value { overflow-wrap: anywhere; }
}
