/* =========================================================
   GIC Global — Design System & Shared Styles
   ========================================================= */

/* ---------- Custom Properties ---------- */
:root {
  /* Brand palette */
  --navy:      #0f2b46;
  --navy-dark: #091b30;
  --gold:      #c9a84c;
  --gold-dark: #8a7235;   /* AA-passing darker gold for text on light bg */
  --gold-light:#e8cc6a;
  --bg:        #fafaf8;
  --surface:   #ffffff;
  --border:    #e5e0d8;
  --muted:     #6b7280;
  --text:      #1a1a1a;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);

  /* Transitions */
  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 400ms cubic-bezier(.4,0,.2,1);
}

/* ---------- 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-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* Selection */
::selection { background: var(--gold); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p { line-height: 1.75; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);  /* AA-passing darker gold on light bg */
  margin-bottom: var(--space-3);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section--dark {
  background: var(--navy);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark .eyebrow { color: var(--gold-light); }

.section--alt {
  background: #fff;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: var(--space-3);
}
.btn--ghost:hover { color: var(--navy); }

.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover {
  background: #1fb855;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--gold);
}

.card__title { margin-bottom: var(--space-3); }
.card__body  { color: var(--muted); font-size: var(--text-sm); }

/* Country card */
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.country-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.country-card__flag {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.country-card__body {
  padding: var(--space-5);
}
.country-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.country-card__meta {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Service pill */
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: var(--text-sm);
  color: var(--muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.service-pill:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  background: rgba(201,168,76,.06);
}

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(201,168,76,.12);
  color: var(--gold-dark);
}

/* ---------- Dividers ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--space-8);
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 680px;
  margin-bottom: var(--space-12);
}
.section-header--center {
  text-align: center;
  margin-inline: auto;
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--gold);
  padding: var(--space-10) 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
  color: var(--navy-dark);
  margin-bottom: var(--space-4);
}
.cta-band p {
  color: var(--navy);
  margin-bottom: var(--space-6);
  opacity: 0.8;
}
.cta-band .btn {
  background: var(--navy);
  color: #fff;
}
.cta-band .btn:hover {
  background: var(--navy-dark);
}

/* ---------- Forms ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

select.with-arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.checkbox-group label {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.radio-tabs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.radio-tabs label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition);
  color: var(--muted);
}
.radio-tabs input[type="radio"] { display: none; }
.radio-tabs input:checked + label {
  border-color: var(--gold-dark);
  background: rgba(201,168,76,.08);
  color: var(--gold-dark);
}

/* ---------- FAQ Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion__item details[open] { border-color: var(--gold); }
.accordion summary {
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: color var(--transition);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--gold); }
.accordion summary .icon {
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--gold);
}
.accordion__item[open] summary .icon { transform: rotate(180deg); }
.accordion__body {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--navy);
  color: #fff;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform var(--transition-slow);
}
.toast.show { transform: translateY(0); }
.toast--success { background: #059669; }
.toast--error   { background: #dc2626; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up {
  /* Default: visible. JS opts the element into the fade by adding .fade-up--init,
     which sets the start state, then removes it on intersection to play the animation. */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Only apply the hidden start state when JS has marked the element as
   ready to be animated. This means: noscript users, headless pre-JS
   screenshots, and prefers-reduced-motion users all see content. */
.fade-up--init {
  opacity: 0;
  transform: translateY(24px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up--init { opacity: 1; transform: none; }
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ---------- Process Steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}
.step {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step__body h4 { color: var(--navy); margin-bottom: var(--space-2); }
.step__body p { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
@media (max-width: 640px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
thead { background: var(--navy); color: #fff; }
th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ---------- Blog cards ---------- */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: transparent;
}
.blog-card__img {
  height: 180px;
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 3rem;
}
.blog-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__meta {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-4);
}
.blog-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition);
}
.blog-card:hover .blog-card__link { gap: var(--space-3); }

/* ---------- Testimonial card ---------- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial-card__quote {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 700;
  color: var(--navy);
  font-size: var(--text-sm);
}

/* ---------- Affiliations ---------- */
.affiliations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.affiliations__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.affiliations__item:hover { opacity: 1; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}
.tab-btn.active,
.tab-btn:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--navy);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.page-hero h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: var(--space-5);
}
.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: var(--text-lg);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Contact Info Cards ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-card__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
}
.contact-card__info {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}
.contact-card__info a { color: var(--gold-dark); font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}
.pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition);
}
.pagination__btn.active,
.pagination__btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-dark);
}
.pagination__btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-white  { color: #fff; }
.font-display { font-family: var(--font-display); }
.mt-auto     { margin-top: auto; }
.w-full      { width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Print / Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
