/* Duarah & Associates - Custom Styles */
:root {
  --brand-primary: #990000;
  --brand-primary-dark: #7a0000;
  --brand-primary-light: #b31a1a;
  --dark-bg: #1a1a2e;
  --dark-secondary: #16213e;
  --text-muted: #6c757d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-primary);
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-brand {
  color: var(--brand-primary) !important;
}

.bg-brand {
  background-color: var(--brand-primary) !important;
}

/* Top Bar */
.top-bar {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--brand-primary-light);
}

.top-bar i {
  color: var(--brand-primary-light);
  margin-right: 0.35rem;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%) !important;
  border-bottom: 3px solid var(--brand-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0;
  transition: var(--transition);
}

.navbar > .container {
  align-items: center;
}

.navbar.scrolled {
  padding: 0.35rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  margin-right: 1rem;
  text-decoration: none;
}

.navbar-brand img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

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

.navbar-brand-text {
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.45px;
  line-height: 1.15;
  text-transform: uppercase;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 0.4rem 0.85rem !important;
  line-height: 1.4;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: rgba(153, 0, 0, 0.35);
  border-radius: 4px;
}

.navbar .dropdown-toggle::after {
  border-top-color: rgba(255, 255, 255, 0.85);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
  padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(153, 0, 0, 0.45);
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(22, 33, 62, 0.98);
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(153, 0, 0, 0.35);
  }
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 0;
  padding: 0.5rem 0;
  max-height: 70vh;
  overflow-y: auto;
}

.dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--brand-primary);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1513828583688-c52646db42da?auto=format&fit=crop&w=1920&q=80&h=1080') center/cover no-repeat;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.7) 50%, rgba(26, 26, 46, 0.4) 100%);
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--white);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Buttons */
.btn-brand {
  background: var(--brand-primary);
  color: var(--white);
  border: 2px solid var(--brand-primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-brand:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(153, 0, 0, 0.3);
}

.btn-outline-brand {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-outline-brand:hover {
  background: var(--white);
  color: var(--brand-primary);
}

.btn-outline-brand-dark {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0;
  transition: var(--transition);
}

.btn-outline-brand-dark:hover {
  background: var(--brand-primary);
  color: var(--white);
}

/* Stats */
.stats-section {
  background: var(--brand-primary);
  color: var(--white);
  padding: 3rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

.service-card .card-body {
  padding: 1.5rem;
}

.service-card .card-title {
  color: var(--dark-bg);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card .card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card .card-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.service-card .card-link:hover {
  color: var(--brand-primary-dark);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(153, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon i {
  font-size: 1.75rem;
  color: var(--brand-primary);
}

/* Feature Box */
.feature-box {
  padding: 2rem;
  background: var(--white);
  border-left: 4px solid var(--brand-primary);
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.feature-box:hover {
  box-shadow: var(--shadow-lg);
}

.feature-box h5 {
  color: var(--dark-bg);
  margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--brand-primary);
  opacity: 0.1;
  border-radius: 50%;
}

/* Partners */
.partner-card {
  background: var(--white);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.partner-card:hover {
  border-bottom-color: var(--brand-primary);
  transform: translateY(-4px);
}

.partner-card .partner-flag {
  width: 48px;
  height: 32px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.partner-logo {
  display: block;
  max-width: 180px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.partner-card h5 {
  color: var(--dark-bg);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.partner-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1513828583688-c52646db42da?auto=format&fit=crop&w=1920&q=80&h=400') center/cover;
  opacity: 0.15;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--white);
}

.breadcrumb-item.active {
  color: var(--brand-primary-light);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Service Detail */
.service-detail-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.service-detail-img-sm {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Service detail page layout */
.section-padding .row:has(.service-sidebar) {
  align-items: flex-start;
}

.section-padding .row:has(.service-sidebar) .col-lg-4 {
  align-self: flex-start;
}

.service-sidebar {
  background: var(--light-bg);
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}

.service-sidebar h5 {
  color: var(--dark-bg);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-primary);
  font-size: 1rem;
}

.service-sidebar .list-group {
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 0;
  scrollbar-width: thin;
}

.service-sidebar .list-group::-webkit-scrollbar {
  width: 6px;
}

.service-sidebar .list-group::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.service-sidebar .list-group-item {
  border: none;
  background: transparent;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.4;
}

.service-sidebar .list-group-item a {
  color: #555;
  text-decoration: none;
  transition: var(--transition);
}

.service-sidebar .list-group-item a:hover {
  color: var(--brand-primary);
  padding-left: 0.5rem;
}

.service-sidebar .list-group-item.active a {
  color: var(--brand-primary);
  font-weight: 600;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.benefit-item i {
  color: var(--brand-primary);
  font-size: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* About */
.about-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 2px solid var(--brand-primary);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--brand-primary);
  border-radius: 50%;
}

/* Contact */
.contact-info-card {
  background: var(--dark-bg);
  color: var(--white);
  padding: 2.5rem;
}

.col-lg-5 > .contact-info-card {
  height: 100%;
}

.col-lg-4 .contact-info-card {
  height: auto;
  padding: 1.75rem;
  margin-top: 1.25rem;
}

.col-lg-4 .contact-info-card h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.section-padding .bg-light-section {
  border-left: 4px solid var(--brand-primary);
}

.contact-info-card h4 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-primary);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  color: var(--brand-primary-light);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 0;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(153, 0, 0, 0.15);
}

.map-placeholder {
  width: 100%;
  height: 350px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
}

.map-embed {
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #dee2e6;
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 400px;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer > .container:not(:has(.row)) .footer-bottom {
  margin-top: 0;
}

.footer > .container:not(:has(.row)) {
  padding-top: 0;
  padding-bottom: 0;
}

.footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--brand-primary-light);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem 0;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.footer-credit {
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.footer-credit a:hover {
  color: var(--brand-primary-light);
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background: var(--brand-primary);
  color: var(--white) !important;
}

/* Utilities */
.section-padding {
  padding: 5rem 0;
}

.bg-light-section {
  background: var(--light-bg);
}

.img-placeholder {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero {
    min-height: 70vh;
  }

  .stats-section {
    margin-top: 0;
  }

  .service-detail-img {
    height: 280px;
    margin-bottom: 2rem;
  }

  .navbar-brand img {
    height: 38px;
  }

  .navbar-brand-text {
    font-size: 0.72rem;
    letter-spacing: 0.35px;
  }

  .navbar-nav .nav-link {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem !important;
  }

  .service-sidebar {
    position: static;
    margin-top: 1rem;
  }

  .section-padding .row:has(.service-sidebar) .col-lg-4 {
    margin-top: 2rem;
  }

  .service-sidebar .list-group {
    max-height: 260px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .page-header {
    padding: 5rem 0 3rem;
  }
}
