:root {
  --primary-color-dark: #b38f2b;
  --accent-color: #d4aa28;
  --background-light: #f8f8f8;
  --text-color: #1c1c1c;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background: var(--background-light);
}

h1, h2, h4, nav a, .box, .service-item p {
  font-family: 'Montserrat', sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--background-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

a {
  text-decoration: none;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  background: var(--background-light);
  border-bottom: 1px solid var(--background-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 50px;
  height: auto;
}

.logo h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.logo p {
  margin: 0;
  font-size: 14px;
  color: #444;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav ul li a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  color: var(--accent-color)
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.hamburger {
  display: none;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul a {
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.lang-switcher button {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher button:hover,
.lang-switcher button.active {
  background: var(--accent-color);
  color: #fff;
}

.hero {
  position: relative;
  height: 70vh;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slider-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--accent-color);
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: transform 0.3s ease, color 0.3s ease;
  padding: 0.2rem;
}

.slider-btn i {
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.2);
  color: var(--primary-color-dark);
}

.slider-btn.prev {
  left: 30px;
}

.slider-btn.next {
  right: 30px;
}

.kancelaria-profile {
  padding: 4rem 1rem;
  background-color: #fdfdfd;
  text-align: center;
}

.kancelaria-profile .container {
  max-width: 900px;
  margin: 0 auto;
}

.profile-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.legal-symbol {
  font-size: 8rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.profile-text {
  font-size: 1.1rem;
  font-family: 'Montserrat Regular', sans-serif;
  line-height: 1.8;
  color: var(--text-color);
}

.services {
  text-align: center;
  padding: 60px 20px;
}

.services h2 {
  font-size: 24px;
  margin-bottom: 30px;
  position: relative;
}

.services h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color-dark);
  margin: 10px auto 0;
}

.service-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.service-item {
  text-align: center;
  width: 160px;
}

.service-item img {
  width: 70px;
  height: auto;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.mission {
  background: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
}

.mission h2 {
  font-size: 24px;
  margin-bottom: 30px;
  position: relative;
}

.mission h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto 0;
}

.mission-boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.box {
  background: var(--background-light);
  padding: 2.5rem;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--accent-color);
  font-weight: 500;
}

footer {
  background: #f2f2f2;
  padding: 40px 20px;
  color: var(--text-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container h2 {
  margin: 0;
}

.footer-container p {
  margin: 0;
}

.footer-logo {
  text-align: center;
  margin: 0 auto 30px;
}

.footer-logo img {
  width: 70px;
  height: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  gap: 40px;
}

.footer-columns h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-columns p {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.footer-columns a {
  color: var(--text-color);
  text-decoration: none;
}

.footer-columns a:hover {
  text-decoration: underline;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 30px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  margin-bottom: 10px;
}

.section-header .underline {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color-dark);
  margin: 0 auto;
  border-radius: 2px;
}

.notarial-actions {
  padding: 60px 20px;
  background-color: #f8f8f8;
  font-family: 'Inter', sans-serif;
}

.notarial-actions .container {
  display: block;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.section-header .underline {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color-dark);
  margin: 0 auto;
  border-radius: 2px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.testimonials {
  overflow: hidden;
  background-color: #fdfdfd;
  padding: 3rem 1.5rem;
}

.glide__track {
  overflow: visible;
}

.glide__slides {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.glide__slide {
  flex: 0 0 auto;
  min-width: 320px;
}

.testimonial {
  background-color: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  text-align: left;
  font-size: 0.95rem;
  max-width: 480px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-source {
  height: 20px;
}

.review-rating {
  color: #fbbc04;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.review-text {
  font-style: italic;
  margin: 1rem 0;
}

.review-author {
  font-weight: bold;
  font-size: 0.95rem;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.category-tab {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  color: var(--text-color);
}

.category-tab:hover {
  color: var(--accent-color);
}

.category-tab.active {
  border-color: var(--accent-color);
  font-weight: 600;
  color: var(--accent-color);
}

.category-panels {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.category-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.category-panel.active {
  display: block;
}

.category-panel details {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-color-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-panel summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  list-style: none;
  position: relative;
  padding-right: 20px;
  justify-content: center;
}

details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  text-align: left;
  min-height: 60px;
}

details summary::after {
  content: '+';
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: '–';
}

.category-panel summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 20px;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '−';
}

.category-panel p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

.accordion-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion-grid details {
  border: 1px solid #ccc;
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
  padding: 1rem;
  transition: box-shadow 0.3s;
  background: var(--background-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
}

.accordion-grid summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-grid p {
  margin-top: 1rem;
  line-height: 1.5;
}

.documents-section {
  margin: 0 auto;
  padding: 4rem 1rem;
  background-color: var(--light-bg, #f9f9f9);
}

.documents-section .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.documents-section .section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.accordion-box {
  background: #fff;
  border-left: 4px solid var(--accent-gold, #d4af37);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.accordion-box summary {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}

.accordion-box summary::marker {
  display: none;
}

.accordion-box summary::after {
  content: "▼";
  font-size: 0.8rem;
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.accordion-box[open] summary::after {
  transform: rotate(180deg);
}

.accordion-box ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: #333;
}

.accordion-box ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}


.accordion-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.accordion-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.accordion-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75rem;
}


.general-documents {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.general-documents .column {
  flex: 0 1 500px;
  background: #fff;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-gold, #cfa736);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.general-documents h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark, #222);
}

.general-documents ul {
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--text-color, #333);
}

.contact-section {
  padding: 60px 20px;
  background: var(--background-light);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info, .contact-form {
  flex: 1 1 400px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.contact-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
  font-weight: 500;
}

.contact-info p,
.contact-info a {
  margin-bottom: 1rem;
  display: block;
}

.contact-hours {
  background: #fff8e1;
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 1rem;
}

.contact-hours .label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-hours .value {
  display: block;
  color: #333;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
}

.contact-form button {
  padding: 0.75rem 1rem;
  border: none;
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--primary-color-dark);
}

.contact-map {
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#thanksBox {
  background: #e6ffe6;
  border: 1px solid #b2e0b2;
  padding: 2rem;
  border-radius: 6px;
  text-align: center;
  margin-top: 1rem;
}

#thanksBox button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#thanksBox button:hover {
  background: var(--primary-color-dark);
}

.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

#scrollTop {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#scrollTop:hover {
  background: var(--primary-color-dark);
}

#scrollTop i {
  pointer-events: none;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  nav ul {
    gap: 20px;
  }

  .service-list {
    gap: 30px;
  }

  .mission-boxes {
    flex-direction: column;
    align-items: center;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    margin-top: 15px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--background-light);
    z-index: 1000;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
  }

  .mobile-menu .lang-switcher {
  position: static;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}


  .mobile-menu.active {
    display: flex;
  }

  .mobile-logo {
    text-align: center;
    margin-bottom: 40px;
  }

  .mobile-logo img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
  }

  .mobile-logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
  }

  .mobile-logo p {
    font-size: 14px;
    margin: 0;
  }

  .hero {
    height: auto;
    aspect-ratio: 16/9;
  }

  .slide {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .slider-btn {
    display: none;
  }

  .kancelaria-profile {
    padding: 0;
  }

  .category-tab {
    flex: 1 1 45%;
    text-align: center;
  }

  .category-panel details {
    padding: 15px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .service-list {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: auto;
  }

  .general-documents {
    flex-direction: column;
    align-items: stretch;
  }

  .general-documents .column {
    flex: 1 1 100%;
  }


  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo h2 {
    font-size: 18px;
  }
}