/* ============================================================
   Burney Careers — styles.css
   Palette: professional navy + warm gold accent on clean neutrals
   Type: Fraunces (display serif) + Inter (body sans)
   ============================================================ */

:root {
  --navy-900: #071A2E;
  --navy-800: #0A2540;
  --navy-700: #123456;
  --blue-500: #1B5E9B;
  --blue-100: #E8F0F8;
  --gold:     #C6A15B;
  --gold-dark:#A8853F;

  --bg:       #FFFFFF;
  --surface:  #F6F8FB;
  --surface-2:#EEF2F7;
  --border:   #E3E9F0;
  --text:     #16283A;
  --muted:    #5B6B7B;
  --white:    #FFFFFF;

  --radius:   14px;
  --radius-sm:10px;
  --shadow:   0 1px 2px rgba(10,37,64,.04), 0 8px 30px rgba(10,37,64,.06);
  --shadow-lg:0 20px 50px rgba(10,37,64,.14);
  --container: 1160px;
  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 500; line-height: 1.12; color: var(--navy-800); letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

.eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 .9rem;
}

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; background: var(--navy-800); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; z-index: 200;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-sans); font-weight: 600; font-size: .96rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 10px 24px rgba(10,37,64,.24); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; box-shadow: 0 10px 24px rgba(198,161,91,.35); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy-800); background: var(--surface); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy-800); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; line-height: 0; }
.brand-mark svg { display: block; width: 40px; height: 40px; border-radius: 10px; }
.brand-text { font-family: var(--ff-serif); font-size: 1.32rem; line-height: 1; letter-spacing: -.01em; }
.brand-sub { font-family: var(--ff-sans); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-left: .35rem; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--navy-800); font-weight: 500; font-size: .95rem; }
.nav-menu a:hover { color: var(--blue-500); text-decoration: none; }
.nav-cta { background: var(--navy-800); color: #fff !important; padding: .55rem 1.15rem; border-radius: 999px; }
.nav-cta:hover { background: var(--navy-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .25s var(--ease); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(27,94,155,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(198,161,91,.14), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 60% at 60% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; max-width: 900px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 1.8rem 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats strong { display: block; font-family: var(--ff-serif); font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; line-height: 1; }
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.66); }

/* ===== Trust bar ===== */
.trust { background: var(--navy-900); color: #fff; padding: 1rem 0; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; }
.trust-label { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 600; color: var(--gold); }
.trust-list { display: flex; flex-wrap: wrap; gap: .6rem 2rem; list-style: none; margin: 0; padding: 0; }
.trust-list li { font-size: .9rem; color: rgba(255,255,255,.8); font-weight: 500; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 2.8rem; }
.section-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ===== Cards (Why) ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d4deea; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue-500); font-size: 1.4rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Values ===== */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.value { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 2rem 1.8rem; overflow: hidden; }
.value::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.value-num { font-family: var(--ff-serif); font-size: 2.4rem; color: var(--surface-2); position: absolute; top: 1rem; right: 1.4rem; line-height: 1; }
.value h3 { margin-bottom: .4rem; }
.value p { color: var(--muted); margin: 0; }

/* ===== Benefits ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.benefit { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem 1.4rem; transition: border-color .2s, transform .2s var(--ease); }
.benefit:hover { transform: translateY(-3px); border-color: var(--gold); }
.benefit h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.benefit p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ===== Roles ===== */
.roles-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  font-family: var(--ff-sans); font-weight: 500; font-size: .9rem; color: var(--navy-800);
  background: var(--white); border: 1px solid var(--border); padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer;
  transition: .18s var(--ease);
}
.filter-btn:hover { border-color: var(--navy-800); }
.filter-btn.is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.search-field input {
  font-family: var(--ff-sans); font-size: .95rem; padding: .62rem 1rem; width: 280px; max-width: 100%;
  border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--text);
}
.search-field input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; border-color: transparent; }

.roles-list { display: flex; flex-direction: column; gap: .85rem; }
.role {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.6rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.role:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d4deea; }
.role-info { min-width: 0; }
.role-title { font-family: var(--ff-serif); font-size: 1.24rem; color: var(--navy-800); margin: 0 0 .35rem; }
.role-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; }
.role-tag { font-size: .78rem; font-weight: 600; letter-spacing: .03em; padding: .2rem .65rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-500); }
.role-detail { font-size: .88rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.role-actions { display: flex; gap: .6rem; align-items: center; }
.role .btn { padding: .6rem 1.2rem; font-size: .9rem; }
.roles-empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* ===== Quotes ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; font-family: var(--ff-serif); font-size: 4rem; color: var(--gold); line-height: 1; position: absolute; top: .4rem; left: 1.2rem; opacity: .5; }
.quote blockquote { margin: 1rem 0 1.4rem; font-size: 1.02rem; color: var(--text); }
.quote figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: .9rem; }
.q-name { font-weight: 600; color: var(--navy-800); }
.q-role { font-size: .85rem; color: var(--muted); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: var(--gold); font-family: var(--ff-serif); font-size: 1.15rem; margin-bottom: 1rem; }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; padding: clamp(2.6rem, 5vw, 4rem) 0; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 520px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--ff-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-col address strong { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.5rem; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-legal { color: rgba(255,255,255,.5); }
.footer-legal a { color: rgba(255,255,255,.72); text-decoration: underline; }
.footer-legal a:hover { color: #fff; }

/* ===== Cookie consent ===== */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 1rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; justify-content: space-between;
}
/* The `hidden` attribute must win over display:flex, or the banner
   can never be dismissed (Accept/Decline set el.hidden = true). */
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 300px; }
.consent-actions { display: flex; gap: .6rem; }
.consent .btn { padding: .5rem 1.1rem; font-size: .9rem; }

/* ===== Contact ===== */
.hero-contact { margin: -1.6rem 0 2.6rem; font-size: .98rem; color: rgba(255,255,255,.78); }
.hero-contact a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-contact a:hover { color: #fff; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.contact-card {
  display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
a.contact-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
a.contact-card:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.contact-card-static { cursor: default; }
.contact-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy-800); color: var(--gold); font-size: 1.35rem; margin-bottom: 1.1rem;
}
.contact-card h3 { margin-bottom: .5rem; }
.contact-value {
  font-family: var(--ff-serif); font-size: clamp(1.02rem, 1.15vw, 1.2rem); color: var(--blue-500);
  overflow-wrap: anywhere; hyphens: none; margin: 0 0 .6rem;
}
a.contact-card:hover .contact-value { color: var(--navy-800); }
.contact-note { font-size: .9rem; color: var(--muted); font-style: normal; margin: 0; line-height: 1.6; }
.contact-legal { margin-top: 1.8rem; font-size: .85rem; color: var(--muted); }

.footer-contact { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-contact a { color: #fff; font-size: .92rem; font-weight: 500; }
.footer-contact a:hover { color: var(--gold); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .cards, .benefits-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .5rem 1.1rem 1.1rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--surface-2); }
  .nav-menu a { display: block; padding: .85rem .2rem; }
  .nav-cta { text-align: center; margin-top: .6rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .values-grid { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; }
  .role-actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .cards, .benefits-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
