/* ===========================================================================
   GEEKS360 — DESIGN TOKENS
   ---------------------------------------------------------------------------
   >>> THIS IS THE REBRAND FILE. Change the values below and the entire site
   >>> re-skins. Nothing else needs editing for a colour/type change.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   SELF-HOSTED TYPEFACE
   Variable font, weights 400-800 in a single file. Self-hosted so the page has
   no render-blocking third-party request and no Google Fonts privacy exposure.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- Brand colours ------------------------------------------------------ */
  --g-ink:          #12355B;   /* Primary Navy — headings, dark surfaces */
  --g-ink-soft:     #1B4A7A;   /* Secondary Navy — raised dark surfaces */
  --g-accent:       #F58220;   /* Accent Orange — fills, graphics, icons */
  --g-accent-ink:   #A85410;   /* Accessible orange for TEXT on white (5.2:1) */
  --g-body:         #2D3748;   /* Body copy */
  --g-muted:        #5A6880;   /* Captions, secondary copy */
  --g-line:         #E2E8F0;   /* Hairlines, borders */
  --g-surface:      #F7F9FC;   /* Light section background */
  --g-surface-2:    #EDF2F9;   /* Deeper tint */
  --g-bg:           #FFFFFF;   /* Page background */
  --g-on-dark:      #E8EDF5;   /* Body text on dark surfaces */

  /* Colours are the approved Geeks360 brand values, taken from the master logo
     artwork and Brand Quick Reference (v1.0, August 2026):
       #12355B Navy · #F58220 Orange · #2D3748 Charcoal · #F7F9FC Light Grey

     Contrast reference (WCAG AA, recalculated against the approved values):
       navy #12355B on orange #F58220 .... 4.80:1  (primary button — passes AA)
       white on navy #12355B ............ 12.46:1  (button hover)
       body #2D3748 on white ............ 11.98:1
       accent-ink #A85410 on white ....... 5.33:1

     --g-accent-ink is a hue-matched darkening of the brand orange, used ONLY
     where orange appears as text on white. The brand orange itself reaches just
     2.59:1 on white and fails AA for text, so it is reserved for fills, icons,
     rules and other non-text elements. Do not use --g-accent for body copy. */

  /* --- Typography --------------------------------------------------------- */
  --g-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
            Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale — clamp(min, preferred, max) */
  --g-fs-display: clamp(2.35rem, 1.35rem + 4.4vw, 4.5rem);
  --g-fs-h2:      clamp(1.75rem, 1.15rem + 2.6vw, 2.875rem);
  --g-fs-h3:      clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem);
  --g-fs-lead:    clamp(1.0625rem, 1rem + 0.34vw, 1.25rem);
  --g-fs-body:    1rem;
  --g-fs-small:   0.875rem;
  --g-fs-eyebrow: 0.8125rem;

  --g-lh-tight: 1.08;
  --g-lh-snug:  1.22;
  --g-lh-body:  1.65;

  /* --- Spacing scale ------------------------------------------------------ */
  --g-s1: 0.5rem;
  --g-s2: 0.75rem;
  --g-s3: 1rem;
  --g-s4: 1.5rem;
  --g-s5: 2rem;
  --g-s6: 3rem;
  --g-s7: 4rem;
  --g-s8: 6rem;
  --g-section-y: clamp(4rem, 2.25rem + 7vw, 7.5rem);

  /* --- Layout ------------------------------------------------------------- */
  --g-container: 1180px;
  --g-container-wide: 1280px;
  --g-container-narrow: 760px;
  --g-gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  /* Header height carries the approved logo lockup at 50px with room for the
     brand guideline's clear-space rule (one quarter of the icon height). */
  --g-header-h: 84px;

  /* --- Shape & depth ------------------------------------------------------ */
  --g-radius-sm: 10px;
  --g-radius:    16px;
  --g-radius-lg: 24px;
  --g-radius-pill: 999px;

  --g-shadow-sm: 0 2px 8px rgba(18, 53, 91, 0.05);
  --g-shadow:    0 12px 32px rgba(18, 53, 91, 0.08);
  --g-shadow-lg: 0 28px 64px rgba(18, 53, 91, 0.12);

  /* --- Motion ------------------------------------------------------------- */
  --g-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --g-dur:  0.45s;
}

/* ===========================================================================
   RESET
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--g-header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--g-font);
  font-size: var(--g-fs-body);
  line-height: var(--g-lh-body);
  color: var(--g-body);
  background: var(--g-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--g-s3);
  font-weight: 700;
  line-height: var(--g-lh-snug);
  letter-spacing: -0.02em;
  color: var(--g-ink);
  text-wrap: balance;
}

h1 { font-size: var(--g-fs-display); line-height: var(--g-lh-tight); letter-spacing: -0.032em; font-weight: 800; }
h2 { font-size: var(--g-fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--g-fs-h3); letter-spacing: -0.018em; }

p { margin: 0 0 var(--g-s3); }
p:last-child { margin-bottom: 0; }

a { color: var(--g-accent-ink); text-decoration: none; transition: color 0.2s var(--g-ease); }
a:hover { color: var(--g-ink); }

ul, ol { margin: 0 0 var(--g-s3); padding-left: 1.25rem; }

strong { font-weight: 700; color: var(--g-ink); }

/* Visible keyboard focus — required for accessibility, do not remove. */
:focus-visible {
  outline: 3px solid var(--g-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--g-s3);
  z-index: 1000;
  padding: var(--g-s2) var(--g-s4);
  background: var(--g-ink);
  color: #fff;
  border-radius: var(--g-radius-sm);
  transition: top 0.2s var(--g-ease);
}
.skip-link:focus { top: var(--g-s3); color: #fff; }

/* ===========================================================================
   LAYOUT PRIMITIVES
   =========================================================================== */

.g-container {
  width: 100%;
  max-width: var(--g-container);
  margin-inline: auto;
  padding-inline: var(--g-gutter);
}
.g-container--wide   { max-width: var(--g-container-wide); }
.g-container--narrow { max-width: var(--g-container-narrow); }

.g-section { padding-block: var(--g-section-y); position: relative; }
.g-section--tint { background: var(--g-surface); }
.g-section--dark { background: var(--g-ink); color: var(--g-on-dark); }
.g-section--dark h1,
.g-section--dark h2,
.g-section--dark h3,
.g-section--dark h4 { color: #fff; }

.g-section-head { max-width: 700px; margin-bottom: var(--g-s7); }
.g-section-head--center { margin-inline: auto; text-align: center; }
.g-section-head p:last-child { margin-bottom: 0; }

.g-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--g-s3);
  font-size: var(--g-fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-accent-ink);
}
.g-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--g-accent);
  border-radius: 2px;
}
.g-section-head--center .g-eyebrow { justify-content: center; }
.g-section--dark .g-eyebrow { color: var(--g-accent); }

.g-lead {
  font-size: var(--g-fs-lead);
  color: var(--g-muted);
  line-height: var(--g-lh-body);
}
.g-section--dark .g-lead { color: rgba(232, 237, 245, 0.76); }

/* ===========================================================================
   BUTTONS
   =========================================================================== */

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--g-s2);
  padding: 0.95rem 1.75rem;
  font-family: inherit;
  font-size: var(--g-fs-body);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--g-radius-pill);
  cursor: pointer;
  transition: background-color 0.25s var(--g-ease),
              color 0.25s var(--g-ease),
              border-color 0.25s var(--g-ease),
              transform 0.25s var(--g-ease),
              box-shadow 0.25s var(--g-ease);
}

/* Primary — orange fill, navy text (5.24:1). Hover flips to navy/white. */
.g-btn--primary {
  background: var(--g-accent);
  border-color: var(--g-accent);
  color: var(--g-ink);
}
.g-btn--primary:hover,
.g-btn--primary:focus-visible {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--g-shadow);
}

.g-btn--ghost {
  background: transparent;
  border-color: var(--g-line);
  color: var(--g-ink);
}
.g-btn--ghost:hover,
.g-btn--ghost:focus-visible {
  border-color: var(--g-ink);
  background: var(--g-ink);
  color: #fff;
  transform: translateY(-2px);
}

.g-btn--dark {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: #fff;
}
.g-btn--dark:hover,
.g-btn--dark:focus-visible {
  background: var(--g-ink-soft);
  border-color: var(--g-ink-soft);
  color: #fff;
  transform: translateY(-2px);
}

.g-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--g-ink);
}
.g-btn--light:hover,
.g-btn--light:focus-visible {
  background: var(--g-accent);
  border-color: var(--g-accent);
  color: var(--g-ink);
  transform: translateY(-2px);
}

/* On dark surfaces the ghost button needs a light border. */
.g-section--dark .g-btn--ghost,
.g-cta .g-btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.g-section--dark .g-btn--ghost:hover,
.g-cta .g-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Arrow-style text link */
.g-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--g-fs-small);
  color: var(--g-accent-ink);
}
.g-link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--g-ease);
}
.g-link-arrow:hover { color: var(--g-ink); }
.g-link-arrow:hover::after { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .g-btn:hover,
  .g-link-arrow:hover::after { transform: none; }
}
