/*
Theme Name: First Frontier Group
Theme URI: https://firstfrontiergroup.com
Author: Boldern
Author URI: https://boldern.com
Description: Lightweight one-page theme for First Frontier Group. No page builder, no external fonts, content editable in Appearance > Customize.
Version: 1.0.6
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary, built for First Frontier Group
Text Domain: first-frontier
*/

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); }

/* Layout: full-bleed globe hero with headline left, then alternating light and navy bands.
   Single committed look (navy and silver), so no dark/light split. */
:root {
  --navy: #132E50;
  --deep: #0B1F3B;
  --white: #FFFFFF;
  --silver: #DCE2E9;
  --ink: #16263D;
  --muted: #55657C;
  --paper: #F5F7FA;
  --line-dark: rgba(220, 226, 233, .22);
  --line-light: rgba(19, 46, 80, .16);
  --head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --body: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }
.light :focus-visible, .form-card :focus-visible { outline-color: var(--navy); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 900px) { .wrap { padding-inline: 40px; } }

/* header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-block: 22px 40px;
  background: linear-gradient(180deg, rgba(11,31,59,.82) 0%, rgba(11,31,59,0) 100%);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; line-height: 0; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 8px 34px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-size: .9375rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: var(--white); text-decoration: none; padding-block: 6px;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav a:hover { border-bottom-color: var(--silver); }
.nav-toggle { display: none; }
@media (min-width: 761px) and (max-width: 980px) { .nav { gap: 6px 22px; flex-wrap: nowrap; } .nav a { font-size: .8125rem; letter-spacing: .06em; } .logo img { height: 34px; } }
@media (max-width: 760px) {
  .site-header { padding-block: 16px 24px; }
  .site-header .wrap { flex-direction: row; align-items: center; justify-content: space-between; position: relative; }
  .logo img { height: 30px; }
  /* No JavaScript: keep the links visible under the logo. */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { flex-basis: 100%; justify-content: flex-start; gap: 4px 20px; }
  html:not(.js) .nav a { font-size: .8125rem; }
  /* Compact menu: logo left, menu icon right. */
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    background: transparent; border: 0; color: var(--white); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle .bars { position: relative; display: block; width: 22px; height: 14px; }
  .nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
  .nav-toggle .bars i:nth-child(1) { top: 0; }
  .nav-toggle .bars i:nth-child(2) { top: 6px; }
  .nav-toggle .bars i:nth-child(3) { top: 12px; }
  .menu-open .nav-toggle .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .menu-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .js .nav {
    display: none; position: absolute; top: calc(100% + 16px); left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 8px 20px 18px;
    background: var(--deep); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  }
  .js .menu-open .nav { display: flex; }
  .js .nav a { font-size: .875rem; padding-block: 15px; border-bottom: 1px solid var(--line-dark); }
  .js .nav a:last-child { border-bottom: 0; }
}

/* hero */
.hero {
  position: relative; overflow: hidden; background: var(--deep);
  padding-block: 170px 110px; color: var(--white);
}
.hero-art {
  position: absolute; inset: 0;
  background: var(--hero-img, url('assets/img/hero-globe-2x.webp')) right center / cover no-repeat;
  transform-origin: 74% 52%;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,31,59,.94) 0%, rgba(11,31,59,.72) 38%, rgba(11,31,59,0) 68%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 600; line-height: 1.12;
  letter-spacing: .01em; max-width: 14.5em;
}
.hero p {
  margin-top: 26px; max-width: 37em; font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--silver);
}
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 38px;
  font: 500 .8125rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); text-decoration: none; background: transparent;
  border: 1px solid rgba(255,255,255,.7); padding: 17px 26px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--deep); }
.btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  /* Phones: the globe gets its own band at the top so the network is never hidden
     behind the text; the band fades into the navy below, where the headline sits. */
  .hero { padding-block: 236px 64px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { margin-top: 20px; }
  .hero .btn { margin-top: 28px; }
  .hero-art { inset: -34px 0 auto 0; height: 520px; background-position: 86% center; transform-origin: 86% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(11,31,59,.55) 0, rgba(11,31,59,.12) 84px, rgba(11,31,59,0) 190px, rgba(11,31,59,.78) 350px, var(--deep) 450px, var(--deep) 100%); }
  .hero h1, .hero p { text-shadow: 0 1px 14px rgba(5,15,30,.55); }
}

/* about */
.light { background: var(--white); }
.about { padding-block: 96px; }
.about .grid { display: grid; gap: 36px 72px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about .grid { grid-template-columns: 5fr 7fr; } }
h2.sec {
  font-size: clamp(1.5625rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.2; color: var(--navy);
}
.about .text { display: grid; gap: 20px; font-size: clamp(1rem, 1.3vw, 1.0625rem); color: var(--ink); max-width: 38em; }
.about .text p:first-child { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--navy); }

/* capabilities */
.dark { background: var(--deep); color: var(--white); }
.caps { padding-block: 88px; }
.caps h2.sec { color: var(--white); }
.cap-grid {
  margin-top: 52px; display: grid; grid-template-columns: 1fr; gap: 0;
}
.cap { padding: 30px 0; border-top: 1px solid var(--line-dark); }
.cap .ico { width: 34px; height: 34px; color: var(--silver); margin-bottom: 18px; }
.cap h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: .01em; }
.cap p { margin-top: 10px; color: var(--silver); font-size: .9375rem; max-width: 24em; }
@media (max-width: 760px) {
  .caps { padding-block: 68px; }
  .cap { padding: 24px 0; }
  .cap .ico { margin-bottom: 14px; }
  .sectors .head { padding-block: 68px 40px; gap: 16px; }
  .panel .copy { padding: 26px 22px 32px; }
  .panel h3::before { margin-bottom: 16px; }
}
@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 980px) { .cap-grid { grid-template-columns: repeat(3, 1fr); column-gap: 56px; } }

/* sectors */
.sectors { background: var(--deep); color: var(--white); padding-top: 24px; border-top: 1px solid var(--line-dark); }
.sectors .head { padding-block: 88px 56px; display: grid; gap: 20px; }
.sectors .head p { color: var(--silver); max-width: 42em; font-size: 1.0625rem; }
.sectors h2.sec { color: var(--white); font-size: clamp(2rem, 3.6vw, 3rem); }
.panels { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .panels { grid-template-columns: repeat(3, 1fr); } }
.panel { display: flex; flex-direction: column; background: var(--navy); }
.panel .media { aspect-ratio: 3 / 2; overflow: hidden; }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.panel:hover img { transform: scale(1.03); }
.panel .copy { padding: 32px 24px 40px; }
.panel h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em; }
.panel h3::before { content: ''; display: block; width: 48px; height: 1px; margin-bottom: 20px; background: rgba(220,226,233,.75); }
.panel p { margin-top: 14px; font-size: .9375rem; line-height: 1.6; color: var(--silver); }
@media (min-width: 900px) { .panel .copy { padding: 36px 32px 48px; } }

/* markets */
.markets { background: var(--paper); padding-block: 92px; }
.markets .intro { display: grid; gap: 20px; max-width: 46em; }
.markets .intro p { color: var(--ink); }
.markets .intro p + p { color: var(--muted); }
.regions { margin-top: 52px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-light); }
.region {
  padding: 22px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--body); font-weight: 400; font-size: .9375rem; color: var(--muted);
  display: flex; align-items: baseline; gap: 18px;
}
.region small { font: 600 2rem/1 var(--head); letter-spacing: 0; color: var(--navy); min-width: 3.4em; }
.region small.long { font-size: 1.25rem; line-height: 1.15; }
@media (min-width: 900px) {
  .regions { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-light); }
  .region { flex-direction: column; gap: 14px; padding: 40px 24px; border-bottom: 0; border-left: 1px solid var(--line-light); min-height: 180px; }
  .region small { font-size: 3.5rem; min-width: 0; }
  .region small.long { font-size: 1.75rem; line-height: 1.1; min-height: 3.5rem; display: flex; align-items: flex-end; }
  .region:first-child { border-left: 0; padding-left: 0; }
}

/* contact */
.contact { background: var(--navy); color: var(--white); padding-block: 96px; }
.contact .inner { max-width: 640px; margin-inline: auto; }
.contact h2.sec { color: var(--white); text-align: center; }
.contact .lead { margin-top: 18px; text-align: center; color: var(--silver); max-width: 34em; margin-inline: auto; }
form { margin-top: 44px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
label { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); }
label .req { color: var(--white); }
input, textarea {
  font: 400 1rem/1.4 var(--body); color: var(--white); width: 100%;
  background: rgba(11,31,59,.55); border: 1px solid var(--line-dark); border-radius: 0; padding: 14px 16px;
}
input::placeholder, textarea::placeholder { color: rgba(220,226,233,.5); }
input:focus, textarea:focus { outline: none; border-color: var(--white); background: rgba(11,31,59,.85); }
textarea { min-height: 150px; resize: vertical; }
.form-actions { display: flex; justify-content: center; }
.form-actions .btn { margin-top: 12px; border-color: var(--white); }
.msg { margin-top: 8px; text-align: center; min-height: 1.6em; color: var(--silver); font-size: .9375rem; }
.msg.err { color: #FFC9C9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
footer { background: var(--deep); color: var(--silver); padding-block: 56px 48px; }
footer .wrap { display: grid; gap: 28px; }
.foot-logo { height: 35px; width: auto; }
footer .tag { margin-top: 14px; font-size: .875rem; }
footer .legal { font-size: .8125rem; line-height: 1.7; color: rgba(220,226,233,.78); }
footer a { color: var(--silver); }
@media (min-width: 900px) {
  footer .wrap { grid-template-columns: 1fr 1fr; align-items: end; }
  footer .legal { text-align: right; }
}

/* hero entrance: soft staggered fade and rise, plays once on load */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
.hero { animation: settle .9s ease-out both; }
.site-header { animation: settle .8s .1s ease-out both; }
.hero h1 { animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.hero p { animation: rise .8s .4s cubic-bezier(.2,.7,.2,1) both; }
.hero .btn { animation: rise .8s .6s cubic-bezier(.2,.7,.2,1) both; }

/* hero motion: headline words rise in, the globe drifts slowly and a light
   network draws itself between the lit cities. Transform, opacity and
   stroke offsets only; paused when the hero is off screen. */
.hero h1.split { animation: none; }
.hero h1 .w { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 .w > span { display: inline-block; transform: translateY(108%); animation: word-up .95s cubic-bezier(.2,.75,.15,1) forwards; animation-delay: calc(.25s + var(--i) * 75ms); }
@keyframes word-up { to { transform: none; } }
.has-motion p { animation-delay: .85s; }
.has-motion .btn { animation-delay: 1.05s; }

.hero.has-motion { animation: none; }
.has-motion .hero-art { animation: art-in 1.4s ease-out both, drift 40s cubic-bezier(.25,.1,.25,1) both; }
@keyframes art-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1); } }

.hero-net { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen; opacity: 0; transition: opacity .6s ease-out; pointer-events: none; }
.hero-net.on { opacity: 1; }
.hero-net .arc { stroke: #F5CF92; stroke-opacity: .5; stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; }
.hero-net .pulse { stroke: #FFF6E4; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 14 120; stroke-dashoffset: 14; opacity: 0; }
.hero-net .pulse.glow { stroke: #F6C46E; stroke-width: 10; stroke-opacity: .35; }
.hero-net .node circle { transform-box: fill-box; transform-origin: center; }
.hero-net .core { fill: #FFF3DC; transform: scale(0); }
.hero-net .ring { fill: none; stroke: #FFDCA0; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }
.hero-net .halo { opacity: 0; }
.hero-net .sun { opacity: 0; transform-box: fill-box; transform-origin: center; }

.hero.is-live .hero-net .arc { animation: draw 1.7s cubic-bezier(.45,0,.2,1) var(--d) forwards; }
.hero.is-live .hero-net .pulse { animation: travel var(--t) cubic-bezier(.45,0,.35,1) var(--p) infinite; }
.hero.is-live .hero-net .core { animation: pop .6s cubic-bezier(.3,1.6,.5,1) var(--a) forwards; }
.hero.is-live .hero-net .halo { animation: glow-in .9s ease-out var(--a) forwards, breathe 4.8s ease-in-out calc(var(--a) + .9s + var(--r)) infinite; }
.hero.is-live .hero-net .ring { animation: ping 3.6s ease-out calc(var(--a) + .5s + var(--r)) infinite; }
.hero.is-live .hero-net .sun { animation: sun-in 2.4s ease-out .4s forwards, sun-breathe 9s ease-in-out 2.8s infinite alternate; }
.hero.is-paused .hero-art, .hero.is-paused .hero-art * { animation-play-state: paused !important; }
/* Phones and tablets: a lighter version of the network. No blend mode and no wide
   glow strokes, but the thin light pulses keep travelling between the cities for as
   long as the hero is on screen (paused when it scrolls away, off for reduced motion). */
@media (max-width: 1199px) {
  .hero-net { mix-blend-mode: normal; }
  .hero-net .arc { stroke-opacity: .65; }
  .hero-net .pulse.glow, .hero-net .ring { display: none; }
  .hero-net .pulse { stroke-width: 2.2; }
  .hero.is-live .hero-net .sun { animation: sun-in 2.4s ease-out .4s forwards, sun-breathe 9s ease-in-out 2.8s infinite alternate; }
}
@media (max-width: 760px) {
  .has-motion .hero-art { animation: art-in 1.8s ease-out both, drift 40s cubic-bezier(.25,.1,.25,1) both; }
  .hero.is-live .hero-net .arc { animation-duration: 2.4s; }
  .hero.is-live .hero-net .pulse { animation-delay: calc(var(--p) - 1.6s); }
}

@keyframes draw { 0% { stroke-dashoffset: 100; stroke-opacity: .9; } 70% { stroke-opacity: .7; } 100% { stroke-dashoffset: 0; stroke-opacity: .5; } }
@keyframes travel { 0% { stroke-dashoffset: 14; opacity: 0; } 4% { opacity: 1; } 52% { opacity: 1; } 58% { stroke-dashoffset: -100; opacity: 0; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes glow-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.8); } }
@keyframes ping { 0% { opacity: .95; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(3.4); } }
@keyframes sun-in { to { opacity: .75; } }
@keyframes sun-breathe { from { opacity: .75; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel img, .btn, .nav a { transition: none; }
  .hero, .site-header, .hero h1, .hero p, .hero .btn, .hero-art { animation: none !important; }
  .hero h1 .w > span { animation: none; transform: none; }
  .hero-net * { animation: none !important; }
  .hero-net .arc { stroke-dashoffset: 0; }
  .hero-net .core { transform: none; }
  .hero-net .halo { opacity: .7; }
}

/* Motion failsafe: if the browser does not run the entrance animation (some
   phones, data-saver or background loading), show the finished hero at once. */
.ff-static .site-header, .ff-static .hero, .ff-static .hero h1, .ff-static .hero h1 .w > span,
.ff-static .hero p, .ff-static .hero .btn, .ff-static .hero-art, .ff-static .hero-net {
  animation: none !important; opacity: 1 !important; transform: none !important;
}
.ff-static .hero-net * { animation: none !important; }
.ff-static .hero-net .arc { stroke-dashoffset: 0; }
.ff-static .hero-net .core { transform: none; }
.ff-static .hero-net .halo { opacity: .7; }

/* Inquiry type select: same look as the other fields */
select {
  font: 400 1rem/1.4 var(--body); color: var(--white); width: 100%;
  background-color: rgba(11,31,59,.55); border: 1px solid var(--line-dark); border-radius: 0; padding: 14px 44px 14px 16px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
select:focus { outline: none; border-color: var(--white); background-color: rgba(11,31,59,.85); }
select option { color: #16263D; background: #fff; }

/* WordPress additions */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.msg.ok { color: #CFE8D9; }
.btn[disabled] { opacity: .6; cursor: progress; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* inner pages (privacy etc.) */
.inner-page .site-header { position: relative; background: var(--deep); padding-block: 22px; animation: none; }
.page-body { padding-block: 72px 96px; background: var(--white); }
.page-body .wrap { max-width: 820px; }
.page-body h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 32px; }
.page-body h2 { font-size: 1.375rem; font-weight: 600; color: var(--navy); margin: 40px 0 12px; }
.page-body h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.page-body p, .page-body li { color: var(--ink); margin-bottom: 14px; }
.page-body ul, .page-body ol { padding-left: 1.3em; margin: 0 0 14px; }
.page-body a { color: var(--navy); }
