/* Embarking Crew — nautical theme */

:root {
  --navy-deep: #061c33;
  --navy: #0d2b45;
  --navy-light: #16405f;
  --teal: #1b8a8a;
  --teal-light: #2ba5a5;
  --gold: #c9a227;
  --gold-light: #e0bc4a;
  --off-white: #f6f5f0;
  --white: #ffffff;
  --ink: #142433;
  --muted: #5c7285;
  --border: #dde4e8;
  --shadow: 0 10px 30px rgba(6, 28, 51, 0.12);
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

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

/* ---------- Nav ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e4e9ee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-deep);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.brand .anchor-icon {
  color: var(--gold);
  font-size: 1.4rem;
}

.brand-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--muted);
  display: block;
  font-weight: 500;
  text-transform: uppercase;
}

/* Hidden by default and revealed by initNav() in supabase-client.js once it knows
   whether this is a signed-out visitor, crew account, or employer account — this is
   what stops the wrong-role links (e.g. employer-only options on a crew account) from
   flashing on screen for a moment on every page load before JS has a chance to filter them. */
.nav-links, .nav-actions {
  visibility: hidden;
}

/* Center zone: all the wayfinding links, evenly spaced and centered between
   the logo (left) and the log in/sign up actions (right). */
.nav-links {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  align-items: center;
  min-width: 0;
}

.nav-links a {
  color: #5b6b78;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--navy-deep);
}

/* Right zone: pinned to the far corner, separate from the center links. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-actions a:not(.nav-cta) {
  color: #5b6b78;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-actions a:not(.nav-cta):hover,
.nav-actions a:not(.nav-cta).active {
  color: var(--navy-deep);
}

.nav-cta {
  background: var(--navy-deep);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--navy);
}

/* Avatar + name pill shown instead of Log In/Sign Up once a user is signed in.
   Sits inside a .nav-dropdown so hovering reveals role-specific extra links
   (My Applicants, Company Profile, Post a Job, etc.) without cluttering the main bar. */
.nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: #f1f4f6;
  color: var(--navy-deep) !important;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-avatar-btn:hover {
  background: #e4e9ee;
}

.nav-avatar-btn img,
.nav-avatar-btn .nav-avatar-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid #e4e9ee;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(10,30,50,0.14);
  min-width: 200px;
  padding: 6px;
  margin-top: 10px;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--navy-deep) !important;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f1f4f6;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--teal-light);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; text-align: center; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--teal) 140%);
  color: var(--white);
  padding: 80px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 60px;
  background: var(--off-white);
  clip-path: polygon(0 60%, 5% 55%, 10% 60%, 15% 50%, 20% 58%, 25% 48%, 30% 58%, 35% 50%, 40% 60%, 45% 52%, 50% 62%, 55% 50%, 60% 60%, 65% 48%, 70% 58%, 75% 50%, 80% 60%, 85% 52%, 90% 60%, 95% 50%, 100% 58%, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, rgba(6,28,51,0.88) 0%, rgba(11,49,84,0.82) 55%, rgba(19,110,120,0.75) 140%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #cfe0ea;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.search-box {
  background: var(--white);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow);
  max-width: 640px;
  flex-wrap: wrap;
}

.search-box input, .search-box select {
  border: none;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 6px;
  outline: none;
  background: var(--off-white);
}

.search-box input[type="text"] { flex: 2; min-width: 180px; }
.search-box select { flex: 1; min-width: 140px; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold-light);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: #b7cbd8;
}

/* ---------- Sections ---------- */

section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 46px;
}

.section-head .eyebrow { color: var(--teal); }

.section-head h2 {
  font-size: 2rem;
  color: var(--navy-deep);
  margin: 0 0 12px;
}

.section-head p { color: var(--muted); }

/* ---------- Category cards ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal-light);
}

.cat-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.cat-card h4 { margin: 6px 0 4px; color: var(--navy-deep); }
.cat-card span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Job cards ---------- */

.job-grid {
  display: grid;
  gap: 18px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.job-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal-light);
}

.job-card-main { flex: 1; min-width: 240px; }

.job-tag {
  display: inline-block;
  background: rgba(27, 138, 138, 0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.job-tag.gold {
  background: rgba(201, 162, 39, 0.15);
  color: #96741b;
}

.job-card h3 {
  margin: 0 0 6px;
  color: var(--navy-deep);
  font-size: 1.15rem;
}

.job-meta {
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.job-meta span { display: inline-flex; align-items: center; gap: 5px; }

.job-card-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.job-salary {
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Two-column layouts (jobs listing, job detail) ---------- */

.layout-2col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 100px;
}

.filter-panel h4 {
  margin: 0 0 6px;
  color: var(--navy-deep);
  font-size: 0.95rem;
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
  margin: 8px 0;
  cursor: pointer;
}

.filter-group select, .filter-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--off-white);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-bar select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
}

/* ---------- Job detail ---------- */

.job-detail-header {
  background: var(--navy-deep);
  color: var(--white);
  padding: 46px 0 60px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #9db6c6;
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--gold-light); }

.job-detail-header h1 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.company-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 18px;
}

.job-detail-body {
  margin-top: -40px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 24px;
}

.detail-card h3 {
  color: var(--navy-deep);
  margin-top: 0;
}

.detail-card ul { padding-left: 20px; color: var(--ink); }
.detail-card li { margin-bottom: 8px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  margin-top: 0;
  color: var(--navy-deep);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--muted); }
.info-row span:last-child { font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- Forms (post a job) ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 780px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-deep);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--off-white);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius);
  margin: 0 24px;
}

.cta-band h2 { margin-top: 0; }
.cta-band p { color: #d9ecec; max-width: 500px; margin: 0 auto 26px; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #a9c0cf;
  padding: 50px 0 26px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: #a9c0cf;
}
.footer-grid a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */

.badge-count {
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

/* ---------- Pricing tiers ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 380px));
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  color: var(--navy-deep);
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.pricing-card .tagline {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-price {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  flex: 1;
}

.pricing-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  gap: 8px;
}

.pricing-card li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}

.pricing-card li.muted {
  color: var(--muted);
}

.pricing-card li.muted::before {
  content: "–";
  color: var(--border);
}

/* ---------- Legal pages: EN/ES toggle ---------- */

.lang-es { display: none; }
html.lang-es .lang-es { display: block; }
html.lang-es .lang-en { display: none; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 14px;
}

.lang-toggle button {
  background: transparent;
  color: #cfe0ea;
  border: none;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--gold);
  color: var(--navy-deep);
}

.legal-doc {
  max-width: 820px;
  margin: 0 auto;
}

.legal-doc h2 {
  color: var(--navy-deep);
  margin-top: 34px;
  font-size: 1.25rem;
}

.legal-doc h2:first-child { margin-top: 0; }

.legal-doc p, .legal-doc li {
  color: var(--ink);
  font-size: 0.95rem;
}

.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }

.legal-doc .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 30px;
}

.legal-doc .placeholder {
  background: rgba(201, 162, 39, 0.15);
  color: #7a5f14;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.legal-notice-box {
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: #6b5313;
  margin-bottom: 30px;
}

/* ---------- Cookie consent banner ---------- */

#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-deep);
  color: #cfe0ea;
  padding: 20px 24px;
  z-index: 999;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

#cookie-consent-banner p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 640px;
  flex: 1;
  min-width: 240px;
}

#cookie-consent-banner a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
}

#cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cookie-consent-banner button {
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

#cookie-consent-banner .cookie-accept {
  background: var(--gold);
  color: var(--navy-deep);
}

#cookie-consent-banner .cookie-reject {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

#cookie-consent-banner .cookie-customize {
  background: transparent;
  color: #cfe0ea;
  text-decoration: underline;
  padding: 10px 4px;
}

/* ---------- Mobile nav (hamburger) ---------- */

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy-deep);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.nav-hamburger:hover { background: #f1f4f6; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }

  .layout-2col { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }

  .navbar { padding: 14px 20px; gap: 10px; flex-wrap: wrap; }
  .container { padding: 0 18px; }

  .nav-hamburger { display: block; order: 2; }
  .nav-actions { order: 3; }

  /* Collapsed by default; JS toggles .mobile-open via toggleMobileNav() in
     supabase-client.js. Overrides the always-on desktop `display:flex` above. */
  .nav-links {
    order: 4;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-top: 1px solid var(--border);
    margin: 14px -20px 0;
    padding: 10px 20px 6px;
  }

  .nav-links.mobile-open { display: flex; }

  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .nav-links a:last-child { border-bottom: none; }

  .hero-stats { flex-wrap: wrap; gap: 22px 32px; }

  .cta-band { margin: 0 18px; padding: 44px 20px; }

  table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .form-card { padding: 26px 20px; }
  .detail-card { padding: 22px 18px; }
  .hero { padding: 56px 0 90px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p.lead { font-size: 1rem; }
  section { padding: 46px 0; }
  .job-card { padding: 18px; }
  .job-card-side { align-items: flex-start; text-align: left; }
  .pricing-card { padding: 26px 20px; }
}
