/* =================================================================
   GKS LOGISTICS — V3 Country presence pages (Sprint 12)
   Scoped under body.v3
   ================================================================= */

body.v3 .country-page {
  background: var(--gks-surface, #f4f7fb);
  color: var(--gks-text, #0f172a);
}

/* ---------- Hero ---------- */
body.v3 .country-page__hero {
  position: relative;
  min-height: clamp(22rem, 52vh, 36rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(2.5rem, 5vh, 3.5rem);
  color: var(--gks-white, #fff);
  isolation: isolate;
}

body.v3 .country-page__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 42, 69, 0.15) 0%, rgba(6, 42, 69, 0.55) 100%);
  z-index: 0;
  pointer-events: none;
}

body.v3 .country-page__hero-inner {
  position: relative;
  z-index: 1;
}

body.v3 .country-page__hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

body.v3 .country-page__hero-title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 0 0.75rem;
  color: var(--gks-white, #fff);
}

body.v3 .country-page__hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 42rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

body.v3 .country-page__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.v3 .country-page__hero-actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--gks-white, #fff);
  background: rgba(255, 255, 255, 0.08);
}

body.v3 .country-page__hero-actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Sections stack ---------- */
body.v3 .country-page__sections {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vh, 4.5rem);
  padding: clamp(3rem, 6vh, 4.5rem) 0 clamp(4rem, 8vh, 5.5rem);
}

body.v3 .country-page__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gks-red, #e63946);
  margin-bottom: 0.5rem;
}

body.v3 .country-page__h2 {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--gks-blue, #0a3d62);
}

body.v3 .country-page__h2--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.v3 .country-page__text,
body.v3 .country-page__lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.82);
  margin: 0 0 1rem;
}

body.v3 .country-page__lead {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

body.v3 .country-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

body.v3 .country-page__grid--reverse {
  direction: rtl;
}

body.v3 .country-page__grid--reverse > * {
  direction: ltr;
}

body.v3 .country-page__checks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.65rem;
}

body.v3 .country-page__checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
}

body.v3 .country-page__checks i {
  color: var(--gks-red, #e63946);
  margin-top: 0.15rem;
}

body.v3 .country-page__figure {
  margin: 0;
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(10, 61, 98, 0.12));
  border: 1px solid rgba(10, 61, 98, 0.08);
}

body.v3 .country-page__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Services */
body.v3 .country-page__service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

body.v3 .country-page__service {
  background: var(--gks-white, #fff);
  border-radius: var(--radius-md, 0.75rem);
  padding: 1.35rem 1.15rem;
  border: 1px solid rgba(10, 61, 98, 0.08);
  box-shadow: 0 8px 28px rgba(10, 61, 98, 0.06);
  transition: transform var(--dur-fast, 0.2s) var(--ease-premium, ease),
    box-shadow var(--dur-fast, 0.2s) var(--ease-premium, ease);
}

body.v3 .country-page__service:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(10, 61, 98, 0.1);
}

body.v3 .country-page__service-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.08), rgba(230, 57, 70, 0.1));
  color: var(--gks-blue, #0a3d62);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

body.v3 .country-page__service-icon i,
body.v3 .country-page__office-list i,
body.v3 .country-page__cta-pills i,
body.v3 .country-page__checks i {
  max-width: 1.1rem;
  font-size: 1rem;
  line-height: 1;
}

body.v3 .country-page__service h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--gks-blue, #0a3d62);
}

body.v3 .country-page__service p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.75);
}

/* Stats */
body.v3 .country-page__stats {
  background: linear-gradient(135deg, #062a45 0%, #0a3d62 55%, #1b5c8a 100%);
  color: var(--gks-white, #fff);
  border-radius: var(--radius-lg, 1rem);
  padding: clamp(2rem, 4vh, 2.75rem) 1.5rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.v3 .country-page__stats .country-page__h2 {
  color: var(--gks-white, #fff);
}

body.v3 .country-page__stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

body.v3 .country-page__stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 0.75rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.v3 .country-page__stat-num {
  display: block;
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gks-red, #e63946);
}

body.v3 .country-page__stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Highlight */
body.v3 .country-page__highlight {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md, 0.75rem);
  background: rgba(10, 61, 98, 0.06);
  border-left: 4px solid var(--gks-red, #e63946);
}

body.v3 .country-page__highlight i {
  color: var(--gks-blue-300, #6fa0c2);
  margin-top: 0.2rem;
}

body.v3 .country-page__highlight p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Related pills */
body.v3 .country-page__pills {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

body.v3 .country-page__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--gks-white, #fff);
  border: 1px solid rgba(10, 61, 98, 0.12);
  color: var(--gks-blue, #0a3d62);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background var(--dur-fast, 0.2s), border-color var(--dur-fast, 0.2s),
    transform var(--dur-fast, 0.2s);
}

body.v3 .country-page__pill:hover {
  border-color: var(--gks-red, #e63946);
  transform: translateY(-2px);
}

body.v3 .country-page__pill-flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* Office card */
body.v3 .country-page__office-card {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 4vh, 2.75rem);
  background: var(--gks-white, #fff);
  border-radius: var(--radius-lg, 1rem);
  border: 1px solid rgba(10, 61, 98, 0.1);
  box-shadow: 0 12px 40px rgba(10, 61, 98, 0.08);
}

body.v3 .country-page__office-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

body.v3 .country-page__office-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

body.v3 .country-page__office-list a {
  color: var(--gks-blue, #0a3d62);
  font-weight: 600;
  min-width: 0;
}

body.v3 .country-page__office-list i {
  font-size: 1rem;
  width: 1.25rem;
  flex-shrink: 0;
  text-align: center;
  color: var(--gks-red, #e63946);
}

body.v3 .country-page__office-btn {
  margin-top: 0.5rem;
}

/* Closing CTA */
body.v3 .country-page__cta-inner {
  text-align: center;
  padding: clamp(2.5rem, 5vh, 3.5rem) 1.5rem;
  border-radius: var(--radius-lg, 1.25rem);
  background: linear-gradient(135deg, #062a45 0%, #0a3d62 60%, #1b5c8a 100%);
  color: var(--gks-white, #fff);
  position: relative;
  overflow: hidden;
}

body.v3 .country-page__cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 100% 0%, rgba(230, 57, 70, 0.2), transparent 60%);
  pointer-events: none;
}

body.v3 .country-page__cta-title,
body.v3 .country-page__cta-lead,
body.v3 .country-page__cta-pills,
body.v3 .country-page__cta-actions {
  position: relative;
  z-index: 1;
}

body.v3 .country-page__cta-title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.75rem;
  color: var(--gks-white, #fff);
}

body.v3 .country-page__cta-lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

body.v3 .country-page__cta-pills {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  font-size: 0.88rem;
  opacity: 0.95;
}

body.v3 .country-page__cta-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.v3 .country-page__cta-pills i {
  color: var(--gks-red, #e63946);
}

body.v3 .country-page__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

body.v3 .country-page__cta-actions .btn.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--gks-white, #fff);
  background: rgba(255, 255, 255, 0.04);
}

body.v3 .country-page__cta-actions .btn.btn--ghost-dark:hover {
  background: var(--gks-white);
  color: var(--gks-blue) !important;
}

/* Ensure ghost-dark remains readable on dark country blocks */
body.v3 .country-page__stats .btn.btn--ghost-dark,
body.v3 .country-page__hero .btn.btn--ghost-dark,
body.v3 .country-page__cta-inner .btn.btn--ghost-dark {
  color: var(--gks-white, #fff);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

/* Philosophy block (legacy class names + V3 polish) */
body.v3 .country-page .philosophy-accordion-section {
  background: var(--gks-white, #fff);
  padding: clamp(2.5rem, 5vh, 3.5rem) 0;
  border-block: 1px solid rgba(10, 61, 98, 0.06);
}

body.v3 .country-page .philosophy-accordion-section .section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gks-red, #e63946);
}

body.v3 .country-page .philosophy-accordion-section .section-title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  color: var(--gks-blue, #0a3d62);
}

body.v3 .country-page .philosophy-accordion {
  max-width: 48rem;
  margin: 0 auto;
}

body.v3 .country-page .accordion-item {
  border: 1px solid rgba(10, 61, 98, 0.1);
  border-radius: var(--radius-md, 0.75rem);
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: #fafcfe;
}

body.v3 .country-page .accordion-header {
  cursor: pointer;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--dur-fast, 0.2s);
}

body.v3 .country-page .accordion-header:hover {
  background: rgba(10, 61, 98, 0.04);
}

body.v3 .country-page .accordion-content {
  padding: 0 1.15rem 1rem;
  display: none;
}

body.v3 .country-page .accordion-content.active {
  display: block;
}

body.v3 .country-page .accordion-header.active .accordion-arrow {
  transform: rotate(180deg);
}

body.v3 .country-page .accordion-arrow {
  transition: transform var(--dur-fast, 0.2s);
  color: var(--gks-blue, #0a3d62);
}

@media (max-width: 900px) {
  body.v3 .country-page__grid,
  body.v3 .country-page__grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  body.v3 .country-page__service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.v3 .country-page__stat-row {
    grid-template-columns: 1fr;
  }

  body.v3 .country-page__hero {
    min-height: auto;
    padding-top: clamp(4.75rem, 16vw, 6.25rem);
  }
}

@media (max-width: 520px) {
  body.v3 .country-page__hero-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  body.v3 .country-page__hero-lead,
  body.v3 .country-page__text,
  body.v3 .country-page__lead {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  body.v3 .country-page__hero-actions,
  body.v3 .country-page__cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.v3 .country-page__hero-actions .btn,
  body.v3 .country-page__cta-actions .btn {
    width: 100%;
  }

  body.v3 .country-page__office-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.v3 .country-page__office-list li {
    align-items: flex-start;
  }

  body.v3 .country-page__pill {
    width: 100%;
    justify-content: center;
  }

  body.v3 .country-page__highlight {
    flex-direction: column;
  }

  body.v3 .country-page__service-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.v3 .country-page__service,
  body.v3 .country-page__pill,
  body.v3 .country-page .accordion-arrow {
    transition: none;
  }
}
