@charset "UTF-8";

body {
  box-sizing: border-box;
}

:root {
  --primary-color: #1a365d;
  --secondary-color: #c9a96e;
  --accent-color: #2c5282;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

.font-display {
  font-family: "Montserrat", sans-serif;
}

/* Custom Navbar */
.navbar-custom {
  background: var(--primary-color) !important;
  padding: 0px;
  -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--white) !important;
  -webkit-transform: scale(1.02);
  -moz-transform: scale(1.02);
  -ms-transform: scale(1.02);
  -o-transform: scale(1.02);
  transform: scale(1.02);
}

.logo-img {
  margin: 10px;
  width: auto;
  height: 70px;
}

.navbar-brand {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.375rem 0.5rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
  -webkit-box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
  -moz-box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5rem;
  height: 1.5rem;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffffff !important;
}

.navbar-nav .nav-item {
  display: block !important;
}

/* Desktop and Tablet Navbar Styles */
@media (min-width: 768px) {
  .navbar-custom .container-fluid {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 2rem !important;
  }

  .navbar-brand {
    font-size: 1.5rem;
    display: flex !important;
    align-items: center !important;
  }

  .navbar-toggler {
    display: none !important;
  }

  .navbar-collapse {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow-y: visible !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .navbar-nav {
    gap: 0.5rem;
    display: flex !important;
    flex-direction: row !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-items: center !important;
  }

  .navbar-nav .nav-item {
    display: list-item !important;
    width: auto !important;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: none !important;
    margin: 0 !important;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    color: #ffffff !important;
  }

  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .navbar-nav .nav-link:hover::after {
    width: 80%;
  }

  /* Hide drawer elements on tablet and desktop */
  .drawer-close {
    display: none !important;
  }

  .drawer-header {
    display: none !important;
  }

  .navbar-overlay {
    display: none !important;
  }
}

/* Mobile Drawer Overlay */
.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 240px);
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  pointer-events: none;
}

.navbar-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Navbar Styles */
@media (max-width: 767.98px) {
  .navbar-custom {
    padding: 0.5rem 0;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: -240px !important;
    width: 240px !important;
    height: 100vh !important;
    background-color: #1a365d !important;
    background-image: none !important;
    padding: 1.5rem 1rem !important;
    -webkit-box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3) !important;
    -moz-box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3) !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 1050 !important;
    -webkit-transition: right 0.3s ease !important;
    -moz-transition: right 0.3s ease !important;
    -o-transition: right 0.3s ease !important;
    transition: right 0.3s ease !important;
    overflow-y: auto !important;
    display: block !important;
    opacity: 1 !important;
  }

  .navbar-collapse * {
    background-color: transparent !important;
    background-image: none !important;
  }

  .navbar-collapse.show {
    right: 0 !important;
    background-color: #1a365d !important;
  }

  .navbar-nav {
    text-align: left;
    gap: 0.25rem;
    display: flex !important;
    flex-direction: column;
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
    background-color: transparent !important;
  }

  .navbar-nav .nav-item {
    display: block !important;
    width: 100%;
    background-color: transparent !important;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.875rem 1rem !important;
    border-radius: 8px;
    margin: 0.25rem 0;
    color: #ffffff !important;
    text-decoration: none;
    display: block !important;
    text-align: left;
    background-color: transparent !important;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:active {
    background-color: #2b548d85 !important;
    color: #ffffff !important;
  }

  /* Close button for drawer */
  .drawer-close {
    position: absolute;
    top: 1.6rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1051;
  }

  .drawer-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    -webkit-transform: rotate(90deg) !important;
    -moz-transform: rotate(90deg) !important;
    -ms-transform: rotate(90deg) !important;
    -o-transform: rotate(90deg) !important;
    transform: rotate(90deg) !important;
  }

  /* Drawer header */
  .drawer-header {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    right: 1rem;
    background-color: transparent !important;
  }

  .drawer-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background-color: transparent !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand i {
    font-size: 1.5rem !important;
  }

  .navbar-collapse {
    padding: 1rem;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.875rem 1.25rem !important;
  }
}

/* Smooth collapse animation */
.navbar-collapse {
  -webkit-transition: height 0.35s ease;
  -moz-transition: height 0.35s ease;
  -ms-transition: height 0.35s ease;
  -o-transition: height 0.35s ease;
  transition: height 0.35s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.92) 0%,
    rgba(44, 82, 130, 0.92) 100%
  );
  color: var(--white);
  padding: 14rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../imagens/pexels-ekaterina-bolovtsova-6077797.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.25;
  z-index: 1;
}

/* Responsive background positioning for mobile */
@media (max-width: 991.98px) {
  .hero-section::before {
    background-position: center center;
    background-size: cover;
  }
}

@media (max-width: 767.98px) {
  .hero-section::before {
    background-position: 50% 50%;
    background-size: cover;
    opacity: 0.3;
  }
}

@media (max-width: 575.98px) {
  .hero-section::before {
    background-position: 40% center;
    background-size: cover;
    opacity: 0.35;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.btn-custom-primary {
  background: var(--secondary-color);
  border: none;
  color: var(--white);
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-custom-primary:hover {
  background: #b8956b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

.btn-custom-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-custom-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Section Styling */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.section-title.text-start::after {
  left: 0;
  transform: none;
}

/* Services Section */
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  line-height: 1.6;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid var(--secondary-color);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-light);
  line-height: 1.6;
}

.portfolio-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* About Section */
.about-section {
  background: var(--bg-light);
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* About Image Styles */
.about-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.about-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991.98px) {
  .about-image-container {
    margin-top: 2rem;
    padding: 2rem 1rem;
  }

  .about-image {
    max-width: 350px;
  }
}

@media (max-width: 767.98px) {
  .about-image-container {
    padding: 1.5rem 0.5rem;
  }

  .about-image {
    max-width: 300px;
  }
}

@media (max-width: 575.98px) {
  .about-image {
    max-width: 320px;
  }
}

/* Contact Section */
.contact-section {
  background: var(--primary-color);
  color: var(--white);
}

.contact-lawyer-info {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 0;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  min-width: 40px;
}

.contact-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.8;
  color: white;
  text-decoration: underline;
}

/* Social Media Icons */
.social-icons {
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.4);
}

.social-link i {
  color: white;
}

/* Footer */
.footer {
  background: #0f1419;
  color: var(--white);
  padding: 0.5rem 0;
  text-align: center;
}

.footer p {
  margin: 0;
  opacity: 0.9;
}

/* Staggered animations for cards */
.service-card {
  transition-delay: 0s;
}

.service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card:nth-child(4) {
  transition-delay: 0.4s;
}

.portfolio-card {
  transition-delay: 0s;
}

.portfolio-card:nth-child(1) {
  transition-delay: 0.1s;
}

.portfolio-card:nth-child(2) {
  transition-delay: 0.2s;
}

.portfolio-card:nth-child(3) {
  transition-delay: 0.3s;
}

.portfolio-card:nth-child(4) {
  transition-delay: 0.4s;
}

.stat-card:nth-child(1) {
  transition-delay: 0.1s;
}

.stat-card:nth-child(2) {
  transition-delay: 0.2s;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--bg-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    padding: 6rem 0 4rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .contact-lawyer-info {
    font-size: 0.95rem;
  }

  .contact-item {
    font-size: 0.85rem;
  }

  .contact-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    min-width: 32px;
  }

  footer p {
    font-size: 0.95rem;
  }

  .toast-notification {
    right: 10px;
    left: 10px;
    min-width: auto;
  }

  /* Reduce animation distance on mobile */
  .fade-in-up {
    transform: translateY(30px);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .contact-lawyer-info {
    font-size: 0.875rem;
  }

  .contact-item {
    font-size: 0.8rem;
  }

  .contact-icon {
    font-size: 1.15rem;
    margin-right: 0.65rem;
    min-width: 28px;
  }

  .portfolio-subtitle {
    font-size: 1rem;
  }

  footer p {
    font-size: 0.6rem;
  }

  /* Further reduce animation distance on small mobile */
  .fade-in-up {
    transform: translateY(20px);
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-btn i {
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }

  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-btn {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}
