/* GlobalDirectory — Global Data Vision corporate branding.
   Clean, professional directory matching theglobaldirectory.org palette.
   Themed via CSS custom properties from /api/gd/partner-config */

:root {
  /* GDV brand palette — blue-teal gradient identity */
  --gd-primary: #1a7ab5;
  --gd-primary-dark: #0d3d5c;
  --gd-primary-light: #3ba8d8;
  --gd-secondary: #2a8a7e;
  --gd-accent: #3ba8d8;
  --gd-accent-light: #4dbdc7;

  /* Surfaces */
  --gd-bg: #f1f3f7;
  --gd-card-bg: #FFFFFF;
  --gd-text: #222222;
  --gd-text-secondary: #555555;
  --gd-muted: #777777;
  --gd-border: #dddddd;
  --gd-border-light: #eeeeee;

  /* Design tokens */
  --gd-radius: 3px;
  --gd-radius-lg: 4px;
  --gd-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --gd-shadow-hover: 0 8px 30px rgba(0,0,0,.1);
  --gd-shadow-elevated: 0 16px 48px rgba(0,0,0,.12);

  /* Typography */
  --gd-font-display: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --gd-font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --gd-transition: all .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--gd-font-body);
  color: var(--gd-text);
  background: var(--gd-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

a { color: var(--gd-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gd-primary-light); text-decoration: none; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.gd-nav {
  background: #0d3d5c;
  color: #fff;
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.gd-nav-logo {
  font-family: var(--gd-font-display);
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .3px;
}
.gd-nav-logo a { color: #fff !important; }
.gd-nav-logo span { font-family: var(--gd-font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.gd-nav-links { display: flex; gap: 2rem; align-items: center; }
.gd-nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.gd-nav-links a:hover { color: #fff; }
.gd-nav-cta {
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
  padding: .45rem 1.25rem !important;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.4) !important;
  font-weight: 600 !important;
  font-size: .8rem !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
  transition: var(--gd-transition) !important;
}
.gd-nav-cta:hover { background: rgba(255,255,255,.35) !important; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.gd-hero {
  background: url('/Platform/GlobalDirectory/ui/images/GDV_Pattern_Home.jpg') center/cover no-repeat;
  color: #fff;
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,122,181,.15) 0%, rgba(42,138,126,.1) 100%);
  pointer-events: none;
}
.gd-hero h1 {
  font-family: var(--gd-font-display);
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -.5px;
  line-height: 1.15;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.gd-hero p {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: .7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  letter-spacing: .2px;
  line-height: 1.6;
}
.gd-search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  position: relative;
}
.gd-search-bar input {
  flex: 1;
  border: none;
  padding: 1rem 1.5rem;
  font-size: .95rem;
  font-family: var(--gd-font-body);
  outline: none;
  color: var(--gd-text);
  font-weight: 400;
}
.gd-search-bar input::placeholder { color: var(--gd-muted); font-weight: 300; }
.gd-search-bar button {
  background: var(--gd-accent);
  border: none;
  padding: 1rem 2rem;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--gd-font-body);
  transition: background .2s;
}
.gd-search-bar button:hover { background: var(--gd-accent-light); }

/* ── SEARCH CHIPS ────────────────────────────────────────────────────────── */
.gd-search-chips {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  position: relative;
}
.gd-search-chips-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gd-chip {
  display: inline-block;
  padding: .3rem .85rem;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
}
.gd-chip:hover {
  background: rgba(255,255,255,.25);
  color: #fff !important;
  border-color: rgba(255,255,255,.4);
}
.gd-chip-dark {
  background: var(--gd-bg) !important;
  color: var(--gd-text) !important;
  border-color: var(--gd-border) !important;
}
.gd-chip-dark:hover {
  background: var(--gd-primary) !important;
  color: #fff !important;
  border-color: var(--gd-primary) !important;
}

/* ── STATS BAR ───────────────────────────────────────────────────────────── */
.gd-stats {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  padding: 2rem 1rem;
  margin-top: 2.5rem;
  position: relative;
  flex-wrap: wrap;
}
.gd-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gd-accent);
}
.gd-stat { text-align: center; color: rgba(255,255,255,.85); }
.gd-stat strong {
  display: block;
  font-family: var(--gd-font-display);
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1;
  color: #fff;
}
.gd-stat span { font-size: .75rem; font-weight: 400; opacity: .6; text-transform: uppercase; letter-spacing: 1.5px; margin-top: .35rem; display: block; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.gd-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.gd-section { padding: 4rem 0; }
.gd-section-title {
  font-family: var(--gd-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--gd-text);
  position: relative;
  padding-bottom: .75rem;
}
.gd-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gd-accent);
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.gd-grid { display: grid; gap: 1.5rem; }
.gd-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gd-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.gd-card {
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--gd-shadow);
  transition: var(--gd-transition);
  cursor: pointer;
  position: relative;
}
.gd-card:hover {
  box-shadow: var(--gd-shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
  border-color: rgba(22,98,157,.2);
}
.gd-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.gd-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--gd-border);
  padding: 6px;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.gd-card-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gd-primary), var(--gd-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gd-font-display);
  font-weight: 600;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.gd-card-title { font-weight: 600; font-size: 1rem; color: var(--gd-text); line-height: 1.3; }
.gd-card-subtitle { font-size: .8rem; color: var(--gd-muted); margin-top: .2rem; font-weight: 400; }
.gd-card-desc {
  font-size: .875rem;
  color: var(--gd-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.gd-card-footer {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gd-border-light);
  flex-wrap: wrap;
}

/* ── BADGES ──────────────────────────────────────────────────────────────── */
.gd-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 2px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.gd-badge-cat { background: #EBF3FA; color: var(--gd-primary); }
.gd-badge-verified { background: #EAF5EF; color: #1B7A43; }
.gd-badge-featured { background: #FDF6E3; color: #9A7B2E; }
.gd-badge-location { background: var(--gd-bg); color: var(--gd-muted); }

/* ── CATEGORY TILES ──────────────────────────────────────────────────────── */
.gd-cat-tile {
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-lg);
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}
.gd-cat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gd-primary), var(--gd-accent));
  opacity: 0;
  transition: opacity .3s;
}
.gd-cat-tile::after {
  content: '\2192';
  position: absolute;
  bottom: .75rem;
  right: .85rem;
  font-size: .8rem;
  color: var(--gd-primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: all .3s;
}
.gd-cat-tile:hover::before { opacity: 1; }
.gd-cat-tile:hover::after { opacity: .5; transform: translateX(0); }
.gd-cat-tile:hover {
  box-shadow: var(--gd-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(26,122,181,.2);
}
.gd-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,122,181,.07), rgba(59,168,216,.13));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .85rem;
  transition: transform .3s;
}
.gd-cat-tile:hover .gd-cat-icon { transform: scale(1.08); }
.gd-cat-name { font-weight: 600; font-size: .95rem; color: var(--gd-text); letter-spacing: .1px; line-height: 1.3; }
.gd-cat-count {
  font-size: .7rem;
  color: var(--gd-primary);
  background: rgba(26,122,181,.06);
  padding: .2rem .65rem;
  border-radius: 10px;
  font-weight: 500;
  margin-top: .4rem;
  letter-spacing: .3px;
}

/* ── SHOW ALL CATEGORIES TOGGLE ────────────────────────────────────────── */
.gd-show-all-btn {
  display: block;
  margin: 1.2rem auto 0;
  padding: .55rem 1.6rem;
  background: transparent;
  color: var(--gd-primary);
  border: 1.5px solid var(--gd-primary);
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gd-show-all-btn:hover {
  background: var(--gd-primary);
  color: #fff;
}

/* ── REGION NAVIGATOR (search page) ─────────────────────────────────────── */
.gd-region-nav {
  background: #fff;
  border-bottom: 1px solid var(--gd-border);
  padding: 1.25rem 2rem;
}
.gd-region-label {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gd-muted);
  margin-bottom: .75rem;
}
.gd-region-grid {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.gd-region-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: var(--gd-bg);
  border: 1px solid var(--gd-border);
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--gd-font-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--gd-text);
}
.gd-region-btn:hover {
  background: var(--gd-primary);
  color: #fff;
  border-color: var(--gd-primary);
}
.gd-region-btn .gd-region-icon { font-size: .95rem; line-height: 1; }

/* ── SEARCH PAGE ─────────────────────────────────────────────────────────── */
.gd-search-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .gd-search-layout { grid-template-columns: 1fr; }
}
.gd-filter-panel {
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-border);
  border-radius: 10px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 76px;
}
.gd-filter-group { margin-bottom: 1.5rem; }
.gd-filter-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gd-muted);
  margin-bottom: .5rem;
}
.gd-filter-panel select,
.gd-filter-panel input[type=text] {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius);
  font-size: .875rem;
  font-family: var(--gd-font-body);
  outline: none;
  transition: border-color .2s;
  color: var(--gd-text);
}
.gd-filter-panel select:focus,
.gd-filter-panel input:focus { border-color: var(--gd-primary); }

.gd-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.gd-results-count { color: var(--gd-muted); font-size: .85rem; font-weight: 400; }

/* ── LISTING ROW (search results) ────────────────────────────────────────── */
.gd-listing-row {
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: .75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  cursor: pointer;
  transition: var(--gd-transition);
}
.gd-listing-row:hover {
  box-shadow: var(--gd-shadow-hover);
  border-color: rgba(22,98,157,.2);
  transform: translateY(-1px);
}
.gd-listing-row .gd-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  padding: 5px;
}
.gd-listing-row .gd-card-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  font-size: 1.4rem;
}
.gd-listing-info { flex: 1; }
.gd-listing-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gd-text);
  margin-bottom: .3rem;
  transition: color .2s;
}
.gd-listing-row:hover .gd-listing-title { color: var(--gd-primary); }
.gd-listing-meta {
  font-size: .78rem;
  color: var(--gd-muted);
  margin-bottom: .5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  font-weight: 400;
}
.gd-listing-desc { font-size: .875rem; color: var(--gd-text-secondary); max-height: 2.8em; overflow: hidden; line-height: 1.6; }

/* ── LISTING DETAIL ──────────────────────────────────────────────────────── */
.gd-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .gd-detail-layout { grid-template-columns: 1fr; }
}
.gd-detail-main {}
.gd-detail-sidebar {}

.gd-detail-header {
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-border);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}
.gd-detail-header .gd-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--gd-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.gd-detail-header .gd-card-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 1.2rem;
}
.gd-detail-title {
  font-family: var(--gd-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.gd-detail-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }

.gd-detail-section {
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-border);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.gd-detail-section h3 {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gd-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gd-border-light);
}
.gd-detail-section p { font-size: .9rem; color: var(--gd-text-secondary); white-space: pre-line; line-height: 1.7; }

/* ── CONTACT BOX ─────────────────────────────────────────────────────────── */
.gd-contact-box {
  background: var(--gd-primary-dark);
  color: #fff;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.gd-contact-box h3 {
  font-family: var(--gd-font-display);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
}
.gd-contact-box input,
.gd-contact-box textarea {
  width: 100%;
  padding: .7rem .875rem;
  margin-bottom: .75rem;
  border: none;
  border-radius: var(--gd-radius);
  font-size: .875rem;
  font-family: var(--gd-font-body);
  outline: none;
  background: rgba(255,255,255,.95);
  color: var(--gd-text);
}
.gd-contact-box input::placeholder,
.gd-contact-box textarea::placeholder { color: var(--gd-muted); }
.gd-contact-box textarea { height: 100px; resize: vertical; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.gd-btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 2px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gd-transition);
  font-size: .85rem;
  font-family: var(--gd-font-body);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.gd-btn:hover { text-decoration: none; }
.gd-btn-primary {
  background: var(--gd-primary);
  color: #fff;
  width: 100%;
}
.gd-btn-primary:hover { background: var(--gd-primary-light); }
.gd-btn-outline {
  background: transparent;
  border: 1px solid var(--gd-primary);
  color: var(--gd-primary);
}
.gd-btn-outline:hover { background: var(--gd-primary); color: #fff; }

/* ── INFO LIST ───────────────────────────────────────────────────────────── */
.gd-info-list { list-style: none; }
.gd-info-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--gd-border-light);
  font-size: .875rem;
}
.gd-info-list li:last-child { border-bottom: none; }
.gd-info-list .label { color: var(--gd-muted); min-width: 80px; flex-shrink: 0; font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.gd-info-list .value { color: var(--gd-text); word-break: break-all; }
.gd-info-list .value a { color: var(--gd-primary); }

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.gd-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.gd-page-btn {
  padding: .45rem .9rem;
  border: 1px solid var(--gd-border);
  border-radius: 2px;
  background: var(--gd-card-bg);
  cursor: pointer;
  font-size: .85rem;
  font-family: var(--gd-font-body);
  color: var(--gd-text);
  transition: var(--gd-transition);
}
.gd-page-btn:hover, .gd-page-btn.active {
  background: var(--gd-primary);
  color: #fff;
  border-color: var(--gd-primary);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.gd-footer {
  background: var(--gd-primary-dark) url('/Platform/GlobalDirectory/ui/images/GDV_Pattern_Header.jpg') center/cover no-repeat;
  color: rgba(255,255,255,.7);
  padding: 3rem 2rem;
  text-align: center;
  font-size: .8rem;
  margin-top: 0;
  letter-spacing: .3px;
  border-top: none;
}
.gd-footer a { color: rgba(255,255,255,.8); }
.gd-footer a:hover { color: #fff; }

/* ── LOADER ──────────────────────────────────────────────────────────────── */
.gd-spinner {
  display: flex;
  justify-content: center;
  padding: 3rem;
}
.gd-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px solid var(--gd-border);
  border-top-color: var(--gd-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────── */
.gd-empty { text-align: center; padding: 5rem 2rem; color: var(--gd-muted); }
.gd-empty h3 { font-family: var(--gd-font-display); font-size: 1.3rem; margin-bottom: .5rem; color: var(--gd-text); font-weight: 600; }

/* ── VALUE PROP SECTION ──────────────────────────────────────────────────── */
.gd-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 0;
}
@media (max-width: 768px) { .gd-value-grid { grid-template-columns: 1fr; gap: 2rem; } }
.gd-value-item { text-align: center; }
.gd-value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gd-bg);
  border: 1px solid var(--gd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto .75rem;
}
.gd-value-title {
  font-family: var(--gd-font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--gd-text);
}
.gd-value-desc { font-size: .875rem; color: var(--gd-text-secondary); line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ── CTA BANNER ──────────────────────────────────────────────────────────── */
.gd-cta-banner {
  background: var(--gd-primary-dark) url('/Platform/GlobalDirectory/ui/images/GDV_Pattern_Home.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.gd-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,122,181,.5) 0%, rgba(42,138,126,.4) 100%);
  pointer-events: none;
}
.gd-cta-banner h2 {
  font-family: var(--gd-font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: .75rem;
  position: relative;
}
.gd-cta-banner p {
  color: rgba(255,255,255,.6);
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 300;
  position: relative;
}
.gd-cta-banner .gd-btn {
  position: relative;
  padding: .85rem 2.5rem;
  font-size: .9rem;
}

/* ── ADMIN PANEL ─────────────────────────────────────────────────────────── */
.gd-admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.gd-admin-nav {
  background: var(--gd-primary-dark);
  color: #fff;
  padding: 1rem 0;
}
.gd-admin-nav-logo {
  padding: 1rem 1.25rem;
  font-family: var(--gd-font-display);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: .5rem;
}
.gd-admin-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 500;
  transition: all .15s;
}
.gd-admin-nav a:hover, .gd-admin-nav a.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.gd-admin-content { padding: 2rem; background: var(--gd-bg); }
.gd-admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.gd-admin-header h1 { font-family: var(--gd-font-display); font-size: 1.5rem; font-weight: 600; }

.gd-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.gd-stat-card { background: var(--gd-card-bg); border: 1px solid var(--gd-border); border-radius: var(--gd-radius); padding: 1.5rem; }
.gd-stat-card .number { font-family: var(--gd-font-display); font-size: 2rem; font-weight: 600; color: var(--gd-primary); line-height: 1; }
.gd-stat-card .label { font-size: .75rem; color: var(--gd-muted); margin-top: .35rem; text-transform: uppercase; letter-spacing: .5px; }

.gd-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.gd-table th { background: var(--gd-bg); padding: .75rem 1rem; text-align: left; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; color: var(--gd-muted); border-bottom: 1px solid var(--gd-border); }
.gd-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gd-border-light); }
.gd-table tr:hover td { background: #FAFBFC; }
.gd-table-wrap { background: var(--gd-card-bg); border: 1px solid var(--gd-border); border-radius: var(--gd-radius); overflow: auto; }

.gd-action-btn { padding: .3rem .65rem; border-radius: 2px; border: 1px solid var(--gd-border); background: #fff; cursor: pointer; font-size: .75rem; margin-right: .25rem; transition: var(--gd-transition); font-family: var(--gd-font-body); }
.gd-action-btn:hover { background: var(--gd-primary); color: #fff; border-color: var(--gd-primary); }
.gd-action-btn.danger:hover { background: #DC2626; border-color: #DC2626; }

.gd-toolbar { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.gd-toolbar input, .gd-toolbar select { padding: .5rem .75rem; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); font-size: .875rem; outline: none; font-family: var(--gd-font-body); }
.gd-toolbar input:focus, .gd-toolbar select:focus { border-color: var(--gd-primary); }

.status-active { color: #1B7A43; font-weight: 600; }
.status-pending { color: #9A7B2E; font-weight: 600; }
.status-rejected { color: #DC2626; font-weight: 600; }
.status-inactive { color: var(--gd-muted); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gd-nav { padding: 0 1.25rem; gap: 1rem; }
  .gd-nav-links a:not(.gd-nav-cta) { display: none; }
  .gd-hero { padding: 4rem 1.5rem 3.5rem; }
  .gd-hero h1 { font-size: 2rem; }
  .gd-stats { gap: 2rem; }
  .gd-stat strong { font-size: 1.75rem; }
  .gd-admin-layout { grid-template-columns: 1fr; }
  .gd-admin-nav { display: flex; overflow-x: auto; padding: 0; }
  .gd-admin-nav-logo { display: none; }
  .gd-value-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gd-container { padding: 0 1.25rem; }
}

/* ── MEGA NAVIGATION ─────────────────────────────────────────────────── */
.gd-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem .5rem;
  margin-left: auto;
}
.gd-nav-body {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0;
}
.gd-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.gd-nav-item {
  position: relative;
}
.gd-nav-item > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 1rem;
  height: 64px;
  color: rgba(255,255,255,.85) !important;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.gd-nav-item > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}
.gd-nav-arrow {
  font-size: .6rem;
  opacity: .5;
  margin-top: 1px;
}
.gd-nav-dropdown {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  background: #fff;
  border: 1px solid var(--gd-border);
  border-top: 2px solid var(--gd-accent);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  min-width: 280px;
  z-index: 200;
  padding: .5rem 0;
}
.gd-nav-item:hover .gd-nav-dropdown {
  display: block;
}
.gd-nav-dropdown a {
  display: block;
  padding: .6rem 1.25rem;
  color: var(--gd-text) !important;
  font-size: .85rem;
  font-weight: 400;
  transition: background .15s, color .15s, padding-left .15s;
  border-left: 2px solid transparent;
}
.gd-nav-dropdown a:hover {
  background: var(--gd-bg);
  color: var(--gd-primary) !important;
  padding-left: 1.5rem;
  border-left-color: var(--gd-accent);
}
.gd-nav-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-left: auto;
  flex-shrink: 0;
}
.gd-nav-btn {
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: 2px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none !important;
}
.gd-nav-btn-rfq {
  background: var(--gd-accent);
  color: #fff !important;
  border: 1px solid var(--gd-accent);
}
.gd-nav-btn-rfq:hover {
  background: var(--gd-accent-light);
  border-color: var(--gd-accent-light);
}
.gd-nav-btn-claim {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
}
.gd-nav-btn-claim:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
}
.gd-nav-btn-signin {
  color: rgba(255,255,255,.65) !important;
  background: transparent;
  border: 1px solid transparent;
  padding: .4rem .75rem;
}
.gd-nav-btn-signin:hover {
  color: #fff !important;
}

/* ── SHORTCUT BUTTONS ────────────────────────────────────────────────── */
.gd-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  position: relative;
}
.gd-shortcut-btn {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: rgba(255,255,255,.1);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
}
.gd-shortcut-btn:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  color: #fff !important;
}
.gd-shortcut-btn-accent {
  background: var(--gd-accent) !important;
  border-color: var(--gd-accent) !important;
}
.gd-shortcut-btn-accent:hover {
  background: var(--gd-accent-light) !important;
  border-color: var(--gd-accent-light) !important;
}

/* ── TRUST SIGNAL BAR ────────────────────────────────────────────────── */
.gd-trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--gd-border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.gd-trust-headline {
  font-family: var(--gd-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gd-text);
  margin-bottom: .5rem;
}
.gd-trust-sub {
  font-size: .9rem;
  color: var(--gd-text-secondary);
  font-weight: 400;
}

/* ── 4-PILLAR VALUE BAR ──────────────────────────────────────────────── */
.gd-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 4rem 0;
}
.gd-pillar-item { text-align: center; }
.gd-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,122,181,.08), rgba(59,168,216,.15));
  border: 1px solid rgba(26,122,181,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto .85rem;
}
.gd-pillar-title {
  font-family: var(--gd-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--gd-text);
}
.gd-pillar-desc {
  font-size: .85rem;
  color: var(--gd-text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ── MEGA NAV RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gd-hamburger { display: block; }
  .gd-nav-body {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0d3d5c;
    flex-direction: column;
    padding: .5rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 200;
    max-height: 80vh;
    overflow-y: auto;
  }
  .gd-nav.nav-open .gd-nav-body { display: flex; }
  .gd-nav-menu { flex-direction: column; width: 100%; }
  .gd-nav-item > a { height: auto; padding: .7rem 1.5rem; }
  .gd-nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    min-width: 0;
    background: rgba(0,0,0,.15);
    padding: 0;
  }
  .gd-nav-dropdown a {
    color: rgba(255,255,255,.7) !important;
    padding: .5rem 2.5rem;
    border-left: none;
  }
  .gd-nav-dropdown a:hover {
    background: rgba(255,255,255,.08);
    color: #fff !important;
    padding-left: 2.5rem;
  }
  .gd-nav-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 1.5rem 0;
    justify-content: flex-start;
  }
  .gd-shortcut-row { gap: .4rem; }
  .gd-shortcut-btn { font-size: .72rem; padding: .4rem .9rem; }
  .gd-pillar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
  .gd-pillar-grid { grid-template-columns: 1fr; }
}
