/* ============================================================
   HAMDAN & HUZ (H&H) — Manpower Supply & Online Document Services
   Art direction: Saudi corporate warmth — deep emerald green,
   warm sand surfaces, restrained gold accent.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* 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;

  /* Palette — warm sand + emerald + gold */
  --color-bg: #f8f6f0;
  --color-surface: #fffdf8;
  --color-surface-offset: #f0ece2;
  --color-divider: #e2ddcf;
  --color-border: #d6d0bf;

  --color-text: #23211a;
  --color-text-muted: #635e4f;
  --color-text-faint: #6b6656;
  --color-text-inverse: #f7f5ee;

  --color-primary: #1c4a38;
  --color-primary-deep: #143627;
  --color-primary-hover: #2a5f49;
  --color-gold: #c9962e;
  --color-gold-text: #8a6414;
  --color-gold-hover: #a97a1e;
  --color-gold-light: #e9c46a;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 2px rgba(35, 33, 26, 0.06);
  --shadow-md: 0 4px 14px rgba(35, 33, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 54, 39, 0.14);

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Cabinet Grotesk', 'Avenir Next', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

ul[role='list'], ol[role='list'] { list-style: none; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); }

p, li { text-wrap: pretty; max-width: 72ch; }

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

::selection { background: rgba(201, 150, 46, 0.28); }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button { cursor: pointer; background: none; border: none; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand__mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand__tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav ul { display: flex; align-items: center; gap: var(--space-6); }

.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-block: var(--space-1);
}

.nav a:hover { color: var(--color-primary); }

.nav a.nav__cta {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full, 9999px);
  font-weight: 700;
}

.nav a.nav__cta:hover { background: var(--color-primary-hover); color: var(--color-text-inverse); }

.menu-btn { display: none; padding: var(--space-2); color: var(--color-primary); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
  padding: var(--space-4) var(--space-5);
}

.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-3); }

.mobile-nav a { font-weight: 500; padding-block: var(--space-1); }

.mobile-nav.is-open { display: block; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: center;
  padding-block: var(--space-24) var(--space-20);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(100deg, rgba(20, 54, 39, 0.92) 0%, rgba(20, 54, 39, 0.72) 46%, rgba(20, 54, 39, 0.25) 100%),
    url('assets/img/hero-workforce.png');
  background-size: cover;
  background-position: 65% center;
}

.hero__inner { max-width: 720px; }

.kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: var(--space-4);
}

.kicker--light { color: var(--color-gold-light); }
.kicker__amp { letter-spacing: 0.08em; }

.hero__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-6);
}

.hero__title em { font-style: normal; color: var(--color-gold-light); }

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(247, 245, 238, 0.85);
  margin-bottom: var(--space-10);
  max-width: 58ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: 9999px;
  transition: all var(--transition-interactive);
}

.btn--gold {
  background: var(--color-gold);
  color: #1d1605;
}

.btn--gold:hover { background: var(--color-gold-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
  border: 1.5px solid rgba(247, 245, 238, 0.55);
  color: var(--color-text-inverse);
}

.btn--ghost:hover { border-color: var(--color-gold-light); color: var(--color-gold-light); }

.btn--wide { width: 100%; }

/* ============ Sections ============ */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }

.section--tinted { background: var(--color-surface-offset); }

.section__head { max-width: 620px; margin-bottom: var(--space-12); }

.section__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary-deep);
  margin-bottom: var(--space-4);
}

.section__title em { font-style: normal; color: var(--color-gold-text); }

.section__sub { color: var(--color-text-muted); }

/* ============ Intro ============ */
.intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.intro__lead {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-primary-deep);
  margin-bottom: var(--space-4);
}

.intro__body { color: var(--color-text-muted); }

.intro__figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.intro__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* ============ Services ============ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-card__body {
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-gold-text);
}

.service-card__title { font-size: var(--text-lg); font-weight: 800; color: var(--color-primary-deep); }

.service-card__desc { color: var(--color-text-muted); }

.check-list { display: flex; flex-direction: column; gap: var(--space-2); }

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 0.55em;
  height: 0.55em;
  border-radius: 9999px;
  background: var(--color-gold);
  transform: translateY(-1px);
}

/* ============ Process ============ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
  counter-reset: steps;
}

.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 2px solid var(--color-divider);
}

.step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 3.5rem;
  height: 2px;
  background: var(--color-gold);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-gold-text);
  margin-bottom: var(--space-3);
}

.step__title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); color: var(--color-primary-deep); }

.step p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============ Why H&H ============ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}

.why__item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.why__icon {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.why__title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); color: var(--color-primary-deep); }

.why__item p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============ Contact ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

.contact__sub { color: var(--color-text-muted); margin-bottom: var(--space-8); }

.contact__channels { display: flex; flex-direction: column; gap: var(--space-4); }

.channel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}

.channel__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  color: var(--color-primary);
}

.channel__icon svg { width: 20px; height: 20px; }

.channel__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.channel__value { font-weight: 700; color: var(--color-primary-deep); }

.channel.is-configured .channel__value { text-decoration: underline; text-underline-offset: 3px; }
.channel.is-configured .channel__value:hover { color: var(--color-primary-hover); }
.channel:not(.is-configured) .channel__value { cursor: default; color: var(--color-text-faint); font-weight: 500; }

.contact__form {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-lg);
}

.form__title { font-size: var(--text-lg); font-weight: 800; color: var(--color-primary-deep); margin-bottom: var(--space-6); }

.form__preview-note {
  background: var(--color-surface-offset);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.form__field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }

.form__field label { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary-deep); }

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form__field textarea { resize: vertical; }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 74, 56, 0.12);
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--color-text-faint); }

.form__note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.form__note.is-ok { color: var(--color-primary); font-weight: 600; }
.form__note.is-error { color: #a12c2c; }

/* ============ Footer ============ */
.footer { background: var(--color-primary-deep); color: var(--color-text-inverse); }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-10);
  flex-wrap: wrap;
}

.footer__brand { display: flex; align-items: center; gap: var(--space-4); }

.footer__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.04em; }

.footer__tag { font-size: var(--text-xs); color: rgba(247, 245, 238, 0.65); }

.footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }

.footer__nav a { font-size: var(--text-sm); color: rgba(247, 245, 238, 0.75); }
.footer__nav a:hover { color: var(--color-gold-light); }

.footer__bottom {
  border-top: 1px solid rgba(247, 245, 238, 0.12);
  padding-block: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(247, 245, 238, 0.55);
}

.hero__area {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(247, 245, 238, 0.9);
}
.hero__area svg { color: var(--color-gold-light); }

.channel__value { overflow-wrap: anywhere; }
.channel__value--line { display: table; white-space: nowrap; }
.channel__value--line + .channel__value--line { margin-top: var(--space-1); }
.channel .channel__value.channel__value--static { display: block; color: var(--color-primary-deep); font-weight: 700; cursor: default; }

.form__alt { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }
.form__alt a { color: var(--color-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Floating WhatsApp ============ */
.wa-float {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #1f7a4d;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.wa-float:hover { background: var(--color-primary); transform: translateY(-2px); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .process__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .services__grid { grid-template-columns: 1fr; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__figure { order: -1; }
  .mobile-nav.is-open { display: block; }
}

@media (min-width: 801px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .process__grid, .why__grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}

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