/* Tema Advocacia - Estilos da landing (convertidos do modelo Tailwind) */

/* --- Base --- */
html.scroll-smooth {
  scroll-behavior: smooth;
}
.bg-background {
  background-color: var(--color-background, #f9f7f2);
}
.font-display {
  font-family: var(--font-display, "Cinzel", serif);
}
.font-body {
  font-family: var(--font-body, "Lato", sans-serif);
}
.text-primary {
  color: var(--color-primary, #8b3a3a);
}
.text-secondary {
  color: var(--color-secondary, #c5a059);
}
.text-gray-800 {
  color: #1f2937;
}
.text-gray-600 {
  color: #4b5563;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-gray-500 {
  color: #6b7280;
}

/* --- Nav --- */
.nav-fixed {
  position: fixed;
  width: 100%;
  z-index: 50;
  background: rgba(249, 247, 242, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.nav-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .nav-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .nav-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}
.nav-logo-wrap {
  flex-shrink: 0;
}
.nav-logo-wrap .custom-logo-link img,
.nav-logo-img {
  height: 3.5rem;
  width: auto;
  display: block;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}
.nav-logo:hover {
  color: var(--color-secondary);
}
.nav-menu-desktop {
  display: none;
}
@media (min-width: 768px) {
  .nav-menu-desktop {
    display: flex;
    gap: 3rem;
    align-items: center;
  }
}
.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
}
.nav-link {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #4b5563;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--color-secondary);
}
.nav-mobile-toggle {
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .nav-mobile-toggle {
    display: none;
  }
}
.btn-mobile-menu {
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  padding: 0.5rem;
}
.btn-mobile-menu:hover {
  color: var(--color-primary);
}
.nav-mobile-drawer {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: var(--color-background);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding: 1rem;
  z-index: 40;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s,
    opacity 0.3s,
    visibility 0.3s;
}
.nav-mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav-mobile-inner .nav-link {
  padding: 0.5rem 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-background, #f9f7f2);
}
.hero-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 100%;
  height: auto;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(249, 247, 242, 0.9);
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}
.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.35em;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 6px rgba(249, 247, 242, 0.9);
}
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}
.hero-scroll {
  display: none;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(0.25rem);
  }
}

/* --- Botões --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgb(139 58 58 / 0.2);
}
.btn-primary:hover {
  background: rgba(139, 58, 58, 0.9);
}
.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(139, 58, 58, 0.05);
}
.btn-block {
  width: 100%;
  text-align: center;
}

/* --- Seções comuns --- */
.section-label {
  display: block;
  color: var(--color-secondary);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.875rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}
.section-line {
  width: 6rem;
  height: 1px;
  background: var(--color-secondary);
  margin: 1.5rem auto 0;
}

/* --- Sobre --- */
.sobre {
  padding: 6rem 0;
  background: #fff;
}
.sobre-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .sobre-inner {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .sobre-inner {
    padding: 0 2rem;
  }
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .sobre-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.sobre-img-wrap {
  order: 2;
  position: relative;
}
@media (min-width: 1024px) {
  .sobre-img-wrap {
    order: 1;
  }
}
.sobre-img-wrap::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: none;
}
@media (min-width: 768px) {
  .sobre-img-wrap::before {
    display: block;
  }
}
.sobre-img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.7s;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
.sobre-img:hover {
  filter: grayscale(0);
}
.sobre-content {
  order: 1;
}
@media (min-width: 1024px) {
  .sobre-content {
    order: 2;
  }
}
.sobre-text {
  color: #4b5563;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: 1.125rem;
}
.sobre-text p {
  margin-bottom: 1.5rem;
}
.sobre-text p:last-child {
  margin-bottom: 2rem;
}
.sobre-assinatura {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.sobre-line {
  height: 1px;
  width: 3rem;
  background: var(--color-secondary);
}

/* --- Escritório --- */
.escritorio {
  padding: 6rem 0;
  background: var(--color-background);
}
.escritorio-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .escritorio-inner {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .escritorio-inner {
    padding: 0 2rem;
  }
}
.escritorio-header {
  text-align: center;
  margin-bottom: 3rem;
}
.escritorio-body {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}
.escritorio-text {
  color: #4b5563;
  line-height: 1.625;
  font-weight: 300;
  font-size: 1.125rem;
}
.escritorio-text p {
  margin-bottom: 1.5rem;
}
.escritorio-text p:last-child {
  margin-bottom: 0;
}
.escritorio-img-wrap {
  position: relative;
}
.escritorio-img-wrap::before {
  content: "";
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: none;
}
@media (min-width: 768px) {
  .escritorio-img-wrap::before {
    display: block;
  }
}
.escritorio-img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* --- Áreas --- */
.areas {
  padding: 6rem 0;
  background: var(--color-background);
}
.areas-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .areas-inner {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .areas-inner {
    padding: 0 2rem;
  }
}
.areas-header {
  text-align: center;
  margin-bottom: 4rem;
}
.areas-header .section-line {
  margin-top: 1.5rem;
}
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.area-card {
  position: relative;
  padding: 2.5rem;
  background: #fff;
  border: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.area-card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  border-color: rgba(197, 160, 89, 0.3);
}
.area-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transition: transform 0.5s;
  transform-origin: left;
}
.area-card:hover .area-card-bar {
  transform: scaleX(1);
}
.area-icon-wrap {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  transition: all 0.3s;
  overflow: hidden;
}
.area-card:hover .area-icon-wrap {
  background: var(--color-secondary);
  color: white;
}
.area-icon-wrap .material-icons-outlined {
  font-size: 1.875rem;
}
.area-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.area-card-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.area-card:hover .area-card-title {
  color: var(--color-secondary);
}
.area-card-desc {
  color: #4b5563;
  font-weight: 300;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal overlay */
.area-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.area-modal-bg.is-active {
  opacity: 1;
  visibility: visible;
}
.area-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 1000;
  background: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.area-modal.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.area-modal-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.area-modal-text {
  color: #4b5563;
  font-weight: 300;
  line-height: 1.8;
  font-size: 1rem;
}
.area-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.area-modal-close:hover {
  color: var(--color-primary);
}

/* --- Citação --- */
.citacao {
  padding: 6rem 1rem;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.citacao-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.citacao-icon {
  color: var(--color-secondary);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.citacao-texto {
  font-size: 1.5rem;
  color: white;
  font-weight: 500;
  font-style: italic;
  line-height: 1.625;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .citacao-texto {
    font-size: 2.25rem;
  }
}
.citacao-autor {
  color: var(--color-secondary);
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* --- Contato --- */
.contato {
  padding: 6rem 0;
  background: #fff;
}
.contato-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .contato-inner {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .contato-inner {
    padding: 0 2rem;
  }
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 768px) {
  .contato-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contato-intro {
  color: #4b5563;
  font-weight: 300;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.contato-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contato-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  flex-wrap: nowrap;
}
.contato-item > .material-icons-outlined {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  display: block !important;
  width: auto !important;
  line-height: 1;
}
.contato-item .contato-item-svg {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}
.contato-item .contato-item-svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.contato-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: #d6d3cd;
  color: #3b3b3b;
  transition: background-color 0.2s, color 0.2s;
}
.contato-social-icon:hover {
  background-color: var(--color-secondary);
  color: #fff;
}
.contato-social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.contato-item h4 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.contato-item p {
  color: #4b5563;
  font-weight: 300;
  margin: 0;
}
.contato-item a {
  color: inherit;
  text-decoration: none;
}
.contato-item a:hover {
  color: var(--color-secondary);
}
.contato-form-wrap {
  background: var(--color-background);
  padding: 2rem;
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
@media (min-width: 768px) {
  .contato-form-wrap {
    padding: 3rem;
  }
}
.contato-form .form-group {
  margin-bottom: 1.5rem;
}
.contato-form label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.contato-form input,
.contato-form textarea {
  width: 100%;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #d1d5db;
  padding: 0.5rem 0;
  color: #1f2937;
  transition: border-color 0.2s;
}
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-bottom-color: var(--color-secondary);
}
.contato-form input::placeholder,
.contato-form textarea::placeholder {
  color: #9ca3af;
}
.contato-form textarea {
  resize: vertical;
  min-height: 6rem;
}
.contato-form .btn {
  margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
  background: #3d1414;
  color: white;
  padding: 3rem 0;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .footer-inner {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .footer-inner {
    padding: 0 2rem;
  }
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-brand {
  margin-bottom: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-brand {
    margin-bottom: 0;
    text-align: left;
  }
}
.footer-tagline {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 300;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 1.5rem;
}
.footer-social-link {
  color: #9ca3af;
  transition: color 0.2s;
}
.footer-social-link:hover {
  color: var(--color-secondary);
}
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 300;
}
@media (min-width: 768px) {
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-bottom p {
  margin: 0;
}

/* --- WhatsApp flutuante --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: whatsapp-float-bob 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  animation: none;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.whatsapp-float-icon {
  width: 1.75rem;
  height: 1.75rem;
}
@keyframes whatsapp-float-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ── Feedback do formulário de contato ─────────────────────────────────── */
.form-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.form-notice--success {
  background: #edf7ed;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-notice--error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.form-notice .material-icons-outlined {
  font-size: 1.25rem;
  flex-shrink: 0;
}
