/* ============================================================
   Delfino AI — Careers shared styles
   Shared by careers.html and every role detail page.
   Mirrors the tokens and header/footer patterns used across the
   marketing site (index.html, contact.html, privacy.html).
   ============================================================ */

:root {
  --navy: #051c2c;
  --navy-2: #034a8c;
  --blue: #0057e1;
  --blue-bright: #1f6fff;
  --ink: #051c2c;
  --paper: #ffffff;
  --gray: #ededed;
  --muted: #4a4a4a;
  --line: #d6d6d6;
  --body: "Inter", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --page: min(100% - 80px, 1200px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; width: 100%; }
.header-inner { width: var(--page); margin: 0 auto; padding-top: 26px; display: flex; align-items: flex-start; gap: 40px; color: #fff; }
.menu-btn { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px 0; margin-top: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: #fff; }
.brand { font-family: var(--serif); font-size: 22px; line-height: 1.05; font-weight: 500; color: #fff; padding-top: 8px; white-space: nowrap; }
.nav { display: flex; align-items: flex-end; gap: 0; margin-left: 10px; flex: 1; }
.nav-lead { display: flex; flex-direction: column; align-items: flex-start; }
.nav-lead .eyebrow { padding: 0 16px; font-size: 11px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); white-space: nowrap; }
.nav-lead a { padding-top: 5px !important; }
.nav a { position: relative; padding: 18px 16px 16px; font-size: 15px; color: rgba(255,255,255,.92); }
.nav a.active { color: #5aa9ff; }
.nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; background: #2f7bff; }
.header-right { display: flex; align-items: center; gap: 22px; padding-top: 16px; font-size: 15px; white-space: nowrap; }
.header-right .sep { opacity: .45; }
.search-ico { width: 22px; height: 22px; }

/* ---------- Page hero band ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); }
.page-hero .ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.page-hero-inner { position: relative; z-index: 2; width: var(--page); margin: 0 auto; padding: 152px 0 72px; }
.page-hero .eyebrow { color: #cfe0ff; font-size: 15px; letter-spacing: .04em; }
.page-hero h1 { font-family: var(--serif); color: #fff; font-size: clamp(44px, 6vw, 84px); line-height: .98; font-weight: 500; margin-top: 12px; max-width: 18ch; }
.page-hero .hero-lead { color: rgba(255,255,255,.9); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 620px; margin-top: 24px; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.page-hero .hero-actions a { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; font-size: 16px; font-weight: 500; }
.page-hero .btn-primary { background: var(--blue); color: #fff; }
.page-hero .btn-primary:hover { background: var(--blue-bright); }
.page-hero .btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.page-hero .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Breadcrumb inside the hero (role pages) */
.crumbs { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .04em; }
.crumbs a { color: rgba(255,255,255,.7); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }

/* Role meta chips under the hero title */
.role-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.role-meta span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.92); padding: 8px 16px; border-radius: 999px; font-size: 14px; }

/* ---------- Sections ---------- */
.section { width: var(--page); margin: 0 auto; padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section-label { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.section-title { text-align: center; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.08; margin-top: 14px; }
.section-intro { max-width: 720px; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 18px; line-height: 1.6; }

/* ---------- Intro band ---------- */
.intro { background: var(--gray); }
.intro-inner { width: var(--page); margin: 0 auto; max-width: 900px; padding: 64px 0; }
.intro p { margin: 0; color: var(--ink); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.62; }
.intro a { border-bottom: 1px solid var(--ink); }

/* ---------- Culture / ways to work ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.ways article { border-top: 2px solid var(--ink); padding-top: 22px; }
.ways .ico { width: 40px; height: 40px; color: var(--blue); }
.ways h3 { font-family: var(--serif); font-size: 24px; line-height: 1.18; font-weight: 500; margin-top: 16px; }
.ways p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 0; }

/* ---------- Value split band (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 48px; }
.split.reverse .split-photo { order: 2; }
.split-photo { aspect-ratio: 4 / 3; border: 1px solid var(--line); background-size: cover; background-position: center; }
.split-photo.hero-img { background-image: linear-gradient(180deg, rgba(5,28,44,.04), rgba(5,28,44,.20)), url("delfino-hero-original.png"); }
.split-photo.solution-img { background-image: linear-gradient(180deg, rgba(5,28,44,.04), rgba(5,28,44,.20)), url("delfino-solution-original.jpeg"); }
.split h2 { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.06; }
.split p { color: var(--muted); font-size: 17px; line-height: 1.62; margin: 20px 0 0; }

/* ---------- Perks ---------- */
.perks { background: var(--gray); }
.perks-inner { width: var(--page); margin: 0 auto; padding: 80px 0; }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); }
.perk { background: var(--gray); padding: 30px; }
.perk h3 { font-size: 18px; font-weight: 600; }
.perk p { color: var(--muted); font-size: 15px; line-height: 1.58; margin: 10px 0 0; }

/* ---------- Life gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; gap: 18px; margin-top: 48px; }
.gallery figure { margin: 0; border: 1px solid var(--line); background-size: cover; background-position: center; }
.gallery .tall { grid-row: span 2; }
.gallery .g1 { background-image: linear-gradient(180deg, rgba(5,28,44,.05), rgba(5,28,44,.28)), url("delfino-hero-original.png"); }
.gallery .g2 { background-image: linear-gradient(180deg, rgba(5,28,44,.05), rgba(5,28,44,.28)), url("delfino-solution-original.jpeg"); }
.gallery .g3 { background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; }
.gallery .g3 span { color: #fff; font-family: var(--serif); font-size: 26px; text-align: center; padding: 20px; }

/* ---------- Roles grid (careers overview) ---------- */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 52px; }
.role-card { display: flex; flex-direction: column; border: 1px solid var(--line); padding: 30px 30px 26px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.role-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(5,28,44,.55); }
.role-card .tag { align-self: flex-start; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.role-card h3 { font-family: var(--serif); font-size: 27px; line-height: 1.12; font-weight: 500; margin-top: 14px; }
.role-card p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 22px; }
.role-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.role-card .facts { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.role-card .go { color: var(--blue); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ---------- Role detail body ---------- */
.role-body { width: var(--page); margin: 0 auto; padding: 80px 0; display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(48px, 7vw, 96px); align-items: start; }
.role-main h2 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; margin-top: 48px; }
.role-main h2:first-child { margin-top: 0; }
.role-main p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 18px 0 0; }
.role-main ul { margin: 20px 0 0; padding: 0; list-style: none; }
.role-main li { position: relative; padding: 0 0 16px 30px; color: var(--muted); font-size: 17px; line-height: 1.62; }
.role-main li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 999px; background: var(--blue); }
.role-main li strong { color: var(--ink); font-weight: 600; }

/* Sticky apply rail */
.role-aside { position: sticky; top: 28px; }
.apply-card { border: 1px solid var(--line); background: var(--gray); padding: 28px; }
.apply-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.apply-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 12px 0 0; }
.apply-card dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.apply-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.apply-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.apply-card dt { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.apply-card dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; text-align: right; }
.apply-card .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; padding: 14px 28px; font-size: 16px; font-weight: 500; border: 0; cursor: pointer; }
.btn:hover { background: var(--blue-bright); }
.btn-ghost-dark { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 14px 28px; font-size: 16px; font-weight: 500; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; }
.cta-inner { width: var(--page); max-width: 840px; margin: 0 auto; padding: 92px 0; text-align: center; }
.cta h2 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 52px); font-weight: 500; line-height: 1.05; }
.cta p { color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.55; margin: 22px auto 32px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Connect band ---------- */
.connect { background: var(--gray); border-top: 1px solid #000; }
.connect-inner { width: var(--page); margin: 0 auto; padding: 56px 0 44px; }
.connect-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.connect-top h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 500; }
.connect-top .btn { background: var(--blue); }
.socials { display: flex; gap: 36px; padding-top: 28px; }
.socials a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
.socials .dot { width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }

/* ---------- Site footer ---------- */
.site-footer { background: #fff; border-top: 1px solid #000; }
.footer-inner { width: var(--page); margin: 0 auto; padding: 56px 0; }
.footer-logo { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.05; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.footer-sub h3 { font-size: 18px; font-weight: 600; }
.footer-sub p { color: var(--muted); font-size: 15px; margin: 8px 0 16px; }
.sub-form { display: flex; gap: 12px; max-width: 420px; }
.sub-form input { flex: 1; border: 1px solid var(--line); padding: 13px 14px; font: inherit; }
.sub-form button { border: 0; background: var(--blue); color: #fff; padding: 0 26px; font: inherit; font-weight: 500; cursor: pointer; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: flex-end; align-content: flex-start; }
.footer-links a { font-size: 14px; font-weight: 500; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  :root { --page: min(100% - 36px, 1200px); }
  .nav, .header-right { display: none; }
  .page-hero-inner { padding-top: 120px; }
  .ways, .split, .perks-grid, .roles, .role-body, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-photo { order: 0; }
  .split { gap: 32px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery figure { min-height: 200px; }
  .gallery .tall { grid-row: auto; }
  .role-aside { position: static; }
  .connect-top { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
