/* ==========================================================================
   Global Partners — glblpartners.com
   Single stylesheet. Mobile-first. No frameworks, no webfonts, no CDN.

   HOW THIS FILE IS ORGANISED (search for the ALL-CAPS headings):
     1.  DESIGN TOKENS ...... colors, fonts, spacing variables
     2.  RESET / BASE ....... browser normalisation, body defaults
     3.  LAYOUT HELPERS ..... .wrap content column, section spacing, bands
     4.  TYPOGRAPHY ......... headings, section titles, body copy
     5.  BUTTONS ............ red CTA buttons + focus states
     6.  HEADER ............. sticky white bar, logo, Contact Us
     7.  HERO ............... navy panel
     8.  CREDENTIALS ........ SBA / veteran-owned cards
     9.  BOTTLENECK CARDS ... 3-across cards, navy top border
     10. SERVICES / TIERS ... stacked cards, red left border, tier badges
     11. HOW IT WORKS ....... numbered steps
     12. FINAL CTA .......... navy panel + email link
     13. FOOTER
     14. RESPONSIVE ......... 640px / 900px / 1200px breakpoints
     15. MOTION + PRINT ..... reduced-motion, print styles

   To change a brand colour, edit ONLY the variables in section 1.
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette (measured from the live site — do not guess new values) */
  --navy:       #002B66;   /* primary brand, hero background, headings */
  --navy-deep:  #001A40;   /* darker end of the hero gradient */
  --red:        #D1232A;   /* CTA buttons, accent borders */
  --red-dark:   #A81A20;   /* button hover */
  --blue-tint:  #E8EEF8;   /* tier badge background */
  --off-white:  #F0F5FC;   /* alternating section bands — cool blue tint, derived from --navy.
                              Kept deliberately LIGHTER than --blue-tint so the tier badges,
                              which sit on top of this band, still read as distinct. */
  --text:       #222222;
  --text-mid:   #333333;
  --text-soft:  #555555;
  --white:      #FFFFFF;
  --border:     #E2E6EE;   /* hairline card / divider border */

  /* Type stack — system fonts only, nothing loaded over the network */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale. clamp(min, preferred, max) => smooth resize, no jumps. */
  --fs-h1:      clamp(28px, 5.2vw, 36.8px);
  --lh-h1:      1.25;
  --fs-h2:      clamp(24px, 3.6vw, 32px);
  --lh-h2:      1.22;
  --fs-h3:      clamp(17px, 1.6vw, 20px);
  --lh-h3:      1.4;
  --fs-body:    clamp(15.2px, 1.15vw, 16.8px);
  --fs-lead:    clamp(15.5px, 1.35vw, 18px);
  --fs-small:   clamp(12.5px, 1vw, 13.5px);

  /* Fluid spacing */
  --gutter:     clamp(20px, 4vw, 40px);   /* side padding of the content column */
  --section-y:  clamp(44px, 6vw, 80px);   /* vertical rhythm between sections */
  --gap:        clamp(16px, 2.2vw, 28px); /* grid gap between cards */
  --radius:     12px;
  --radius-lg:  16px;

  --maxw:       1120px;                   /* content column max width */
  --shadow-sm:  0 1px 2px rgba(0, 43, 102, .06);
  --shadow-md:  0 4px 16px rgba(0, 43, 102, .08);
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Native smooth scrolling for the #contact anchor; JS mirrors this. */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  /* Belt-and-braces guard against any stray horizontal scrollbar. */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { margin: 0 0 .5em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--navy); }

/* Long words / emails can never force a horizontal scrollbar. */
h1, h2, h3, p, a, li { overflow-wrap: break-word; word-break: break-word; }

/* Accessible "skip to content" link — visible only when focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Global visible focus ring on every interactive element (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
/* The CTA section receives focus programmatically — don't flash a ring there. */
#contact:focus { outline: none; }


/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */

/* The centered content column used by every section. */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Alternating background bands */
/* Services band — main brand navy, white type. Cards inside stay white. */
.band-offwhite { background: var(--navy); }
.band-offwhite .section-title,
.band-offwhite .section-intro { color: var(--white); }

/* Credentials strip — main brand navy. Cards inside stay white. */
.band-tint     { background: var(--navy); }


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  letter-spacing: -.01em;
  margin-bottom: .45em;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--text-soft);
}

.card-title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--navy);
}

.card-copy {
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: 1.65;
  margin: 0;
}


/* ==========================================================================
   5. BUTTONS
   Minimum touch target is 44x44px everywhere (WCAG 2.5.5).
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 14px clamp(20px, 3vw, 34px);
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: clamp(15px, 1.2vw, 16.8px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-red:hover,
.btn-red:active {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Compact variant used in the header bar. */
.btn-sm {
  min-height: 44px;
  padding: 11px clamp(14px, 2vw, 22px);
  font-size: clamp(14px, 1vw, 15.2px);
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  /* Keeps the tap target comfortable without inflating the bar. */
  min-height: 44px;
  min-width: 0;          /* lets the logo shrink instead of pushing the button */
  flex: 0 1 auto;
}

.brand-logo {
  width: auto;
  height: clamp(34px, 5vw, 48px);
  max-width: min(52vw, 260px);
  object-fit: contain;
}

/* The Contact Us button never shrinks or wraps. */
.header-inner .btn-sm { flex: 0 0 auto; white-space: nowrap; }


/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero-section { padding-top: clamp(24px, 3.5vw, 44px); }

.hero-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
  padding: clamp(40px, 7vw, 92px) clamp(22px, 5vw, 72px);
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--white);
  margin: 0 0 clamp(16px, 2vw, 24px);
}

.hero-copy {
  max-width: 780px;
  margin: 0 auto clamp(26px, 3.4vw, 38px);
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
}

.hero-actions { margin: 0; }


/* ==========================================================================
   8. CREDENTIALS STRIP
   ========================================================================== */
/* A quiet trust-signal bar, not a major section: short band, compact cards. */
.credentials { padding-block: clamp(24px, 3vw, 34px); }

.cred-grid {
  display: flex;
  flex-direction: column;       /* stacked on mobile */
  align-items: center;          /* content-width and centred, never full-bleed */
  justify-content: center;
  gap: 18px;
}

.cred-card {
  flex: 0 0 auto;               /* hug the content — do not stretch to fill */
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px 16px;
}

/* Navy square badge: "SBA" wordmark or the white star. */
.cred-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--navy);
  border: 2px solid var(--red);   /* red outline on the badge itself — this is what makes them pop */
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}
.cred-badge-star { font-size: 18px; letter-spacing: 0; }

.cred-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.35;
  color: var(--navy);
  text-transform: uppercase;
}
.cred-text-2 {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 700;
}
/* SDVOSB is the red accent line; "OWNED & OPERATED" stays muted grey. */
.cred-text-red { color: var(--red); }


/* ==========================================================================
   9. BOTTLENECK CARDS (3-across on desktop)
   ========================================================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: 1fr;   /* one column on mobile */
  gap: var(--gap);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 32px);
  box-shadow: var(--shadow-sm);
}

/* 4px navy rule across the top of the bottleneck cards. */
.card-top-navy { border-top: 4px solid var(--navy); }

/* 4px red rule down the left edge of the service tiers. */
.card-left-red { border-left: 4px solid var(--red); }


/* ==========================================================================
   10. SERVICES / TIER CARDS
   ========================================================================== */
.tier-stack {
  display: grid;
  grid-template-columns: 1fr;   /* always full-width, stacked */
  gap: var(--gap);
}

.tier-badge {
  display: inline-block;
  background: var(--navy);       /* main brand navy — pale tint was lost against the blue band */
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 4px;
  margin: 0 0 14px;
  max-width: 100%;
}

.tier .card-title { margin-bottom: .55em; }

.tier-impact {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-mid);
  font-size: var(--fs-body);
  line-height: 1.6;
}
.tier-impact strong { color: var(--navy); font-weight: 800; }


/* ==========================================================================
   11. HOW IT WORKS — numbered steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr;   /* stacked on mobile */
  gap: clamp(26px, 3.4vw, 40px);
  counter-reset: none;
}

.step { text-align: center; }

.step-num {
  display: block;
  font-size: clamp(40px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 12px;
}

.step-title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5em;
}

.step .card-copy { max-width: 42ch; margin-inline: auto; }


/* ==========================================================================
   12. FINAL CTA
   ========================================================================== */
.cta-section { padding-bottom: clamp(48px, 6vw, 88px); }

.cta-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
  padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 72px);
}

.cta-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: .5em;
}

.cta-copy {
  max-width: 660px;
  margin: 0 auto clamp(26px, 3.2vw, 36px);
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, .92);
}

.cta-email {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, .9);
}
.cta-email a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding-inline: 4px;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-email a:hover { text-decoration-thickness: 2px; }


/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-block: clamp(28px, 4vw, 44px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  width: auto;
  height: clamp(30px, 4vw, 40px);
  max-width: min(70vw, 200px);
  object-fit: contain;
  margin-bottom: 4px;
}

.footer-line {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-soft);
  line-height: 1.6;
}
.footer-creds { font-weight: 700; color: var(--navy); letter-spacing: .04em; }


/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   Mobile-first: everything above is the small-screen layout.
   ========================================================================== */

/* ---- 640px and up: small tablets / large phones in landscape ---- */
@media (min-width: 640px) {

  /* Credential cards sit side by side, centred as a compact pair. */
  .cred-grid { flex-direction: row; flex-wrap: wrap; }

  /* Bottleneck cards go two-up; the third card spans the full row so the
     grid never leaves an awkward orphan hanging on the left. */
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-3 > .card:nth-child(3) { grid-column: 1 / -1; }

  /* Steps go two-up at this size too. */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > .step:nth-child(3) { grid-column: 1 / -1; }
}

/* ---- 900px and up: tablets landscape / small laptops ---- */
@media (min-width: 900px) {

  /* Full three-across rows. */
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-3 > .card:nth-child(3) { grid-column: auto; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps > .step:nth-child(3) { grid-column: auto; }

  /* Tier cards get a little more breathing room on wide rows. */
  .tier { padding: clamp(28px, 3vw, 40px); }
}

/* ---- 1200px and up: desktop ---- */
@media (min-width: 1200px) {

  /* Lock the type scale at the measured desktop values so it stops growing. */
  :root {
    --fs-h1:   36.8px;
    --lh-h1:   46px;
    --fs-h2:   32px;
    --lh-h2:   38px;
    --fs-h3:   20px;
    --lh-h3:   28px;
    --fs-body: 16.8px;
    --fs-lead: 18px;
    --fs-small: 13.5px;
  }

  .hero-title { line-height: 46px; }
  .section-title,
  .cta-title  { line-height: 38px; }
}

/* ---- Very wide screens (2560px and beyond) ----
   The .wrap max-width already caps the content column; this only keeps the
   background bands from feeling endless by adding a touch more air. */
@media (min-width: 1800px) {
  :root { --section-y: 88px; }
}

/* ---- Very narrow screens (down to 320px) ----
   Tighten the padding so nothing overflows on a 320px viewport. */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .cred-card { min-width: 0; gap: 10px; padding: 10px 12px; }
  .cred-badge { width: 38px; height: 38px; font-size: 13px; }
  .cred-badge-star { font-size: 16px; }
  .btn { padding-inline: 16px; }
  .brand-logo { max-width: 46vw; }
  .header-inner { gap: 8px; }
}


/* ==========================================================================
   15. MOTION + PRINT
   ========================================================================== */

/* Respect the OS "reduce motion" setting — kill transitions and smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn-red:hover { transform: none; }
}

/* Basic print styles: flat backgrounds, black text, no sticky header. */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header { position: static; border-bottom: 1px solid #999; }
  .skip-link { display: none; }
  .hero-panel,
  .cta-panel {
    background: #fff !important;
    color: #000;
    border: 2px solid #000;
    border-radius: 0;
    padding: 18pt;
  }
  .hero-title,
  .cta-title,
  .cta-copy,
  .hero-copy,
  .cta-email,
  .cta-email a { color: #000; }
  .btn { border: 1pt solid #000; color: #000 !important; background: #fff !important; box-shadow: none; }
  .card,
  .cred-card { box-shadow: none; border: 1px solid #999; break-inside: avoid; page-break-inside: avoid; }
  .section { padding-block: 14pt; }
  .band-offwhite,
  .band-tint { background: #fff; }
  /* Show link targets so a printed page is still actionable. */
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
