/* =========================================================
   HomeHelp KRD — Public Website Styles
   Official blue enterprise palette · Premium · Light-first
   ========================================================= */

:root {
  /* Official palette */
  --primary: #02224D;
  --secondary: #052851;
  --navy: #062F63;
  --accent: #04469A;
  --dark: #021736;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;

  /* Mapped aliases used across components */
  --hh-primary: var(--primary);
  --hh-primary-dark: var(--navy);
  --hh-secondary: var(--secondary);
  --hh-accent: var(--accent);
  --hh-bg: var(--light);
  --hh-surface: var(--white);
  --hh-text: #0f172a;
  --hh-muted: var(--gray);
  --hh-border: #E2E8F0;
  --hh-shadow-sm: 0 1px 2px rgba(2, 23, 54, 0.04), 0 4px 12px rgba(2, 23, 54, 0.04);
  --hh-shadow: 0 4px 6px -1px rgba(2, 23, 54, 0.05), 0 12px 28px -8px rgba(2, 23, 54, 0.12);
  --hh-shadow-lg: 0 20px 40px -16px rgba(2, 23, 54, 0.2);
  --hh-radius: 16px;
  --hh-radius-sm: 12px;
  --hh-radius-lg: 18px;
  --hh-font-heading: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --hh-font-body: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  --hh-nav-h: 76px;
  --hh-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --hh-container: 1140px;
  --hh-hero-gradient: linear-gradient(135deg, #021736, #02224D, #04469A);
  --hh-nav-bg: var(--primary);
  --hh-footer-bg: var(--dark);
  --hh-link: var(--accent);
  --hh-link-hover: var(--primary);
  --hh-btn-bg: var(--accent);
  --hh-btn-hover: var(--navy);
  --hh-focus: #04469A;
}

/* Language-aware typography (no inline font hardcoding) */
html[data-font="en"],
body.hh-font-en {
  --hh-font-heading: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --hh-font-body: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
}

html[data-font="ar"],
body.hh-font-ar {
  --hh-font-heading: Cairo, "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --hh-font-body: Cairo, "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

html[data-font="ku"],
body.hh-font-ku {
  --hh-font-heading: "Noto Sans Arabic", Cairo, "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --hh-font-body: "Noto Sans Arabic", Cairo, "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hh-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--hh-text);
  background: var(--hh-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--hh-link);
  text-decoration: none;
  transition: color var(--hh-transition);
}

a:hover {
  color: var(--hh-link-hover);
}

h1, h2, h3, h4, h5, h6,
.hh-heading {
  font-family: var(--hh-font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--hh-text);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--hh-muted);
}

/* ---------- Utilities ---------- */
.hh-container {
  width: min(100% - 2rem, var(--hh-container));
  margin-inline: auto;
}

.hh-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.hh-section-sm {
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.hh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hh-primary);
  margin-bottom: 0.75rem;
}

.hh-muted { color: var(--hh-muted); }
.hh-text { color: var(--hh-text); }
.hh-surface { background: var(--hh-surface); }

.hh-divider {
  height: 1px;
  background: var(--hh-border);
  border: 0;
  margin: 2rem 0;
}

/* ---------- Cards ---------- */
.hh-card {
  background: var(--hh-surface);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow-sm);
  transition: transform var(--hh-transition), box-shadow var(--hh-transition), border-color var(--hh-transition);
}

.hh-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hh-shadow);
  border-color: color-mix(in srgb, var(--hh-primary) 25%, var(--hh-border));
}

.hh-card-body {
  padding: 1.5rem;
}

.hh-card-static:hover {
  transform: none;
}

/* ---------- Buttons ---------- */
.hh-btn {
  --btn-bg: var(--hh-btn-bg);
  --btn-color: #fff;
  --btn-border: var(--hh-btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--hh-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--btn-color);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--hh-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--hh-transition), border-color var(--hh-transition),
    color var(--hh-transition), transform var(--hh-transition), box-shadow var(--hh-transition);
  white-space: nowrap;
}

.hh-btn:hover {
  color: var(--btn-color);
  background: var(--hh-btn-hover);
  border-color: var(--hh-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(4, 70, 154, 0.28);
}

.hh-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hh-primary) 35%, transparent);
  outline-offset: 2px;
}

.hh-btn-secondary {
  --btn-bg: var(--hh-secondary);
  --btn-border: var(--hh-secondary);
}

.hh-btn-secondary:hover {
  background: color-mix(in srgb, var(--hh-secondary) 88%, #000);
  border-color: color-mix(in srgb, var(--hh-secondary) 88%, #000);
  box-shadow: 0 8px 20px rgba(8, 61, 119, 0.25);
}

.hh-btn-outline {
  --btn-bg: transparent;
  --btn-color: var(--hh-text);
  --btn-border: var(--hh-border);
}

.hh-btn-outline:hover {
  --btn-bg: var(--hh-surface);
  --btn-color: var(--hh-primary);
  --btn-border: var(--hh-primary);
  box-shadow: var(--hh-shadow-sm);
}

.hh-btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hh-btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.hh-btn-accent {
  --btn-bg: var(--hh-btn-bg);
  --btn-border: var(--hh-btn-bg);
  --btn-color: #fff;
}

.hh-btn-accent:hover {
  background: var(--hh-btn-hover);
  border-color: var(--hh-btn-hover);
  box-shadow: 0 8px 20px rgba(4, 70, 154, 0.3);
}

.hh-btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.hh-btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

.hh-btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.hh-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--hh-nav-h);
  display: flex;
  align-items: center;
  background: var(--hh-nav-bg);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--hh-transition), box-shadow var(--hh-transition), border-color var(--hh-transition);
}

.hh-navbar.is-scrolled {
  background: var(--hh-nav-bg);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(2, 23, 54, 0.25);
}

.hh-navbar .hh-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--hh-container));
}

.hh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.hh-brand img,
.hh-logo {
  height: 40px;
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
  object-position: inline-start center;
}

.hh-logo-mobile { display: none; }
.hh-logo-desktop { display: block; }

.hh-logo-footer {
  height: 36px;
  max-width: 180px;
}

.hh-skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}

.hh-skip-link:focus {
  top: 0.75rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hh-focus) 70%, #fff);
  outline-offset: 2px;
}

.hh-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hh-nav-menu > li > a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-family: var(--hh-font-heading);
  font-size: 0.925rem;
  font-weight: 560;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
}

.hh-nav-menu > li > a:hover,
.hh-nav-menu > li > a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hh-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hh-lang-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.hh-lang-dropdown .dropdown-menu {
  border: 1px solid var(--hh-border);
  border-radius: 12px;
  box-shadow: var(--hh-shadow);
  padding: 0.4rem;
  min-width: 12rem;
}

.hh-lang-dropdown .dropdown-item {
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
}

.hh-lang-dropdown .dropdown-item.active {
  background: color-mix(in srgb, var(--hh-primary) 12%, transparent);
  color: var(--hh-primary);
  font-weight: 600;
}

.hh-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.hh-btn-on-dark.hh-btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.hh-btn-on-dark.hh-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.hh-nav-collapse {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .hh-nav-toggle { display: inline-flex; }
  .hh-logo-desktop { display: none; }
  .hh-logo-mobile { display: block; height: 32px; }

  .hh-nav-collapse {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--hh-shadow-lg);
  }

  .hh-nav-collapse.is-open { display: flex; }

  .hh-nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .hh-nav-menu > li > a {
    color: rgba(255, 255, 255, 0.9);
  }

  .hh-nav-actions {
    flex-wrap: wrap;
  }

  .hh-lang-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hh-hero-title { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .hh-hero-ctas { flex-direction: column; align-items: stretch; }
  .hh-hero-ctas .hh-btn { width: 100%; justify-content: center; }
  .hh-grid-4, .hh-grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hh-hero {
  position: relative;
  min-height: calc(100vh - var(--hh-nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--hh-hero-gradient);
}

.hh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hh-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--hh-bg), transparent);
  pointer-events: none;
}

.hh-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 7rem);
  max-width: 720px;
}

.hh-hero-brand {
  font-family: var(--hh-font-heading);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: #fff;
}

.hh-hero-brand span {
  color: var(--hh-accent);
}

.hh-hero h1,
.hh-hero .hh-hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 1rem;
}

.hh-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hh-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Section headers ---------- */
.hh-section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hh-section-header.center {
  text-align: center;
  margin-inline: auto;
}

.hh-section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.hh-section-header p {
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Feature / service grids ---------- */
.hh-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.hh-icon-box {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hh-primary) 12%, transparent);
  color: var(--hh-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hh-feature-card h3,
.hh-service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hh-service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hh-service-card .hh-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hh-service-card .hh-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Stats ---------- */
.hh-stats {
  background: var(--hh-surface);
  border-block: 1px solid var(--hh-border);
}

.hh-stat {
  text-align: center;
  padding: 1rem;
}

.hh-stat-value {
  font-family: var(--hh-font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hh-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.hh-stat-label {
  font-size: 0.95rem;
  color: var(--hh-muted);
  font-weight: 500;
}

/* ---------- How it works ---------- */
.hh-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}

@media (max-width: 991.98px) {
  .hh-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .hh-steps { grid-template-columns: 1fr; }
}

.hh-step {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
}

.hh-step-num {
  width: 48px;
  height: 48px;
  margin-inline: auto 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hh-primary), var(--hh-secondary));
  color: #fff;
  font-family: var(--hh-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(4, 70, 154, 0.25);
}

.hh-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.hh-step p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- App download ---------- */
.hh-app-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--hh-secondary) 0%, var(--navy) 45%, var(--hh-primary) 100%);
  color: #fff;
  border-radius: var(--hh-radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.hh-app-band h2,
.hh-app-band p {
  color: #fff;
}

.hh-app-band p {
  opacity: 0.85;
}

.hh-badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1408;
  background: var(--hh-accent);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hh-store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hh-qr-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem;
}

/* ---------- Testimonials ---------- */
.hh-testimonial {
  height: 100%;
}

.hh-stars {
  color: var(--hh-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.hh-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: color-mix(in srgb, var(--hh-primary) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--hh-primary);
  flex-shrink: 0;
}

.hh-testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--hh-text);
}

.hh-testimonial-author span {
  font-size: 0.8rem;
  color: var(--hh-muted);
}

/* ---------- FAQ ---------- */
.hh-faq-search {
  position: relative;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hh-faq-search input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border: 1px solid var(--hh-border);
  border-radius: 12px;
  background: var(--hh-surface);
  font-size: 1rem;
  color: var(--hh-text);
  transition: border-color var(--hh-transition), box-shadow var(--hh-transition);
}

.hh-faq-search input:focus {
  outline: none;
  border-color: var(--hh-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hh-primary) 18%, transparent);
}

.hh-faq-search i {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hh-muted);
}

.hh-accordion .accordion-item {
  background: var(--hh-surface);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.hh-accordion .accordion-button {
  font-family: var(--hh-font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--hh-text);
  background: var(--hh-surface);
  box-shadow: none !important;
  padding: 1.15rem 1.35rem;
}

.hh-accordion .accordion-button:not(.collapsed) {
  color: var(--hh-primary);
  background: color-mix(in srgb, var(--hh-primary) 6%, var(--hh-surface));
}

.hh-accordion .accordion-button::after {
  background-size: 1rem;
}

.hh-accordion .accordion-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--hh-muted);
}

.hh-faq-item.is-hidden {
  display: none !important;
}

/* ---------- CTA band ---------- */
.hh-cta-band {
  background: linear-gradient(105deg, var(--hh-primary) 0%, var(--hh-primary-dark) 50%, var(--hh-secondary) 100%);
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.hh-cta-band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.hh-cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* ---------- Page hero (inner) ---------- */
.hh-page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(4, 70, 154, 0.12), transparent),
    linear-gradient(180deg, #EEF4F1 0%, var(--hh-bg) 100%);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--hh-border);
}

.hh-page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 0.65rem;
}

.hh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--hh-muted);
}

.hh-breadcrumb a { color: var(--hh-muted); }
.hh-breadcrumb a:hover { color: var(--hh-primary); }
.hh-breadcrumb .sep { opacity: 0.5; }

/* ---------- Forms ---------- */
.hh-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--hh-text);
}

.hh-form-control {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--hh-text);
  background: var(--hh-surface);
  border: 1px solid var(--hh-border);
  border-radius: 12px;
  transition: border-color var(--hh-transition), box-shadow var(--hh-transition);
}

.hh-form-control:focus {
  outline: none;
  border-color: var(--hh-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hh-primary) 18%, transparent);
}

textarea.hh-form-control {
  min-height: 140px;
  resize: vertical;
}

.hh-form-group {
  margin-bottom: 1.15rem;
}

.hh-form-hint {
  font-size: 0.8rem;
  color: var(--hh-muted);
  margin-top: 0.35rem;
}

.hh-form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--hh-muted);
}

/* ---------- Contact / map ---------- */
.hh-map-placeholder {
  min-height: 320px;
  border-radius: var(--hh-radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hh-primary) 8%, #fff), color-mix(in srgb, var(--hh-secondary) 8%, #fff)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(15, 23, 42, 0.02) 12px, rgba(15, 23, 42, 0.02) 24px);
  border: 1px solid var(--hh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--hh-muted);
}

.hh-contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hh-border);
}

.hh-contact-item:last-child { border-bottom: 0; }

.hh-contact-item i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--hh-primary) 12%, transparent);
  color: var(--hh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Blog ---------- */
.hh-blog-card .hh-blog-thumb {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: color-mix(in srgb, var(--hh-primary) 8%, var(--hh-bg));
  border-radius: var(--hh-radius) var(--hh-radius) 0 0;
}

.hh-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--hh-muted);
  margin-bottom: 0.65rem;
}

.hh-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--hh-text);
}

.hh-prose p { color: var(--hh-text); margin-bottom: 1.15rem; }
.hh-prose h2, .hh-prose h3 { margin-top: 1.75rem; }
.hh-prose ul, .hh-prose ol { padding-inline-start: 1.25rem; margin-bottom: 1.15rem; color: var(--hh-text); }
.hh-prose img { border-radius: var(--hh-radius-sm); margin: 1.5rem 0; }

.hh-tag {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hh-primary) 10%, transparent);
  color: var(--hh-primary);
}

/* ---------- Careers ---------- */
.hh-job-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
}

.hh-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--hh-muted);
}

.hh-job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Footer ---------- */
.hh-footer {
  background: var(--hh-footer-bg);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 3.5rem 0;
  margin-top: 0;
}

.hh-footer h3,
.hh-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.15rem;
}

.hh-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.hh-footer a:hover {
  color: #fff;
}

.hh-footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 280px;
}

.hh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hh-footer-links li {
  margin-bottom: 0.55rem;
}

.hh-footer-links a {
  font-size: 0.925rem;
}

.hh-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hh-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--hh-transition), transform var(--hh-transition);
}

.hh-social a:hover {
  background: var(--hh-primary);
  transform: translateY(-2px);
}

.hh-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hh-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hh-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.hh-newsletter-form input:focus {
  outline: none;
  border-color: var(--hh-primary);
  box-shadow: 0 0 0 3px rgba(4, 70, 154, 0.35);
}

.hh-footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ---------- Flash / alerts ---------- */
.hh-flash-wrap {
  position: relative;
  z-index: 20;
}

.hh-alert {
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  margin: 1rem auto;
  width: min(100% - 2rem, var(--hh-container));
  font-weight: 500;
}

/* ---------- Auth layout helpers ---------- */
.hh-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse 50% 40% at 10% 10%, rgba(4, 70, 154, 0.12), transparent),
    radial-gradient(ellipse 45% 35% at 90% 90%, rgba(8, 61, 119, 0.1), transparent),
    var(--hh-bg);
}

.hh-auth-card {
  width: min(100%, 440px);
  background: var(--hh-surface);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-lg);
  padding: 2.25rem 2rem;
}

.hh-auth-card .hh-brand {
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hh-auth-card h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.hh-auth-card .hh-auth-sub {
  text-align: center;
  margin-bottom: 1.75rem;
}

.hh-auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.925rem;
}

/* ---------- Empty / pagination ---------- */
.hh-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--hh-muted);
}

.hh-pagination .page-link {
  border-radius: 10px !important;
  margin: 0 0.2rem;
  border-color: var(--hh-border);
  color: var(--hh-text);
}

.hh-pagination .page-item.active .page-link {
  background: var(--hh-primary);
  border-color: var(--hh-primary);
}

/* ---------- Motion ---------- */
@keyframes hh-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes hh-soft-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hh-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hh-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hh-hero-inner {
  animation: hh-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hh-hero-ctas .hh-btn:nth-child(1) { animation: hh-fade-up 0.7s 0.15s both; }
.hh-hero-ctas .hh-btn:nth-child(2) { animation: hh-fade-up 0.7s 0.25s both; }
.hh-hero-ctas .hh-btn:nth-child(3) { animation: hh-fade-up 0.7s 0.35s both; }

.hh-stat-value.is-counting {
  animation: hh-soft-pulse 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hh-reveal,
  .hh-hero-inner,
  .hh-hero-ctas .hh-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- LTR islands (numbers, phones, emails, Latin brands) ---------- */
.hh-num,
.hh-ltr,
[data-count],
a[href^="tel:"] bdi,
a[href^="mailto:"] bdi {
  unicode-bidi: isolate;
  direction: ltr;
}

.hh-stat-value,
.hh-footer-copy .hh-ltr {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}

/* ---------- RTL ---------- */
html[dir="rtl"] {
  text-align: right;
}

/* Keep Latin/number runs readable inside RTL pages */
html[dir="rtl"] .hh-num,
html[dir="rtl"] .hh-ltr,
html[dir="rtl"] .hh-stat-value,
html[dir="rtl"] [data-count] {
  unicode-bidi: isolate;
  direction: ltr !important;
  text-align: left;
}

html[dir="rtl"] .hh-footer-copy {
  unicode-bidi: plaintext;
}

html[dir="rtl"] .hh-navbar .hh-nav-menu,
html[dir="rtl"] .hh-hero-ctas,
html[dir="rtl"] .hh-store-btns,
html[dir="rtl"] .hh-footer-grid,
html[dir="rtl"] .hh-breadcrumb {
  direction: rtl;
}

html[dir="rtl"] .hh-nav-menu {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="rtl"] .hh-lang-switch .dropdown-toggle i,
html[dir="rtl"] .hh-link i {
  transform: scaleX(-1);
}

html[dir="rtl"] .hh-faq-search input {
  padding: 0.9rem 2.75rem 0.9rem 1rem;
}

html[dir="rtl"] .hh-faq-search i {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .hh-step-num {
  margin-inline: 0 auto 0.75rem;
}

html[dir="rtl"] .hh-prose ul,
html[dir="rtl"] .hh-prose ol {
  padding-inline-start: 0;
  padding-inline-end: 1.25rem;
}

html[dir="rtl"] .dropdown-menu-end {
  --bs-position: end;
}

html[dir="rtl"] .hh-section-header:not(.center),
html[dir="rtl"] .hh-card-body,
html[dir="rtl"] .hh-form-group,
html[dir="rtl"] .form-label,
html[dir="rtl"] .hh-footer .hh-footer-col {
  text-align: right;
}

html[dir="rtl"] .hh-icon-box {
  margin-inline-end: 0;
  margin-inline-start: 0;
}

html[dir="rtl"] .me-1, html[dir="rtl"] .me-2, html[dir="rtl"] .me-3 {
  margin-right: 0 !important;
}
html[dir="rtl"] .me-1 { margin-left: 0.25rem !important; }
html[dir="rtl"] .me-2 { margin-left: 0.5rem !important; }
html[dir="rtl"] .me-3 { margin-left: 1rem !important; }

html[dir="rtl"] .ms-1, html[dir="rtl"] .ms-2, html[dir="rtl"] .ms-3 {
  margin-left: 0 !important;
}
html[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; }
html[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; }
html[dir="rtl"] .ms-3 { margin-right: 1rem !important; }

html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end { text-align: left !important; }

html[dir="rtl"] .hh-auth-card,
html[dir="rtl"] .hh-contact-form,
html[dir="rtl"] table.dataTable {
  direction: rtl;
}

html[dir="rtl"] .hh-navbar .hh-container,
html[dir="rtl"] .hh-nav-actions,
html[dir="rtl"] .hh-hero-inner,
html[dir="rtl"] .hh-newsletter-form,
html[dir="rtl"] .pagination,
html[dir="rtl"] .hh-breadcrumb ol,
html[dir="rtl"] .hh-footer-bottom {
  direction: rtl;
}

html[dir="rtl"] .hh-breadcrumb .fa-chevron-right::before {
  content: "\f053"; /* chevron-left */
}

html[dir="rtl"] .hh-hero-brand,
html[dir="rtl"] .hh-hero-title,
html[dir="rtl"] .hh-hero-subtitle {
  text-align: right;
}

html[dir="rtl"] .hh-feature-card,
html[dir="rtl"] .hh-service-card,
html[dir="rtl"] .hh-step {
  text-align: right;
}

html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] .input-group > :not(:first-child) {
  border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
}

html[dir="rtl"] .hh-table th,
html[dir="rtl"] .hh-table td {
  text-align: right;
}

html[dir="rtl"] .hh-font-ar,
html[dir="rtl"] .hh-font-ku {
  letter-spacing: 0;
}

html[dir="rtl"] .hh-font-ar h1,
html[dir="rtl"] .hh-font-ar h2,
html[dir="rtl"] .hh-font-ku h1,
html[dir="rtl"] .hh-font-ku h2 {
  letter-spacing: 0;
  line-height: 1.35;
}

/* ---------- Misc ---------- */
.hh-main {
  min-height: 50vh;
}

.hh-price {
  font-family: var(--hh-font-heading);
  font-weight: 700;
  color: var(--hh-primary);
}

.hh-store-btns .hh-btn.is-disabled,
.hh-store-btns .hh-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.hh-qr-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: var(--hh-shadow);
}

.hh-qr-card img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.hh-app-mockup {
  max-height: 320px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(2, 23, 54, 0.35));
}

.hh-rating-inline {
  color: var(--hh-accent);
}

.ratio-map iframe {
  border: 0;
  border-radius: var(--hh-radius);
  width: 100%;
  min-height: 320px;
}
