/* ==========================================================
   Fumble Creatives
   BRAND SETTINGS: change these to restyle the whole site.
   ========================================================== */
:root {
  --yellow: #ffcc29;        /* brand accent: buttons, highlights, yellow section */
  --yellow-ink: #16212b;    /* text on yellow */
  --blue-1: #1d4766;        /* hero gradient top / dark blue */
  --blue-2: #2f78a8;        /* hero gradient bottom / light blue */
  --ink: #16212b;           /* main text on light backgrounds */
  --muted: #5b6876;         /* secondary text on light backgrounds */
  --light: #ffffff;         /* page background */
  --soft: #f3f6f9;          /* card background */
  --line: #e1e7ee;
  --radius: 18px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--light); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.accent { color: var(--yellow); }
.eyebrow { font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); margin-bottom: .6em; }
.lead { font-size: 1.2rem; max-width: 40ch; }
.lead--dark { color: var(--muted); max-width: 52ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--yellow); color: var(--yellow-ink); font: inherit; font-weight: 800;
  text-decoration: none; padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--yellow);
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.btn--small { padding: .55em 1.2em; font-size: .95rem; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; transition: background .2s ease, box-shadow .2s ease; }
.nav.scrolled { background: var(--blue-1); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 900; font-size: 1.25rem; letter-spacing: .02em; }
.brand b { color: var(--yellow); font-weight: 900; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; color: #fff; font-weight: 700; opacity: .9; }
.nav__links a:not(.btn):hover { opacity: 1; color: var(--yellow); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s; }

/* Hero */
.hero {
  min-height: 92vh; display: flex; align-items: center; text-align: center; color: #fff;
  padding: 130px 0 90px;
  background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue-1) 55%, var(--blue-2) 100%);
}
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero .lead { margin: 0 auto; opacity: .92; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Sections */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--yellow { background: var(--yellow); }
.section--yellow .eyebrow { color: var(--blue-1); }
.section--blue { background: linear-gradient(160deg, var(--blue-1), var(--blue-2)); color: #fff; }
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about p { color: var(--muted); font-size: 1.1rem; }

.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(22,33,43,.08); }
.card p { color: var(--muted); margin: 0; }
.card__tag {
  display: inline-block; background: var(--blue-1); color: #fff; font-size: .78rem; font-weight: 800;
  padding: .3em .8em; border-radius: 999px; margin-bottom: 16px; letter-spacing: .04em;
}

.stats { text-align: center; }
.stats b { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900; color: var(--blue-1); }
.stats span { color: var(--muted); font-weight: 700; }

/* Careers */
.job { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.job p { color: var(--muted); flex: 1; }
.job__meta { display: flex; gap: 8px; margin-bottom: 18px; }
.job__meta span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; font-size: .85rem; font-weight: 700; color: var(--blue-1); }
.job .btn { align-self: flex-start; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact p { opacity: .92; font-size: 1.1rem; max-width: 42ch; }
.contact__email a { color: var(--yellow); font-weight: 800; font-size: 1.2rem; }
.form { display: grid; gap: 14px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: .95rem; }
.form .opt { font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--soft);
  border: 1px solid var(--line); border-radius: 10px; padding: .7em .9em; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }
.form .btn { justify-self: start; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 30px 0; font-size: .95rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }

/* Responsive */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 22px; background: var(--blue-1); display: none;
  }
  .nav__links.open { display: flex; }
  .nav.menu-open { background: var(--blue-1); }
  .nav__links a { padding: 12px 0; }
  .nav__links .btn { justify-content: center; margin-top: 8px; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .brand { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
