/*
Theme Name: Human Reserve
Theme URI: https://humanreserve.tech
Author: Human Reserve
Author URI: https://humanreserve.tech
Description: Custom WordPress theme for Human Reserve — Talent Solutions & Outsourcing Partner
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: human-reserve
*/

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors — from Human Reserve logo */
  --orange:      #F47920;
  --orange-dark: #D9640A;
  --orange-light:#FFF0E5;
  --orange-mid:  #FAE2CC;
  --gray-dark:   #4D4D4D;
  --gray-mid:    #6B6B6B;
  --gray-light:  #F5F5F5;
  --gray-border: #E0E0E0;
  --gray-border2:#C8C8C8;
  --white:       #FFFFFF;
  --paper:       #FAFAFA;
  --ink:         #2A2A2A;

  /* Typography */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────── */
h1 { font-family: var(--serif); font-size: clamp(2.75rem, 5.5vw, 5rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
p  { color: var(--gray-mid); line-height: 1.75; }

/* ─── Layout ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.section    { padding: 7rem 0; }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.875rem; border-radius: 100px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.24s var(--ease); white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 2px 14px rgba(244,121,32,0.3);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(244,121,32,0.42);
}
.btn-outline {
  background: transparent; color: var(--gray-dark);
  border: 1.5px solid var(--gray-border2);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}
.btn-white {
  background: #fff; color: var(--ink);
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.btn svg { flex-shrink: 0; }

/* ─── Label / Tag ────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--orange);
  margin-bottom: 1.25rem;
}
.label-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.125rem 0;
  transition: all 0.3s var(--ease);
}
nav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-border);
  padding: 0.75rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img,
.nav-logo .custom-logo,
.custom-logo-link img,
.custom-logo { height: 44px !important; width: auto !important; display: block !important; max-width: none !important; }
.custom-logo-link { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a { color: var(--gray-mid); text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-email { font-size: 0.875rem; font-weight: 500; color: var(--gray-mid); text-decoration: none; transition: color 0.2s; }
.nav-email:hover { color: var(--orange); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-dark); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ─── HERO ─────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; overflow: hidden;
  padding-top: 5rem;
}
.hero-left { padding: 4rem 0; position: relative; z-index: 2; }
.hero-right { position: relative; height: 100%; display: flex; align-items: stretch; }

.hero-image-wrap {
  position: absolute; top: 0; right: -2.5rem; bottom: 0;
  width: calc(100% + 2.5rem); overflow: hidden;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-image-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 32%),
              linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, transparent 50%);
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange-light); border: 1px solid var(--orange-mid);
  border-radius: 100px; padding: 0.35rem 0.875rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--orange-dark); margin-bottom: 2rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.blink { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero-sub { font-size: 1.125rem; max-width: 480px; margin-bottom: 2.75rem; line-height: 1.72; }
.hero-btns { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--gray-border); padding-top: 2.25rem; }
.stat { flex: 1; padding-right: 2.25rem; border-right: 1px solid var(--gray-border); margin-right: 2.25rem; }
.stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-num { font-family: var(--serif); font-size: 2.5rem; color: var(--orange); line-height: 1; }
.stat-txt { font-size: 0.8125rem; color: var(--gray-mid); margin-top: 0.3rem; }

.hero-float {
  position: absolute; bottom: 2.5rem; right: 2.5rem;
  background: rgba(255,255,255,0.93); backdrop-filter: blur(16px);
  border: 1px solid var(--gray-border); border-radius: 1rem;
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  z-index: 10; box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.float-avatar-row { display: flex; margin-right: 0.25rem; }
.float-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff; overflow: hidden;
  margin-right: -10px; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.float-avatar:nth-child(1) { background: var(--orange-light); color: var(--orange-dark); }
.float-avatar:nth-child(2) { background: #e8f5e9; color: #2e7d32; }
.float-avatar:nth-child(3) { background: #fff3e0; color: var(--orange-dark); }
.float-avatar:last-child { margin-right: 0; }
.float-text strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.float-text span { font-size: 0.75rem; color: var(--gray-mid); }

/* ─── TRUST STRIP ─────────────────────────────── */
.trust-strip { background: var(--gray-dark); padding: 1.25rem 0; overflow: hidden; }
.trust-track { display: flex; gap: 3.5rem; align-items: center; animation: marquee 28s linear infinite; width: max-content; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.55); white-space: nowrap; flex-shrink: 0; }
.trust-item svg { color: var(--orange); flex-shrink: 0; }
.trust-sep { color: rgba(255,255,255,0.18); font-size: 1.25rem; }

/* ─── SERVICES ─────────────────────────────────── */
.services-section { background: var(--gray-light); }
.services-top { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.services-top h2 { margin: 0; }
.services-top-right p { max-width: 380px; margin-bottom: 1.5rem; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.svc-card {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 1.25rem; padding: 2rem;
  transition: all 0.3s var(--ease); cursor: default;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange-light) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--orange); box-shadow: 0 16px 48px rgba(244,121,32,0.12); }
.svc-card:hover::before { opacity: 1; }

.svc-num {
  font-family: var(--serif); font-size: 3rem; font-weight: 400;
  color: var(--gray-border2); line-height: 1; margin-bottom: 1.5rem;
  transition: color 0.3s; position: relative;
}
.svc-num::after {
  content: attr(data-n); position: absolute; top: 0; left: 0;
  font-size: 0.75rem; font-weight: 700; color: var(--orange);
  letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--sans);
}
.svc-card:hover .svc-num { color: var(--orange-mid); }
.svc-card h3 { margin-bottom: 0.75rem; }
.svc-card p { font-size: 0.9rem; line-height: 1.7; }
.svc-tag { display: inline-block; margin-top: 1.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); }
.svc-tag::after { content: ' →'; }

/* ─── ABOUT ──────────────────────────────────────── */
.about-section { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 600px; }
.about-visual { position: relative; background: var(--orange-light); border-radius: 0 2rem 2rem 0; overflow: hidden; min-height: 560px; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.about-badge {
  position: absolute; top: 2rem; left: 2rem;
  background: var(--orange); color: #fff;
  border-radius: 0.875rem; padding: 1rem 1.25rem;
  font-size: 0.875rem; line-height: 1.4;
}
.about-badge strong { display: block; font-size: 1.5rem; font-family: var(--serif); font-weight: 400; }

.about-content { padding: 5rem 4.5rem; display: flex; flex-direction: column; justify-content: center; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content > p { margin-bottom: 1.125rem; }
.about-content > p:last-of-type { margin-bottom: 2rem; }

.feature-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.75rem 0 2.5rem; list-style: none; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-check {
  width: 20px; height: 20px; min-width: 20px; background: var(--orange-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 0.2rem;
}
.feature-check svg { stroke: var(--orange); }
.feature-item p { margin: 0; font-size: 0.9375rem; color: var(--gray-dark); }

/* ─── PROCESS ─────────────────────────────────────── */
.process-section { background: var(--gray-dark); }
.process-section .label { color: rgba(255,255,255,0.4); }
.process-section h2 { color: #fff; }
.process-header { text-align: center; margin-bottom: 4rem; }
.section-intro { color: rgba(255,255,255,0.5); max-width: 480px; margin: 1rem auto 0; }

.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 2rem; left: 2rem; right: 2rem; height: 1px;
  background: linear-gradient(to right, transparent, rgba(244,121,32,0.25) 20%, rgba(244,121,32,0.25) 80%, transparent);
}
.step {
  padding: 2.5rem 2rem; position: relative;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(244,121,32,0.06); }

.step-num {
  font-family: var(--serif); font-size: 4rem; font-weight: 400;
  color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: 1.5rem; position: relative;
}
.step-num::after {
  content: attr(data-n); position: absolute; top: 0; left: 0;
  font-size: 0.75rem; font-weight: 700; color: var(--orange);
  letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--sans);
}
.step h3 { color: #fff; margin-bottom: 0.75rem; }
.step p { color: rgba(255,255,255,0.45); font-size: 0.9rem; }

/* ─── TESTIMONIAL ─────────────────────────────────── */
.testimonial-section { background: var(--gray-light); }
.testimonial-wrap { max-width: 780px; margin: 0 auto; text-align: center; }
.quote-icon {
  width: 48px; height: 48px; background: var(--orange); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem; color: #fff; font-size: 1.5rem;
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-text {
  font-family: var(--serif); font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 400; color: var(--ink); line-height: 1.5; margin-bottom: 2.5rem;
}
.stars { display: flex; gap: 0.25rem; justify-content: center; margin-bottom: 1.5rem; }
.star { color: var(--orange); font-size: 1.125rem; }
.t-author-block { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.t-avatar-block {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.0625rem;
}
.t-name { font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.t-role { font-size: 0.8125rem; color: var(--gray-mid); }

/* ─── CTA BAND ─────────────────────────────────────── */
.cta-section { background: var(--orange); padding: 5.5rem 0; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,0.07);
}
.cta-section::after {
  content: ''; position: absolute; bottom: -40%; left: -5%;
  width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.05);
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.125rem; max-width: 500px; margin: 0 auto 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── CONTACT ─────────────────────────────────────── */
.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.contact-left h2 { margin-bottom: 1rem; }
.contact-left > p { margin-bottom: 2.5rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.c-icon { width: 42px; height: 42px; min-width: 42px; background: var(--orange-light); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { stroke: var(--orange); }
.c-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-mid); margin-bottom: 0.2rem; }
.c-val { font-weight: 500; color: var(--ink); font-size: 0.9375rem; }

.contact-form { background: var(--white); border: 1px solid var(--gray-border); border-radius: 1.5rem; padding: 2.75rem; }
.form-title { font-size: 1.375rem; font-family: var(--serif); font-weight: 400; color: var(--ink); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.125rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-mid); margin-bottom: 0.45rem; }
.form-input {
  width: 100%; padding: 0.8rem 1rem; background: var(--paper);
  border: 1.5px solid var(--gray-border); border-radius: 0.625rem;
  font-family: var(--sans); font-size: 0.9375rem; color: var(--ink);
  transition: all 0.2s; outline: none;
}
.form-input::placeholder { color: rgba(107,107,107,0.4); }
.form-input:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(244,121,32,0.1); }
textarea.form-input { resize: vertical; min-height: 110px; }
select.form-input { appearance: none; cursor: pointer; }
.form-submit { width: 100%; justify-content: center; border-radius: 0.75rem; padding: 1rem; font-size: 1rem; margin-top: 0.5rem; }

/* ─── FOOTER ─────────────────────────────────────── */
footer { background: var(--gray-dark); padding: 4.5rem 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem;
}
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img,
.footer-logo .custom-logo,
.footer-logo .custom-logo-link img { height: 42px !important; width: auto !important; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-logo .custom-logo-link { display: flex; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.4); max-width: 260px; line-height: 1.7; }
.footer-social { display: flex; gap: 0.625rem; margin-top: 1.75rem; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); text-decoration: none; transition: all 0.2s; }
.social-btn:hover { background: var(--orange); color: #fff; }
.footer-col h5 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ─── Scroll Animations ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .step:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .step:last-child, .step:nth-last-child(2) { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 6rem; }
  .hero-right { display: none; }
  .hero-left { padding: 3rem 0 4rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { border-radius: 1.5rem; min-height: 340px; }
  .about-content { padding: 3rem 0 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-top { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4.5rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step:nth-child(odd) { border-right: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .nav-links, .nav-email { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat { border-right: none; border-bottom: 1px solid var(--gray-border); margin-right: 0; padding-right: 0; padding-bottom: 1.25rem; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}
