/* =====================================================
   PARS  –  responsive.css
   Comprehensive Mobile-First & Multi-Device Breakpoints
   Supports: 320px (Tiny Phones), 375px-480px (Standard Mobile),
             768px (Foldables & Tablets), 1024px (Laptops),
             1440px+ (Desktops & 4K Displays)
   ===================================================== */

/* ── Universal Fluid Reset & Safe Areas ── */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Ensure all interactive controls meet 44px minimum tap targets on touch devices */
@media (pointer: coarse) {
  .btn, 
  .nav__link, 
  .form-input, 
  .role-btn,
  .action-card,
  button {
    min-height: 44px;
  }
}

/* ── Tiny & Small Mobile Devices (< 380px) ── */
@media (max-width: 379px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .nav__logo-img {
    height: 34px;
  }

  .hero__title {
    font-size: clamp(2.25rem, 6.5vw, 2.625rem) !important;
    line-height: 1.2;
  }

  .hero__description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .stat-card__number {
    font-size: 1.75rem;
  }
}

/* ── Extra Small Mobile (< 480px) ── */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav__logo-img {
    height: 38px;
  }

  .hero {
    padding: 1.75rem 0 2.5rem;
  }

  .hero__title {
    font-size: clamp(2.25rem, 6.5vw, 2.625rem);
    line-height: 1.2;
  }

  .hero__description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__feature-row {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .roles__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .role-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.2rem;
  }

  .role-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-card {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1rem;
  }

  .footer__logo-img {
    height: 38px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer__contact {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .footer__socials {
    justify-content: center;
  }
}

/* ── Mobile & Small Tablets (< 900px) ── */
@media (max-width: 900px) {
  section {
    padding: 3rem 0;
  }

  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    color: var(--navy);
    z-index: 1001;
  }


  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background: #0c1627;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 9990;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  /* ── Menu header with logo + close ── */
  .nav__menu::before {
    content: '';
    display: block;
    height: 64px;
    min-height: 64px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    flex-shrink: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: left;
    padding: 1.5rem 1.25rem 1rem;
    flex: 1;
  }

  .nav__list li {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav__menu.open .nav__list li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
  .nav__menu.open .nav__list li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
  .nav__menu.open .nav__list li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
  .nav__menu.open .nav__list li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.2s; }
  .nav__menu.open .nav__list li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.25s; }

  .nav__link {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: rgba(226, 232, 240, 0.75);
    text-decoration: none;
    border-radius: 10px;
    border-left: 2px solid transparent;
    letter-spacing: 0.01em;
    transition: all 0.18s ease;
  }

  .nav__link::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.4);
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: all 0.18s ease;
  }

  .nav__link:hover {
    background: rgba(212, 175, 55, 0.07);
    color: #f1c40f;
    border-left-color: rgba(212, 175, 55, 0.4);
  }

  .nav__link:hover::before {
    background: #D4AF37;
    transform: scale(1.4);
  }

  .nav__link.active {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    font-weight: 600;
    border-left-color: #D4AF37;
  }

  .nav__link.active::before {
    background: #D4AF37;
    width: 6px;
    height: 6px;
  }

  /* ── Divider between list and actions ── */
  .nav__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.625rem;
    padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
  }

  .nav__menu.open .nav__actions {
    opacity: 1;
    transform: none;
  }

  .nav__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 0.02em;
  }

  .nav__actions .btn--outline {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: rgba(226, 232, 240, 0.85);
  }

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

  .nav__actions .btn--primary {
    background: linear-gradient(135deg, #D4AF37 0%, #c9941a 100%);
    border: none;
    color: #0c1627;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  }

  .nav__actions .btn--primary:hover {
    background: linear-gradient(135deg, #e8c84a 0%, #D4AF37 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  }



  .hero {
    min-height: auto;
    padding: 2.5rem 0 3.5rem;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    padding: 1rem 0;
  }

  .hero__left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__description {
    max-width: 100%;
  }

  .hero__feature-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__visual {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }

  .hero__laptop-wrap {
    max-width: 100%;
    width: 100%;
  }

  .hero__img {
    max-height: 340px;
    width: auto;
    margin: 0 auto;
    border-radius: 12px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .steps::before {
    display: none;
  }

  .step {
    max-width: 320px;
    width: 100%;
  }
}

/* ── Tablet / Medium Screens (640px – 1023px) ── */
@media (min-width: 640px) and (max-width: 1023px) {
  .roles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* ── Desktop & Large Tablets Landscape (1024px+) ── */
@media (min-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    text-align: left;
  }

  .hero__left {
    align-items: flex-start;
  }

  .roles__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .steps {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .hero__img {
    max-height: 480px;
  }
}

/* ── Large Desktop & Ultra-Wide (1280px+) ── */
@media (min-width: 1280px) {
  .container {
    max-width: 1320px;
  }

  .hero__title {
    font-size: 3.2rem;
  }
}

/* ── High-DPI & 4K Displays (1920px+) ── */
@media (min-width: 1920px) {
  .container {
    max-width: 1540px;
  }
}
