/**
 * Accex Asia Pvt Ltd - Custom Styles
 * Modern, aesthetic UI/UX • Plus Jakarta Sans • Refined spacing & hierarchy
 * Font loaded via <link> in HTML for better performance.
 */

/* === Font family (loaded in HTML) === */

:root {
  /* Brand */
  --accex-primary: #0066F5;
  --accex-primary-dark: #0052C9;
  --accex-primary-light: #3D8BFF;
  --accex-primary-soft: rgba(0, 102, 245, 0.08);
  /* Surfaces */
  --accex-bg: #F7F8FA;
  --accex-bg-elevated: #FFFFFF;
  --accex-bg-muted: #EFF1F4;
  /* Text */
  --accex-text: #111827;
  --accex-text-secondary: #4B5563;
  --accex-text-muted: #6B7280;
  /* Borders & shadows */
  --accex-border: rgba(0, 0, 0, 0.06);
  --accex-border-strong: rgba(0, 0, 0, 0.09);
  --accex-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --accex-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --accex-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 102, 245, 0.08);
  /* Layout */
  --accex-radius: 12px;
  --accex-radius-sm: 8px;
  --accex-radius-full: 9999px;
  --accex-nav-height: 72px;
  --accex-container: 1120px;
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  scroll-behavior: smooth;
}

/* Skip link for accessibility (visible on focus) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accex-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--accex-radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--accex-bg);
  color: var(--accex-text);
  padding-top: var(--accex-nav-height);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accex-primary-soft);
  color: var(--accex-primary-dark);
}

/* ---- Type scale & hierarchy ---- */
h1, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--accex-text);
}

h2, .section-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--accex-text);
}

h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accex-text);
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accex-text-secondary);
}

.text-muted {
  color: var(--accex-text-muted) !important;
}

/* ---- Navbar ---- */
.navbar-accex {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--accex-border);
  min-height: var(--accex-nav-height);
}

.navbar-accex .navbar-brand {
  gap: 0.65rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  text-decoration: none;
}

.navbar-accex .navbar-brand-logo {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.navbar-accex .navbar-brand-text {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accex-text);
  line-height: 1;
  transition: color 0.2s ease;
}

.navbar-accex .navbar-brand:hover .navbar-brand-text {
  color: var(--accex-primary);
}

.navbar-accex .navbar-nav {
  gap: 0.15rem;
}

.navbar-accex .nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--accex-text-secondary) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--accex-radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar-accex .nav-link:hover {
  color: var(--accex-primary) !important;
  background: var(--accex-primary-soft);
}

.navbar-accex .nav-link.active {
  color: var(--accex-primary) !important;
  font-weight: 600;
  background: var(--accex-primary-soft);
}

.navbar-toggler {
  border: 1px solid var(--accex-border-strong);
  border-radius: var(--accex-radius-sm);
  padding: 0.5rem 0.7rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--accex-primary-soft);
}

/* ---- Hero ---- */
.hero-section {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 102, 245, 0.92) 0%, rgba(0, 82, 201, 0.88) 50%, rgba(0, 55, 140, 0.9) 100%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.hero-section .lead {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.96;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.hero-section .btn-primary {
  background: #fff;
  color: var(--accex-primary);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--accex-radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-section .btn-primary:hover {
  background: #f8fafc;
  color: var(--accex-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ---- Section spacing ---- */
.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title {
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
}

.section-title + .row,
.section-title + .d-flex,
.section-title + p {
  margin-top: 0.5rem;
}

/* ---- Cards ---- */
.card-accex {
  border: 1px solid var(--accex-border);
  border-radius: var(--accex-radius);
  box-shadow: var(--accex-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  background: var(--accex-bg-elevated);
  overflow: hidden;
}

.card-accex:hover {
  transform: translateY(-4px);
  box-shadow: var(--accex-shadow-hover);
  border-color: var(--accex-border-strong);
}

.card-accex .card-body {
  padding: 1.75rem;
}

.card-accex .card-body > .display-6,
.card-accex .card-body > .bi {
  margin-bottom: 1rem;
}

/* Feature list styling */
.list-unstyled li {
  padding: 0.35rem 0;
  font-weight: 500;
  color: var(--accex-text-secondary);
  display: flex;
  align-items: center;
}

.list-unstyled li .bi {
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ---- Buttons ---- */
.btn-accex {
  background: var(--accex-primary);
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--accex-radius-sm);
  padding: 0.65rem 1.35rem;
  min-height: 44px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accex:hover {
  background: var(--accex-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 102, 245, 0.35);
}

.btn-outline-primary {
  border-radius: var(--accex-radius-sm);
  font-weight: 500;
  border-width: 1.5px;
}

.btn-outline-primary:hover {
  background: var(--accex-primary-soft);
  border-color: var(--accex-primary);
  color: var(--accex-primary);
}

/* ---- Footer ---- */
.footer-accex {
  background: var(--accex-bg-elevated);
  border-top: 1px solid var(--accex-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-accex a {
  color: var(--accex-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-accex strong {
  color: var(--accex-text);
  font-weight: 600;
}

.footer-accex .footer-legal {
  font-size: 0.8125rem;
  color: var(--accex-text-muted);
  line-height: 1.5;
}

/* Footer social icon buttons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--accex-radius-sm);
  background: var(--accex-bg-muted);
  color: var(--accex-text-secondary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  background: var(--accex-primary-soft);
  color: var(--accex-primary);
  transform: translateY(-2px);
}

.footer-social-link i {
  font-size: 1.2rem;
}

/* ---- Forms ---- */
.form-label {
  font-weight: 500;
  color: var(--accex-text);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border-radius: var(--accex-radius-sm);
  border: 1px solid var(--accex-border-strong);
  padding: 0.6rem 0.875rem;
  font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accex-primary);
  box-shadow: 0 0 0 3px var(--accex-primary-soft);
}

.form-control::placeholder {
  color: var(--accex-text-muted);
}

/* ---- Carousel ---- */
.carousel-accex .carousel-item img {
  border-radius: var(--accex-radius);
  box-shadow: var(--accex-shadow);
}

.carousel-accex .carousel-control-prev,
.carousel-accex .carousel-control-next {
  width: 48px;
  height: 48px;
  background: var(--accex-primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.95;
  border: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-accex .carousel-control-prev:hover,
.carousel-accex .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.carousel-accex .carousel-control-prev { left: -12px; }
.carousel-accex .carousel-control-next { right: -12px; }

/* ---- 404 ---- */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.error-404 .container {
  max-width: 400px;
}

.error-404 img {
  max-width: 280px;
  border-radius: var(--accex-radius);
  margin-bottom: 0.5rem;
}

/* ---- Utilities ---- */
.text-accex { color: var(--accex-primary); }
.bg-accex-light { background: var(--accex-primary-soft); }

.bg-white {
  background-color: var(--accex-bg-elevated) !important;
}

img[data-src] {
  min-height: 100px;
  background: var(--accex-bg-muted);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accex-primary);
  outline-offset: 2px;
}

/* Bootstrap primary override */
.btn-primary {
  background-color: var(--accex-primary);
  border-color: var(--accex-primary);
}
.btn-primary:hover {
  background-color: var(--accex-primary-dark);
  border-color: var(--accex-primary-dark);
}

/* QR placeholder block (Featured App / Download sections) */
.qr-placeholder {
  min-width: 120px;
  min-height: 120px;
}

/* Testimonial quote styling */
.testimonial-quote {
  border-left: 4px solid var(--accex-primary);
  padding-left: 1rem;
}

/* Section subtitle (optional, below section title) */
.section-subtitle {
  font-size: 1rem;
  color: var(--accex-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .w-md-auto { width: auto !important; }
}

/* ========== RESPONSIVE: Mobile (< 576px) ========== */
@media (max-width: 575.98px) {
  :root {
    --accex-nav-height: 64px;
  }

  html {
    font-size: 15px;
  }

  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
  }

  .hero-section .lead {
    font-size: 1.05rem;
  }

  .section-py {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .navbar-accex .navbar-brand-logo {
    height: 38px;
  }

  .navbar-accex .navbar-brand-text {
    font-size: 1.2rem;
  }

  .navbar-accex .nav-link {
    padding: 0.6rem 0.8rem !important;
  }

  .card-accex .card-body {
    padding: 1.35rem;
  }

  .footer-accex {
    padding: 2.25rem 0 1.25rem;
    margin-top: 2.5rem;
  }

  .carousel-accex .carousel-control-prev { left: 6px; }
  .carousel-accex .carousel-control-next { right: 6px; }
}

/* ========== RESPONSIVE: Tablet (576px – 991px) ========== */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 72vh;
  }

  .hero-section h1 {
    font-size: 2.35rem;
  }

  .section-py {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ========== RESPONSIVE: Laptop (992px – 1199px) ========== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* ========== RESPONSIVE: Desktop (1200px+) ========== */
@media (min-width: 1200px) {
  .container {
    max-width: var(--accex-container);
  }

  .section-title {
    font-size: 1.625rem;
  }
}

/* ========== RESPONSIVE: Large (1400px+) ========== */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }

  .section-py {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-section h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1360px;
  }
}
