/* Astra Jyoti Human Resource - Nepal to Europe Recruitment */
/* Design: Professional, trustworthy, international */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-primary: #0f2942;
  --color-primary-light: #1a3a5c;
  --color-accent: #c9a227;
  --color-accent-hover: #b8921f;
  --color-text: #2d3748;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #0d9488;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 41, 66, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* Header */
.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.logo .logo-text {
  display: inline-block;
}

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

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-main a:hover {
  background: rgba(15, 41, 66, 0.06);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head .badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Stats strip */
.stats-strip {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--color-border);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Demand/Job cards */
.demand-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demand-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.demand-card h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.demand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.demand-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Zones (Employer / Job Seeker) */
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.zone-card {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s;
}

.zone-card:hover {
  transform: translateY(-4px);
}

.zone-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.zone-card p {
  opacity: 0.9;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.zone-card .btn {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Testimonials */
.testimonials .card {
  padding: 2rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Director profile */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.director-card {
  max-width: 720px;
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.director-card-inline {
  max-width: 100%;
  padding: 0.75rem 1rem;
  gap: 0.875rem;
}

.director-photo {
  flex-shrink: 0;
}

.director-photo img {
  width: 160px;
  height: 160px;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid var(--color-border);
}

.director-card-inline .director-photo img {
  width: 52px;
  height: 52px;
}

.director-details {
  flex: 1;
  min-width: 0;
}

.director-name {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin: 0 0 0.15rem;
}

.director-title {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0;
}

.director-details a {
  color: var(--color-primary);
}

.director-details a:hover {
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .director-photo img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .director-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .director-photo img {
    width: 88px;
    height: 88px;
  }

  .director-card-inline {
    flex-direction: row;
    text-align: left;
  }
}

/* CTA / Grievance */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  display: block;
}

.footer-grid a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.875rem;
  text-align: center;
  opacity: 0.8;
}

/* Page header (inner pages) */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

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

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

tr:nth-child(even) {
  background: var(--color-bg);
}

/* Document certificate block */
.doc-certificate {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.doc-certificate__title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.doc-certificate__meta {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.doc-certificate__details {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.doc-certificate__image-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #f8fafc;
}

.doc-certificate__image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 720px;
  margin: 0 auto;
}

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 4rem 1rem 1rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 99;
  }

  .nav-main.is-open {
    transform: translateX(0);
  }

  .nav-item-dropdown .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
  }

  .hero {
    padding: 3rem 1rem 4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .stats-grid {
    gap: 1.5rem;
  }

  .stat-item strong {
    font-size: 1.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

/* ========== Home page – modern design ========== */
.page-home .hero-modern {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #0d2135 100%);
  opacity: 1;
}

.page-home .hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.15), transparent),
              radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}

.page-home .hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.page-home .hero-badge--pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.page-home .hero__title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.page-home .hero__lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.page-home .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.page-home .btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
}

/* Stats – card style */
.page-home .stats-modern {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 3rem 1.5rem;
}

.page-home .stats-grid--cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.page-home .stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  transition: background 0.2s, transform 0.2s;
}

.page-home .stat-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.page-home .stat-card__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.page-home .stat-card__label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Section headings – modern */
.page-home .section-head--modern .badge--line {
  position: relative;
  padding-bottom: 0.5rem;
}

.page-home .section-head--modern .badge--line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.page-home .section--focus {
  background: var(--color-bg);
}

.page-home .section--zones {
  background: var(--color-surface);
  box-shadow: 0 -1px 0 var(--color-border);
}

.page-home .section--testimonials {
  background: var(--color-bg);
}

/* Feature cards – number + hover */
.page-home .card-grid--focus {
  gap: 1.75rem;
}

.page-home .card--feature {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  border-top: 3px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.page-home .card--feature:hover {
  border-top-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(15, 41, 66, 0.1);
  transform: translateY(-3px);
}

.page-home .card__number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  font-family: var(--font-heading);
}

.page-home .card--feature h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
}

/* Zone cards – modern */
.page-home .zones-modern {
  gap: 1.75rem;
}

.page-home .zone-card--modern {
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(15, 41, 66, 0.12);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
}

.page-home .zone-card--modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 41, 66, 0.2);
}

.page-home .zone-card__icon {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

/* Testimonials – quote styling */
.page-home .testimonials-modern {
  gap: 1.75rem;
}

.page-home .card--testimonial {
  position: relative;
  padding: 2rem 1.75rem 2rem 2.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--color-accent);
}

.page-home .card__quote {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  opacity: 0.35;
  line-height: 1;
}

.page-home .card--testimonial .testimonial-text {
  padding-left: 0.5rem;
}

@media (max-width: 900px) {
  .page-home .stats-grid--cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-home .stats-grid--cards {
    grid-template-columns: 1fr;
  }

  .page-home .hero-modern {
    padding: 4rem 1rem 5rem;
  }
}
