/* ==========================================================================
   Parr Business Law Careers — styles.css
   Token system: 4 colors + 2 neutrals, 6 type sizes, 8px spacing grid,
   2 button styles. AA contrast throughout.
   ========================================================================== */

/* Tokens */
:root {
  /* Colors (sampled from PBL navy logo + warm gold accent) */
  --color-primary: #1a2a4a;
  --color-primary-dark: #0f1a30;
  --color-primary-light: #2c4170;
  --color-accent: #b8893d;
  --color-accent-hover: #9a7331;

  --color-bg: #ffffff;
  --color-bg-soft: #f7f4ee;
  --color-bg-dark: #0f1a30;

  --color-text: #1f2937;
  --color-text-muted: #4b5563;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: #c8cfdc;

  --color-border: #e5e7eb;
  --color-border-strong: #cbd5e1;

  /* Type */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: 0.875rem;   /* 14 */
  --fs-sm: 1rem;       /* 16 */
  --fs-md: 1.125rem;   /* 18 */
  --fs-lg: 1.5rem;     /* 24 */
  --fs-xl: 2rem;       /* 32 */
  --fs-2xl: 3rem;      /* 48 */
  --fs-3xl: 4rem;      /* 64 */

  /* Spacing (8px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 760px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 26, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 26, 48, 0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-primary-light); }
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin: 0 0 var(--sp-3);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 5vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-xl)); margin-bottom: var(--sp-4); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }
strong { font-weight: 600; color: var(--color-primary); }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
.container.narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-7) 0; }
.section-alt { background: var(--color-bg-soft); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--sp-2) var(--sp-3);
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { left: var(--sp-2); }

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
  gap: var(--sp-4);
}
.logo img {
  height: 50px;
  width: auto;
}

.primary-nav ul {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
}
.primary-nav a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease;
}
.primary-nav a:hover { border-bottom-color: var(--color-accent); }
.nav-phone a {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  border-bottom: none;
}
.nav-phone a:hover {
  background: var(--color-primary-light);
  border-bottom: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-inverse);
  color: var(--color-text-inverse);
}
.btn-large {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-md);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  padding: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184, 137, 61, 0.18), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--sp-3);
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.hero-sub {
  font-size: clamp(var(--fs-md), 2.5vw, var(--fs-lg));
  color: var(--color-text-inverse-muted);
  max-width: 640px;
  margin-bottom: var(--sp-5);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-5) 0 var(--sp-6);
  padding: var(--sp-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-meta li { display: flex; flex-direction: column; gap: var(--sp-1); }
.meta-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 600;
}
.meta-value {
  font-size: var(--fs-md);
  color: var(--color-text-inverse);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Sections */
.section-about { padding-top: var(--sp-8); }
.section p { color: var(--color-text); }
.section .container.narrow > p:first-of-type { font-size: var(--fs-md); }

.content-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.content-list li {
  position: relative;
  padding-left: var(--sp-5);
  line-height: 1.65;
}
.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 2px;
  background: var(--color-accent);
}

/* Two-column qualifications */
.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
}
.qual-block { background: var(--color-bg); }

/* Trait list (skills & attributes) */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-5);
}
.trait-grid li {
  padding: var(--sp-4);
  background: var(--color-bg);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.trait-grid strong {
  display: block;
  margin-bottom: var(--sp-1);
  font-family: var(--font-serif);
  font-size: var(--fs-md);
}

/* Take home */
.section-takehome { background: var(--color-bg-soft); }

/* Apply */
.section-apply {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  text-align: center;
}
.apply-card h2 {
  color: var(--color-text-inverse);
}
.apply-card p {
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--sp-4);
}
.apply-card a {
  color: var(--color-accent);
}
.deadline {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--color-text-inverse) !important;
}
.deadline strong { color: var(--color-text-inverse); }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse-muted);
  padding: var(--sp-7) 0 var(--sp-4);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: var(--sp-3);
}
.footer-brand p {
  font-size: var(--fs-xs);
  color: var(--color-text-inverse-muted);
}
.footer-brand a { color: var(--color-accent); text-decoration: none; }
.footer-links h3 {
  color: var(--color-text-inverse);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  color: var(--color-text-inverse-muted);
  text-decoration: none;
  font-size: var(--fs-xs);
}
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
}
.footer-bottom p { margin: 0; color: var(--color-text-inverse-muted); }
.footer-bottom a { color: var(--color-text-inverse-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--color-accent); }
.footer-bottom .sep { margin: 0 var(--sp-2); color: rgba(255, 255, 255, 0.3); }

/* Responsive */
@media (max-width: 900px) {
  .qual-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease;
  }
  .primary-nav.is-open { max-height: 600px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--sp-4);
  }
  .primary-nav li {
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a {
    display: block;
    padding: var(--sp-3) 0;
    border-bottom: 0;
  }
  .nav-phone a {
    text-align: center;
    margin: var(--sp-3) 0;
  }
  .trait-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-6) 0; }
  .hero { padding: var(--sp-7) 0; }
}

@media (max-width: 520px) {
  .hero-meta { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; text-align: center; }
  .hero-cta { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-cta, .section-apply { display: none; }
  body { color: #000; background: #fff; }
  .hero { background: none; color: #000; padding: var(--sp-4) 0; }
  .hero h1, .hero-sub, .meta-value, .meta-label { color: #000; }
  .section-alt { background: #fff; }
  a { color: #000; text-decoration: underline; }
}
