/* =========================================================
   Legal Core Careers - WordPress theme stylesheet
   ========================================================= */

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(220 20% 14%);
  --card: hsl(0 0% 100%);
  --secondary: hsl(40 10% 96%);
  --muted-foreground: hsl(220 10% 45%);
  --accent: hsl(38 92% 50%);
  --accent-foreground: hsl(220 20% 14%);
  --destructive: hsl(0 84% 60%);
  --border: hsl(220 13% 90%);
  --input: hsl(220 13% 90%);
  --ring: hsl(38 92% 50%);
  --navy: hsl(220 40% 18%);
  --charcoal: hsl(220 20% 14%);
  --gradient-hero: linear-gradient(135deg, hsl(220 40% 18%) 0%, hsl(220 20% 14%) 100%);
  --shadow-soft: 0 4px 20px -4px hsla(220, 20%, 14%, 0.1);
  --shadow-medium: 0 8px 30px -6px hsla(220, 20%, 14%, 0.15);
  --shadow-gold: 0 8px 30px -6px hsla(38, 92%, 50%, 0.3);
  --radius: 0.375rem;
  --font-heading: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 400;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.container-narrow { max-width: 64rem; }
.container-form { max-width: 48rem; }
.text-center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; height: 2.75rem; font-size: 1rem; }
.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
}
.logo-link { display: inline-flex; align-items: center; }
.logo { height: 5rem; width: auto; }
@media (min-width: 640px) { .logo { height: 6rem; } }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
}
.hero-inner {
  max-width: 64rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}
@media (min-width: 640px) { .hero-inner { padding-top: 8rem; padding-bottom: 8rem; } }
@media (min-width: 1024px) { .hero-inner { padding-top: 10rem; padding-bottom: 10rem; } }

.eyebrow {
  font-family: var(--font-heading);
  letter-spacing: 0.3em;
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--accent); margin-bottom: 0; }
.hero-title { font-size: 2.25rem; line-height: 1.15; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
.hero-cta { margin-top: 2.5rem; display: flex; justify-content: center; }

.section { padding-block: 5rem; }
@media (min-width: 640px) { .section { padding-block: 7rem; } }
.section-bg-background { background: var(--background); }
.section-bg-secondary { background: var(--secondary); }
.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  color: var(--foreground);
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.prose {
  margin: 1.5rem auto 0;
  max-width: 48rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.muted { color: var(--muted-foreground); margin-top: 1rem; line-height: 1.6; }

.about-video {
  margin: 3rem auto 0;
  max-width: 52rem;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--charcoal);
  box-shadow: var(--shadow-medium);
}
.about-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--charcoal);
}

.cards-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  background: hsla(38, 92%, 50%, 0.1);
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.25rem; height: 1.25rem; }
.card-title {
  font-size: 1.25rem;
  color: var(--foreground);
  letter-spacing: 0.05em;
}
.card-body {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.why-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.why-list { display: flex; flex-direction: column; gap: 0.75rem; }
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  color: var(--foreground);
}
.check-icon { color: var(--accent); flex-shrink: 0; margin-top: 0.125rem; }
.check-icon svg { width: 1.25rem; height: 1.25rem; }

.form-card {
  margin-top: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select {
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsla(38, 92%, 50%, 0.25);
}
.field-error {
  min-height: 1rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--destructive);
}
.field-error:empty { display: none; }
.file-drop {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: hsla(40, 10%, 96%, 0.5);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.file-drop:hover { border-color: var(--accent); }
.file-icon { color: var(--accent); display: inline-flex; }
.file-icon svg { width: 1.25rem; height: 1.25rem; }
.file-label { flex: 1; font-size: 0.875rem; color: var(--muted-foreground); }
.file-label.has-file { color: var(--foreground); }
.consent-box {
  border: 1px solid var(--border);
  background: hsla(40, 10%, 96%, 0.6);
  border-radius: var(--radius);
  padding: 1rem;
}
.consent-notice { display: flex; gap: 0.75rem; }
.shield-icon { color: var(--accent); flex-shrink: 0; margin-top: 0.125rem; display: inline-flex; }
.shield-icon svg { width: 1.25rem; height: 1.25rem; }
.consent-notice p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.consent-notice strong { color: var(--foreground); }
.consent-check {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--foreground);
}
.consent-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}
.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label::after { content: "..."; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { background: var(--charcoal); color: hsla(0, 0%, 100%, 0.7); }
.footer-inner {
  padding-block: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }
.social-link {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsla(0, 0%, 100%, 0.15);
  border-radius: var(--radius);
  color: hsla(0, 0%, 100%, 0.7);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }
.social-link svg { width: 1.25rem; height: 1.25rem; }
.copyright { font-size: 0.75rem; }

.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 18rem;
  max-width: 24rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
  font-size: 0.875rem;
  animation: toast-in 0.2s ease-out;
}
.toast-success { border-left: 4px solid hsl(140 60% 45%); }
.toast-error { border-left: 4px solid var(--destructive); }
.toast-title { font-weight: 600; color: var(--foreground); }
.toast-desc { margin-top: 0.25rem; color: var(--muted-foreground); font-size: 0.8125rem; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
