/* ============================================
   Nexus Model Architecture Sales Website - Main Styles
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Colors - Brand Gold/Amber Palette from Logo */
  --color-primary: #CE8D25;        /* Primary Gold - Main icon/star color */
  --color-primary-dark: #B87E22;   /* Dark Gold/Brown - Accent */
  --color-primary-light: #E5A547;  /* Light Gold */
  --color-secondary: #CC8C24;      /* Text Gold - Company name */
  --color-accent: #7D4B0A;         /* Medium Brown */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Neutral Colors - Light Mode (Default) */
  --color-text-primary: #1f1202;   /* Dark brown-black for readability */
  --color-text-secondary: #5a4a3a; /* Warm brown-gray */
  --color-text-light: #8a7a6a;     /* Light warm gray */
  --color-bg-primary: #fbf7f2; /* Warm Parchment */
  --color-bg-secondary: #f0e9df;   /* Light Beige */
  --color-bg-dark: #1a0f00;        /* Dark brown-black */
  --color-border: #e0d5c6;          /* Warm light border */

  /* Dark Mode Colors */
  --color-text-primary-dark: #f0e6d8;
  --color-text-secondary-dark: #bcaea0;
  --color-bg-primary-dark: #120b00;
  --color-bg-secondary-dark: #241a0f;
  --color-border-dark: #443625;
  
  /* Glassmorphism Colors */
  --glass-white: rgba(253, 252, 249, 0.7);
  --glass-light: rgba(253, 252, 249, 0.1);
  --glass-dark: rgba(18, 11, 0, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-gold: rgba(206, 141, 37, 0.1);  /* Subtle gold tint */
  
  /* Gradients - Aligned with logo palette */
  --gradient-primary: linear-gradient(135deg, #CE8D25 0%, #8C550C 100%);
  --gradient-hero: linear-gradient(135deg, #6E4107 0%, #4F2C02 100%);
  --gradient-accent: linear-gradient(135deg, #E5A547 0%, #CE8D25 100%);
  --gradient-glass: linear-gradient(135deg, rgba(253, 252, 249, 0.1) 0%, rgba(253, 252, 249, 0.05) 100%);
  --gradient-warm: linear-gradient(135deg, rgba(206, 141, 37, 0.1) 0%, rgba(140, 85, 12, 0.05) 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-primary);
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Layout */
  --container-max-width: 1280px;
  --container-padding: 1.5rem;
  --section-padding: 5rem 0;
  --section-padding-sm: 3rem 0;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(206, 141, 37, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(140, 85, 12, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 40% 20%, rgba(110, 65, 7, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
  background-color: var(--color-bg-primary);
}

.section.section-colored {
    background-color: var(--color-bg-secondary);
}

.section-lg {
  padding: var(--section-padding-lg);
}

.section-sm {
  padding: var(--section-padding-sm);
}

/* Section Headings */
.section-title {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-2xl);
  line-height: 1.6;
}

/* Buttons with Glass Effect */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 
    0 4px 15px 0 rgba(206, 141, 37, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: var(--font-weight-semibold);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 10px 30px 0 rgba(206, 141, 37, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.01);
}

.btn-secondary {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px 0 rgba(206, 141, 37, 0.3);
}

.btn-outline {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

/* Cards with Glassmorphism */
.card {
  background: var(--color-bg-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.card-header {
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

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

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Utilities */
.text-center {
  text-align: center;
}

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

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

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

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

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

.bg-secondary {
  background-color: var(--color-bg-secondary);
  position: relative;
}

.bg-secondary::before {
  content: none;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* Responsive Breakpoints */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --section-padding: 3rem 0;
    --container-padding: 1rem;
  }
  
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
  }
  
  .section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  img, video, iframe {
    max-width: 100%;
    height: auto;
  }
  
  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

