html, body { 
  scroll-behavior: smooth;
}

body {
  padding-top: 0;
}

iframe {
  max-width: 100%;
}

::selection {
  background-color: #6B8E7C;
  color: #ffffff;
}

::-moz-selection {
  background-color: #6B8E7C;
  color: #ffffff;
}

.navbar .navbar-brand img.logo {
    height: 48px;
    width: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Castoro", serif !important;
}

.bg-footer {
  background: #354439;
}

.bg-hero {
  background: #f3f5f3;
}

.bg-primary-light {
  background-color: #D2D9D5;
}

.btn {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card {
  background-color: #f8faf9;
  border: 1px solid #e8ede9 !important;
}

#topbar, #topbar .container {
  height: 40px;
  line-height: 40px;
}

#topbar .small {
  font-size: 0.875rem;
}

.navbar {
  z-index: 1030;
}

.navbar.navbar-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.footer-partner-logo {
  max-width: 120px;
  height: auto;
}

.footer-logo {
  max-width: 200px;
  height: auto;
}

.service-icon-col {
  text-align: center;
}

.lawyer-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lawyer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.lawyer-image {
  height: 450px;
  object-fit: cover;
  object-position: center 20%;
}

.secretary-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secretary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

.footer-bottom a {
  transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

@media (max-width: 767.98px) {
  .footer-bottom .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .footer-bottom a {
    display: block;
  }
  .footer-partner-logo {
    max-width: 90px;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  body {
    padding-top: 74px;
  }
  .hero-section-home .d-lg-none img {
    max-width: 300px;
  }
  .service-icon-col {
    text-align: left !important;
  }
}

@media (min-width: 768px) {
  .footer-middle-col {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 992px) {
  .services-grid .col-lg-3:not(:nth-child(4n)) {
    border-right: 1px solid #dee2e6;
  }
  .services-grid .col-lg-3:nth-child(n+5) {
    border-top: 1px solid #dee2e6;
  }
}