/* =========================================================
   GEOSTRAT – Geopolitical Strategic Advisory
   Main stylesheet
   ========================================================= */

:root {
  --navy: #0b2a66;
  --navy-deep: #06204f;
  --blue: #1a4fa3;
  --blue-mid: #1665c9;
  --accent: #1e8fe0;
  --sky: #e8f2fc;
  --icon-bg: #e3eefb;
  --text: #2f3a4d;
  --muted: #5c6878;
  --line: #e1e7ef;
  --white: #ffffff;
  --container: 1240px;
  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-brand: "Exo 2", "Arial Black", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

.rule {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
}
.rule.center { margin: 0 auto; width: 78px; }
.rule.light { background: #3aa6f0; width: 52px; height: 2px; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fff 0%, #fff 70%, #eef4fb 100%);
  box-shadow: 0 1px 0 rgba(11,42,102,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
}
.brand { display: flex; align-items: center; gap: 6px; }
.brand-icon { width: 150px; height: auto; margin-left: -12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 46px;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #0a2f7a 0%, #1356b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name .o { color: #111; -webkit-text-fill-color: #111; }
.brand-tag {
  margin-top: 6px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--navy);
}

.main-nav { display: flex; align-items: center; gap: 56px; }
.main-nav > ul { display: flex; gap: 38px; }
.main-nav > ul a {
  position: relative;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--navy);
  padding: 8px 0;
  transition: color .2s;
}
.main-nav > ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--blue-mid);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav > ul a:hover { color: var(--blue-mid); }
.main-nav > ul a.active { font-weight: 700; color: var(--blue-mid); }
.main-nav > ul a.active::after,
.main-nav > ul a:hover::after { transform: scaleX(1); }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  font: 600 13.5px var(--font); color: var(--navy);
}
.caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--navy);
}
.lang-menu {
  position: absolute; right: 0; top: 130%;
  min-width: 130px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(6,32,79,.15);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: block; padding: 10px 16px; font-size: 13px; color: var(--navy); }
.lang-menu a:hover { background: var(--sky); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); transition: .25s; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 470px;
  padding: 38px 0 26px;
  background: #dfeaf6 url("../images/hero-globe.jpg") center right / cover no-repeat;
  overflow: hidden;
}
.hero::before { /* soft light wash so text stays readable on all widths */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244,249,255,.55) 0%, rgba(244,249,255,.15) 38%, rgba(244,249,255,0) 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 400px;
}
.hero-values { margin-right: -10px; }
.hero-copy { max-width: 560px; padding-left: 34px; }
.hero h1 {
  margin: 0 0 30px;
  font-weight: 400;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -1px;
  color: var(--navy);
}
.hero-copy .rule { margin-bottom: 30px; width: 66px; }
.hero-copy p {
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.45;
  color: #1f3256;
}
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 11px 24px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-mid); }
.btn .arrow { font-size: 18px; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-values {
  padding-bottom: 8px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-values li {
  font-size: 13.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.9;
}
.hero-values li:last-child { letter-spacing: .6px; }
.hero-values::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  margin-top: 14px;
  background: #3aa6f0;
}

/* ================= SERVICES ================= */
.services { padding: 26px 0 16px; background: #fff; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 {
  margin: 14px 0 8px;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--navy);
}
.kicker {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service {
  padding: 12px 18px 16px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s, box-shadow .25s;
}
.service:nth-child(4n) { border-right: 0; }
.service:nth-child(n+9) { border-bottom: 0; }
.service:nth-child(4n+2),
.service:nth-child(4n+3),
.service:nth-child(4n+4) { padding-left: 22px; }
.service:hover { background: #f6faff; }
.service .icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--icon-bg);
  display: grid; place-items: center;
  margin-bottom: 8px;
  transition: transform .3s;
}
.service:hover .icon { transform: translateY(-3px); }
.service .icon img { width: 40px; height: 40px; }
.service h3 {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--blue);
}
.service p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.32;
  color: var(--muted);
}

/* ================= BANNER ================= */
.banner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 160px;
  padding: 30px 0;
  overflow: hidden;
  background:
    url("../images/world-dots.png") 52% 50% / 700px auto no-repeat,
    linear-gradient(90deg, #072457 0%, #0a2e6c 60%, #0b3a85 100%);
  color: #fff;
}
.banner::after { /* bright diagonal panel */
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 33%;
  background: linear-gradient(135deg, #0d4fb0 0%, #1a6ad4 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.banner-left, .banner-right { position: relative; z-index: 1; }
.banner-left { padding-left: max(58px, calc((100vw - var(--container)) / 2 + 58px)); }
.banner-left .rule { margin-bottom: 16px; width: 42px; }
.banner-title {
  margin: 0;
  font-size: 19px;
  letter-spacing: 6px;
  line-height: 1.5;
  text-transform: uppercase;
  font-weight: 400;
}
.banner-right { padding-right: max(42px, calc((100vw - var(--container)) / 2 + 42px)); min-width: 200px; }
.banner-right .rule { margin-bottom: 12px; }
.banner-right p {
  margin: 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: #e7f1ff;
}

/* ================= FOOTER ================= */
.site-footer { background: #fff; padding: 22px 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr .85fr 1.75fr;
  align-items: center;
}
.f-col { padding: 4px 22px; border-right: 1px solid var(--line); min-height: 58px; }
.f-col:first-child { padding-left: 0; }
.f-col:last-child { border-right: 0; padding-right: 0; }
.f-brand { display: flex; flex-direction: column; justify-content: center; }
.f-brand strong { font-size: 18px; color: var(--navy); letter-spacing: .3px; }
.f-brand span { font-size: 13.5px; color: var(--blue); }
.f-address { display: flex; gap: 12px; align-items: flex-start; }
.f-address address { font-style: normal; font-size: 12.5px; line-height: 1.4; color: var(--navy); }
.f-icon { width: 18px; height: 18px; flex: none; }
.f-contact { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.f-contact a { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--navy); }
.f-contact a:hover, .f-links a:hover { color: var(--accent); }
.f-links { text-align: right; }
.f-links nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; white-space: nowrap; font-size: 12px; text-transform: uppercase; color: var(--navy); }
.f-links p { margin: 10px 0 0; font-size: 12px; color: var(--navy); }

/* ================= REVEAL ANIMATION ================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .main-nav { gap: 30px; }
  .main-nav > ul { gap: 22px; }
  .brand-icon { width: 120px; }
  .brand-name { font-size: 38px; }
  .brand-tag { font-size: 11px; }
  .hero h1 { font-size: 50px; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .f-col:nth-child(2) { border-right: 0; }
  .f-col:nth-child(3) { padding-left: 0; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 18px 24px 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(6,32,79,.12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; gap: 6px; }
  .site-header { position: sticky; }
  .header-inner { height: 92px; }
  .hero { padding-top: 40px; background-position: 72% center; }
  .hero::before { background: linear-gradient(90deg, rgba(244,249,255,.85) 0%, rgba(244,249,255,.4) 60%, rgba(244,249,255,0) 100%); }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero-copy { padding-left: 0; }
  .hero-values { align-self: flex-end; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(n) { padding: 20px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
  .banner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .banner::after { width: 100%; top: auto; height: 46%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .banner-left, .banner-right { padding: 0 24px; }
}

@media (max-width: 600px) {
  .brand-icon { width: 84px; }
  .brand-name { font-size: 28px; }
  .brand-tag { font-size: 8.5px; }
  .hero h1 { font-size: 38px; }
  .hero-copy p { font-size: 15.5px; }
  .section-head h2 { font-size: 24px; letter-spacing: 4px; }
  .kicker { font-size: 11px; letter-spacing: 2.5px; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(n) { border-right: 0; }
  .banner-title { font-size: 15px; letter-spacing: 4px; }
  .footer-inner { grid-template-columns: 1fr; }
  .f-col, .f-col:nth-child(n) { border-right: 0; padding: 0; min-height: 0; }
  .f-links, .f-links nav { text-align: left; justify-content: flex-start; }
}

/* current language in dropdown */
.lang-menu a.current { font-weight: 700; color: var(--blue-mid); }
