/* =========================================================
   Global Network — concept prototype
   Dark navy + Satphone brand-orange accent, condensed display type.
   The whole accent system lives in --accent / --accent-2 below.
   ========================================================= */

:root {
  --bg:        #0a1526;   /* deep navy */
  --bg-2:      #0e1c31;   /* tinted panel */
  --bg-3:      #12233c;   /* card */
  --line:      rgba(255,255,255,.12);
  --accent:    #f27221;   /* Satphone brand orange (from logo) */
  --accent-2:  #f79256;   /* lighter tint for eyebrows / hovers */
  --fg:        #ffffff;
  --muted:     rgba(233,238,247,.66);
  --wrap:      1200px;
  --display:   'Arial Narrow', 'Helvetica Neue Condensed', 'Roboto Condensed', system-ui, sans-serif;
  --body:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin: 0 0 1rem;
}
.display.sm  { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.display.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 46ch; margin: 0 0 1.75rem; }
.eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; cursor: pointer;
  padding: 15px 30px; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn .arrow { font-size: 1em; transition: transform .18s ease; }
.btn:hover .arrow { transform: translate(2px,-2px); }
.btn-sm { padding: 10px 20px; letter-spacing: .12em; }
.btn-outline { border-color: var(--accent); color: var(--fg); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #10203a; }
.btn-solid { background: var(--accent); color: #10203a; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-text { padding: 0; letter-spacing: .16em; color: var(--accent-2); border: 0; }
.btn-text:hover { color: var(--fg); }

/* ---------- Media placeholders ---------- */
.media-ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, rgba(255,255,255,.04) 12px 24px);
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 4px;
  color: rgba(255,255,255,.35);
  overflow: hidden;
}
.media-ph .ph-glyph { width: 46px; height: 46px; opacity: .5; }
.media-ph::after {
  content: attr(data-label);
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .64rem; letter-spacing: .04em; white-space: nowrap;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 3px;
}
.media-ph--fill { position: absolute; inset: 0; height: 100%; border-radius: 0; border: none; }
.media-ph--fill::after { bottom: auto; top: 16px; }
.media-ph--card    { aspect-ratio: 14/9; }
.media-ph--product { aspect-ratio: 1/1; }
.media-ph--news    { aspect-ratio: 8/5; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* NB: no backdrop-filter/transform here — it would become the containing
     block for the fixed cart drawer and trap it inside the header. The scroll
     behaviour in base.css works around exactly that: it slides the bar with
     `top` and puts the blur on a ::before.
     Background is owned there too. The scrim that used to live here would sit
     behind that backing and stop its blur sampling the page. */
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 74px; }
.sp-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); }
.sp-logo-img { height: 34px; width: auto; display: block; }
.ph-logo svg { width: 30px; height: 30px; color: var(--accent); }
.sp-logo-word { font-weight: 700; letter-spacing: .28em; text-transform: uppercase; font-size: 1.1rem; }
.main-nav { display: flex; gap: 1.8rem; margin-left: 1rem; }
.main-nav a {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .15s ease;
}
.main-nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.icon-btn { background: none; border: 0; color: var(--fg); cursor: pointer; padding: 4px; display: inline-flex; }
.icon-btn svg { width: 20px; height: 20px; }
.nav-divider { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; }
.nav-signin {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: color .15s ease;
}
.nav-signin:hover { color: var(--fg); }
.burger { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; }
.burger svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--bg-2);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../images/homepage-hero.webp") center center / cover no-repeat;
}
/* Dark gradient scrim keeps the white headline legible over the photo */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,21,38,.55), rgba(10,21,38,.30) 45%, var(--bg));
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 120px 24px 0; margin: 0 auto; }
.hero-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: .95; letter-spacing: .005em;
  margin: 0 0 2rem; text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-pause {
  position: absolute; top: 50%; right: 26px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.4); border: 1px solid var(--line); color: var(--fg);
  cursor: pointer; display: grid; place-items: center;
}
.hero-pause svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section--tint { background: var(--bg-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.grid-2--center { align-items: center; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }

/* ---------- Radar ---------- */
.radar { position: relative; width: 150px; height: 150px; margin-bottom: 1.5rem; }
.radar-dot {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px var(--accent);
}
.radar-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid var(--accent); transform: translate(-50%,-50%);
  opacity: 0; animation: ping 3s ease-out infinite;
}
.radar-ring.r1 { width: 60px;  height: 60px;  animation-delay: 0s; }
.radar-ring.r2 { width: 100px; height: 100px; animation-delay: .5s; }
.radar-ring.r3 { width: 150px; height: 150px; animation-delay: 1s; }
@keyframes ping {
  0%   { opacity: .8; }
  70%  { opacity: .12; }
  100% { transform: translate(-50%,-50%) scale(1.15); opacity: 0; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; }
.pillar { padding-top: 1.5rem; border-top: 2px solid var(--accent); }
.pillar p { color: var(--muted); margin: 0 0 1rem; }

/* ---------- Testimonial ---------- */
.testimonial { position: relative; overflow: hidden; }
.testimonial .media-ph--fill { opacity: .5; }
.testimonial-inner { position: relative; z-index: 2; max-width: 820px; text-align: center; margin: 0 auto; }
.quote {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 0 0 1.75rem;
}
.cite { display: flex; flex-direction: column; gap: .2rem; }
.cite-name { font-weight: 700; letter-spacing: .04em; }
.cite-role { color: var(--muted); font-size: .9rem; }
.dots { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dots span.on { background: var(--accent); width: 26px; border-radius: 4px; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.feature-card {
  display: block; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-card h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; font-size: 1.15rem; margin: 0; padding: 1.1rem 1.25rem 1.4rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3rem; }
.product-card { text-align: center; }
.product-card .media-ph { margin-bottom: 1.5rem; background: var(--bg-3); }
.product-card h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.3rem; margin: 0 0 .5rem; }
.product-card p { color: var(--muted); margin: 0 0 1rem; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.news-card time { display: block; color: var(--accent-2); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin: 1rem 0 .5rem; }
.news-card h4 { font-size: 1.1rem; line-height: 1.3; margin: 0; font-weight: 600; }
.news-card:hover h4 { color: var(--accent-2); }

/* ---------- Contact CTA ---------- */
.contact-cta { position: relative; overflow: hidden; text-align: center; background: var(--bg-2); }
.contact-cta .media-ph--fill { opacity: .35; }
.contact-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.contact-inner .lead { margin-left: auto; margin-right: auto; text-align: center; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #060e1b; padding: 4rem 0 2rem; border-top: 1px solid var(--line); }
/* Full-bleed chrome: the header and footer span the viewport and inset by the
   shared --spc-gutter (cart-drawer.css), so their contents line up with each
   other and with the header on every other route. The homepage's content
   sections keep the capped, centred .wrap. */
.site-header .wrap,
.site-footer .wrap { max-width: none; padding: 0 var(--spc-gutter); }
.footer-top { display: grid; grid-template-columns: 1.4fr 3fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-tag { color: var(--muted); margin: 1rem 0 1.5rem; }
.socials { display: flex; gap: .8rem; }
.socials .ph-icon svg { width: 20px; height: 20px; color: var(--muted); transition: color .15s ease; }
.socials .ph-icon:hover svg { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.footer-col h5 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 1rem; }
.footer-col a { display: block; color: var(--muted); font-size: .9rem; padding: .3rem 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; color: var(--muted); font-size: .8rem; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { margin-left: 1.25rem; }

/* ---------- Search overlay (slides down from top) ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
  /* On close, stay visible until the bar has slid back up, then hide */
  transition: visibility 0s linear .4s;
}
.search-overlay.is-open {
  visibility: visible; pointer-events: auto;
  transition: visibility 0s;
}
.search-scrim {
  position: absolute; inset: 0;
  background: rgba(5, 10, 20, .6); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .35s ease;
}
.search-overlay.is-open .search-scrim { opacity: 1; }
.search-bar {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
}
.search-overlay.is-open .search-bar { transform: translateY(0); }
.search-bar-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 104px; }
.search-ico svg { width: 26px; height: 26px; color: var(--accent); display: block; }
.search-form { flex: 1; margin: 0; }
/* Scoped under .search-overlay to override Magento's input[type=search] rules */
.search-overlay .search-field {
  width: 100%; height: auto; background: transparent; outline: 0;
  border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  box-shadow: none; padding: 0 0 10px; -webkit-appearance: none; appearance: none;
  color: var(--fg); font-family: var(--display); text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.1;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  transition: border-color .2s ease;
}
.search-overlay .search-field:focus { border-bottom-color: var(--accent); box-shadow: none; }
.search-overlay .search-field::placeholder { color: var(--muted); }
.search-overlay .search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-close {
  flex-shrink: 0; background: none; border: 0; color: var(--fg);
  cursor: pointer; padding: 8px; line-height: 0; transition: color .15s ease;
}
.search-close:hover { color: var(--accent); }
.search-close svg { width: 26px; height: 26px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; margin: 0; transition: max-height .3s ease;
  }
  body.nav-open .main-nav { max-height: 60vh; }
  .main-nav a { padding: 1rem 24px; border-top: 1px solid var(--line); }
  .burger { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .pillars, .card-grid, .product-grid, .news-grid, .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .pillars, .card-grid, .product-grid, .news-grid, .footer-cols { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-ring { animation: none; opacity: .3; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Magento integration — homepage only (.cms-home).
   Neutralize the blank theme's page-main width/padding so the
   template can render full-bleed, and paint the wrapper dark.
   ========================================================= */
.cms-home .page-wrapper { background: var(--bg); }
.cms-home .page-main {
  max-width: none; width: 100%; padding: 0; margin: 0;
}
.cms-home .columns,
.cms-home .columns .column.main {
  padding: 0; margin: 0; width: 100%; min-height: 0; float: none; display: block;
}
.cms-home .column.main { padding-bottom: 0; }
/* Hero clears the fixed header regardless of Magento's own top spacing */
.cms-home .page-main > .page-title-wrapper { display: none; }
.cms-home .breadcrumbs { display: none; }
.cms-home .message.global { margin: 0; }
