/* GlobalExpatDating.com - Modern Cosmopolitan Directory Stylesheet (gxd- prefix) */
:root {
  --gxd-bg: #F8FAFC;
  --gxd-surface: #FFFFFF;
  --gxd-tint: #EFF6F8;
  --gxd-teal: #0F4C5C;
  --gxd-teal-dark: #0A3440;
  --gxd-coral: #D95D39;
  --gxd-coral-hover: #BF4A28;
  --gxd-ink: #0F172A;
  --gxd-muted: #475569;
  --gxd-border: #E2E8F0;
  --gxd-radius: 14px;
  --gxd-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--gxd-ink);
  background: var(--gxd-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gxd-ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(1.9rem, 3.8vw, 2.95rem); font-weight: 800; margin-bottom: 0.85rem; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 700; margin-bottom: 0.7rem; }
h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.45rem; }

p { margin: 0 0 1rem; color: var(--gxd-muted); }
a { color: var(--gxd-teal); text-underline-offset: 3px; }
a:hover { color: var(--gxd-coral); }

.gxd-container {
  width: 100%;
  max-width: var(--gxd-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Single-row Header */
.gxd-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gxd-border);
}

.gxd-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 64px;
}

.gxd-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gxd-teal-dark);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.gxd-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gxd-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gxd-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.gxd-nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gxd-nav-menu a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gxd-muted);
}

.gxd-nav-menu a:hover { color: var(--gxd-teal); }

/* CTA Button */
.gxd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: 10px;
  background: var(--gxd-coral);
  color: #FFFFFF !important;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 93, 57, 0.25);
  transition: background-color 0.16s ease, transform 0.12s ease;
  white-space: nowrap;
}

.gxd-cta:hover {
  background: var(--gxd-coral-hover);
  transform: translateY(-1px);
}

.gxd-cta-sm {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 0.86rem;
  box-shadow: none;
}

.gxd-cta-block { width: 100%; }

/* Homepage Hero */
.gxd-hero {
  padding: 44px 0 52px;
  background: radial-gradient(circle at 88% 12%, #E6F2F5 0%, #F8FAFC 55%);
  border-bottom: 1px solid var(--gxd-border);
}

.gxd-hero-split {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 42px;
  align-items: center;
}

.gxd-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--gxd-tint);
  color: var(--gxd-teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gxd-hero-lead {
  font-size: 1.06rem;
  max-width: 52ch;
  margin-bottom: 24px;
}

.gxd-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gxd-border);
  list-style: none;
  padding-left: 0;
  font-size: 0.86rem;
  color: var(--gxd-muted);
}

.gxd-metrics strong { color: var(--gxd-teal-dark); }

.gxd-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gxd-border);
  box-shadow: 0 16px 36px rgba(15, 76, 92, 0.1);
  background: var(--gxd-tint);
}

.gxd-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections */
.gxd-section { padding: 52px 0; }
.gxd-section-white {
  background: var(--gxd-surface);
  border-top: 1px solid var(--gxd-border);
  border-bottom: 1px solid var(--gxd-border);
}

.gxd-head {
  max-width: 64ch;
  margin-bottom: 26px;
}

/* Definition List (Heterogeneous DOM vs 3-card grid) */
.gxd-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
}

.gxd-dl-item {
  background: var(--gxd-bg);
  border: 1px solid var(--gxd-border);
  border-left: 4px solid var(--gxd-teal);
  border-radius: 10px;
  padding: 20px 22px;
}

.gxd-dl-item dt {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--gxd-ink);
  margin-bottom: 6px;
}

.gxd-dl-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gxd-muted);
}

/* Country Directory */
.gxd-zone { margin-top: 28px; }
.gxd-zone:first-of-type { margin-top: 6px; }

.gxd-zone-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gxd-teal);
  margin: 0 0 12px;
}

.gxd-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 9px;
}

.gxd-country-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--gxd-surface);
  border: 1px solid var(--gxd-border);
  border-radius: 9px;
  text-decoration: none;
  color: var(--gxd-ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.14s ease, color 0.14s ease, transform 0.12s ease;
}

.gxd-country-pill:hover {
  border-color: var(--gxd-coral);
  color: var(--gxd-coral);
  transform: translateY(-1px);
}

.gxd-iso {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gxd-teal);
  background: var(--gxd-tint);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Country LP 2-Column Layout with Sticky Sidebar */
.gxd-crumb {
  font-size: 0.85rem;
  color: var(--gxd-muted);
  padding: 18px 0 8px;
}

.gxd-crumb a { color: var(--gxd-muted); text-decoration: none; }
.gxd-crumb a:hover { color: var(--gxd-teal); text-decoration: underline; }

.gxd-lp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
  padding: 16px 0 54px;
}

.gxd-article-block {
  background: var(--gxd-surface);
  border: 1px solid var(--gxd-border);
  border-radius: var(--gxd-radius);
  padding: 30px;
  margin-bottom: 22px;
}

.gxd-aside {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
}

.gxd-aside-card {
  background: var(--gxd-teal-dark);
  color: #F8FAFC;
  border-radius: var(--gxd-radius);
  padding: 26px 24px;
  box-shadow: 0 12px 28px rgba(10, 52, 64, 0.16);
}

.gxd-aside-card h2 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.gxd-aside-card p {
  color: #CBD5E1;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.gxd-aside-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gxd-aside-specs li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.gxd-aside-specs span { color: #94A3B8; }
.gxd-aside-specs strong { color: #FFFFFF; text-align: right; }

.gxd-aside-links {
  background: var(--gxd-surface);
  border: 1px solid var(--gxd-border);
  border-radius: var(--gxd-radius);
  padding: 20px;
}

.gxd-aside-links h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.gxd-mini-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gxd-mini-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gxd-bg);
  border: 1px solid var(--gxd-border);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gxd-ink);
}

.gxd-mini-list a:hover {
  border-color: var(--gxd-coral);
  color: var(--gxd-coral);
}

/* City Chips */
.gxd-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 6px;
}

.gxd-hubs li {
  padding: 6px 13px;
  border-radius: 7px;
  background: var(--gxd-tint);
  color: var(--gxd-teal-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Static Q&A Cards (Heterogeneous vs <details>) */
.gxd-qa-grid {
  display: grid;
  gap: 14px;
}

.gxd-qa-card {
  background: var(--gxd-bg);
  border: 1px solid var(--gxd-border);
  border-radius: 10px;
  padding: 18px 20px;
}

.gxd-qa-card h3 {
  font-size: 1rem;
  color: var(--gxd-teal-dark);
  margin-bottom: 6px;
}

.gxd-qa-card p {
  font-size: 0.94rem;
  margin: 0;
}

/* Editorial split */
.gxd-story-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

/* Bottom Banner */
.gxd-banner {
  background: linear-gradient(135deg, #0F4C5C 0%, #0A3440 100%);
  color: #F8FAFC;
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gxd-banner h2 { color: #FFFFFF; margin-bottom: 6px; }
.gxd-banner p { color: #CBD5E1; margin: 0; max-width: 54ch; }

/* Footer */
.gxd-footer {
  background: #0B1922;
  color: #94A3B8;
  padding: 38px 0;
  font-size: 0.87rem;
}

.gxd-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gxd-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gxd-footer a { color: #E2E8F0; text-decoration: none; }
.gxd-footer a:hover { text-decoration: underline; }

.gxd-note-legal {
  margin: 16px 0 0;
  font-size: 0.81rem;
  color: #64748B;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .gxd-nav-menu { display: none; }
  .gxd-hero { padding: 24px 0 34px; }
  .gxd-hero-split { grid-template-columns: 1fr; gap: 22px; }
  .gxd-hero-split .gxd-media { order: -1; }
  .gxd-dl-grid,
  .gxd-story-split,
  .gxd-lp-layout { grid-template-columns: 1fr; gap: 20px; }
  .gxd-aside { position: static; }
  .gxd-article-block,
  .gxd-banner { padding: 22px 18px; }
  .gxd-cta { width: 100%; }
  .gxd-cta-sm { width: auto; }
  .gxd-country-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gxd-country-pill { padding: 9px 11px; font-size: 0.86rem; }
}
