/* ===========================================================
   CSEC Careers — static rebuild (home redesigned to match live site)
   Gold #F1BE48 · Flames red #C8102E · Charcoal #2B2B2B · Black
   Body: Inter · Display: Forza (Oswald fallback until Forza added)
   =========================================================== */

/* Drop Forza files into /fonts and these activate automatically.
   Expected: fonts/Forza-Medium.woff2, fonts/Forza-Bold.woff2 */
@font-face {
  font-family: "Forza";
  src: url("../fonts/Forza-Medium.woff2") format("woff2"),
       url("../fonts/Forza-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Forza";
  src: url("../fonts/Forza-Bold.woff2") format("woff2"),
       url("../fonts/Forza-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --gold: #f1be48;
  --gold-dark: #d8a72f;
  --red: #c8102e;
  --red-dark: #a50d25;
  --black: #0a0a0a;
  --charcoal: #2b2b2b;
  --charcoal-2: #262626;
  --ink: #1a1a1a;
  --grey: #5b5b5b;
  --grey-light: #c9c9c9;
  --white: #ffffff;
  --max: 1180px;
  --header-h: 92px;
  --font-display: "Forza", "Oswald", "Inter", Helvetica, Arial, sans-serif;
  --font-body: "Inter", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Section heading with gold underline accent ---- */
.head { text-align: center; margin-bottom: 44px; }
.head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--white); }
.head.dark h2, .head.light h2 { } /* color set per context */
.head .rule { width: 78px; height: 3px; background: var(--gold); margin: 16px auto 0; }
.head.left { text-align: left; }
.head.left .rule { margin-left: 0; }
.head.ink h2 { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: .92rem;
  padding: 13px 32px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  min-height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; gap: 42px; align-items: center; }
.nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 28px; height: 3px; background: var(--white); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-align: center;
  background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0,0,0,.45);
  max-width: 16ch; margin: 0 auto;
}
.scroll-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  margin-top: 44px; transition: all .2s; animation: bob 1.8s ease-in-out infinite;
}
.scroll-arrow:hover { background: var(--gold); color: var(--black); }
.scroll-arrow svg { width: 22px; height: 22px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.bg-charcoal { background: var(--charcoal); color: var(--white); }
.bg-white { background: var(--white); color: var(--ink); }

/* ---------- Working at CSEC ---------- */
.working .intro {
  max-width: 760px; margin: 0 auto 48px;
  text-align: center; text-align: justify; text-justify: inter-word;
  color: var(--grey-light); font-size: 1.05rem;
}
.video-wrap { max-width: 1132px; margin: 0 auto; }
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .play {
  position: relative; z-index: 1;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .2s, background .2s;
}
.video-embed .play:hover { background: var(--red-dark); }
.video-embed .play:hover { transform: scale(1.08); }
.video-embed .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-note { text-align: center; color: #8a8a8a; font-size: .85rem; margin-top: 12px; }

/* ---------- Path cards ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.path-card .photo { aspect-ratio: 3 / 2; overflow: hidden; }
.path-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.path-card .body {
  border: 1px solid var(--gold); border-top: 0;
  padding: 34px 30px 38px; text-align: center;
}
.path-card h3 { font-size: 1.7rem; color: var(--ink); margin-bottom: 16px; }
.path-card p { color: var(--grey); text-align: justify; text-justify: inter-word; margin-bottom: 24px; }

/* ---------- Our Story ---------- */
.story p { color: var(--grey-light); font-size: 1.05rem; max-width: 1080px; }

/* ---------- Mission / Vision ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mv-card { border: 1px solid var(--gold); padding: 40px 38px; min-height: 200px; }
.mv-card h3 { font-size: 1.6rem; color: var(--white); margin-bottom: 18px; }
.mv-card p { color: var(--grey-light); font-size: 1.02rem; }

/* ---------- Core values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 36px; }
.value { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 10px; align-items: center; }
.value .icon {
  grid-row: span 1; width: 52px; height: 52px;
  background: var(--gold);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.value h4 { font-size: 1.35rem; color: var(--white); align-self: center; }
.value p { grid-column: 2; color: var(--grey-light); font-size: .95rem; line-height: 1.5; }

/* ---------- Sub-page intro + benefits ---------- */
.lead-intro {
  max-width: 820px; margin: 0 auto 56px;
  text-align: center; color: var(--grey-light); font-size: 1.08rem;
}
.benefits-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px;
}
.benefit { text-align: center; }
.benefit .bicon {
  display: block;
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: var(--gold);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.benefit h4 { font-size: 1.25rem; color: var(--white); margin-bottom: 12px; line-height: 1.1; }
.benefit p { color: var(--grey-light); font-size: .95rem; line-height: 1.5; }

/* ---------- Current openings ---------- */
.openings { text-align: center; }
.openings p { color: var(--grey-light); max-width: 680px; margin: 0 auto 32px; font-size: 1.05rem; }

.view-all {
  display: block; width: 100%; margin-top: 56px;
  background: var(--gold); color: var(--white);
  text-align: center; padding: 22px 16px;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; font-size: 1.25rem;
  transition: background .2s;
}
.view-all:hover { background: var(--gold-dark); }

/* ---------- Testimonials ---------- */
.tcarousel { border: 1px solid #6a6a6a; padding: 54px 56px; position: relative; max-width: 1080px; margin: 0 auto; }
.tslide { display: none; animation: fade .5s ease; }
.tslide.active { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.tslide .quote { font-style: italic; font-size: 1.12rem; line-height: 1.8; color: #e9e9e9; text-align: justify; text-justify: inter-word; }
.tslide hr { border: 0; border-top: 1px solid #6a6a6a; margin: 28px 0 22px; }
.tslide .name { font-family: var(--font-display); text-transform: uppercase; color: var(--white); font-size: 1.5rem; font-weight: 700; }
.tslide .role { color: var(--grey-light); font-size: .92rem; margin-top: 4px; }
.tnav { display: flex; justify-content: center; gap: 11px; margin-top: 34px; }
.tdot { width: 11px; height: 11px; border-radius: 50%; background: #555; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.tdot.active { background: var(--gold); transform: scale(1.25); }
.tarrows { position: absolute; top: 50%; left: -18px; right: -18px; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.tarrow { pointer-events: auto; background: var(--charcoal); border: 1px solid #6a6a6a; color: var(--white); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: all .2s; }
.tarrow:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfcfcf; padding: 54px 0 30px; text-align: center; }
.site-footer .flogo img { height: 50px; margin: 0 auto 24px; }
.site-footer .fnav { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.site-footer .fnav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; color: #fff; }
.site-footer .fnav a:hover { color: var(--gold); }
.site-footer .copyright { font-size: .85rem; color: #8a8a8a; border-top: 1px solid #222; padding-top: 22px; }
.site-footer .copyright a { color: #b3b3b3; }
.site-footer .copyright a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav { position: fixed; top: var(--header-h); right: 0; left: 0; background: var(--black); flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav.open { max-height: 300px; padding: 12px 0; }
  .nav a { padding: 16px 24px; width: 100%; }
  .nav-toggle { display: flex; }
  .paths, .mv { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .tcarousel { padding: 40px 28px; }
  .tarrows { display: none; }
}
