/* 365 Workforce Ltd — custom styles (plain CSS, works alongside the Tailwind CDN) */

:root {
  --navy: #133481;
  --navy-950: #061233;
  --gold: #FFCC00;
  --ink: #0B1B3F;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink); font-family: 'Jost', ui-sans-serif, system-ui, sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }
::selection { background: var(--gold); color: var(--navy-950); }
img { max-width: 100%; }

/* Layout */
.container-x { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container-x { padding-inline: 1.75rem; } }
@media (min-width: 1024px) { .container-x { padding-inline: 2.5rem; } }

/* Eyebrow label — echoes the spaced tagline in the logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before { content: ''; width: 2rem; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--light { color: #fff; }
.eyebrow--center::after { content: ''; width: 2rem; height: 2px; background: var(--gold); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border-radius: 999px; padding: .95rem 1.6rem; font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 1.05rem; height: 1.05rem; transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 10px 30px -12px rgba(255,204,0,.7); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255,204,0,.8); background: #FFD633; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 30px -14px rgba(19,52,129,.8); }
.btn-navy:hover { transform: translateY(-2px); background: #0F2B6E; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.04); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-outline { border: 1.5px solid rgba(19,52,129,.25); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Nav link underline */
.nav-link { white-space: nowrap; position: relative; padding: .5rem 0; font-weight: 500; font-size: .95rem; transition: color .3s; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.8,.2,1); border-radius: 2px; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .animate-marquee { animation: none !important; }
}

/* Image card zoom */
.zoom-img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.group:hover .zoom-img { transform: scale(1.07); }

/* Decorative grid + noise */
.bg-grid {
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-grid-dark {
  background-image: linear-gradient(rgba(19,52,129,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(19,52,129,.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.mask-fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.mask-fade-x { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }


/* Form */
.field { width: 100%; border-radius: .9rem; border: 1.5px solid #E2E8F3; background: #F8FAFD; padding: .9rem 1rem; font-size: .975rem; color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; }
.field::placeholder { color: #94A0B8; }
.field:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(19,52,129,.12); }
.field.is-invalid { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23133481' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
.label { display: block; font-size: .85rem; font-weight: 500; color: #3A4A6B; margin-bottom: .45rem; }

/* Back to top progress ring */
.progress-ring circle { transition: stroke-dashoffset .1s linear; }


/* Hero: headline lines rise in, photo eases out of a slow zoom */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; transform: translateY(110%); animation: line-up 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes line-up { to { transform: none; } }
.kenburns { transform-origin: 60% 35%; animation: kenburns 9s cubic-bezier(.2,.6,.2,1) forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.scroll-cue { animation: scroll-cue 2s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }
@media (prefers-reduced-motion: reduce) {
  .line-mask > span, .kenburns, .scroll-cue { animation: none; transform: none; }
}
