/* ==========================================================================
   GSM Coming Soon — Frontend Stylesheet  v5
   Direction: Deep navy authority + warm orange accent. Off-white ground.
              Plus Jakarta Sans 700 display headline, DM Sans body.
              Bootstrap 5 CDN provides reset, flex utilities, container.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Admin-overridable — injected via inline <style> from PHP */
  --gsm-bg:     #F4F3EE;
  --gsm-accent: #E85A1C;

  /* ── Fixed typography palette (background ≈ #F4F3EE, lum 0.905) ──────────
     --navy        #0B1C35   lum 0.004  → 17.4:1  ✓  headlines, strong text
     --navy-body   #2D3E55   lum 0.038  →  8.9:1  ✓  body paragraphs
     --navy-muted  #536070   lum 0.096  →  5.3:1  ✓  labels, meta, footer
     --accent-dark #9E3C0A   lum 0.082  →  5.9:1  ✓  orange used as text
  ──────────────────────────────────────────────────────────────────────── */
  --navy:        #0B1C35;
  --navy-body:   #2D3E55;
  --navy-muted:  #536070;
  --accent-dark: #9E3C0A;

  --rule:    rgba(11, 28, 53, 0.08);
  --rule-xs: rgba(11, 28, 53, 0.05);

  /* Type scale — clamp-based, viewport-responsive */
  --fs-label: clamp(9px,  1.0vw, 10px);
  --fs-body:  clamp(0.9375rem, 1.75vw, 1.0625rem);
  --fs-sub:   clamp(1.1rem,    2.2vw,  1.375rem);
  --fs-quote: clamp(1.4rem,    2.8vw,  2rem);
  --fs-head:  clamp(2.125rem, 6vw, 4.75rem);

  /* Spacing */
  --sp-sm:  clamp(20px,  3vh,   32px);
  --sp-md:  clamp(36px,  5.5vh, 56px);
  --sp-lg:  clamp(52px,  7.5vh, 84px);
  --sp-xl:  clamp(68px,  10vh,  112px);

  /* Layout */
  --pad-x: clamp(24px, 7vw, 100px);
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */
body.gsm-cs-body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: var(--gsm-bg);
  background-image: radial-gradient(
    ellipse 120% 50% at 50% -5%,
    rgba(11, 28, 53, 0.04) 0%,
    transparent 65%
  );
  background-attachment: fixed;
  color: var(--navy);
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.gsm-has-bg-image {
  background-image:
    linear-gradient(rgba(244, 243, 238, 0.92), rgba(244, 243, 238, 0.96)),
    var(--gsm-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   Paper grain
   -------------------------------------------------------------------------- */
.gsm-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}

/* --------------------------------------------------------------------------
   Ghost year watermark /  Changed to "Global Skills Matrix" per new design direction, but keeping same style and position
   -------------------------------------------------------------------------- */
.gsm-watermark {
  position: fixed;
  right: -1%;
  bottom: -2%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 9.5vw, 140px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(11, 28, 53, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Top accent rule — scans in from left
   -------------------------------------------------------------------------- */
.gsm-top-rule {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  background: linear-gradient(
    90deg,
    var(--gsm-accent) 0%,
    var(--gsm-accent) 70%,
    transparent 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  animation: gsm-scan 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes gsm-scan {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Page wrapper — override Bootstrap container-xl padding
   -------------------------------------------------------------------------- */
.container-xl.gsm-page {
  position: relative;
  z-index: 2;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-bottom: var(--sp-xl);
}

/* --------------------------------------------------------------------------
   Brand logo
   -------------------------------------------------------------------------- */
.gsm-logo-wrap {
  padding-top: clamp(28px, 5vh, 48px);
  padding-bottom: clamp(20px, 3vh, 32px);
  opacity: 0;
  animation: gsm-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both;
}

.gsm-logo {
  display: inline-block;
  max-width: clamp(90px, 10vw, 130px);
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Header
   Bootstrap handles: d-flex align-items-center justify-content-between flex-wrap gap-3
   -------------------------------------------------------------------------- */
.gsm-header {
  padding-top: 0;
  padding-bottom: var(--sp-lg);
  opacity: 0;
  animation: gsm-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.2s both;
}

.gsm-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--navy-muted);
}

/* --------------------------------------------------------------------------
   Launch pill — solid orange, no border
   Bootstrap handles: d-inline-flex align-items-center gap-2
   -------------------------------------------------------------------------- */
.gsm-pill {
  background: var(--gsm-accent);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px 6px;
  border-radius: 100px;
}

.gsm-pill__dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  animation: gsm-pulse 2.6s ease-in-out infinite;
}

@keyframes gsm-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1);   }
  50%       { opacity: 0.2; transform: scale(0.55); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.gsm-hero {
  margin-bottom: var(--sp-lg);
  opacity: 0;
  animation: gsm-up 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both;
}

.gsm-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: clamp(20px, 3vh, 40px);
  overflow-wrap: break-word;
  hyphens: none;
}

.gsm-headline__period {
  color: var(--gsm-accent);
}

.gsm-subhead {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-sub);
  font-weight: 300;
  line-height: 1.6;
  color: var(--navy-body);
  max-width: 600px;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Body copy
   -------------------------------------------------------------------------- */
.gsm-body {
  max-width: 620px;
  margin-bottom: var(--sp-lg);
  opacity: 0;
  animation: gsm-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.48s both;
}

.gsm-body__p {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.85;
  color: var(--navy-body);
  margin-bottom: 1.4em;
}

.gsm-body__p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Pull quote — typography-only elevation, no borders or boxes
   Large Syne at light weight, with an orange decorative mark above
   -------------------------------------------------------------------------- */
.gsm-quote {
  max-width: 820px;
  margin: 0 0 var(--sp-lg);
  padding: var(--sp-md) 0;
  quotes: none;
  opacity: 0;
  animation: gsm-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.62s both;
}

.gsm-quote::before {
  content: '\201C';
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: var(--gsm-accent);
  margin-bottom: 0.2em;
  user-select: none;
}

.gsm-quote::after {
  content: '\201D';
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: var(--gsm-accent);
  text-align: right;
  margin-top: 0.1em;
  user-select: none;
}

.gsm-quote__text {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Notify section
   -------------------------------------------------------------------------- */
.gsm-notify {
  max-width: 520px;
  margin-bottom: var(--sp-lg);
  opacity: 0;
  animation: gsm-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.90s both;
}

.gsm-notify__label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--navy-muted);
  margin-bottom: 14px;
}

.gsm-notify__text {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy-body);
  margin-bottom: var(--sp-sm);
}

/* ── Gravity Forms reset + layout ─────────────────────────────────────────
   GF stylesheets are not enqueued on this standalone template,
   so we provide a clean base with no GF defaults to override.
   ─────────────────────────────────────────────────────────────────────── */
.gsm-notify .gform_wrapper,
.gsm-notify .gform_wrapper.gravity-theme {
  margin: 0 !important;
  padding: 0 !important;
}

.gsm-notify .gform_heading,
.gsm-notify .gform_title,
.gsm-notify .gform_description,
.gsm-notify .gfield_label,
.gsm-notify .gfield_required,
.gsm-notify .validation_error {
  display: none !important;
}

/* Inline layout: email field left, button right */
.gsm-notify form {
  display: flex;
  align-items: stretch;
}

.gsm-notify .gform_body,
.gsm-notify .gform-body {
  flex: 1;
  min-width: 0;
}

.gsm-notify .gform_footer,
.gsm-notify .gform_page_footer {
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
}

.gsm-notify .gfield,
.gsm-notify .gform_fields {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gsm-notify .ginput_container,
.gsm-notify [class*="ginput_container"] {
  margin: 0 !important;
}

/* Email input */
.gsm-notify input[type="email"],
.gsm-notify input[type="text"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: transparent;
  border: 1.5px solid rgba(11, 28, 53, 0.22);
  border-right: none;
  border-radius: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--navy);
  outline: none;
  transition: border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.gsm-notify input[type="email"]:focus,
.gsm-notify input[type="text"]:focus {
  border-color: var(--navy);
}

.gsm-notify input[type="email"]::placeholder,
.gsm-notify input[type="text"]::placeholder {
  color: var(--navy-muted);
  opacity: 1;
}

/* Submit button */
.gsm-notify input[type="submit"],
.gsm-notify button[type="submit"] {
  display: block;
  height: 48px;
  padding: 0 22px;
  background: var(--navy);
  color: #fff;
  border: 1.5px solid var(--navy);
  border-radius: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.gsm-notify input[type="submit"]:hover,
.gsm-notify button[type="submit"]:hover {
  background: var(--gsm-accent);
  border-color: var(--gsm-accent);
}

/* Confirmation shown in place of the form after successful submission */
.gsm-notify .gform_confirmation_wrapper,
.gsm-notify .gform_confirmation_message {
  padding: 0;
}

.gsm-gf-confirm {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--navy-body);
  padding: 14px 0;
}

/* Inline validation */
.gsm-notify .gfield_description.validation_message,
.gsm-notify .validation_message {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: #b91c1c;
  margin-top: 6px;
  padding: 0;
}

/* Mobile: stack vertically */
@media (max-width: 480px) {
  .gsm-notify { max-width: 100%; }

  .gsm-notify form {
    flex-direction: column;
    gap: 10px;
  }

  .gsm-notify input[type="email"],
  .gsm-notify input[type="text"] {
    border-right: 1.5px solid rgba(11, 28, 53, 0.22);
  }

  .gsm-notify input[type="email"]:focus,
  .gsm-notify input[type="text"]:focus {
    border-right-color: var(--navy);
  }

  .gsm-notify input[type="submit"],
  .gsm-notify button[type="submit"] {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Meta row — hashtag + launch line (before notify section)
   Bootstrap handles: d-flex align-items-end justify-content-between flex-wrap gap-3
   -------------------------------------------------------------------------- */
.gsm-meta {
  padding-top: clamp(18px, 2.5vh, 24px);
  margin-bottom: var(--sp-lg);
  border-top: 2px solid var(--gsm-accent);
  opacity: 0;
  animation: gsm-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.76s both;
}

/* --------------------------------------------------------------------------
   Footer — copyright only
   -------------------------------------------------------------------------- */
.gsm-footer {
  padding-top: var(--sp-sm);
}

.gsm-hashtag {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  line-height: 1;
}

.gsm-launch-line {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.125rem, 2.6vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy);
  text-align: right;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Copyright (inside .gsm-footer)
   -------------------------------------------------------------------------- */
.gsm-copyright {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--navy-muted);
  margin: 0;
  opacity: 0;
  animation: gsm-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) 1.04s both;
}

/* --------------------------------------------------------------------------
   Entrance animations
   -------------------------------------------------------------------------- */
@keyframes gsm-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes gsm-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --fs-sub: clamp(1.05rem, 2.4vw, 1.25rem);
  }

  .gsm-subhead,
  .gsm-body,
  .gsm-quote { max-width: 100%; }
}

@media (max-width: 560px) {
  :root {
    --fs-quote: clamp(1.2rem, 5vw, 1.5rem);
    --pad-x: 24px;
  }

  .gsm-header { padding-bottom: var(--sp-md); }

  .gsm-subhead,
  .gsm-body,
  .gsm-quote { max-width: 100%; }

  .gsm-meta { flex-direction: column; gap: 10px; }
  .gsm-launch-line { text-align: left; }

  .gsm-watermark {
    font-size: clamp(28px, 9.5vw, 56px);
    right: -2%;
    bottom: -1%;
  }

  .gsm-quote::before {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }
}


/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .gsm-top-rule {
    animation: none;
    transform: scaleX(1);
    opacity: 1;
  }

  .gsm-pill__dot { animation: none; opacity: 0.5; }

  .gsm-logo-wrap,
  .gsm-header,
  .gsm-hero,
  .gsm-body,
  .gsm-quote,
  .gsm-meta,
  .gsm-notify,
  .gsm-footer {
    animation: gsm-in 0.3s ease both;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  body.gsm-cs-body {
    background: #fff;
    background-image: none;
  }

  .gsm-noise,
  .gsm-watermark,
  .gsm-top-rule,
  .gsm-pill__dot { display: none; }
}
