/* Dropdown Menu Styles */
.nav-item {
  position: relative;
}

.nav-item>a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item>a:hover {
  color: var(--text);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.nav-item .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--surface-2);
  color: var(--brand-primary);
  padding-left: 20px;
}

.dropdown-menu a.active {
  background: var(--brand-primary);
  color: white;
}

/* Related Services Section */
.related-services {
  background: var(--surface-2);
  padding: 60px 0;
  margin-top: 60px;
}

.related-services .section-head {
  text-align: center;
  margin-bottom: 40px;
}

/* Image Card Redesign */
.service-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.service-link-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-primary-fade);
}

.service-link-card:hover .card-image img {
  transform: scale(1.08);
}

.service-link-card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.service-link-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.service-link-card .service-arrow {
  color: var(--brand-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.service-link-card:hover .service-arrow {
  gap: 12px;
}

/* Breadcrumb Styles */
.breadcrumb {
  padding: 20px 0 10px;
}

.breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

.breadcrumb span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* Hero for inner pages */
/* Hero for inner pages */
.hero--inner {
  padding: 60px 0;
  /* Brighter Light Mode: Sky 400 to Sky 500 (Neon-ish Blue) */
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}

.hero--inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/High%20Quality%20Logo%20Agnes.png");
  background-repeat: no-repeat;
  background-position: 20% center;
  background-size: 60%;
  opacity: 0.6;
  /* Increased visibility for colorful look */
  filter: none;
  /* Sharp, original colors */
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Dark Mode Fixes */
body.dark-theme .hero--inner {
  /* Prevent "Flashbang" - Deep Slate to Dark Blue instead of Neon Sky */
  background: linear-gradient(135deg, var(--surface-2) 0%, #0c4a6e 100%);
}

.hero--inner .container {
  position: relative;
  z-index: 2;
}

.hero--inner .hero-copy {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    display: none;
  }

  .nav-item.mobile-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: 32px;
  }
}