
/* =====================================
   NEXAPRESS — GLOBAL DESIGN SYSTEM
===================================== */

:root {
  --primary: #2563EB;
  --secondary: #06B6D4;
  --dark: #101827;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --text: #101827;
  --muted: #64748B;
  --border: #E2E8F0;
  --surface: #FFFFFF;
  --section-bg: #F1F5F9;

  --font-heading: "Plus Jakarta Sans", Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;

  --container: 1200px;
  --radius: 14px;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-toggle,
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 9px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.menu-toggle {
  display: none;
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at 85% 20%, #2563EB55, transparent 35%),
    var(--dark);
  color: var(--white);
  padding: clamp(75px, 12vw, 145px) 0;
}

.hero-content {
  max-width: var(--container);
}

.eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.13;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  color: #CBD5E1;
  font-size: clamp(15px, 2vw, 19px);
  max-width: 580px;
  margin-bottom: 30px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.primary-button:hover {
  background: #1D4ED8;
}

/* GENERAL SECTIONS */

.section {
  padding: 75px 0;
}

.category-section {
  background: var(--section-bg);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2,
.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.3;
}

.section p {
  color: var(--muted);
}

/* CATEGORY CARDS */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #10182712;
}

.category-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #DBEAFE;
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 18px;
}

.category-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.category-card p {
  font-size: 14px;
}

/* FEATURED */

.featured-section {
  background: var(--section-bg);
}

.featured-placeholder {
  padding: clamp(25px, 5vw, 55px);
  background: var(--dark);
  color: white;
  border-radius: 18px;
}

.featured-placeholder > span:first-child {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.featured-placeholder h3 {
  font-family: var(--font-heading);
  font-size: clamp(25px, 4vw, 40px);
  max-width: 650px;
  margin: 18px 0;
}

.featured-placeholder p {
  color: #CBD5E1;
}

.coming-soon {
  display: inline-block;
  margin-top: 25px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

/* EMPTY STATE */

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 55px 20px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

/* FOOTER */

.site-footer {
  background: var(--dark);
  color: white;
  padding: 55px 0 25px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
}

.site-footer p {
  color: #CBD5E1;
  margin-top: 12px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 30px 0;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--secondary);
}

.copyright {
  border-top: 1px solid #334155;
  padding-top: 22px;
}

/* DARK THEME */

body.dark-theme {
  --light: #0B1220;
  --surface: #101827;
  --text: #F8FAFC;
  --muted: #CBD5E1;
  --border: #334155;
  --section-bg: #162235;
}

body.dark-theme .category-icon {
  background: #1E3A5F;
}

body.dark-theme .featured-section {
  background: var(--section-bg);
}

/* TABLET */

@media (max-width: 1023px) {
  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 13px;
  }

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

/* MOBILE */

@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand {
    font-size: 21px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 85px 0;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .section {
    padding: 55px 0;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    padding: 23px;
  }

  .footer-links {
    flex-direction: column;
    gap: 13px;
  }
}

/* SMALL MOBILE */

@media (max-width: 374px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 14px;
  }
}

/* ACCESSIBILITY */

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

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

/* =====================================
   NEXAPRESS — INTEGRATION IMPROVEMENTS
===================================== */

/* THEME COLOR SUPPORT */

html {
  color-scheme: light;
}

body.dark-theme {
  color-scheme: dark;
}

/* HEADER CONTROLS */

.menu-toggle,
.theme-toggle {
  flex-shrink: 0;
  min-width: 42px;
  min-height: 42px;
  transition: background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

.menu-toggle:hover,
.theme-toggle:hover {
  background: var(--section-bg);
  border-color: var(--primary);
}

body.dark-theme .menu-toggle:hover,
body.dark-theme .theme-toggle:hover {
  background: #1E293B;
}

/* NAVIGATION ACCESSIBILITY */

.main-nav a {
  display: block;
  border-radius: 6px;
}

.main-nav a:focus-visible {
  outline-offset: 4px;
}

/* LOGO */

.brand img {
  flex-shrink: 0;
  object-fit: contain;
}

/* BUTTON ACCESSIBILITY */

.primary-button {
  min-height: 44px;
}

.primary-button:focus-visible,
.category-card:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

/* RESPONSIVE SAFETY */

.container,
.header-inner,
.hero-content,
.category-card {
  min-width: 0;
}

.hero p,
.section p,
.category-card h3 {
  overflow-wrap: break-word;
}

/* DARK THEME CONSISTENCY */

body.dark-theme .category-card,
body.dark-theme .empty-state {
  background: var(--surface);
  border-color: var(--border);
}

body.dark-theme .category-card:hover {
  box-shadow: 0 12px 30px #00000030;
}

body.dark-theme .category-icon {
  color: #93C5FD;
}

body.dark-theme .main-nav {
  background: var(--surface);
  border-color: var(--border);
}

/* MOBILE TOUCH TARGETS */

@media (max-width: 767px) {
  .menu-toggle,
  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .header-inner {
    gap: 8px;
  }
}

/* EXTRA SMALL SCREENS */

@media (max-width: 374px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 6px;
  }

  .menu-toggle,
  .theme-toggle {
    width: 40px;
    min-width: 40px;
  }
}
