/* PROFESSIONAL THEME */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --bg-body: #ffffff;
  --bg-surface: #f5f7fa;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #1e40af;
  --accent-hover: #0f2a6d;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.05);
  --font-header: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

/* Global resets & typography */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2vw, 1.875rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1.5vw, 1.5rem); font-weight: 500; }
p  { font-size: clamp(0.9375rem, 1.2vw, 1rem); }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Layout helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Site header */
.site-header {
  background: var(--bg-body);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.trust-badges {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.trust-badges span {
  background: var(--bg-surface);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-weight: 500;
}
.main-nav a {
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

/* Mobile menu – checkbox hack */
#menu-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: transform .2s ease;
}
#menu-toggle:checked ~ .main-nav { transform: translateX(0); }
#menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* One-click search */
.one-click-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  max-width: 280px;
}
.one-click-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  flex: 1;
}
.one-click-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background .2s ease;
}
.one-click-search button:hover { background: var(--accent-hover); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Cards */
.job-card,
.partner-link {
  background: var(--bg-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover,
.partner-link:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  border-color: var(--accent);
}

/* Grids */
.offers-grid,
.partners-grid {
  display: grid;
  gap: 1.5rem;
}
.offers-grid { grid-template-columns: repeat(3, 1fr); }
.partners-grid { grid-template-columns: repeat(3, 1fr); }

/* Footer */
.site-footer {
  background: var(--text-main);
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-section ul {
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-section a { color: #d1d5db; }
.footer-section a:hover { color: #fff; }

/* Timeline advice cards */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.375rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}
.timeline-card {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-card::before {
  content: '';
  position: absolute;
  left: -1.125rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-body);
}
.timeline-card .card-inner {
  background: var(--bg-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.timeline-card:hover .card-inner {
  transform: translateY(-2px);
}
.timeline-card .card-front {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-card .card-back {
  display: none;
}
.timeline-card:focus-within .card-front,
.timeline-card:hover .card-front { display: none; }
.timeline-card:focus-within .card-back,
.timeline-card:hover .card-back { display: block; }

/* Accordion FAQ */
details {
  background: var(--bg-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details > *:not(summary) {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Partners show-more – checkbox hack */
.partners-wrapper .partners-hidden { display: none; }
.partners-wrapper .show-more-checkbox { display: none; }
.partners-wrapper .show-more-checkbox:checked ~ .partners-hidden { display: grid; }
.partners-wrapper .show-more-checkbox:checked ~ .show-more-container { display: none; }
.show-more-container {
  text-align: center;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-split { flex-wrap: wrap; }
  .trust-badges { display: none; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    max-width: 280px;
    background: var(--bg-body);
    border-left: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 4rem 1.5rem 1.5rem;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .one-click-search { max-width: 100%; margin-top: 0.75rem; }

  .offers-grid,
  .partners-grid { grid-template-columns: 1fr; }
}