/*
Theme Name: GLOVERAL
Theme URI: https://gloveral.com
Author: GLOVERAL
Description: Corporate media operating system theme for GLOVERAL.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gloveral
*/

:root {
  --ink: #061b45;
  --ink-2: #0b2b61;
  --blue: #2468f2;
  --red: #ff4d3d;
  --paper: #f7f8fb;
  --white: #fff;
  --mist: #dbe5f4;
  --text: #152443;
  --muted: #62708a;
  --line: rgba(6, 27, 69, .14);
  --shadow: 0 28px 70px rgba(6, 27, 69, .13);
  --radius: 22px;
  --wrap: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-main { overflow: clip; }
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(3,18,47,.92);
  transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled { background: rgba(3,18,47,.96); box-shadow: 0 1px 18px rgba(3,18,47,.22); backdrop-filter: blur(16px); }
.header-inner { width: var(--wrap); height: 86px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand-window { width: 324px; height: 76px; display: flex; align-items: center; flex: 0 0 auto; }
.brand-window img { display: block; width: 100%; max-height: 74px; object-fit: contain; object-position: left center; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 25px; padding: 0; margin: 0; list-style: none; }
.main-nav a { color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a:hover { color: var(--blue); }
.header-cta { padding: 12px 18px; color: var(--ink); background: var(--white); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nav-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px; background: var(--white); }
.language-menu { border-top: 1px solid rgba(255,255,255,.12); }
.language-inner { height: 36px; justify-content: flex-end; gap: 0; }
.language-menu a { min-width: 39px; padding: 2px 10px; color: rgba(255,255,255,.62); border-left: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; }
.language-menu a:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.language-menu a:hover, .language-menu a.is-active { color: #fff; background: rgba(255,255,255,.1); }

.hero {
  min-height: 850px;
  padding: 205px 0 110px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 28%, rgba(36,104,242,.34), transparent 25%),
    radial-gradient(circle at 88% 64%, rgba(255,77,61,.18), transparent 23%),
    var(--ink);
}
.hero::after { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-orbit { position: absolute; width: 510px; aspect-ratio: 1; right: 5vw; top: 155px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; inset: 70px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.hero-orbit::after { inset: 170px; background: linear-gradient(135deg, var(--blue), var(--red)); border: 0; box-shadow: 0 0 90px rgba(36,104,242,.4); }
.hero-content { position: relative; z-index: 2; max-width: 890px; }
.eyebrow { margin: 0 0 25px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #91b6ff; }
.hero h1 { margin: 0; max-width: 980px; font-size: clamp(60px, 8vw, 116px); line-height: .91; letter-spacing: -.065em; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.8); }
.hero-copy { max-width: 670px; margin: 36px 0 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.48; color: #d8e4f9; }
.hero-actions, .cta-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; }
.button-ghost { border-color: rgba(255,255,255,.36); color: #fff; }
.button-dark { background: var(--ink); color: #fff; }
.button-light { background: #fff; color: var(--ink); }

.section { padding: 120px 0; }
.section-head { display: block; margin-bottom: 58px; }
.section-head h2, .manifesto h2, .closing h2 { margin: 0; color: var(--ink); font-size: clamp(42px, 5vw, 74px); line-height: .98; letter-spacing: -.045em; }
.section-head h2 { max-width: 1180px; }
.section-head p { max-width: 900px; margin: 26px 0 0; color: var(--muted); font-size: 20px; }
.section-head > div + div { max-width: 900px; margin-top: 26px; }
.section-head > div + div p { margin-top: 0; }
.section-head > div + div p + p { margin-top: 15px; }
.section-head > div + div .button { margin-top: 20px; }
.capabilities-head { max-width: none; }
.capabilities-head h2 { max-width: 1180px; }
.capabilities-head .section-legend { max-width: 900px; margin-top: 26px; font-size: 20px; line-height: 1.55; }
.manifesto { background: #fff; }
.manifesto-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.manifesto-copy p { color: var(--muted); font-size: 20px; }
.manifesto-copy p:first-of-type { color: var(--text); font-size: 25px; }
.signal-card { padding: 65px; color: #fff; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.signal-card strong { display: block; font-size: 78px; line-height: 1; }
.signal-card span { display: block; margin-top: 26px; color: #b9c9e6; font-size: 18px; }

.movements { background: var(--ink); color: #fff; }
.movements .section-head h2 { color: #fff; }
.movements .section-head p { color: #b9c9e6; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.movement-card { min-height: 390px; padding: 40px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); }
.movement-number { color: #8ca5cd; font-size: 13px; font-weight: 800; }
.movement-card h3 { margin: 80px 0 18px; font-size: 36px; letter-spacing: -.04em; }
.movement-card p { color: #b9c9e6; }
.movement-card strong { position: absolute; bottom: 38px; left: 40px; }
.movement-card::after { content: ""; width: 150px; height: 150px; position: absolute; right: -60px; top: -60px; border: 28px solid var(--blue); border-radius: 50%; opacity: .8; }
.movement-card:nth-child(2)::after { border-color: #fff; }
.movement-card:nth-child(3)::after { border-color: var(--red); }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-height: 275px; padding: 38px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 14px; font-weight: 900; }
.service h3 { margin: 50px 0 13px; color: var(--ink); font-size: 19px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

.system { background: #eaf0fa; }
.system-list { counter-reset: system; }
.system-item { display: grid; grid-template-columns: 95px 250px 1fr; gap: 30px; padding: 26px 0; border-top: 1px solid rgba(6,27,69,.18); align-items: center; }
.system-item:last-child { border-bottom: 1px solid rgba(6,27,69,.18); }
.system-item::before { counter-increment: system; content: "0" counter(system); color: var(--blue); font-size: 14px; font-weight: 900; }
.system-item h3 { margin: 0; color: var(--ink); font-size: 24px; }
.system-item p { margin: 0; color: var(--muted); }
.system-claim { margin: 48px 0 0; color: var(--ink); font-size: 24px; font-weight: 800; }

.solutions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.solution { padding: 30px 25px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.solution h3 { min-height: 55px; margin: 0 0 25px; color: var(--ink); font-size: 15px; }
.solution p { margin: 0; color: var(--muted); font-size: 14px; }

.multilingual { color: #fff; background: linear-gradient(120deg, #164aa7, var(--ink) 65%); }
.multilingual .section-head h2 { color: #fff; }
.multilingual .section-head p { color: #c8d7f2; }
.language-line { display: flex; gap: 13px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.2); }
.language-line span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.27); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { min-height: 300px; padding: 32px; color: #fff; background: var(--ink); border-radius: 18px; }
.value-card:nth-child(2) { background: var(--ink-2); }
.value-card:nth-child(3) { background: #164aa7; }
.value-card:nth-child(4) { background: var(--blue); }
.value-card h3 { margin: 125px 0 14px; font-size: 19px; }
.value-card p { margin: 0; color: rgba(255,255,255,.76); font-size: 14px; }
.value-claim { max-width: 850px; margin: 55px auto 0; color: var(--ink); text-align: center; font-size: 28px; font-weight: 800; }

.network { background: #fff; }
.verticals { display: flex; flex-wrap: wrap; gap: 13px; }
.vertical { padding: 20px 25px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 750; }
.network-note { max-width: 760px; margin: 45px 0 0; color: var(--muted); font-size: 19px; }

.metrics { padding: 70px 0; background: var(--ink); color: #fff; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 15px 32px; border-left: 1px solid rgba(255,255,255,.2); }
.metric:first-child { border-left: 0; }
.metric strong { display: block; font-size: 48px; line-height: 1; }
.metric span { display: block; margin-top: 12px; color: #b9c9e6; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.insight { padding: 32px; background: #fff; border-radius: 18px; box-shadow: 0 15px 45px rgba(6,27,69,.07); }
.insight-tag { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.insight h3 { margin: 40px 0 15px; color: var(--ink); font-size: 25px; line-height: 1.15; }
.insight p { color: var(--muted); font-size: 14px; }
.text-link { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }

.closing { padding: 120px 0; color: #fff; background: var(--blue); }
.movements, .multilingual, .closing { position: relative; overflow: hidden; isolation: isolate; }
.movements::before, .multilingual::before, .closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  right: -8%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  background: url("assets/images/gloveral-iso-watermark.png") center / contain no-repeat;
  opacity: .045;
  pointer-events: none;
}
.multilingual::before { right: 3%; width: min(40vw, 540px); opacity: .055; transform: translateY(-50%) rotate(7deg); }
.closing::before { right: auto; left: -7%; width: min(42vw, 560px); opacity: .055; transform: translateY(-50%) rotate(-12deg); }
.closing-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: center; }
.closing h2 { color: #fff; }
.closing p { color: #dce8ff; font-size: 19px; }
.contact-card { padding: 38px; color: var(--text); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h3 { margin: 0 0 7px; color: var(--ink); font-size: 26px; }
.contact-card p { margin: 0 0 23px; color: var(--muted); font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-card input, .contact-card textarea { width: 100%; margin-bottom: 13px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; background: #f8faff; }
.contact-card textarea { min-height: 115px; resize: vertical; }
.form-message { padding: 10px 0; font-weight: 700; }

.site-footer { padding: 78px 0 35px; color: #afbdd7; background: #03122f; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; padding-bottom: 55px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-brand img { display: block; width: min(100%, 465px); height: auto; }
.footer-brand p { max-width: 520px; margin: 24px 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 13px; }
.footer-bottom a { color: #fff; }

.is-rtl { font-family: "Tahoma", "Arial", sans-serif; }
.is-rtl .brand-window img { object-position: right center; }
.is-rtl .main-nav { margin-left: 0; margin-right: auto; }
.is-rtl .movement-card strong { left: auto; right: 40px; }
.is-rtl .system-item { direction: rtl; }
.is-rtl .metric { border-left: 0; border-right: 1px solid rgba(255,255,255,.2); }
.is-rtl .metric:first-child { border-right: 0; }
.is-rtl .footer-bottom, .is-rtl .footer-grid, .is-rtl .closing-grid { direction: rtl; }
.language-ar .hero h1, .language-zh .hero h1, .language-ru .hero h1 { font-size: clamp(52px, 6.4vw, 94px); line-height: 1.02; letter-spacing: -.04em; }
.language-ar .hero h1 { line-height: 1.12; letter-spacing: 0; }

.article-shell { width: min(850px, calc(100vw - 48px)); margin: 0 auto; padding: 160px 0 100px; }
.article-shell h1 { color: var(--ink); font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.entry-content { font-size: 19px; }
.entry-content h2, .entry-content h3 { color: var(--ink); }
.entry-content a { color: var(--blue); text-decoration: underline; }

@media (max-width: 1000px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open { display: block; position: fixed; inset: 122px 0 0; padding: 50px 24px; background: #fff; }
  .main-nav.is-open a { color: var(--ink); }
  .main-nav.is-open ul { flex-direction: column; gap: 25px; }
  .main-nav.is-open a { font-size: 22px; }
  .hero-orbit { opacity: .45; right: -240px; }
  .section-head, .manifesto-grid, .closing-grid { grid-template-columns: 1fr; gap: 35px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --wrap: min(100% - 32px, 1240px); }
  body { font-size: 16px; }
  .header-inner { height: 76px; gap: 16px; }
  .language-inner { height: 34px; justify-content: center; gap: 0; }
  .language-menu a { min-width: 36px; padding-inline: 8px; }
  .brand-window { width: min(264px, calc(100% - 58px)); height: 62px; }
  .brand-window img { max-height: 60px; }
  .movements::before, .multilingual::before, .closing::before { width: 82vw; right: -32%; opacity: .04; }
  .closing::before { right: auto; left: -34%; }
  .main-nav.is-open { inset-block-start: 110px; }
  .hero { min-height: 760px; padding: 165px 0 80px; }
  .hero h1 { font-size: clamp(52px, 16vw, 78px); }
  .hero-copy { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 42px; }
  .section-head h2, .manifesto h2, .closing h2 { font-size: 43px; }
  .card-grid, .services-grid, .solutions-grid, .value-grid, .insights-grid { grid-template-columns: 1fr; }
  .system-item { grid-template-columns: 55px 1fr; gap: 12px; }
  .system-item p { grid-column: 2; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 35px 0; }
  .metric:nth-child(3) { border-left: 0; }
  .metric strong { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}
