:root {
    --navy: #221e1b; --navy-deep: #17140f; --steel: #4a453d;
    --accent: #db2327; --accent-dark: #b81c20; --ink: #2a2723;
    --muted: #625e57; --line: #e8e1d6; --bg: #f6f3ee; --white: #ffffff; --accent-tint: #fbf1f1;
    --radius: 14px;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; font-family: 'Source Sans 3', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--ink); background: var(--white); line-height: 1.55;
  }
  a { text-decoration: none; color: inherit; }
  h1, h2, h3 { margin: 0; font-family: 'Libre Franklin', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif; }


  /* header (shared) */
  header { background: var(--white); border-bottom: 1px solid var(--line); }
  .nav-wrap { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
  .logo-img { height: 48px; width: auto; display: block; }
  nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
  nav a { color: var(--navy); opacity: 0.75; transition: opacity 0.2s; }
  nav a:hover { opacity: 1; }
  nav .active { color: var(--accent-dark); opacity: 1; }
  .has-dropdown { position: relative; }
  .has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
  .dropdown-caret { flex-shrink: 0; transition: transform 0.2s ease; }
  .has-dropdown:hover .dropdown-caret, .has-dropdown:focus-within .dropdown-caret { transform: rotate(180deg); }
  .nav-dropdown {
    position: absolute; top: 100%; left: 50%; margin-top: 14px; transform: translateX(-50%) translateY(-8px);
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 20px 44px rgba(23,20,15,0.16); padding: 16px; width: 460px;
    opacity: 0; visibility: hidden; pointer-events: none; z-index: 200;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav-dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
  .has-dropdown:hover .nav-dropdown, .has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .nav-dropdown-grid a { display: block; padding: 12px 14px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--navy); opacity: 0.82; transition: background 0.15s ease, opacity 0.15s ease; }
  .nav-dropdown-grid a:hover { background: var(--bg); opacity: 1; }
  .nav-cta { background: var(--accent-dark); color: var(--white) !important; padding: 9px 18px; border-radius: 8px; font-size: 13.5px; opacity: 1 !important; }

  /* hero */
  .hero {
    background: linear-gradient(135deg, var(--navy-deep), var(--steel));
    color: var(--white); padding: 72px 24px 64px; text-align: center;
  }
  .hero .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px; color: rgba(255,255,255,0.75); font-weight: 700; margin-bottom: 12px; }
  .hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
  .hero p { max-width: 640px; margin: 0 auto 30px; color: rgba(255,255,255,0.88); font-size: 15.5px; }
  .btn-primary { background: var(--accent-dark); color: var(--white); padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 14.5px; transition: background 0.2s; display: inline-block; }
  .btn-primary:hover { background: var(--accent); }
  .btn-outline-light { border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: all 0.2s; display: inline-block; }
  .btn-outline-light:hover { background: rgba(255,255,255,0.12); }
  .hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  /* shared section */
  .section { max-width: 1180px; margin: 0 auto; padding: 68px 24px; }
  .section.tinted { background: var(--white); max-width: none; }
  .section-divider { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
  .section-divider::before, .section-divider::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line); }
  .section-divider .tab { flex: none; margin: 0 18px; background: none; border: 1.5px solid var(--accent-dark); color: var(--accent-dark); font-family: 'Libre Franklin', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-weight: 800; font-size: 14.5px; text-transform: uppercase; letter-spacing: 1.6px; padding: 9px 22px; border-radius: 999px; white-space: nowrap; }
  .section-divider + .section:not(.tinted) { padding-top: 32px; }
  .section-divider + .section.tinted { padding-top: 0; }
  .section-divider + .section.tinted > .inner { padding-top: 32px; }
  .section.tinted > .inner { max-width: 1180px; margin: 0 auto; padding: 68px 24px; }
  .eyebrow-label { text-align: center; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
  .section-title { text-align: center; font-size: 29px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
  .section-sub { text-align: center; color: var(--muted); font-size: 15px; max-width: 640px; margin: 0 auto 40px; }

  /* culture / why work here */
  .culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  @media (max-width: 900px) { .culture-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .culture-grid { grid-template-columns: 1fr; } }
  .culture-card { text-align: center; padding: 8px 10px; }
  .culture-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(34,30,27,0.07); color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
  .culture-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
  .culture-card p { font-size: 13.5px; color: var(--muted); margin: 0; }


  /* open positions */
  .job-list { display: flex; flex-direction: column; gap: 14px; }
  .job-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 26px; transition: all 0.2s;
  }
  .job-card:hover { box-shadow: 0 8px 22px rgba(23,20,15,0.08); border-color: rgba(34,30,27,0.24); }
  .job-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .job-info h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 8px; }
  .job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .job-tag {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
    padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted);
  }
  .job-tag.dept { background: rgba(34,30,27,0.07); color: var(--navy); }
  .job-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .btn-apply {
    background: var(--accent-dark); color: var(--white); padding: 10px 22px; border-radius: 8px;
    font-weight: 700; font-size: 13.5px; white-space: nowrap; transition: background 0.2s;
  }
  .btn-apply:hover { background: var(--accent); }

  /* general application */
  .apply-card {
    max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 36px 40px; text-align: center;
  }
  .apply-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
  .apply-card p { font-size: 14px; color: var(--muted); max-width: 480px; margin: 0 auto 24px; }
  .apply-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; text-align: left; }
  @media (max-width: 560px) { .apply-form-row { grid-template-columns: 1fr; } }
  .apply-form-row.full { grid-template-columns: 1fr; }
  .apply-card label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
  .apply-card input, .apply-card select, .apply-card textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
    font-size: 13.5px; font-family: inherit; background: #fbfcfd;
   resize: none;
  }
  .apply-card input:focus, .apply-card select:focus, .apply-card textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
  .apply-card input.invalid, .apply-card textarea.invalid { border-color: var(--accent-dark); background: var(--accent-tint); }
  .apply-card .phone-field { display: flex; gap: 8px; }
  .apply-card .phone-field select { flex: 0 0 118px; padding-left: 8px; padding-right: 4px; }
  .apply-card .phone-field input { flex: 1; min-width: 0; }
  .apply-card .field-error {
    display: none; color: var(--accent-dark); font-size: 12px; font-weight: 600; margin-top: 6px;
  }
  .apply-card .form-success {
    display: none; margin-top: 14px; padding: 12px 14px; border-radius: 8px;
    background: rgba(34,30,27,0.05); border: 1px solid rgba(34,30,27,0.16);
    color: var(--navy); font-size: 13px; text-align: center;
  }
  .apply-card .form-error {
    background: var(--accent-tint); border-color: rgba(184,28,32,0.3); color: var(--accent-dark);
  }
  .apply-card .form-error a { text-decoration: underline; }
  .apply-card .hp-field {
    position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden;
  }
  .apply-card .cf-turnstile { margin-top: 14px; }
  .apply-card .ga-submit:disabled { opacity: 0.6; cursor: not-allowed; }
  .upload-box {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px dashed #c7cfd6; border-radius: 8px; padding: 16px; text-align: center;
    font-size: 12.5px; color: var(--muted); background: var(--bg); cursor: pointer; transition: all 0.2s;
  }
  .upload-box:hover { border-color: var(--navy); color: var(--navy); }
  .upload-box.invalid { border-color: var(--accent-dark); background: var(--accent-tint); }
  .upload-box svg { flex-shrink: 0; }
  .apply-card > form > .apply-form-row.full > label {
    display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; text-align: left;
  }

  /* CTA banner */
  .cta-banner { background: var(--navy); color: var(--white); text-align: center; padding: 56px 24px; }
  .cta-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
  .cta-banner p { color: rgba(255,255,255,0.88); font-size: 14px; max-width: 480px; margin: 0 auto 24px; }

  /* footer (shared) */
  footer { background: var(--navy-deep); color: rgba(255,255,255,0.62); padding: 48px 24px 24px; }
  .footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  @media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
  .footer-brand img { height: 42px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.95; }
  .footer-brand p { font-size: 13px; color: rgba(255,255,255,0.62); max-width: 320px; }
  .footer-socials { display: flex; gap: 10px; margin-top: 16px; }
  .footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75); transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
  .footer-socials a:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
  footer h3 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  footer ul { list-style: none; margin: 0; padding: 0; }
  footer li { margin-bottom: 10px; font-size: 13.5px; }
  footer a:hover { color: var(--white); }
  .footer-bottom { max-width: 1180px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12.5px; color: rgba(255,255,255,0.50); }

  /* ---- Mobile nav (hamburger dropdown panel) ---- */
  .nav-toggle { display: none; background: none; border: none; padding: 6px; margin: 0; cursor: pointer; color: var(--navy); }
  @media (max-width: 880px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    nav ul {
      display: none; position: fixed; top: 77px; left: 0; right: 0;
      flex-direction: column; gap: 0; margin: 0; background: var(--white);
      border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
      box-shadow: 0 16px 32px rgba(23,20,15,0.14); padding: 4px 24px; z-index: 300;
      max-height: calc(100vh - 77px); overflow-y: auto;
    }
    nav.nav-open ul { display: flex; }
    nav ul li { width: 100%; }
    nav ul li a { display: block; width: 100%; padding: 15px 2px; opacity: 1; border-bottom: 1px solid var(--line); box-sizing: border-box; }
    nav ul li:last-child a { border-bottom: none; }
    nav ul li a.nav-cta { display: block; text-align: center; margin: 14px 0 16px; border-bottom: none; }
    .has-dropdown .nav-dropdown { display: none !important; }
    .has-dropdown .dropdown-caret { display: none; }
  }

  /* ---- Footer legal links (Privacy Notice / Cookie settings) ---- */
  .footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .footer-legal a:hover { color: var(--white); }

  /* ---- Form privacy notice ---- */
  .form-privacy { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 12px; text-align: left; }
  .form-privacy a { color: var(--accent-dark); text-decoration: underline; }
  .apply-card label.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: var(--ink); text-align: left; cursor: pointer; }
  .apply-card label.consent-check input[type="checkbox"] { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: var(--accent-dark); }
  .apply-card label.consent-check a { color: var(--accent-dark); text-decoration: underline; }

  /* Submit Application button — same size/shape as the Contact Us "Send Message" button */
  .apply-card .ga-submit { display: block; padding: 14px; font-family: inherit; font-size: 15px; border-radius: 8px; }
  .apply-card .ga-submit:hover:not(:disabled) { background: var(--accent); }

/* CookieYes banner: make "Accept All" the primary action. Reject/Customise stay the same size and fully visible. */
.cky-btn.cky-btn-accept {
  background: #b81c20 !important;   /* site red: same as the Send Message button (--accent-dark) */
  border-color: #b81c20 !important;
  color: #ffffff !important;
}
.cky-btn.cky-btn-reject,
.cky-btn.cky-btn-customize,
.cky-btn.cky-btn-preferences {
  background: transparent !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}
/* Preference centre (Customise panel): put "Accept All" first */
.cky-prefrence-btn-wrapper { display: flex !important; flex-wrap: wrap; gap: 8px; }
.cky-prefrence-btn-wrapper .cky-btn-accept { order: -1; }

/* CookieYes banner: smaller text on phones */
@media (max-width: 600px) {
  .cky-consent-container .cky-title { font-size: 14px !important; }
  .cky-consent-container .cky-notice-des,
  .cky-consent-container .cky-notice-des p { font-size: 12px !important; line-height: 1.4 !important; }
}
