/* ==========================================================================
   Go Global Market - site styles
   Rebuilt as static HTML from the WordPress (Astra + Elementor) site.
   ========================================================================== */

:root {
  --font: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --text: #100e0d;
  --body-bg: #f7f7f7;
  --dark: #0e1314;
  --darker: #100e0d;
  --beige: #f6f4ef;
  --gray: #f2f2f2;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --green: #2e594a;
  --teal: #1a6c7a;
  --heading-green: #1d2b12;
  --rule: #2e594a;            /* section rules: same deep green as the heading underlines */
  --rule-dark: #100e0d;
  --header-h: 90px;
  --header-h-sticky: 70px;
  --gutter: 3%;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--body-bg);
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 20px; font-family: var(--font); color: inherit; }
h1 { font-size: 65px; line-height: 1.4; font-weight: 600; letter-spacing: 2px; }
h2 { font-size: 40px; line-height: 1.3; font-weight: 700; letter-spacing: 1.2px; }
h3 { font-size: 32px; line-height: 1.3; font-weight: 600; letter-spacing: 1.2px; }
h4 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: 1.2px; }
h5 { font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: 1px; }
h6 { font-size: 15px; line-height: 1.25; font-weight: 400; letter-spacing: 1px; }

p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--text); padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2%;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  transition: min-height .3s ease;
}
.site-header.is-scrolled {
  background: #fafcfd;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.site-header.is-scrolled .header-inner { min-height: var(--header-h-sticky); }

.brand { display: inline-flex; align-items: center; }
.brand img { width: 125px; height: auto; }

.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { display: block; width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav a {
  display: block;
  padding: 13px 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--white-70);
  transition: color .2s ease;
}
.site-nav li:last-child a { padding-right: 0; }
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { color: var(--white); }
.site-header.is-scrolled .site-nav a { color: #000; }
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus { color: var(--green); }

/* Pages whose hero is light at the top need dark nav text from the start. */
.site-header.header-dark .site-nav a { color: rgba(0, 0, 0, .7); }
.site-header.header-dark .site-nav a:hover { color: #000; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.section { padding: 0 var(--gutter); }
.row { display: flex; flex-wrap: wrap; }
.col { padding: var(--gutter); }
.col-33 { width: 33.3333%; }
.col-50 { width: 50%; }
.col-65 { width: 65%; }
.col-35 { width: 35%; }
.col-100 { width: 100%; }

.band {
  background: var(--beige);
  padding: 2% 0 2% var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band h2 { margin: 0; }

.bg-beige { background: var(--beige); }
.bg-gray { background: var(--gray); }
.bg-white { background: var(--white); }

.divider {
  border: 0;
  border-top: 2px solid var(--green);
  width: 150px;
  margin: 5px 0 25px;
}
.divider.right { margin-left: auto; }
.divider.dark { border-color: #0c0d0e; }
.divider.full { width: 100%; }

.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 2px solid currentColor;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn-outline-light { color: var(--white); border-color: var(--white); background: transparent; }
.btn-outline-light:hover, .btn-outline-light:focus { background: var(--white); color: var(--text); }
.btn-outline-light.static:hover, .btn-outline-light.static:focus { background: transparent; color: var(--white); }
.btn-dark { color: var(--white); background: var(--darker); border-color: var(--darker); font-size: 16px; }
.btn-dark:hover, .btn-dark:focus { background: transparent; color: var(--text); }
.btn-teal { color: var(--green); background: var(--white); border-color: var(--green); font-size: 12px; font-weight: 600; }
.btn-teal:hover, .btn-teal:focus { background: var(--green); color: var(--white); }

.link-strong { font-weight: 700; text-decoration: underline; color: var(--text); }

/* --------------------------------------------------------------------------
   Heroes
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* mobile browsers: exclude the address bar so the hero is exactly one screen */
  display: flex;
  align-items: center;
  color: var(--white);
  border-bottom: 2px solid var(--rule);
}

/* Home: full-bleed photo with a dark overlay */
.hero-home {
  background: var(--dark) url("../img/hero-home.webp") center top / cover no-repeat;
  text-align: center;
}
.hero-home::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .45);
}
.hero-home .hero-content {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}
.hero-home h4 { font-weight: 400; margin-bottom: 20px; }
.hero-home h1 { margin-bottom: 20px; }
.hero-home p { margin: 0 auto 20px; max-width: 760px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }

/* Inner pages: photo on the left half, copy on the right */
.hero-split { background: var(--dark); }
.hero-split::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1);
}
.hero-services::before { background-image: url("../img/hero-services.webp"); }
.hero-about::before { background-image: url("../img/hero-about.webp"); }
.hero-contact::before { background-image: url("../img/hero-contact.webp"); }
.hero-split .row { position: relative; width: 100%; align-items: center; }
.hero-split .hero-title { text-align: center; padding: 10px; }
.hero-split .hero-title h1 { font-weight: 700; text-transform: uppercase; margin: 0; }
.hero-split .hero-copy { padding: 10px 6%; }
.hero-split .hero-copy h3 { margin-bottom: 20px; }
.hero-split .hero-copy h4 { font-weight: 400; color: var(--white-70); margin: 0; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.services-intro { padding: 4% var(--gutter); border-bottom: 1px solid var(--rule-dark); }
.services-intro .col { padding: 0 1.25%; }
.services-intro .col:first-child { padding: 0 2.5% 0 0; }
.services-intro .col:last-child { padding: 0 0 0 2.5%; }
.services-intro .col h4 { margin-bottom: 20px; }
.services-intro .col p { margin-bottom: 20px; }
.services-intro .col p:last-child { margin-bottom: 0; }
/* Columns stretch to the tallest one and the Learn More link sits at the bottom of each,
   so the three links line up whatever the column width. */
.services-intro .col { display: flex; flex-direction: column; }
.services-intro .col p:last-child { margin-top: auto; }

.clients-title { padding: 4% var(--gutter) 1%; }
.clients-title h2 { margin: 0; }

.clients { padding: 0 0 1%; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
/* 3vw matches the 3% column padding WordPress used (percent padding inside a grid cell
   would be relative to the narrow cell, not the page, so vw is used instead) */
.client { padding: 3vw; text-align: center; }
.client .logo-box {
  width: 200px; height: 100px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.client .logo-box img {
  width: 200px; height: 100px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter .3s ease;
}
.client:hover .logo-box img { filter: none; }
.client h5 { margin-bottom: 10px; }
.client h6 { margin: 0; font-style: italic; }
.client.more .logo-box { visibility: hidden; }

.markets { background: var(--beige); border-top: 1px solid var(--rule-dark); }
.markets .row { align-items: center; }
.markets .map { padding: 0; }
.markets .map img { width: 100%; }
.markets .copy { padding: 40px 8.5%; }
.markets .copy h3 { margin-bottom: 20px; }
.markets .copy p { margin-bottom: 20px; }
.markets .copy .divider { margin-bottom: 20px; }
.markets .cta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.markets .cta > * { flex: 1 1 200px; }
.markets .cta h5 { font-weight: 400; margin-bottom: 8px; }
.markets .cta a:not(.btn) { color: var(--text); }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service-cards { padding: 1% 0 0; }
.service-cards .row { align-items: stretch; }
.service-card { display: flex; flex-direction: column; }
.service-card h4 { color: var(--heading-green); margin-bottom: 0; }
.service-card .divider { margin: 25px 0; }
.service-card p { margin-bottom: 25px; flex: 1; }
.service-card .btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.feature-row .row { align-items: flex-start; }
.feature-row .text { width: 65%; }
.feature-row .image { width: 35%; }
.feature-row .image img {
  width: 100%;
  filter: grayscale(1);
  transition: filter .3s ease;
}
.feature-row .image:hover img { filter: none; }
.feature-row.align-right .text { text-align: left; }
.feature-row.align-right .text h3 { text-align: right; }
.feature-row .text h3, .feature-row .text h4 { margin-bottom: 20px; }
.feature-row .divider { margin: 5px 0 25px; }
.feature-row.align-right .divider { margin-left: auto; }

.feature-row.pad-bottom { padding-bottom: 3%; }

.spacer { height: 60px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.regions { padding: 20px 0 0; }
.region h3 { margin-bottom: 20px; }
.region img { width: 100%; margin-bottom: 20px; }
.region h5 { font-weight: 700; margin-bottom: 20px; }
.region a { color: var(--text); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--dark); color: var(--white-70); padding: 2%; border-top: 2px solid var(--rule); }
.site-footer .row { align-items: flex-start; }
.site-footer .f-about { width: 34%; padding: 1% 4% 1% 1%; }
.site-footer .f-col { width: 22%; padding: 10px 1.3% 10px 10px; }
.site-footer h4 {
  font-size: 15px; line-height: 1.2; font-weight: 600;
  letter-spacing: 1.2px; color: var(--white); margin-bottom: 20px;
}
.site-footer h4 + h4, .site-footer p + h4, .site-footer ul + h4 { margin-top: 20px; }
.site-footer .divider { border-color: var(--white); width: 150px; margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--white-70); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--white); }
.site-footer .icon-item { display: flex; align-items: center; gap: 10px; }
.site-footer .icon-item svg { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }

.copyright {
  background: var(--darker);
  color: var(--white);
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  padding: 18px 20px;
  margin: 0;
}

/* Scroll-to-top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 40px; height: 40px; border-radius: 4px; border: 0;
  background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.to-top.visible { opacity: .9; pointer-events: auto; }
.to-top svg { width: 16px; height: 16px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  h3 { font-size: 26px; }
  h4 { font-size: 22px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .markets .copy { padding: 40px 5%; }
  .site-footer .f-about { width: 100%; padding: 1%; }
  .site-footer .f-col { width: 33.3333%; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }

  /* Mobile header: solid white with hamburger menu */
  .site-header { background: var(--white); padding: 0 2%; }
  .site-header .header-inner { min-height: 70px; flex-wrap: wrap; }
  /* Keep the logo row 70px tall when the menu opens below it (otherwise the wrapped
     flex line collapses to the logo height and the logo sits flush against the top). */
  .site-header .brand { min-height: 70px; }
  .site-header .site-nav a,
  .site-header.is-scrolled .site-nav a,
  .site-header.header-dark .site-nav a { color: var(--text); }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 10px; }
  .site-nav a { padding: 12px 10px; border-top: 1px solid var(--gray); }
  .site-nav li:last-child a { padding-right: 10px; }

  .hero-home { padding-top: 70px; }
  .hero-home .hero-content { padding: 40px 20px; }
  .hero-split::before { width: 100%; opacity: .35; }
  .hero-split .row { padding: 90px 0 40px; }
  .hero-split .hero-title, .hero-split .hero-copy { width: 100%; text-align: center; padding: 10px 20px; }
  .hero-split .hero-title h1 { margin-bottom: 15px; }
  .hero-split .hero-title::after {
    content: ""; display: block; width: 150px; margin: 0 auto 20px;
    border-top: 3px solid var(--white);
  }
  .hero-split .hero-copy h4 { font-size: 16px; color: var(--white); font-weight: 400; }

  .col-33, .col-50, .col-65, .col-35 { width: 100%; }
  /* Stacked columns get more vertical separation than the desktop side-by-side gutter */
  .col { padding: 28px 20px; }
  .services-intro { padding: 30px 20px; }
  .services-intro .col, .services-intro .col:first-child, .services-intro .col:last-child { padding: 26px 0; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client { padding: 15px 10px; }
  .client .logo-box, .client .logo-box img { width: 140px; height: 80px; }
  .client.more { grid-column: 1 / -1; }
  .client.more .logo-box { display: none; }
  .markets .copy { padding: 30px 20px; }

  .feature-row .text, .feature-row .image { width: 100%; }
  .feature-row.reverse-mobile .row { flex-direction: column-reverse; }
  .feature-row.align-right .text h3 { text-align: left; }
  .feature-row.align-right .divider { margin-left: 0; }

  .site-footer { padding: 60px 20px; }
  .site-footer .f-col { width: 100%; padding: 10px; }
  .spacer { height: 30px; }
}
