/* ZijiBusiness - Main Stylesheet */
/* Design System based on specifications v2.0 */

/* ================================
   CSS VARIABLES
   ================================ */
:root {
  /* Colors */
  --primary-navy: #0F172A;
  --trust-blue: #0369A1;
  --professional-gold: #B45309;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --success: #059669;
  --error: #DC2626;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 200ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--trust-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-navy);
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-navy);
}

h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: var(--space-4);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

/* ================================
   LAYOUT
   ================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-alt {
  background-color: var(--surface);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #1E293B;
  color: var(--surface);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--surface);
}

.btn-gold {
  background-color: var(--professional-gold);
  color: var(--surface);
}

.btn-gold:hover {
  background-color: #92400E;
  color: var(--surface);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* ================================
   LANGUAGE SWITCHER
   ================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

.lang-switcher select {
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
}

.logo span {
  color: var(--professional-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--professional-gold);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-navy);
  transition: all var(--transition-fast);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1E293B 100%);
  color: var(--surface);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-home.jpg') center/cover;
  opacity: 0.25;
}

/* Page-specific hero backgrounds - v3 */
.hero-home::before { background-image: url('../images/hero-home-v3.jpg'); }
.hero-services::before { background-image: url('../images/hero-services-v3.jpg'); }
.hero-how::before { background-image: url('../images/hero-how-v3.jpg'); }
.hero-about::before { background-image: url('../images/hero-about-v3.jpg'); }
.hero-contact::before { background-image: url('../images/hero-contact-v3.jpg'); }
.hero-portal::before { background-image: url('../images/hero-portal-v3.jpg'); }

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

.hero h1 {
  color: var(--surface);
  margin-bottom: var(--space-6);
  max-width: 800px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
  background-color: transparent;
  color: var(--surface);
  border-color: var(--surface);
}

.hero-buttons .btn-secondary:hover {
  background-color: var(--surface);
  color: var(--primary-navy);
}

/* ================================
   TRUST BAR
   ================================ */
.trust-bar {
  background-color: var(--surface);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}

.trust-content {
  text-align: center;
}

.trust-content p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================
   CARDS
   ================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--background);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 24px;
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ================================
   SECTION HEADER
   ================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* ================================
   PROCESS SECTION
   ================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--border), var(--trust-blue));
}

.step-number {
  width: 64px;
  height: 64px;
  background-color: var(--primary-navy);
  color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto var(--space-4);
  position: relative;
  z-index: 1;
}

.process-step h4 {
  font-size: 18px;
  margin-bottom: var(--space-2);
}

.process-step p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 0;
}

/* ================================
   LOGISTICS BOX
   ================================ */
.logistics-box {
  background-color: #EFF6FF;
  border-left: 4px solid var(--trust-blue);
  padding: var(--space-6);
  border-radius: var(--radius-sm);
  margin-top: var(--space-8);
}

.logistics-box h4 {
  color: var(--trust-blue);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logistics-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ================================
   STATS
   ================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--professional-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial {
  background-color: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--professional-gold);
  margin-bottom: var(--space-3);
  font-size: 18px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--trust-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-weight: 700;
  font-size: 18px;
}

.testimonial-info h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ================================
   PRICING
   ================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pricing-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  text-align: center;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--trust-blue);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--professional-gold);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--professional-gold);
  color: var(--surface);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-tier {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: var(--space-2);
}

.pricing-commission {
  font-size: 48px;
  font-weight: 800;
  color: var(--professional-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.pricing-minimum {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-6);
}

.pricing-features li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ================================
   FORMS
   ================================ */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-group label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--trust-blue);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

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

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ================================
   FAQ
   ================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--background);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--trust-blue);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 var(--space-6) var(--space-4);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ================================
   INDUSTRY GRID
   ================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.industry-item {
  background-color: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.industry-item:hover {
  border-color: var(--trust-blue);
  box-shadow: var(--shadow-md);
}

.industry-icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.industry-item h4 {
  font-size: 16px;
  margin-bottom: 0;
}

/* ================================
   TEAM
   ================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.team-member {
  display: flex;
  gap: var(--space-6);
  background-color: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  background-color: var(--trust-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-size: 48px;
  font-weight: 700;
  flex-shrink: 0;
}

.team-info h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

.team-info .role {
  color: var(--professional-gold);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-3);
}

.team-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: var(--space-3);
}

.team-info .linkedin {
  font-size: 14px;
  font-weight: 600;
}

/* ================================
   VALUES
   ================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.value-card {
  text-align: center;
  padding: var(--space-6);
}

.value-icon {
  width: 64px;
  height: 64px;
  background-color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 28px;
}

.value-card h4 {
  font-size: 18px;
  margin-bottom: var(--space-2);
}

.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ================================
   CONTACT INFO
   ================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-info h3 {
  margin-bottom: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--background);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background-color: var(--primary-navy);
  color: var(--surface);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .logo {
  color: var(--surface);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  opacity: 0.8;
  margin-bottom: var(--space-4);
}

.footer-links h4 {
  color: var(--surface);
  font-size: 16px;
  margin-bottom: var(--space-4);
}

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

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  opacity: 0.6;
  font-size: 14px;
  margin-bottom: 0;
}

/* ================================
   PORTAL
   ================================ */
.portal-login {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) 0;
}

.portal-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
}

.portal-card h2 {
  text-align: center;
  margin-bottom: var(--space-2);
}

.portal-card > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.portal-demo {
  background-color: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-top: var(--space-6);
  text-align: center;
}

.portal-demo p {
  font-size: 14px;
  color: #92400E;
  margin-bottom: var(--space-2);
}

.portal-demo code {
  background-color: #FDE68A;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* ================================
   PORTAL DASHBOARD
   ================================ */
.portal-dashboard {
  min-height: calc(100vh - 72px);
  background-color: var(--background);
  padding: var(--space-8) 0;
}

.portal-header {
  background-color: var(--surface);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.portal-header h2 {
  margin-bottom: 4px;
}

.portal-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.portal-stat-card {
  background-color: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--trust-blue);
}

.portal-stat-card.gold { border-left-color: var(--professional-gold); }
.portal-stat-card.success { border-left-color: var(--success); }

.portal-stat-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.portal-stat-card .stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0;
}

.portal-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-6);
}

.portal-sidebar {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.portal-nav {
  list-style: none;
}

.portal-nav li {
  margin-bottom: 4px;
}

.portal-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.portal-nav a:hover,
.portal-nav a.active {
  background-color: var(--background);
  color: var(--trust-blue);
}

.portal-nav a.active {
  background-color: #EFF6FF;
}

.portal-main {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.orders-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-sourcing { background-color: #DBEAFE; color: #1E40AF; }
.status-production { background-color: #FEF3C7; color: #92400E; }
.status-qc { background-color: #E0E7FF; color: #3730A3; }
.status-ready { background-color: #D1FAE5; color: #065F46; }
.status-shipped { background-color: #F3E8FF; color: #7C3AED; }

/* ================================
   ADMIN PANEL
   ================================ */
.admin-panel {
  min-height: calc(100vh - 72px);
  background-color: var(--background);
  padding: var(--space-8) 0;
}

.admin-header {
  background-color: var(--surface);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-badge {
  background-color: var(--professional-gold);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
}

.admin-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.admin-tab:hover {
  color: var(--trust-blue);
}

.admin-tab.active {
  color: var(--trust-blue);
  border-bottom-color: var(--trust-blue);
}

.admin-content {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.data-table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--background);
}

.data-table tr:hover {
  background-color: var(--background);
}

.admin-actions {
  display: flex;
  gap: 12px;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.csv-editor {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  min-height: 400px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--background);
  resize: vertical;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step:nth-child(2)::after {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-actions .btn {
    display: none;
  }
  
  .hero {
    padding: var(--space-16) 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step::after {
    display: none !important;
  }
  
  .stats-grid,
  .testimonials-grid,
  .pricing-grid,
  .industry-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-member {
    flex-direction: column;
    text-align: center;
  }
  
  .team-photo {
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Sticky CTA for mobile */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface);
  padding: var(--space-4);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  z-index: 999;
}

.sticky-cta .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
  
  body {
    padding-bottom: 80px;
  }
}
