/* ==========================================================================
   HHR Talent — global site styles
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #FAF6F0;
  --surface: #F3E9DF;
  --ink: #2B2B2B;
  --muted: #6E655C;
  --accent: #E0714F;
  --accent-deep: #B3441F;
  --line: #E5D9CC;
  --radius: 20px;
  --radius-pill: 999px;
  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --shadow-soft: 0 8px 30px rgba(43, 43, 43, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.25rem;
  max-width: 65ch;
}

a {
  color: var(--accent-deep);
}

svg {
  max-width: 100%;
}

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header & navigation ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-dot {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s 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);
}

/* Mobile-first: dropdown panel */
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.nav-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  list-style: none;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.25rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav-list li:last-child a {
  border-bottom: 0;
}

.nav-list a:hover {
  color: var(--accent-deep);
}

.nav-list a[aria-current="page"] {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--accent-deep);
  color: #FFFFFF;
  border: 1px solid var(--accent-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.14);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7.5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

.hero-motif {
  display: none;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.card h3 {
  margin-bottom: 0.625rem;
}

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

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Services teaser (linked cards) */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.teaser-item {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.teaser-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(43, 43, 43, 0.09);
}

.teaser-item p {
  color: var(--muted);
}

.teaser-arrow {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-deep);
  font-size: 1.25rem;
  line-height: 1;
}

/* ---------- Decorative divider ---------- */
.divider {
  display: flex;
  justify-content: center;
}

.divider svg {
  display: block;
  width: min(420px, 80%);
  height: auto;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.cta-band p {
  margin-inline: auto;
}

.cta-band .actions {
  justify-content: center;
}

/* ---------- Services page ---------- */
.services {
  max-width: 46rem;
  margin-top: 1rem;
}

.service {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.service:first-child {
  padding-top: 0;
  border-top: 0;
}

.service h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ---------- Contact page ---------- */
.email-card {
  margin-block: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.email-link {
  display: inline-block;
  padding: 0.5rem;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.email-note {
  margin: 1rem auto 0;
  color: var(--muted);
}

/* ---------- Privacy page ---------- */
.updated {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-brand .tagline {
  margin: 0.375rem 0 0;
  color: var(--muted);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Desktop (>= 720px) ---------- */
@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    border-bottom: 0;
    border-radius: var(--radius-pill);
  }

  .hero-inner {
    max-width: 58%;
  }

  .hero-motif {
    display: block;
    position: absolute;
    top: 50%;
    right: 4%;
    z-index: 1;
    width: min(30vw, 340px);
    transform: translateY(-50%);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
