:root {
  --dark-bg: #1a1a1a;
  --gold: #D4AF37;
  --light-text: #f0f0f0;
  --dark-text: #1a1a1a;
  --card-bg: #2c2c2c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  text-align: justify;
}

h1, h2, h3 {
  color: var(--gold);
  font-weight: 700;
}

a {
  color: var(--gold);
  text-decoration: none;
}

header {
  background-color: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gold);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--light-text);
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--gold);
}

main {
  padding-top: 80px;
}

section {
  padding: 6rem 5%;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-button {
  background-color: var(--gold);
  color: var(--dark-text);
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #c8a030;
  transform: translateY(-3px);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  background-color: var(--gold);
  bottom: -10px;
  left: 20%;
}

#about p, #contact p {
  max-width: 800px;
  margin: 2rem auto;
  font-weight: 300;
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  flex-basis: 300px;
  flex-grow: 1;
  max-width: 350px;
  border: 1px solid #444;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.card h3 {
  margin-bottom: 1rem;
}

footer {
  padding: 2rem;
  text-align: center;
  background-color: #111;
  border-top: 1px solid #333;
}

/* HERO SECTION */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('../img/fabricio-hero-final.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--gold);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: var(--light-text);
  max-width: 600px;
  z-index: 1;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.hero-overlay p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* IMAGEM DO ADVOGADO PARA CELULAR */
.imagem-celular {
  display: none;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

@media (max-width: 768px) {
  #hero {
    position: relative;
    background: none !important;
    padding: 0 !important;
    height: auto !important;
    overflow: hidden;
  }

  .imagem-celular {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: auto;
    margin-bottom: 0;
  }

  .desktop-only {
    display: none !important;
  }

  .hero-overlay {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    margin-top: -13rem !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: left !important;
    color: var(--light-text);
    z-index: 1;
    box-sizing: border-box !important;
    padding: 1rem 0.5rem 0.5rem 0rem !important; /* remove margem esquerda */
  }

  .hero-overlay h1,
  .hero-overlay p {
    padding-left: 0 !important;
    padding-right: 0.5rem !important;
    margin-left: -1rem !important;
    word-break: break-word;
    margin-right: 0 !important;
  }

 .cta-button {
  display: block;
  margin: 1.5rem 0 0.5rem -1rem; /* move mais à esquerda */
  width: 85%;
  font-size: 1rem;
  text-align: center;
}

}

@media (max-width: 768px) {
  #contact .cta-button {
    margin-left: auto !important;
    margin-right: 3.5rem !important;
    display: block;
    width: fit-content;
    text-align: center;
  }
}

