/*
Theme Name: Archicareers
Theme URI: https://archicareers.in
Author: Archicareers
Description: A niche job board theme for architecture professionals in India.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: archicareers
Tags: custom, job-board, architecture
*/

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* Color */
  --tc:          #E05C2A;
  --tc-hover:    #C94E21;
  --tc-soft:     #FFF0EA;
  --tc-border:   #F5D0BC;
  --ink:         #0D0D0D;
  --ink-2:       #2D2D2D;
  --ink-3:       #5A5A5A;
  --ink-4:       #8A8A8A;
  --border:      #EBEBEB;
  --bg:          #FFFFFF;
  --bg-2:        #F7F7F7;
  --bg-dark:     #0D0D0D;
  --bg-dark-2:   #1A1A1A;
  --bg-dark-3:   #252525;

  /* Shadow */
  --shadow-s:    0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-m:    0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-l:    0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl:   0 16px 40px rgba(0, 0, 0, 0.10);
  --shadow-tc:   0 4px 16px rgba(224, 92, 42, 0.22);

  /* Border Radius */
  --r-xs:   4px;
  --r-s:    8px;
  --r-m:    12px;
  --r-l:    18px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Typography */
  --font-sans:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif:  'Instrument Serif', Georgia, serif;

  /* Font Scale */
  --text-xs:    0.6875rem;   /* 11px */
  --text-sm:    0.8125rem;   /* 13px */
  --text-base:  0.9375rem;   /* 15px */
  --text-md:    1.0625rem;   /* 17px */
  --text-lg:    1.25rem;     /* 20px */
  --text-xl:    1.5rem;      /* 24px */
  --text-2xl:   2rem;        /* 32px */
  --text-3xl:   2.5rem;      /* 40px */
  --text-4xl:   3.25rem;     /* 52px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container:       1280px;
  --container-text:  720px;
  --header-h:        68px;

  /* Transitions */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ─────────────────────────────────────────
   GLOBAL RESET
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

p {
  margin-bottom: var(--space-4);
  color: var(--ink-3);
}

p:last-child {
  margin-bottom: 0;
}

strong { font-weight: 600; color: var(--ink-2); }
em     { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--tc);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Selection */
::selection {
  background: var(--tc-soft);
  color: var(--ink);
}

/* ─────────────────────────────────────────
   BASE TYPOGRAPHY
───────────────────────────────────────── */
h1 { font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-xl), 4vw, var(--text-3xl)); }
h3 { font-size: clamp(var(--text-lg), 3vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

.display {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.overline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc);
}

.caption {
  font-size: var(--text-sm);
  color: var(--ink-4);
  line-height: 1.5;
}

.text-balance { text-wrap: balance; }

/* Prose */
.prose { max-width: var(--container-text); }
.prose h2, .prose h3 { margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose p + p { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-2); color: var(--ink-3); }
.prose a { color: var(--tc); text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--tc);
  padding: var(--space-4) var(--space-6);
  background: var(--tc-soft);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--ink-2);
}

/* ─────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
}

.container-sm {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-text {
  max-width: var(--container-text);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* Flex utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Spacing utilities */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn:focus-visible {
  outline-offset: 3px;
  outline: 2px solid var(--tc);
}

.btn-primary {
  background: var(--tc);
  color: #fff;
  border-color: var(--tc);
  box-shadow: var(--shadow-tc);
}
.btn-primary:hover {
  background: var(--tc-hover);
  border-color: var(--tc-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 92, 42, 0.30);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--ink-4);
}

.btn-outline-tc {
  background: transparent;
  color: var(--tc);
  border-color: var(--tc);
}
.btn-outline-tc:hover {
  background: var(--tc-soft);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover {
  background: var(--ink-2);
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-m);
}

/* ─────────────────────────────────────────
   BADGES / PILLS
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--r-pill);
  line-height: 1;
  white-space: nowrap;
}

.badge-tc      { background: var(--tc-soft); color: var(--tc); }
.badge-neutral { background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--border); }
.badge-dark    { background: var(--ink); color: #fff; }
.badge-green   { background: #EDFAF2; color: #1A8C4E; }
.badge-blue    { background: #EBF3FF; color: #1A5DB0; }

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-6);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-l);
  border-color: transparent;
  transform: translateY(-2px);
}

.card-surface {
  background: var(--bg-2);
  border-color: transparent;
}

.card-flat {
  border-radius: var(--r-m);
  padding: var(--space-4) var(--space-5);
}

/* ─────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.6875rem 1rem;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-s);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.input::placeholder,
.textarea::placeholder { color: var(--ink-4); }

.input:hover, .select:hover, .textarea:hover {
  border-color: var(--ink-4);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--tc);
  box-shadow: 0 0 0 3px rgba(224, 92, 42, 0.12);
  outline: none;
}

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

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field-error .input,
.field-error .select,
.field-error .textarea {
  border-color: #E04242;
}
.field-error-msg {
  font-size: var(--text-xs);
  color: #E04242;
}

/* ─────────────────────────────────────────
   DIVIDERS / SECTIONS
───────────────────────────────────────── */
.section {
  padding-block: var(--space-20);
}

.section-sm {
  padding-block: var(--space-12);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-m);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text span {
  color: var(--tc);
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.primary-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-s);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.primary-nav a.active,
.primary-nav a[aria-current="page"] {
  color: var(--tc);
  background: var(--tc-soft);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-s);
  transition: background 0.15s;
  padding: 0;
}

.hamburger:hover { background: var(--bg-2); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  flex-shrink: 0;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  background: var(--bg-2);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-nav-close:hover { background: var(--border); }

.mobile-nav-links {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-m);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.mobile-nav-links a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.mobile-nav-links a.active {
  background: var(--tc-soft);
  color: var(--tc);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-3) 0;
}

.mobile-nav-footer {
  padding: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Page offset for fixed header */
.header-offset {
  padding-top: var(--header-h);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-main {
  padding: var(--space-16) 0 var(--space-12);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand .site-logo {
  margin-bottom: var(--space-5);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  text-decoration: none;
}

.social-link:hover {
  background: var(--tc);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  line-height: 1;
}

.footer-links a:hover {
  color: #fff;
  padding-left: var(--space-1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
}

.footer-handle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.40);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-handle:hover {
  color: var(--tc);
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-8);
    align-items: start;
  }
  .footer-brand > *:first-child { grid-row: 1 / 3; }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding-top: var(--space-12);
  }
  .footer-brand {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .footer-brand > *:first-child { grid-row: auto; }
  .footer-desc { max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* Header responsive */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 400px) {
  .header-actions .btn-primary {
    padding: 0.5rem 0.875rem;
    font-size: var(--text-xs);
  }
}

/* ─────────────────────────────────────────
   PAGE CONTENT AREA
───────────────────────────────────────── */
.page-content {
  padding-block: var(--space-16);
}

.page-title {
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-4);
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: var(--space-8);
}

/* Sidebar layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Widget area */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-6);
}

.widget-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   404
───────────────────────────────────────── */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  gap: var(--space-6);
}

.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* ─────────────────────────────────────────
   WORDPRESS CORE CLASSES
───────────────────────────────────────── */
.alignleft  { float: left;  margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-6);  margin-bottom: var(--space-4); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--space-4); }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--ink-4); margin-top: var(--space-2); }
.sticky {}
.bypostauthor {}
.screen-reader-text { @extend .sr-only; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.gallery-item img { width: 100%; object-fit: cover; border-radius: var(--r-s); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-s);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--ink-3);
  transition: all 0.15s;
}

.pagination a:hover {
  border-color: var(--tc);
  color: var(--tc);
  background: var(--tc-soft);
}

.pagination .current {
  background: var(--tc);
  border-color: var(--tc);
  color: #fff;
}

/* ─────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────── */
.text-tc     { color: var(--tc); }
.text-ink    { color: var(--ink); }
.text-ink-3  { color: var(--ink-3); }
.text-ink-4  { color: var(--ink-4); }
.text-white  { color: #fff; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.bg-surface  { background: var(--bg-2); }
.bg-tc-soft  { background: var(--tc-soft); }
.bg-dark     { background: var(--bg-dark); }

.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-serif   { font-family: var(--font-serif); font-style: italic; }

.rounded-s   { border-radius: var(--r-s); }
.rounded-m   { border-radius: var(--r-m); }
.rounded-l   { border-radius: var(--r-l); }
.rounded-xl  { border-radius: var(--r-xl); }
.rounded-pill { border-radius: var(--r-pill); }

.w-full      { width: 100%; }
.block       { display: block; }
.relative    { position: relative; }
.overflow-hidden { overflow: hidden; }

.divide-y > * + * {
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   SKELETON LOADER
───────────────────────────────────────── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.skeleton {
  background: var(--bg-2);
  border-radius: var(--r-s);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { animation: fade-up 0.4s var(--ease) both; }
.animate-fade-in { animation: fade-in 0.3s ease both; }

/* ─────────────────────────────────────────
   PRINT
───────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hamburger, .mobile-nav { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { text-decoration: underline; }
}

/* ─────────────────────────────────────────
   ACCESSIBILITY — FOCUS VISIBLE
   WCAG 2.1 AA: 3:1 contrast on focus ring,
   visible on both light and dark backgrounds.
───────────────────────────────────────── */

/* Remove default outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Universal focus ring */
:focus-visible {
  outline: 2px solid var(--tc);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Buttons */
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tc);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--tc-soft);
}

/* Dark backgrounds — use white ring */
.site-header .btn:focus-visible,
.mobile-nav a:focus-visible,
.site-footer a:focus-visible,
.pricing-cta-section a:focus-visible,
.pj-plan-chip-change:focus-visible,
.pj-btn-pay:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Links */
a:focus-visible {
  outline: 2px solid var(--tc);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Form inputs */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--tc);
  outline-offset: 0;
  box-shadow: 0 0 0 3px var(--tc-soft);
}

/* Checkboxes and radios */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--tc);
  outline-offset: 2px;
}

/* Pill options and tag chips */
.pj-pill-option:focus-visible,
.pj-suggestion-chip:focus-visible,
.filter-pill:focus-visible,
.faq-trigger:focus-visible,
.arch-btn:focus-visible {
  outline: 2px solid var(--tc);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--tc-soft);
}

/* ─────────────────────────────────────────
   ACCESSIBILITY — TOUCH TARGETS (44×44px min)
   WCAG 2.1 Success Criterion 2.5.5
───────────────────────────────────────── */
.btn,
button,
.nav-link,
.filter-pill,
.filter-checkbox-item,
.filter-radio-item,
.pj-pill-option,
.pj-tag-remove,
.pj-plan-chip-change,
.load-more-btn,
.filter-toggle-btn,
.hamburger,
.mobile-nav-close,
.arch-btn,
.faq-trigger,
.pricing-card-cta,
.cta-btn-primary,
.cta-btn-ghost {
  min-height: 44px;
}

/* Pill buttons that are naturally shorter — pad vertically */
.filter-pill,
.pj-pill-option,
.pj-suggestion-chip {
  padding-top: max(8px, calc((44px - 1.4em) / 2));
  padding-bottom: max(8px, calc((44px - 1.4em) / 2));
}

/* Small icon-only buttons: ensure at least 44×44 tap area */
.pj-tag-remove,
.filter-search-clear,
.drawer-close-elem,
.pj-logo-remove {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────────────
   ACCESSIBILITY — SCREEN-READER UTILITIES
───────────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ─────────────────────────────────────────
   ACCESSIBILITY — SKIP LINK
───────────────────────────────────────── */
.skip-link,
a.btn.sr-only {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--tc);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--r-s) 0;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus,
a.btn.sr-only:focus {
  top: 0;
  clip: auto;
  width: auto;
  height: auto;
  clip-path: none;
}

/* ─────────────────────────────────────────
   MOBILE — BASE BREAKPOINT IMPROVEMENTS
   320px → 414px → 768px → 1024px → 1280px
───────────────────────────────────────── */

/* 320–374px: very narrow phones */
@media (max-width: 374px) {
  .container { padding: 0 12px; }
  .header-inner { padding: 0 12px; }
  .site-logo .logo-text { font-size: 15px; }
}

/* 375–413px: standard small phones */
@media (max-width: 413px) {
  .site-header { height: 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}

/* 414–767px: large phones */
@media (max-width: 767px) {
  /* Ensure header buttons are tappable */
  .header-actions .btn { min-height: 44px; padding: 0 14px; }
  /* Card grids: 1 column */
  .job-cards-grid { grid-template-columns: 1fr !important; }
}

/* ─────────────────────────────────────────
   MOBILE — IMAGE LAZY LOADING BASELINE
───────────────────────────────────────── */
img {
  loading: lazy; /* declarative hint — actual loading="lazy" is set per-element */
}

/* ─────────────────────────────────────────
   WCAG COLOR CONTRAST IMPROVEMENTS
   All text must meet 4.5:1 on white bg.
   var(--ink-4) #8A8A8A on #fff = 3.5:1 — too low.
   Use #767676 (#767676 on white = 4.54:1 — passes AA).
───────────────────────────────────────── */
.pj-field-hint,
.pj-char-counter,
.arch-field-hint,
.archive-page-sub,
.hero-sub,
.footer-desc,
.pricing-hero-sub,
.pricing-card-tagline {
  color: #767676; /* WCAG AA compliant: 4.54:1 on white */
}

/* Ensure badge/label text on terracotta bg passes contrast */
.pj-plan-badge,
.pricing-ribbon,
.arch-badge.standard { color: #fff; } /* white on #1D4ED8 = 8.6:1 ✓ */
