/* CSS Variables */
:root {
  --primary: #D4AF37;
  --primary-foreground: #1A1A2E;
  --secondary: #B8860B;
  --secondary-foreground: #FFFFFF;
  --accent: #F5DEB3;
  --accent-foreground: #1A1A2E;
  --background: #1A1A2E;
  --foreground: #EAEAEA;
  --card: #16213E;
  --card-foreground: #EAEAEA;
  --border: #2C2C54;
  --input: #2C2C54;
  --ring: #D4AF37;
  --muted: #16213E;
  --muted-foreground: #A0A0B0;
  --font-family: 'Open Sans', sans-serif;
  --radius: 0.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.text-muted {
  color: var(--muted-foreground);
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Icons */
.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: var(--font-family);
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Success Message */
.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.success-icon {
  width: 2rem;
  height: 2rem;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.success-message h3 {
  color: #22c55e;
  margin-bottom: 0.5rem;
}

/* Cookie Banner and Modal */
.aurexovint-top_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.aurexovint-top_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.aurexovint-top_cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.aurexovint-top_cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aurexovint-top_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.aurexovint-top_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

.aurexovint-top_cookie-modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.cookie-toggles {
  margin: 1.5rem 0;
}

.aurexovint-top_cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.aurexovint-top_cookie-toggle-row:last-child {
  border-bottom: none;
}

.aurexovint-top_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Top Bar */
.topbar {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
}

.topbar-content {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-item a {
  color: var(--primary-foreground);
  text-decoration: none;
}

/* Header */
.header {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  flex-shrink: 0;
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.aurexovint-top_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
}

.aurexovint-top_mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.mobile-nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .aurexovint-top_mobile-menu-toggle {
    display: block;
  }
  
  .aurexovint-top_mobile-menu {
    display: flex;
  }
  
  .aurexovint-top_mobile-menu.hidden {
    display: none;
  }
  
  .topbar-content {
    justify-content: center;
    gap: 1rem;
  }
  
  .topbar-item {
    font-size: 0.875rem;
  }
  
  .aurexovint-top_cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .aurexovint-top_cookie-banner-text {
    min-width: auto;
  }
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
}

/* Page Header */
.page-header {
  background: var(--card);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.service-card,
.team-card,
.value-card,
.achievement-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover,
.team-card:hover,
.value-card:hover,
.achievement-card:hover {
  transform: translateY(-5px);
}

.service-title,
.value-title,
.achievement-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description,
.value-description,
.achievement-description {
  color: var(--muted-foreground);
}

/* Team Cards */
.team-avatar {
  margin-bottom: 1rem;
}

.team-icon {
  width: 4rem;
  height: 4rem;
  color: var(--primary);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto 0;
}

.newsletter-input {
  flex: 1;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--card);
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
}

.faq-question h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.faq-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 1000px;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background: var(--primary);
  color: var(--primary-foreground);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-description {
  color: var(--muted-foreground);
}

/* Services Accordion */
.services-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--card);
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: rgba(212, 175, 55, 0.05);
}

.accordion-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.accordion-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 1.5rem;
  max-height: 1000px;
}

.feature-list {
  margin-top: 1rem;
  padding-left: 1rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.aurexovint-top_contact-form-title,
.contact-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  flex-shrink: 0;
}

.contact-details h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* About Page */
.mission-statement {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.mission-text {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.story-content {
  padding-right: 1rem;
}

.story-content p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.about-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .mission-title {
    font-size: 2rem;
  }
  
  .story-content {
    padding-right: 0;
  }
}

/* Legal Pages */
.legal-page {
  padding: 3rem 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.last-updated {
  font-style: italic;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.cookie-table th {
  background: rgba(212, 175, 55, 0.1);
  font-weight: 600;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* Footer */
.footer {
  background: #111827;
  color: #f9fafb;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo {
  height: 2rem;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-company {
  font-weight: 600;
  margin: 0;
}

.footer-email {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.125rem;
}

.footer-tagline {
  color: #d1d5db;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-info {
  color: #d1d5db;
  font-size: 0.875rem;
}

.footer-info a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid #374151;
  margin-top: 1rem;
  width: 100%;
}

@media (max-width: 768px) {
  .footer-nav {
    gap: 1rem;
  }
  
  .footer-legal {
    gap: 1rem;
  }
}

/* Animation Classes */
.animate-slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .mission-title {
    font-size: 1.75rem;
  }
  
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary,
  .btn-outline {
    text-align: center;
  }
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#aurexovint-top_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#aurexovint-top_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#aurexovint-top_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
