﻿/*
 * Custom stylesheet for Arnaldo Doneris Advogados
 * Correções de tema, responsividade e apresentação completa.
 */

:root {
  --body-bg: #f8fafc;
  --surface-bg: #ffffff;
  --text-color: #1f2937;
  --muted-color: #6b7280;
  --heading-color: #111827;
  --accent-color: #f1d141;
  --accent-strong: #d6b325;
  --border-color: rgba(15, 23, 42, 0.08);
  --shadow-color: rgba(15, 23, 42, 0.08);
  --nav-color: #111827;
  --nav-hover-color: #111827;
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --nav-mobile-link: #111827;
  --toggle-bg: rgba(255, 255, 255, 0.9);
  --scroll-top-bg: rgba(15, 23, 42, 0.9);
  --scroll-top-hover: #f1d141;
}

body.dark-mode {
  --body-bg: #020617;
  --surface-bg: #111827;
  --text-color: #e2e8f0;
  --muted-color: #94a3b8;
  --heading-color: #f8fafc;
  --border-color: rgba(255, 255, 255, 0.08);
  --nav-color: #e2e8f0;
  --nav-hover-color: #f1d141;
  --nav-mobile-bg: rgba(8, 15, 28, 0.98);
  --nav-mobile-link: #f8fafc;
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --scroll-top-bg: rgba(241, 209, 65, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--body-bg);
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-strong);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.main {
  padding-top: 95px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(14px);
  z-index: 999;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

body.dark-mode .header {
  background: rgba(8, 15, 28, 0.96);
  border-color: rgba(241, 209, 65, 0.12);
}

body.dark-mode .bg-light,
body.dark-mode .section.bg-light,
body.dark-mode .about,
body.dark-mode .team,
body.dark-mode .contact,
body.dark-mode .faq-container,
body.dark-mode .stats .stats-item,
body.dark-mode .features .feature-box,
body.dark-mode .alt-features .icon-box,
body.dark-mode .team .team-member,
body.dark-mode .info-card,
body.dark-mode .contact-form,
body.dark-mode .faq-item,
body.dark-mode .mapa-popup {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .section-title p,
body.dark-mode .about .content p,
body.dark-mode .about .content ul li,
body.dark-mode .team .member-info p,
body.dark-mode .info-card p,
body.dark-mode .faq-content p,
body.dark-mode footer.footer p {
  color: var(--muted-color);
}

body.dark-mode .faq-trigger,
body.dark-mode .hero,
body.dark-mode .hero h1,
body.dark-mode .hero p,
body.dark-mode .section-title h2 {
  color: var(--heading-color);
}

body.dark-mode .btn-primary,
body.dark-mode .btn-get-started,
body.dark-mode .btn-mapa {
  color: #111827;
  background: var(--accent-color);
  border-color: var(--accent-color);
}

body.scrolled .header {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header .logo img {
  max-height: 80px;
}

.header .logo .sitename {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navmenu {
  display: flex;
  align-items: center;
}

.navmenu ul {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.navmenu li {
  position: relative;
}

.navmenu a {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: var(--nav-color);
  padding: 0.85rem 1rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.navmenu a::after {
  content: '';
  position: absolute;
  left: 1rem;
  bottom: 0.4rem;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.25s ease;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--nav-hover-color);
}

.navmenu a:hover::after,
.navmenu a.active::after {
  width: calc(100% - 2rem);
}

.theme-toggle,
.mobile-nav-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--toggle-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover,
.mobile-nav-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle i,
.mobile-nav-toggle i {
  font-size: 1.2rem;
  color: var(--heading-color);
}

.hero {
  padding: 140px 0 80px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--heading-color);
}

.hero-highlight {
  color: var(--accent-color);
}

.hero p {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--muted-color);
  margin-bottom: 1.6rem;
}

.btn-get-started,
.btn-mapa,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-get-started {
  color: #ffffff;
  background: var(--accent-color);
}

.btn-get-started:hover {
  transform: translateY(-2px);
  background: #d6b325;
}

.btn-mapa {
  color: #ffffff;
  background: #0b1633;
  text-decoration: none;
  min-width: 210px;
}

.btn-mapa:hover {
  transform: translateY(-2px);
  background: #13214a;
}

.btn-mapa i {
  font-size: 1rem;
}

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--muted-color);
  font-size: 1rem;
  margin: 0 auto;
  max-width: 700px;
}

.about .content h3,
.features .feature-box h3,
.alt-features .icon-box h4,
.team .member-info h4,
.team .member-info span,
.info-card h4 {
  color: var(--heading-color);
}

.about .content p,
.about .content ul li,
.team .member-info p,
.info-card p,
.faq-content p {
  color: var(--text-color);
}

.about .content ul {
  padding-left: 0;
}

.about .content ul li {
  margin-bottom: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-color);
}

.about .content ul li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 0.25rem;
  border-radius: 10px;
  color: var(--accent-color);
  background: rgba(241, 209, 65, 0.14);
  font-size: 1.15rem;
  line-height: 1;
}

.stats .stats-item {
  padding: 1.8rem;
  border-radius: 24px;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.stats .stats-item i {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--accent-color);
}

.stats .stats-item span {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.stats .stats-item p {
  margin: 0;
  color: var(--muted-color);
}

.features .feature-box,
.alt-features .icon-box {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.4rem;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.features .feature-box:hover,
.alt-features .icon-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px rgba(15, 23, 42, 0.08);
}

.features .feature-box i,
.alt-features .icon-box i {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--accent-color);
  background: rgba(241, 209, 65, 0.14);
  font-size: 1.3rem;
  line-height: 1;
}

.features .feature-box h3,
.alt-features .icon-box h4 {
  font-size: 1rem;
  margin: 0;
}

.alt-features .icon-box p {
  margin: 0.5rem 0 0;
  color: var(--muted-color);
}

.team .team-member {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team .team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.team .member-img {
  min-height: 220px;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .member-info {
  padding: 1.5rem;
}

.team .member-info h4 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.team .member-info span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.9rem;
}

.team .member-info p {
  margin: 0;
  color: var(--muted-color);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  cursor: pointer;
}

.faq-trigger:focus {
  outline: 3px solid rgba(241, 209, 65, 0.3);
  outline-offset: 2px;
}

.faq-question {
  flex: 1;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-content p {
  margin: 0.8rem 0 1.3rem;
  color: var(--muted-color);
  line-height: 1.8;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-content {
  max-height: 500px;
  opacity: 1;
}

.contact .info-card {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
}

.info-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

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

.info-card a {
  color: var(--accent-color);
}

.info-card a:hover {
  color: var(--accent-strong);
}

.info-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(241, 209, 65, 0.12);
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact-form {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--heading-color);
}

.contact-form .form-control {
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #111827;
}

.btn-primary:hover {
  background: #d6b325;
  border-color: #d6b325;
}

footer.footer {
  padding: 40px 0;
  background: transparent;
  color: var(--muted-color);
}

.footer-brand {
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-logo {
  width: 42px;
  height: auto;
  display: block;
}

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

footer.footer .footer-credit {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-color);
}

.agency-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.agency-logo-link:hover {
  opacity: 0.88;
}

.agency-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
}

.agency-logo-image {
  display: block;
  max-width: 140px;
  height: auto;
}

.agency-logo-inline {
  max-width: 96px;
  opacity: 0.95;
  filter: none;
}

@media (max-width: 576px) {
  .footer-brand {
    gap: 0.6rem;
  }
  .agency-logo-inline {
    max-width: 72px;
  }
}

.agency-logo-text {
  white-space: nowrap;
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--scroll-top-bg);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  display: none;
  z-index: 999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.active {
  display: flex;
  opacity: 1;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--scroll-top-hover);
  color: #0f172a;
}

.mapapopup,
.mapa-popup {
  width: 100%;
  max-width: 920px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.mapa-topo {
  padding: 28px;
  background: linear-gradient(135deg, #091225, #111d38);
  color: #ffffff;
}

.mapa-topo h2 {
  margin: 0;
  font-size: 1.8rem;
}

.mapa-topo p {
  margin: 0.6rem 0 0;
  opacity: 0.75;
}

.mapa-container {
  width: 100%;
  height: 500px;
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Office section — premium editorial layout */
#office {
  position: relative;
  background: #ffffff;
  padding: 70px 0;
}

.office-container {
  max-width: 1280px;
  margin: 0 auto;
}

.office-grid {
  display: grid;
  grid-template-columns: minmax(320px, 45%) minmax(360px, 55%);
  align-items: start;
  gap: 60px;
}

.office-section-title {
  text-align: left;
}

.office-section-title h2 {
  font-family: "Inter", sans-serif;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: #0E1B3D;
  margin: 0 0 1.6rem;
}

.office-name {
  color: #0E1B3D;
}

.office-copy-text {
  max-width: 520px;
}

.office-copy-text p {
  margin: 0 0 22px;
  color: #2A2A2A;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.9;
}

.office-copy-text p:last-child {
  margin-bottom: 0;
}

.office-visual {
  width: 100%;
}

.office-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 240px auto 340px;
  gap: 20px 18px;
}

.office-image-card,
.office-contact-block {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(14, 27, 61, 0.08);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.office-image-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.office-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.office-image-card:hover {
  transform: scale(1.03);
}

.office-image-card:hover img {
  transform: scale(1.02);
}

.office-image-card--span {
  grid-column: 1 / -1;
  min-height: 340px;
}

.office-contact-block {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  max-width: 520px;
  margin: 0 auto;
}

.office-contact-block h3 {
  margin: 0 0 1rem;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: #0E1B3D;
}

.btn-office-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  background: #0E1B3D;
  color: #ffffff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  min-height: 48px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-office-whatsapp:hover {
  background: #081026;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(14, 27, 61, 0.24);
}

@media (max-width: 1199px) {
  .office-grid {
    grid-template-columns: 1fr;
  }

  .office-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .office-image-card--span {
    grid-column: 1;
    min-height: 320px;
  }

  .office-contact-block {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  #office {
    padding: 60px 0;
  }

  .office-section-title,
  .office-copy {
    text-align: center;
  }

  .office-section-title h2 {
    font-size: 2.2rem;
  }

  .office-copy-text p {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .office-contact-block {
    padding: 24px 18px;
  }

  .btn-office-whatsapp {
    width: auto;
    padding: 14px 28px;
  }
}

/* Dark mode: keep office section clean */
body.dark-mode #office {
  background: transparent;
}


.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9997;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-active {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    padding: 110px 32px 32px;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(18px);
    transition: right 0.35s ease;
    z-index: 10001;
  }

  .navmenu.active {
    right: 0;
  }

  .navmenu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .navmenu a {
    font-size: 1.05rem;
    color: var(--nav-mobile-link) !important;
    padding: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .header {
    padding: 14px 0;
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 120px 0 50px;
  }

  .hero p,
  .section-title p {
    font-size: 1rem;
  }

  .stats .stats-item,
  .features .feature-box,
  .alt-features .icon-box,
  .team .team-member,
  .contact .info-card,
  .contact-form {
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .header .logo img {
    max-height: 70px;
  }

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

  .hero-img {
    text-align: center;
  }

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

  .stats .stats-item i {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .btn-get-started,
  .btn-mapa,
  .btn-primary {
    width: 100%;
  }

  .contact-form .form-control {
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 480px) {
  .theme-toggle,
  .mobile-nav-toggle,
  .scroll-top {
    width: 46px;
    height: 46px;
  }

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

  .section {
    padding: 70px 0;
  }
}
