:root {
  --ink: #132033;
  --muted: #5b6678;
  --brand: #173f8f;
  --brand-deep: #0d2455;
  --accent: #d99221;
  --accent-soft: #fff2dc;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --line: #dce4ef;
  --shadow: 0 18px 45px rgba(19, 32, 51, 0.12);
  --shadow-soft: 0 10px 28px rgba(19, 32, 51, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(255, 255, 255, 0.98)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=72");
  background-attachment: fixed;
  background-size: cover;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.container {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  padding-left: 0;
  padding-right: 0;
}

body>.container,
section.container {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

/* Header CSS Sync */
/* Header */
.main-header {
  background: rgba(33, 64, 154, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #faa51a;
}

.navbar {
  display: flex;
  gap: 15px;
  align-items: center;
  position: relative;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
  background: #faa51a;
  color: #16216b;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

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

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #16216b;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #21409a;
  padding-left: 25px;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 1002;
}


.main-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(19, 32, 51, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 54vh, 560px);
  display: flex;
  align-items: center;
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(13, 36, 85, 0.92), rgba(23, 63, 143, 0.74) 48%, rgba(217, 146, 33, 0.38)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=76");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(72px, 9vw, 120px) 20px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, rgba(244, 247, 251, 0.98));
  z-index: -1;
}

.hero .container {
  position: relative;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 20px;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: 0;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.dark-cta h2 {
  color: #fff;
}

section,
.container {
  position: relative;
}

.services,
.features,
.process,
.testimonials,
.faq,
.share-section,
.directory-section,
.contact,
.about,
.pricing,
.documents,
.requirements,
.benefits {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.services,
.process,
.faq,
.directory-section,
.share-section {
  background: rgba(244, 247, 251, 0.94);
}

.features,
.testimonials,
.contact,
.about,
.documents,
.requirements,
.benefits {
  background: rgba(255, 255, 255, 0.96);
}

.services-grid,
.features-grid,
.testimonial-grid,
.lawyers-grid,
.pricing-grid,
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.service-card,
.feature,
.feature-card,
.testimonial-card,
.testimonial,
.faq-item,
.lawyer-card,
.pricing-card,
.calculator-container,
.price,
.contact-form,
.contact-info,
.document-card,
.benefit-card,
.requirement-card,
.step,
.process-step {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 24px 18px;
}

.service-card,
.feature-card,
.testimonial-card,
.lawyer-card,
.pricing-card,
.calculator-container,
.price {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.lawyer-card:hover,
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 146, 33, 0.55);
  box-shadow: var(--shadow);
}

.service-icon,
.feature i,
.feature-card i,
.lawyer-photo {
  color: var(--brand);
}

.service-icon,
.feature-card i,
.feature i {
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
}

.feature i,
.feature-card i {
  font-size: 1.8rem;
}

.service-card ul,
.pricing-card ul {
  list-style: none;
  padding-left: 0;
}

.service-card li,
.pricing-card li {
  margin-bottom: 10px;
}

.cta-btn,
.btn,
.contact-btn,
.calculator-container button,
button[type="submit"] {
  background: var(--accent);
  color: #17120a;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(217, 146, 33, 0.22);
  font-weight: 750;
  text-decoration: none;
}

.cta-btn:hover,
.btn:hover,
.contact-btn:hover,
.calculator-container button:hover,
button[type="submit"]:hover {
  background: #f0ad36;
  color: #111;
  transform: translateY(-2px);
}

.cta-btn.whatsapp {
  background: #128c54;
  color: #fff;
}

.process-steps::before {
  display: none;
}

.step-number {
  background: var(--brand);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(23, 63, 143, 0.2);
}

.search-filter {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

input,
select,
textarea,
.search-box input,
.filter-select,
.calculator-container select,
.calculator-container input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(217, 146, 33, 0.25);
  border-color: var(--accent);
}

.result {
  background: #f8fbff;
  border-color: var(--line);
}

.result th {
  background: var(--brand);
}

.faq-question {
  background: #fff;
  color: var(--ink);
}

.faq-question:hover {
  background: #f7f9fc;
}

.policy-content .policy-modal {
  border-radius: 8px;
}

.policy-close {
  background: var(--brand);
  border-radius: 8px;
}

.dark-cta,
footer,
.footer {
  background:
    linear-gradient(135deg, rgba(13, 36, 85, 0.98), rgba(19, 32, 51, 0.98)),
    url("https://images.unsplash.com/photo-1521790797524-b2497295b8a0?auto=format&fit=crop&w=1500&q=70");
  background-size: cover;
  background-position: center;
  color: #eaf0f8;
}

.footer-column h3,
.social-icons h5 {
  color: #f4b54a;
}

.footer-column p,
.footer-column ul li,
.footer-column ul li a,
.copyright {
  color: rgba(234, 240, 248, 0.78);
}

.social-links a,
.whatsapp-float {
  background: #128c54;
  color: #fff;
}

.whatsapp-float {
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(18, 140, 84, 0.28);
}

.footer-bottom,
.copyright {
  border-color: rgba(255, 255, 255, 0.14);
}

.policy-link {
  color: #f4b54a;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .header-container,
  .header-content {
    min-height: 76px;
  }

  /* Show hamburger button on mobile */
  .menu-toggle {
    display: block !important;
  }

  .logo,
  .logo-section .logo {
    width: min(260px, 72vw);
    height: 58px;
  }


  .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #16216b;
    flex-direction: column;
    padding: 0;
    text-align: left;
    gap: 0;
    z-index: 1001;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #2a3a8c;
    border-radius: 0;
    color: #fff;
  }

  .navbar a:hover,
  .navbar a.active {
    background: #faa51a;
    color: #16216b;
  }

  /* Mobile Dropdown - Improved for mobile */
  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    position: relative;
  }

  .dropdown-menu {
    position: static;
    background: #1a2a7a;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 0;
    width: 100%;
    min-width: auto;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    max-height: 500px;
  }

  .dropdown-menu a {
    color: white;
    padding: 12px 20px 12px 35px;
    border-bottom: 1px solid #2a3a8c;
    background: #1a2a7a;
  }

  .dropdown-menu a:hover {
    background: #2a3a8c;
  }

  .dropdown-menu a:last-child {
    border-bottom: 1px solid #2a3a8c;
  }

  .hero {
    min-height: 420px;
    text-align: left;
  }

  .services-grid,
  .features-grid,
  .testimonial-grid,
  .lawyers-grid,
  .pricing-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps::before {
    display: none;
  }

  .service-card,
  .feature-card,
  .testimonial-card,
  .lawyer-card,
  .pricing-card,
  .calculator-container,
  .price {
    padding: 24px;
  }
}