/* FlexCareers — handcrafted stylesheet, no JS, no build step.
 * Warm teal + amber palette designed to feel nurturing and trustworthy
 * rather than corporate. Generous whitespace, confident typography.
 */

:root {
  --ink:        #1c2230;
  --ink-soft:   #46506a;
  --muted:      #6c7488;
  --line:       #e6dfd1;
  --line-strong:#d6cdb9;
  --paper:      #fbf7ee;
  --paper-2:    #f5ecd8;
  --paper-3:    #fef8ea;
  --card:       #ffffff;
  --brand:      #2a6f5e;       /* deep eucalyptus */
  --brand-2:    #3f9482;       /* mid eucalyptus */
  --brand-ink:  #11332a;
  --brand-soft: #d6ece2;
  --accent:     #e07a3a;       /* warm clementine */
  --accent-soft:#fbe1cc;
  --accent-ink: #6e2f10;
  --gold:       #c89a3b;
  --gold-soft:  #fbeec5;
  --plum:       #7a4868;
  --plum-soft:  #f1deea;
  --shadow:     0 1px 0 rgba(20,52,42,.05), 0 8px 30px -16px rgba(20,52,42,.22);
  --shadow-lg:  0 24px 60px -28px rgba(20,52,42,.35);
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1200px;
  --serif:      "Fraunces", "Source Serif Pro", Georgia, serif;
  --sans:       "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1,h2,h3,h4 {
  font-family: var(--serif);
  color: var(--brand-ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- Header ---- */
.site-header {
  background: rgba(251,247,238,.92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-header .bar {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand-ink);
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700;
  box-shadow: 0 4px 14px -6px rgba(42,111,94,.6);
}
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.nav a:hover { color: var(--brand-ink); text-decoration: none; }
.nav .cta {
  background: var(--brand-ink); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(17,51,42,.5);
}
.nav .cta:hover { background: var(--brand); color: #fff; }

@media (max-width: 880px) {
  .nav { gap: 16px; }
  .nav a:not(.cta) { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(1200px 420px at 78% -120px, var(--brand-soft) 0%, transparent 60%),
    radial-gradient(900px 380px at -10% -40px, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(700px 260px at 50% 110%, var(--gold-soft) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 64px; align-items: center;
}
.hero h1 { line-height: 1.05; }
.hero h1 .accent {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 54ch;
  line-height: 1.6;
}
.hero .pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.hero .pill {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.hero .pill::before { content: "✓"; color: var(--brand); margin-right: 6px; font-weight: 700; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--sans);
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-ink); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(17,51,42,.5);
}
.btn-primary:hover {
  background: var(--brand); color: #fff;
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(17,51,42,.6);
}
.btn-ghost {
  background: rgba(255,255,255,.6); color: var(--brand-ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; text-decoration: none; }

.hero .art {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
}
.hero .art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(224,122,58,.12));
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 36px; }
}

/* ---- Section header ---- */
.section { padding: 72px 0; }
.section.alt { background: var(--paper-2); }
.section.warm { background: var(--paper-3); }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 50ch; }
.section-head a { font-weight: 600; }

/* ---- Cards & grids ---- */
.cards { display: grid; gap: 18px; }
.cards.two   { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four  { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .cards.two, .cards.three, .cards.four { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand-soft); text-decoration: none; }

.cat-card { display: block; padding: 24px; }
.cat-card h3 { margin: 0 0 6px; }
.cat-card .count { color: var(--brand); font-weight: 600; font-size: .9rem; }
.cat-card p { margin: 8px 0 0; font-size: .95rem; }

/* ---- Schedule cards (the FlexCareers signature) ---- */
.schedule-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 24px;
  border-left: 4px solid var(--accent);
}
.schedule-card:nth-child(2n) { border-left-color: var(--brand); }
.schedule-card:nth-child(3n) { border-left-color: var(--gold); }
.schedule-card:nth-child(5n) { border-left-color: var(--plum); }
.schedule-icon {
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 1.9rem;
}
.schedule-card:nth-child(2n) .schedule-icon { background: var(--brand-soft); }
.schedule-card:nth-child(3n) .schedule-icon { background: var(--gold-soft); }
.schedule-card:nth-child(5n) .schedule-icon { background: var(--plum-soft); }

/* ---- Job card ---- */
.job-card {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 20px; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.job-card:hover {
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.job-card .logo {
  width: 60px; height: 60px; border-radius: 12px;
  background: var(--brand-soft);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: var(--brand-ink);
  overflow: hidden;
  font-size: 1.5rem;
}
.job-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.job-card h3 { margin: 0; font-size: 1.1rem; color: var(--ink); font-family: var(--sans); font-weight: 600; line-height: 1.3; }
.job-card .meta { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.job-card .meta strong { color: var(--ink); font-weight: 600; }
.job-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; padding: 4px 10px;
  border-radius: 999px; background: var(--paper-2); color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge.accent{ background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* Flexibility-signal badges — distinctly colored so they pop */
.badge.flex { font-weight: 600; }
.badge.flex-async        { background: #e7f0fb; color: #1d4ea1; border-color: transparent; }
.badge.flex-part_time    { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.badge.flex-school_hours { background: var(--gold-soft); color: #6b4d10; border-color: transparent; }
.badge.flex-evenings     { background: var(--plum-soft); color: #4f2240; border-color: transparent; }
.badge.flex-contract     { background: #e3eee5; color: #234d2c; border-color: transparent; }
.badge.flex-remote_first { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge.flex-caregiver    { background: #fde8e7; color: #802b25; border-color: transparent; }
.badge.flex-hours        { background: #ecf3f0; color: var(--brand-ink); border-color: transparent; font-variant-numeric: tabular-nums; }

.job-card .when { color: var(--muted); font-size: .85rem; white-space: nowrap; }
@media (max-width: 720px) {
  .job-card { grid-template-columns: 48px 1fr; padding: 16px 18px; }
  .job-card .when { grid-column: 2; margin-top: 4px; }
}

/* ---- Job detail / Schedule detail / Intent detail ---- */
.detail-head {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.detail-head .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.detail-head .crumbs a { color: var(--muted); }
.detail-head h1 { margin-bottom: 10px; }
.detail-head .company-line { font-size: 1.1rem; color: var(--ink-soft); }
.detail-head .company-line a { color: var(--brand-ink); font-weight: 600; }
.detail-head .meta-row {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px;
  color: var(--ink-soft); font-size: .95rem;
}
.detail-head .meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.detail-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 52px;
  padding: 56px 0;
}
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.prose {
  font-size: 1.04rem; line-height: 1.78; color: var(--ink);
  max-width: 68ch;
}
.prose > :first-child { margin-top: 0; }
.prose h2,.prose h3,.prose h4 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.5em 0; padding: 16px 20px;
  border-left: 4px solid var(--brand-2);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--brand-ink);
}

aside.sidebar { display: grid; gap: 18px; align-content: start; }
aside.sidebar .card { padding: 20px; }
aside.sidebar h4 {
  font-family: var(--sans); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 0 0 12px;
  font-weight: 600;
}
aside.sidebar .apply { display: block; text-align: center; }
aside.sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
aside.sidebar li a { color: var(--ink); font-size: .92rem; }

/* ---- Flexibility profile (job detail signature block) ---- */
.flex-profile {
  background: linear-gradient(180deg, var(--brand-soft), #eaf3ee);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 32px;
}
.flex-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 720px) { .flex-grid { grid-template-columns: repeat(2, 1fr); } }
.flex-stat { display: grid; gap: 4px; }
.flex-stat .label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--brand-ink); opacity: .75; font-weight: 600;
}
.flex-stat .value {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 600; color: var(--brand-ink);
}
.flex-stat .value.yes { color: #1f6b3f; }
.flex-stat .value.maybe { color: #8a5a1a; }

/* ---- Recommended block (internal cross-link sidebar) ---- */
.recommended-block { padding: 22px; }
.recommended-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
}
.recommended-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.recommended-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.recommended-list a {
  display: grid; gap: 4px; color: var(--ink);
}
.recommended-list a:hover { color: var(--brand-ink); text-decoration: none; }
.recommended-list .kicker {
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
  font-weight: 600;
}
.recommended-list .title { font-weight: 500; line-height: 1.35; }
.recommended-list a:hover .title { color: var(--brand); }

/* ---- Link grid (for cross-link discovery sections) ---- */
.link-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.link-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--ink);
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.link-tile:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
  text-decoration: none;
}

/* ---- Pagination ---- */
.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin: 36px 0 8px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---- Footer ---- */
.site-footer {
  background: #11332a;
  color: #cfe1d8;
  padding: 64px 0 28px; margin-top: 72px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer .cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
}
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h5 {
  font-family: var(--sans); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .09em; color: #97b8ab; margin: 0 0 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.site-footer .legal {
  border-top: 1px solid #2a4a3f; margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #87a89a; font-size: .85rem;
}

/* ---- AdSense slots ---- */
.adsense-slot { display:none; }

/* ---- Misc ---- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.search-bar {
  display: flex; gap: 8px; background: #fff; border: 1px solid var(--line);
  padding: 6px; border-radius: 999px; max-width: 580px; margin-top: 18px;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1; border: 0; outline: none; padding: 11px 16px;
  font-size: .95rem; background: transparent; color: var(--ink);
  font-family: var(--sans);
}
.search-bar select {
  border: 0; outline: none; background: var(--paper); border-radius: 999px;
  padding: 0 14px; color: var(--ink-soft); font-family: var(--sans);
}

.empty-state {
  text-align: center; padding: 60px 24px;
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.callout {
  background: var(--brand-soft); color: var(--brand-ink);
  padding: 24px 26px; border-radius: var(--radius);
  border-left: 4px solid var(--brand);
}
.callout a { color: var(--brand-ink); text-decoration: underline; }
