/* ===================================
   ALUVIUM SPECIFIC STYLES
   =================================== */

:root {
  /* Aluvium Brand Colors - Premium Enterprise Theme */
  --aluvium-primary: #1a365d;
  --aluvium-secondary: #2c5282;
  --aluvium-accent: #805ad5;
  --aluvium-gold: #d69e2e;
  --aluvium-dark: #1a202c;
  --aluvium-light: #f7fafc;
}

/* ===================================
   BRAND SPECIFIC OVERRIDES
   =================================== */

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--aluvium-dark) !important;
}

.logo-icon {
  margin-right: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero {
  background: linear-gradient(135deg, var(--aluvium-primary) 0%, var(--aluvium-secondary) 50%, var(--aluvium-accent) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,1 18,5 18,15 10,19 2,15 2,5" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>');
  opacity: 0.2;
}

.hero-actions {
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.hero-actions .btn {
  margin: 0.5rem;
}

/* ===================================
   PREMIUM FEATURE CARDS
   =================================== */

.feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(26, 54, 93, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 54, 93, 0.08), transparent);
  transition: left 0.8s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
  border-color: var(--aluvium-accent);
}

.feature-icon {
  background: linear-gradient(135deg, var(--aluvium-primary), var(--aluvium-accent));
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 16px rgba(26, 54, 93, 0.2);
}

.feature-card .btn {
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
  background: var(--aluvium-accent);
  border-color: var(--aluvium-accent);
}

.feature-card:hover .btn {
  opacity: 1;
  transform: translateY(0);
}

.feature-card .btn:hover {
  background: var(--aluvium-primary);
  border-color: var(--aluvium-primary);
}

/* ===================================
   PREMIUM BENEFITS LIST
   =================================== */

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(26, 54, 93, 0.1);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--aluvium-accent);
  transition: height 0.3s ease;
  transform: translateY(-50%);
}

.benefits-list li:hover {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.02), rgba(128, 90, 213, 0.02));
  padding-left: 1rem;
  color: var(--aluvium-primary);
}

.benefits-list li:hover::before {
  height: 100%;
}

.benefits-list li:last-child {
  border-bottom: none;
}

/* ===================================
   PREMIUM CONTACT FORM
   =================================== */

.contact-form {
  max-width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--aluvium-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid rgba(26, 54, 93, 0.15);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aluvium-accent);
  box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.15);
  transform: translateY(-1px);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--sap-error);
  background-color: rgba(217, 45, 32, 0.05);
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: var(--sap-success);
  background-color: rgba(17, 167, 89, 0.05);
}

.field-error {
  color: var(--sap-error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  font-weight: 500;
}

/* ===================================
   PREMIUM CONTACT INFO
   =================================== */

.contact-info p {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(26, 54, 93, 0.05), rgba(128, 90, 213, 0.05));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--aluvium-accent);
  position: relative;
  transition: all 0.3s ease;
}

.contact-info p:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.contact-info strong {
  color: var(--aluvium-primary);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-info a {
  color: var(--aluvium-accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--aluvium-primary);
  text-decoration: underline;
}

/* ===================================
   PREMIUM LEGAL PAGES
   =================================== */

.legal-page {
  padding: 2rem 0;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(26, 54, 93, 0.15);
  background: linear-gradient(145deg, rgba(26, 54, 93, 0.02), rgba(128, 90, 213, 0.02));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem 2rem;
}

.legal-header h1 {
  color: var(--aluvium-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--aluvium-primary), var(--aluvium-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-weight: 500;
}

.legal-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08);
  border-left: 4px solid var(--aluvium-accent);
}

.legal-section h2 {
  color: var(--aluvium-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--aluvium-accent);
  font-weight: 700;
}

.legal-section h3 {
  color: var(--aluvium-dark);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.legal-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.legal-section ul {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.6;
}

.legal-section li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.legal-section strong {
  color: var(--aluvium-primary);
  font-weight: 600;
}

.contact-details {
  background: linear-gradient(145deg, rgba(26, 54, 93, 0.05), rgba(128, 90, 213, 0.05));
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--aluvium-accent);
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08);
}

.contact-details p {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.contact-details strong {
  color: var(--aluvium-primary);
  font-weight: 600;
}

.legal-footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(26, 54, 93, 0.02), rgba(128, 90, 213, 0.02));
  border-radius: var(--radius-lg);
  border-top: 2px solid rgba(26, 54, 93, 0.15);
  color: var(--gray-600);
}

/* ===================================
   PREMIUM MOBILE NAVIGATION
   =================================== */

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--aluvium-primary);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 54, 93, 0.1);
  }
  
  .navbar-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav li {
    margin: 0.5rem 0;
  }
  
  .navbar-nav a {
    display: block;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .navbar-nav a:hover,
  .navbar-nav a.active {
    background: linear-gradient(135deg, var(--aluvium-primary), var(--aluvium-accent));
    color: white;
    transform: translateY(-2px);
  }
}

/* ===================================
   PREMIUM ANIMATIONS
   =================================== */

@keyframes premium-slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes premium-slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes premium-slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes premium-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(128, 90, 213, 0.2);
  }
  50% {
    box-shadow: 0 8px 30px rgba(128, 90, 213, 0.4);
  }
}

.animate-in {
  animation: premium-slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in-left {
  animation: premium-slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in-right {
  animation: premium-slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-glow {
  animation: premium-glow 3s ease-in-out infinite;
}

/* ===================================
   PREMIUM BUTTON OVERRIDES
   =================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--aluvium-primary), var(--aluvium-accent));
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--aluvium-accent), var(--aluvium-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: white;
  color: var(--aluvium-primary);
  transform: translateY(-2px);
}

/* ===================================
   PREMIUM ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .feature-card:hover::before {
    left: 0;
  }
  
  .benefits-list li:hover::before {
    height: 3px;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --aluvium-primary: #000000;
    --aluvium-accent: #000000;
    --gray-300: #000000;
    --gray-600: #000000;
    --gray-700: #000000;
  }
  
  .feature-card,
  .legal-section {
    border: 2px solid black;
  }
  
  .btn {
    border: 2px solid black;
  }
}

/* ===================================
   PREMIUM PERFORMANCE
   =================================== */

.feature-card,
.btn,
.navbar-nav,
.benefits-list li {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* GPU acceleration for premium animations */
.premium-glow,
.animate-in,
.animate-in-left,
.animate-in-right {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* ===================================
   DARK MODE FUTURE SUPPORT
   =================================== */

@media (prefers-color-scheme: dark) {
  /* Premium dark mode styles can be added here */
  .legal-page {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
  }
  
  .feature-card {
    background: linear-gradient(145deg, #2d3748 0%, #4a5568 100%);
  }
}