/* ==========================================================================
   MITHRAS GLOBAL — EXECUTIVE BOUTIQUE LAW DESIGN SYSTEM
   Aesthetic: Midnight Navy (#0F172A), Warm Alabaster (#F8FAFC), Executive Gold (#B45309 / #D97706)
   Typography: Playfair Display (Editorial Serif) & Plus Jakarta Sans / Inter (Geometric Sans)
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-light: #1e293b;
  --body-text: #334155;
  --muted: #64748b;
  --brand: #0f172a;        /* Deep Midnight Navy */
  --brand-2: #1e293b;      /* Slate Navy */
  --accent: #b45309;       /* Executive Bronze / Gold */
  --accent-light: #d97706; /* Warm Amber Gold */
  --gold: #c59b27;         /* Classic Metallic Gold */
  --gold-soft: #fef3c7;    /* Soft Gold Tint */
  --bg: #f8fafc;           /* Warm Alabaster Background */
  --bg-alt: #f1f5f9;       /* Subtle Cool Alabaster */
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  color: var(--ink);
  letter-spacing: -0.015em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Top Executive Utility Bar */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-scope {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: #f8fafc;
}

.topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22);
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-contacts a {
  color: #e2e8f0;
  font-weight: 500;
}

.topbar-contacts a:hover {
  color: #fbbf24;
}

.topbar-divider {
  color: #475569;
}

/* Header & Primary Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(197, 155, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 3px;
}

.brand img.logo {
  height: 40px;
  width: auto;
  display: none; /* Hidden by default in favor of crisp vector lockup; retained for DOM compatibility */
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

nav.primary > a,
nav.primary button.submenu-toggle {
  font-family: inherit;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--ink-light);
  cursor: pointer;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 8px;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

nav.primary > a:hover,
nav.primary button.submenu-toggle:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

nav.primary > a.active,
nav.primary .has-sub.active > button.submenu-toggle {
  color: var(--accent);
  background: rgba(180, 83, 9, 0.08);
  font-weight: 700;
}

nav.primary button.submenu-toggle::after {
  content: '▾';
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.has-sub:hover button.submenu-toggle::after,
.has-sub.expanded button.submenu-toggle::after {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav-cta {
  margin-left: 8px;
  background: var(--ink) !important;
  color: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  border: 1px solid rgba(197, 155, 39, 0.4) !important;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* Dropdown Submenu */
.has-sub {
  position: relative;
}

.has-sub::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 24px;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 310px;
  z-index: 200;
  margin: 0;
}

.submenu li {
  list-style: none;
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 8px;
  margin: 2px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-light);
  white-space: nowrap;
}

.submenu a:hover,
.submenu a.active {
  background: var(--bg-alt);
  color: var(--accent);
  padding-left: 17px;
}

.submenu li:first-child a {
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  padding-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.has-sub.expanded .submenu {
  display: block;
}

/* Breadcrumbs (Sticky) */
.breadcrumbs {
  position: sticky;
  top: 80px;
  z-index: 90;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs .wrap {
  padding: 10px 24px;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumbs li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.breadcrumbs li a {
  color: var(--ink-light);
}

.breadcrumbs li a:hover {
  color: var(--accent);
}

.breadcrumbs li + li::before {
  content: '/';
  margin: 0 6px;
  color: #cbd5e1;
}

/* Hero Section (Home) */
.hero {
  position: relative;
  color: #ffffff;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  transform: scale(1.02);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.84) 55%, rgba(30, 41, 59, 0.90) 100%);
}

.hero .inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 88px 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(180, 83, 9, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
  margin: 18px 0 16px;
  color: #ffffff;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  line-height: 1.68;
  color: #cbd5e1;
  max-width: 62ch;
  margin-bottom: 8px;
}

.cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(180, 83, 9, 0.45);
  cursor: pointer;
}

.btn:hover {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fbbf24;
  color: #ffffff;
}

.btn:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

blockquote.hero-quote {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #f59e0b;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Interior Page Banners */
.banner {
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
  background: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 4px solid var(--accent);
}

.banner .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
}

.banner .tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.76) 65%, rgba(30, 41, 59, 0.88) 100%);
}

.banner-content {
  position: relative;
  padding: 32px 36px;
  z-index: 2;
}

.banner h2 {
  position: relative;
  padding: 28px 32px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}

.banner-content h2 {
  padding: 0;
  margin: 8px 0 6px;
}

.banner-sub {
  color: #cbd5e1;
  font-size: 16px;
  max-width: 68ch;
  margin: 0;
}

/* Sections, Grids & Executive Cards */
section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 28px;
}

.kicker {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11.5px;
  display: inline-block;
  margin-bottom: 6px;
}

h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 4px 0 14px;
  color: var(--ink);
}

h3 {
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--ink);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

a.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--body-text);
  border-top: 3px solid transparent;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
  border-top-color: var(--accent);
}

a.card strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

a.card:hover strong {
  color: var(--accent);
}

.card-arrow {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 1.65fr 0.95fr;
  gap: 32px;
  align-items: start;
}

/* Pill Tags & Lists */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink-light);
  font-size: 12px;
  font-weight: 600;
}

.list {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.list li {
  margin-bottom: 10px;
  color: var(--body-text);
}

.list li::marker {
  color: var(--accent);
}

.small {
  font-size: 13.5px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
}

/* Practice Detail Callout Box */
.callout-navy {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(197, 155, 39, 0.35);
  box-shadow: var(--shadow);
}

.callout-navy h3 {
  color: #ffffff;
  margin-top: 0;
}

.callout-navy p {
  color: #cbd5e1;
  font-size: 14.5px;
}

/* Forms (Contact Page) */
form.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: none;
}

form label, form p {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin: 0 0 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.14);
}

/* Executive Footer */
footer {
  padding: 56px 0 36px;
  color: #cbd5e1;
  border-top: 3px solid var(--accent);
  background: var(--ink);
  margin-top: 40px;
}

footer strong {
  font-family: 'Playfair Display', Georgia, serif;
  color: #ffffff;
  font-size: 20px;
}

footer .kicker {
  color: #fbbf24;
  margin-bottom: 10px;
}

footer a {
  color: #f8fafc;
}

footer a:hover {
  color: #fbbf24;
}

.footgrid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 12.5px;
  color: #94a3b8;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero .inner,
  .grid-3,
  .grid-2,
  .grid-sidebar,
  .footgrid {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  nav.primary {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
  }

  nav.primary.mobile-open {
    display: flex;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    min-width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
}


/* Interactive Tabs (Immigration Resources & Consultation Terms) */
.tabs-wrapper {
  margin-top: 20px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.tab-btn {
  appearance: none;
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #ffffff;
}

.tab-btn[aria-selected="true"] {
  background: var(--ink);
  color: #fbbf24;
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.resource-card strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.resource-card .small {
  color: var(--body-text);
  margin: 0 0 12px;
}

.resource-ext {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.terms-panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.terms-panel-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body-text);
  margin: 14px 0 18px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.foot-legal {
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
}

.foot-legal strong {
  font-family: inherit;
  font-size: 12px;
  color: #e2e8f0;
}

@media (max-width: 820px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}


/* Spanning Consultation CTA Card inside 3-Column Practice Grid */
.card-cta-span {
  grid-column: span 2;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.card-cta-span h3 {
  color: #ffffff;
  margin: 4px 0 8px;
  font-size: 24px;
}

.card-cta-span p {
  color: #cbd5e1;
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 1024px) {
  .card-cta-span {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
}
