@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  --primary: #0b1a30;
  --primary-dark: #060e1b;
  --primary-light: #152744;
  --primary-subtle: #1c355e;
  --gold: #c5a880;
  --gold-light: #e6d7c3;
  --gold-dark: #9e7f55;
  --gold-glow: rgba(197, 168, 128, 0.25);
  --dark-text: #0f172a;
  --muted-text: #64748b;
  --light-text: #f8fafc;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-card: #0f223f;
  --border-light: #e2e8f0;
  --border-gold: rgba(197, 168, 128, 0.35);
  --success: #10b981;
  --whatsapp: #25d366;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 26, 48, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 26, 48, 0.12);
  --shadow-gold: 0 8px 30px rgba(197, 168, 128, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-light);
  color: var(--dark-text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Utilities */
.font-amiri {
  font-family: 'Amiri', serif;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #f3dfbf 0%, #c5a880 50%, #aa8657 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border {
  border: 1px solid var(--border-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #c5a880 50%, #a88349 100%);
  color: #0b1a30;
  box-shadow: 0 4px 18px rgba(197, 168, 128, 0.35);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.5);
  filter: brightness(1.05);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--border-gold);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  color: var(--gold-light);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* Top Notification / Authority Bar */
/* Top Notification / Authority Bar */
.top-authority-bar {
  background-color: var(--primary-dark);
  color: var(--gold-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-official {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 168, 128, 0.12);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 168, 128, 0.3);
  font-weight: 500;
  font-size: 0.82rem;
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.84rem;
}

.top-link:hover {
  color: var(--gold);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 26, 48, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(6, 14, 27, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  height: auto;
  padding: 8px 0;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.2), rgba(11, 26, 48, 0.9));
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.2);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

.nav-link {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-consult-btn {
  font-size: 0.88rem;
  padding: 10px 18px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--primary-dark);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border-left: 1px solid var(--border-gold);
}

.mobile-nav-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.drawer-link {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.drawer-link:hover, .drawer-link.active {
  background: rgba(197, 168, 128, 0.15);
  color: var(--gold);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(26, 52, 92, 0.5) 0%, rgba(11, 26, 48, 0.98) 70%),
              linear-gradient(180deg, #0b1a30 0%, #060e1b 100%);
  color: #ffffff;
  padding: 70px 0 90px;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(197, 168, 128, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(197, 168, 128, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  width: fit-content;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.15rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Tajawal', sans-serif;
}

.stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Lawyer Card / Profile Visual */
.lawyer-card-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 440px;
  width: 100%;
}

.lawyer-profile-card {
  background: linear-gradient(145deg, #10233f 0%, #081427 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.card-decorative-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.profile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bar-crest-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-crest-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border: 1px solid rgba(197, 168, 128, 0.4);
}

.bar-crest-text {
  display: flex;
  flex-direction: column;
}

.bar-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.bar-year {
  font-size: 0.72rem;
  color: var(--gold);
}

.verification-status {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lawyer-photo-showcase {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}

.photo-gold-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  animation: rotateSlow 25s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.photo-inner-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #142a4a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background-color: #0b1a30;
}

.photo-inner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lawyer-card-info {
  text-align: center;
}

.lawyer-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.lawyer-card-role {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.credentials-pill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 168, 128, 0.15);
  margin-bottom: 18px;
  text-align: right;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.cred-label {
  color: #94a3b8;
}

.cred-value {
  color: #ffffff;
  font-weight: 700;
  direction: ltr;
}

.btn-card-verify {
  width: 100%;
  background: rgba(197, 168, 128, 0.12);
  color: var(--gold-light);
  border: 1px dashed var(--gold);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-verify:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

/* General Section Styles */
.section {
  padding: 70px 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 90px 0;
  }
}

.section-dark {
  background-color: var(--primary);
  color: #ffffff;
}

.section-light {
  background-color: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-dark .section-tag {
  color: var(--gold);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

.section-desc {
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-dark .section-desc {
  color: #94a3b8;
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* Feature / Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-card.highlighted {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #ffffff 0%, #fffcf7 100%);
}

.service-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: var(--gold);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-text {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-list {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: #334155;
}

.service-list-item svg {
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 4px;
}

.service-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

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

/* Steps Timeline (Company Registration in Iraq) */
.steps-timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
}

@media (min-width: 992px) {
  .steps-timeline-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  position: relative;
  transition: var(--transition);
  text-align: right;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.6;
}

/* Interactive Consultation & Calculator Card */
.calculator-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .calculator-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.calc-form-side {
  padding: 35px 28px;
}

@media (min-width: 768px) {
  .calc-form-side {
    padding: 45px 40px;
  }
}

.calc-preview-side {
  background: linear-gradient(145deg, #0e1e36 0%, #060e1a 100%);
  color: #ffffff;
  padding: 35px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-gold);
}

@media (min-width: 768px) {
  .calc-preview-side {
    padding: 45px 36px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  font-size: 0.95rem;
  background: #f8fafc;
  color: var(--dark-text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.15);
}

.calc-summary-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
}

.summary-heading {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-details-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
}

.summary-details-list li span.val {
  color: #ffffff;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-card.open {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.faq-icon-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-card.open .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--gold);
  color: var(--primary-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.75;
}

.faq-card.open .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
}

/* Contact Section & Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.contact-info-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(197, 168, 128, 0.15);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-detail {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 2px;
}

.contact-val {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
}

.working-hours-box {
  background: #f8fafc;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 2px solid var(--border-gold);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col-title {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item a {
  color: #cbd5e1;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-item a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: right;
  }
}

/* Mobile Sticky Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 26, 48, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

@media (min-width: 992px) {
  .mobile-action-bar {
    display: none;
  }
}

.bar-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
  padding: 4px;
}

.bar-action-btn svg {
  width: 20px;
  height: 20px;
}

.bar-action-btn.active-whatsapp {
  color: #ffffff;
  background: var(--whatsapp);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.bar-action-btn.active-whatsapp svg {
  color: #ffffff;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 27, 0.8);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #0f223f;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  text-align: center;
}

.modal-card-image {
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin: 0 auto 16px;
  max-width: 100%;
}

.modal-card-details {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 16px;
  text-align: right;
  font-size: 0.88rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #0b1a30;
  color: #ffffff;
  border: 1px solid var(--gold);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 4000;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 992px) {
  .toast-msg {
    bottom: 30px;
  }
}

.toast-msg.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN & MOBILE TYPOGRAPHY OPTIMIZATIONS
   ============================================================ */

@media (max-width: 768px) {
  /* Top Authority Bar */
  .top-authority-bar {
    padding: 6px 0;
  }
  .top-bar-content {
    justify-content: center;
    gap: 4px;
  }
  .badge-official {
    font-size: 0.72rem;
    padding: 3px 8px;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px;
  }
  .top-contact-links {
    display: none !important; /* Prevents multi-line header collision; links already present in sticky mobile bottom bar */
  }

  /* Main Header */
  .site-header {
    overflow: hidden;
  }
  .header-inner {
    height: auto;
    min-height: 62px;
    padding: 8px 0;
    box-sizing: border-box;
  }
  .brand-identity {
    gap: 10px;
    max-width: calc(100% - 46px);
    align-items: center;
    min-width: 0;
    display: flex;
  }
  .brand-logo-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
  }
  .brand-logo-icon img {
    width: 24px;
    height: 24px;
  }
  .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
  }
  .brand-title {
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  #siteHeader .brand-subtitle {
    display: block !important;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .header-consult-btn {
    display: none !important; /* Frees horizontal room for Lawyer Name and Subtitle to fit comfortably */
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  /* Hero Section Typography & Spacing */
  .hero-section {
    padding: 24px 0 40px;
  }
  .hero-grid {
    gap: 22px;
  }
  .hero-content {
    gap: 10px;
  }
  .hero-tag {
    font-size: 0.74rem;
    padding: 4px 10px;
    gap: 6px;
  }
  .hero-title {
    font-size: 1.42rem;
    line-height: 1.32;
    margin-bottom: 4px;
  }
  .hero-subtitle {
    font-size: 0.86rem;
    line-height: 1.6;
    max-width: 100%;
  }
  .hero-cta-group {
    gap: 10px;
    margin-top: 6px;
  }
  .hero-cta-group .btn {
    padding: 10px 16px;
    font-size: 0.86rem;
    width: 100%;
  }
  .hero-stats-row {
    margin-top: 14px;
    padding-top: 14px;
    gap: 6px;
  }
  .stat-num {
    font-size: 1.2rem;
  }
  .stat-label {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  /* Lawyer Profile Card */
  .lawyer-card-wrapper {
    max-width: 330px;
    margin-top: 10px;
  }
  .lawyer-profile-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }
  .bar-crest-img {
    width: 36px;
    height: 36px;
  }
  .bar-name {
    font-size: 0.76rem;
  }
  .bar-year {
    font-size: 0.65rem;
  }
  .verification-status {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .lawyer-photo-showcase {
    width: 110px;
    height: 110px;
    margin: 0 auto 10px;
  }
  .lawyer-card-name {
    font-size: 1.12rem;
    margin-bottom: 2px;
  }
  .lawyer-card-role {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .credentials-pill-list {
    padding: 8px 10px;
    gap: 5px;
    margin-bottom: 10px;
  }
  .cred-row {
    font-size: 0.76rem;
  }
  .btn-card-verify {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  /* General Sections & Headings */
  .section {
    padding: 38px 0;
  }
  .section-header {
    margin-bottom: 22px;
  }
  .section-tag {
    font-size: 0.76rem;
    margin-bottom: 4px;
  }
  .section-title {
    font-size: 1.22rem;
    line-height: 1.38;
    margin-bottom: 6px;
  }
  .section-desc {
    font-size: 0.84rem;
    line-height: 1.6;
  }
  .divider-gold {
    width: 40px;
    height: 2px;
    margin: 6px auto 0;
  }

  /* Service Cards */
  .services-grid {
    gap: 14px;
  }
  .service-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .service-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    margin-bottom: 10px;
  }
  .service-icon-box svg {
    width: 20px;
    height: 20px;
  }
  .service-title {
    font-size: 1.02rem;
    margin-bottom: 6px;
  }
  .service-text {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 10px;
  }
  .service-list {
    gap: 5px;
    margin-bottom: 12px;
  }
  .service-list-item {
    font-size: 0.78rem;
  }
  .service-action-link {
    font-size: 0.82rem;
  }

  /* Step Timeline Cards */
  .steps-timeline-grid {
    gap: 10px;
  }
  .step-card {
    padding: 14px 12px;
  }
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
    margin-bottom: 8px;
  }
  .step-title {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }
  .step-desc {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* Calculator / Interactive Consultation */
  .calculator-container {
    border-radius: var(--radius-md);
  }
  .calc-form-side, .calc-preview-side {
    padding: 20px 14px;
  }
  .form-group {
    margin-bottom: 12px;
  }
  .form-label {
    font-size: 0.82rem;
    margin-bottom: 4px;
  }
  .form-control {
    padding: 9px 11px;
    font-size: 0.85rem;
  }
  .calc-summary-box {
    padding: 12px;
    margin-top: 12px;
  }
  .summary-heading {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }
  .summary-details-list {
    gap: 6px;
  }
  .summary-details-list li {
    font-size: 0.76rem;
  }

  /* FAQ Accordion */
  .faq-grid {
    gap: 10px;
  }
  .faq-question-btn {
    padding: 12px 14px;
    font-size: 0.88rem;
    gap: 8px;
  }
  .faq-icon-arrow {
    width: 22px;
    height: 22px;
  }
  .faq-answer {
    padding: 0 14px;
    font-size: 0.82rem;
    line-height: 1.6;
  }
  .faq-card.open .faq-answer {
    padding-bottom: 14px;
  }

  /* Contact Panel */
  .contact-info-panel {
    padding: 20px 14px;
    gap: 14px;
    border-radius: var(--radius-md);
  }
  .contact-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .contact-card-icon svg {
    width: 18px;
    height: 18px;
  }
  .contact-val {
    font-size: 0.88rem;
  }
  .working-hours-box {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  /* Footer */
  .site-footer {
    padding: 30px 0 20px;
  }
  .footer-top-grid {
    gap: 20px;
    margin-bottom: 20px;
  }
  .footer-brand-title {
    font-size: 1rem;
  }
  .footer-desc {
    font-size: 0.78rem;
    line-height: 1.55;
  }
  .footer-col-title {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }
  .footer-links-list {
    gap: 6px;
  }
  .footer-link-item a {
    font-size: 0.8rem;
  }

  /* Modals on Mobile */
  .modal-box {
    max-width: 95%;
  }
  .modal-header {
    padding: 12px 16px;
  }
  .modal-title {
    font-size: 0.94rem;
  }
  .modal-body {
    padding: 14px;
  }
  .modal-card-details {
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 0.78rem;
    padding: 10px;
  }
}

@media (max-width: 380px) {
  /* Extra small screens */
  .brand-title {
    font-size: 0.82rem;
  }
  #siteHeader .brand-subtitle, .brand-subtitle {
    font-size: 0.62rem;
  }
  .hero-title {
    font-size: 1.28rem;
  }
  .stat-num {
    font-size: 1.05rem;
  }
}

