/* ============================================================
   MEDHAS LAW — styles.css
   Premium International Law Firm Website Stylesheet
   ============================================================ */


/* ============================================================
   1. CSS RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-ui);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

address {
  font-style: normal;
}


/* ============================================================
   2. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy:       #102B50;
  --navy-dark:  #0B1F3A;
  --navy-light: #1A468E;
  --ivory:      #F8F6F0;
  --white:      #FFFFFF;
  --gold:       #C49A52;
  --gold-dark:  #A8823C;
  --text-dark:  #1C1C1C;
  --text-mid:   #4A5568;
  --text-light: #718096;

  --font-ui:    'Poppins', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --header-height: 80px;
  --container-max: 1240px;
  --section-pad:   96px;
  --border-radius: 8px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --shadow-card-hover: 0 12px 48px rgba(0,0,0,0.16);

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}


/* ============================================================
   3. TYPOGRAPHY BASE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

.serif {
  font-family: var(--font-serif);
}

p {
  color: var(--text-mid);
  line-height: 1.8;
}

strong {
  font-weight: 600;
  color: var(--text-dark);
}


/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */

/* Container */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Flag image classes */
.flag-icon {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  object-fit: cover;
  flex-shrink: 0;
}

.flag-icon-lg {
  width: 32px;
  height: 22px;
}

.flag-icon-md {
  width: 24px;
  height: 16px;
}

.flag-icon-sm {
  width: 18px;
  height: 13px;
}

/* Section padding */
.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* Section header block */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-eyebrow.light {
  color: rgba(196,154,82,0.9);
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-mid);
  font-weight: 500;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* CTA wrap */
.section-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

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

/* Gold primary button */
.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 20px rgba(196,154,82,0.35);
  transform: translateY(-1px);
}

/* Navy button */
.btn-navy {
  background-color: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-navy:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Outline navy button */
.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* Outline white button */
.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-1px);
}

/* Large button */
.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}


/* ============================================================
   5. HEADER — Sticky, scroll shadow, logo, nav, mega dropdown
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(16,43,80,0.12);
  background-color: rgba(255,255,255,0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.header-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.logo:hover .header-logo-img {
  transform: translateY(-1px);
}

/* Primary Nav */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-item.active > .nav-link {
  color: var(--navy-light);
}

.nav-link .chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
}

/* Dropdown — base */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 500;
  overflow: hidden;
}

/* Mega dropdown */
.mega-dropdown {
  min-width: 700px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

/* Resources dropdown */
.resources-dropdown {
  min-width: 520px;
}

/* Show dropdown */
.has-dropdown:hover .dropdown,
.has-dropdown.dropdown-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown-item:hover .mega-dropdown,
.mega-dropdown-item.dropdown-open .mega-dropdown {
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .chevron,
.has-dropdown.dropdown-open .chevron {
  transform: rotate(180deg);
}

/* Mega inner grid */
.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.mega-col {
  padding: 24px 28px;
}

.mega-col + .mega-col {
  border-left: 1px solid rgba(0,0,0,0.06);
}

.mega-col-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-link {
  display: block;
  padding: 6px 0;
  font-size: 0.84rem;
  color: var(--text-mid);
  transition: color var(--transition), padding-left var(--transition);
}

.dropdown-link:hover {
  color: var(--navy-light);
  padding-left: 6px;
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 10px 20px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   6. MOBILE MENU — Slide-in overlay, accordion
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background-color: var(--navy);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-inner {
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-logo-img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.mobile-close {
  color: var(--white);
  padding: 6px;
  opacity: 0.85;
  transition: opacity var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-close:hover { opacity: 1; }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-nav-link {
  display: block;
  padding: 12px 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--gold); }

/* Mobile accordion */
.mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  transition: color var(--transition);
}
.mobile-accordion-btn:hover { color: var(--gold); }
.mobile-accordion-btn .chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
}
.mobile-accordion-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-top: 4px;
}

.mobile-sub.open {
  max-height: 800px;
}

.mobile-sub-col-label {
  display: block;
  padding: 10px 16px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-sub-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.mobile-sub-link:hover { color: var(--gold); }

.mobile-cta {
  margin-top: 32px;
  text-align: center;
  width: 100%;
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}
.mobile-overlay.visible {
  opacity: 1;
  visibility: visible;
}


/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 80px;
  background-color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--gold);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-international {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-international .flags {
  font-size: 1.4rem;
  letter-spacing: 4px;
}

.hero-international .intl-text {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Hero flag pills */
.hero-flags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(196,154,82,0.1);
  border: 1px solid rgba(196,154,82,0.3);
  border-radius: 100px;
  transition: background var(--transition), border-color var(--transition);
}

.hero-flag-pill img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: block;
}

.hero-flag-pill:hover {
  background: rgba(196,154,82,0.18);
  border-color: rgba(196,154,82,0.5);
}

.hero-flag-emoji {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.hero-flag-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.hero-flag-sep {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 2px solid rgba(196,154,82,0.25);
  border-radius: var(--border-radius);
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}


/* ============================================================
   8. TRUST STRIP
   ============================================================ */
.trust-strip {
  background-color: var(--navy);
  padding: 32px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 40px;
}

.trust-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.trust-flag img {
  width: 38px;
  height: 26px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.trust-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.trust-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Text-only trust item (no flag) */
.trust-item--text {
  padding-left: 48px;
}

.trust-item--text .trust-text strong {
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
}

.trust-item--text .trust-text span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}


/* ============================================================
   9. ABOUT SECTION
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-content .section-eyebrow {
  display: block;
  text-align: left;
}

.about-content .section-heading {
  text-align: left;
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 6px;
}

.about-content .section-subheading {
  text-align: left;
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  font-weight: 400;
}

.about-para {
  font-size: 0.96rem;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.85;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.pill {
  display: inline-block;
  padding: 6px 18px;
  background-color: rgba(196,154,82,0.12);
  color: var(--navy);
  border: 1px solid rgba(196,154,82,0.35);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(196,154,82,0.3);
  border-radius: var(--border-radius);
  z-index: 0;
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}


/* ============================================================
   10. PRACTICE AREAS — Cards with icons
   ============================================================ */
.pa-region {
  margin-bottom: 64px;
}

.pa-region:last-child {
  margin-bottom: 0;
}

.pa-region-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(196,154,82,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.2px;
}

.pa-region-title img {
  width: 32px;
  height: 22px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

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

.practice-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--border-radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.practice-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(196,154,82,0.2);
}

.practice-card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  margin-bottom: 20px;
}

.gold-icon {
  color: var(--gold);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.3px;
  transition: gap var(--transition), color var(--transition);
}

.card-cta:hover {
  gap: 10px;
  color: var(--gold-dark);
}

.pa-view-all {
  margin-top: 28px;
  text-align: center;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-light);
  border-bottom: 1px solid rgba(26,70,142,0.3);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.view-all-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}


/* ============================================================
   11. WHY CHOOSE MEDHAS LAW — Premium Editorial Redesign
   ============================================================ */
.why-us {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Subtle background texture */
.why-us::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(196,154,82,0.04);
  pointer-events: none;
}

.why-us::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(26,70,142,0.4);
  pointer-events: none;
}

/* Section header */
.why-header {
  max-width: 680px;
  margin-bottom: 64px;
}

.why-header .section-eyebrow {
  color: var(--gold);
  text-align: left;
  display: block;
}

.why-main-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
}

.why-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  max-width: 580px;
}

/* Premium 2×2 grid */
.why-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.why-card-premium {
  background: rgba(255,255,255,0.03);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.why-card-premium:hover {
  background: rgba(255,255,255,0.06);
}

/* Gold bottom border accent that grows on hover */
.why-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.why-card-premium:hover .why-card-accent {
  transform: scaleX(1);
}

/* Card top row: icon + numeral */
.why-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.why-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,154,82,0.12);
  border: 1px solid rgba(196,154,82,0.25);
  border-radius: 10px;
  color: var(--gold);
  transition: background var(--transition), border-color var(--transition);
}

.why-card-premium:hover .why-icon-wrap {
  background: rgba(196,154,82,0.2);
  border-color: rgba(196,154,82,0.4);
}

.why-card-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  letter-spacing: -1px;
  user-select: none;
  transition: color var(--transition);
}

.why-card-premium:hover .why-card-num {
  color: rgba(196,154,82,0.12);
}

.why-card-title {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.why-card-desc {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
}


/* ============================================================
   12. GLOBAL OFFICES — 3D Cinematic World Map
   ============================================================ */

.offices-map-section {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.offices-map-section .section-eyebrow { color: var(--gold); }
.offices-map-section .section-heading { color: var(--white); }
.offices-map-section .section-subtext { color: rgba(255,255,255,0.6); margin-top: 8px; }

/* Map outer wrap */
.world-map-wrap {
  position: relative;
  width: 100%;
  margin: 44px 0 0;
  border-top: 1px solid rgba(196,154,82,0.2);
  border-bottom: 1px solid rgba(196,154,82,0.2);
  background: #081628;
}

.map-perspective-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible;
}

/* SVG map styling */
.medhas-world-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
}

/* Continents */
.ml-map-continent {
  transition: fill 0.35s ease, stroke 0.35s ease, filter 0.35s ease;
  cursor: default;
}

.ml-map-continent:hover {
  fill: #295c8f;
  stroke: #4181be;
}

/* Flight Arcs */
.flight-arc-bg {
  stroke-dasharray: 4,4;
}

.flight-arc-pulse {
  animation: arcTravel 3.5s linear infinite;
}

.arc-us-in {
  animation: arcTravel 4s linear infinite;
}

.arc-ca-in {
  animation: arcTravel 4.5s linear infinite -1.5s;
}

@keyframes arcTravel {
  from { stroke-dashoffset: 254; }
  to   { stroke-dashoffset: 0; }
}

/* Beacons */
.map-beacon {
  cursor: pointer;
  outline: none;
}

.beacon-sonar {
  fill: none;
  stroke: #C49A52;
  stroke-width: 1.2;
  animation: beaconSonar 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  transform-origin: 0 0;
}

.beacon-sonar.s1 { animation-delay: 0s; }
.beacon-sonar.s2 { animation-delay: 0.9s; }
.beacon-sonar.s3 { animation-delay: 1.8s; }

@keyframes beaconSonar {
  0% {
    r: 6;
    opacity: 0.95;
    stroke-width: 2;
  }
  100% {
    r: 36;
    opacity: 0;
    stroke-width: 0.5;
  }
}

.beacon-core {
  transition: transform 0.25s ease, fill 0.25s ease, r 0.25s ease;
}

.map-beacon:hover .beacon-core,
.map-beacon:focus .beacon-core,
.map-beacon.active .beacon-core {
  r: 6.5;
  fill: #ffd988;
}

.map-beacon-secondary {
  cursor: pointer;
}
.map-beacon-secondary:hover circle {
  r: 4.5;
  fill: #ffd988;
}

/* Beacon label badge */
.beacon-label-group {
  transition: transform 0.25s ease;
  pointer-events: none;
}
.map-beacon:hover .beacon-label-group,
.map-beacon.active .beacon-label-group {
  transform: translate(10, -16);
}

/* ---- Luxury Interactive Popup ---- */
.map-interactive-popup {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 154, 82, 0.4);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.65), 0 0 20px rgba(196,154,82,0.15);
  padding: 20px 24px;
  min-width: 280px;
  max-width: 340px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.map-interactive-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.map-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.map-popup-close:hover { color: var(--gold); }

.popup-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.popup-flag-img {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.popup-country-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.popup-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-left: auto;
}

.popup-item {
  margin-bottom: 10px;
}
.popup-item:last-child { margin-bottom: 0; }

.popup-loc-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.popup-loc-addr {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.popup-loc-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-top: 4px;
  text-decoration: none;
  transition: color 0.2s;
}
.popup-loc-phone:hover { color: var(--gold); }

/* ---- Address cards below map ---- */
.map-address-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.map-addr-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,154,82,0.15);
  border-radius: 10px;
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.map-addr-card:hover,
.map-addr-card.active {
  background: rgba(196,154,82,0.08);
  border-color: rgba(196,154,82,0.45);
  transform: translateY(-3px);
}
.map-addr-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.map-addr-flag { flex-shrink: 0; margin-top: 3px; }
.map-addr-body { flex: 1; }

.map-addr-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-addr-count {
  font-size: 0.65rem;
  background: rgba(196,154,82,0.2);
  color: var(--gold);
  border: 1px solid rgba(196,154,82,0.4);
  border-radius: 100px;
  padding: 1px 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.map-addr-primary {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 3px;
}
.map-addr-secondary {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin-bottom: 8px;
}
.map-addr-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s;
}
.map-addr-phone::before { content: '📞'; font-size: 0.7rem; }
.map-addr-phone:hover { color: var(--gold-dark); }

/* Responsive */
@media (max-width: 768px) {
  .map-address-row { grid-template-columns: 1fr; gap: 12px; }
  .map-interactive-popup {
    position: static;
    margin: 16px auto 0;
    max-width: 100%;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .map-addr-card { padding: 18px 16px; }
  .map-interactive-popup { padding: 16px; }
}



/* ============================================================
   13. CASE STUDIES — 3-card grid with image on top
   ============================================================ */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cs-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.cs-img-wrap {
  overflow: hidden;
  height: 220px;
}

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

.cs-card:hover .cs-img {
  transform: scale(1.04);
}

.cs-body {
  padding: 28px 24px;
}

.cs-category {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.cs-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 12px;
}

.cs-excerpt {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy-light);
  transition: gap var(--transition), color var(--transition);
}

.cs-cta:hover {
  gap: 10px;
  color: var(--gold);
}


/* ============================================================
   14. PRO BONO — Dark navy bg, white text
   ============================================================ */
.pro-bono {
  background-color: var(--navy);
}

.pro-bono-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.pro-bono-icon {
  color: rgba(196,154,82,0.7);
  margin-bottom: 28px;
}

.pro-bono-content .section-heading {
  font-family: var(--font-serif);
  color: var(--white);
  margin-bottom: 8px;
}

.pro-bono-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 24px;
}

.pro-bono-para {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  max-width: 720px;
  margin-bottom: 20px;
}

.pro-bono-disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}


/* ============================================================
   15. FINAL CTA — Centered, navy gradient
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(196,154,82,0.07);
  pointer-events: none;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.final-cta .section-heading {
  font-family: var(--font-serif);
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.final-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
}


/* ============================================================
   16. FOOTER — Multi-column dark
   ============================================================ */
.site-footer {
  background-color: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
  align-items: start;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}

.footer-logo:hover .footer-logo-img {
  opacity: 0.9;
}

.footer-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.contact-link {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

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

.footer-col-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-link:hover {
  color: var(--gold);
  padding-left: 4px;
}

/* Footer offices */
.footer-offices {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-office-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.office-flag-sm {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-office-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2px;
}

.footer-office-item p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.footer-intl-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-intl-badges span {
  font-size: 1.2rem;
}

.footer-intl-badges em {
  font-size: 0.72rem;
  font-style: normal;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-left: 4px;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

.footer-legal-link {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

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


/* ============================================================
   17. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.18s;
}

/* Staggered children */
.reveal-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-children .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-children .reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal-children .reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal-children .reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal-children .reveal:nth-child(6) { transition-delay: 0.40s; }


/* ============================================================
   18. RESPONSIVE — Tablet (768px) & Mobile (480px)
   ============================================================ */

/* ---- Tablet: max-width 1024px ---- */
@media (max-width: 1024px) {
  :root {
    --section-pad: 72px;
  }

  .primary-nav { display: none; }
  .header-cta  { display: none; }
  .hamburger   { display: flex; }

  .header-inner { justify-content: space-between; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-image-wrap { order: 2; }
  .hero-subtext { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-international { justify-content: center; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-content { order: 1; }
  .about-image-wrap { order: 2; }
  .about-content .section-eyebrow,
  .about-content .section-heading,
  .about-content .section-subheading { text-align: center; }
  .about-pills { justify-content: center; }
  .about-content .btn-navy { display: block; width: fit-content; margin: 0 auto; }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid-premium {
    grid-template-columns: 1fr;
  }

  .why-card-premium {
    padding: 36px 32px;
  }

  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-address-row {
    grid-template-columns: 1fr;
  }

  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ---- Tablet: max-width 768px ---- */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --header-height: 70px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 56px;
  }

  .hero-img { height: 380px; }

  .about-img { height: 360px; }

  .trust-inner {
    flex-direction: column;
    gap: 0;
  }

  .trust-divider {
    width: 80px;
    height: 1px;
    margin: 8px 0;
  }

  .trust-item { padding: 16px 24px; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .why-grid-premium {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .why-card-premium {
    padding: 32px 28px;
  }

  .why-main-heading {
    font-size: 1.9rem;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .map-address-row {
    grid-template-columns: 1fr;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-desc { max-width: 100%; }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Mobile: max-width 480px ---- */
@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
    --header-height: 64px;
  }

  .header-logo-img {
    height: 36px;
    max-width: 175px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-heading {
    font-size: 1.9rem;
  }

  .hero-img {
    height: 280px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-international {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .why-grid-premium {
    grid-template-columns: 1fr;
  }

  .why-card-premium {
    padding: 28px 20px;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .mega-dropdown { min-width: 100vw; }

  .footer-intl-badges span { font-size: 1rem; }
}


/* ============================================================
   19. PREFERS REDUCED MOTION — Disable all animations
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }

  .hero-img,
  .cs-img,
  .about-img {
    transition: none;
  }
}
