/* CSS Variables */
:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #8b5cf6;
  --secondary-foreground: #FFFFFF;
  --accent: #16a34a;
  --accent-foreground: #111827;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #000000;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Inter', sans-serif;
  --radius: 1rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

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

.hidden {
  display: none !important;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

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

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

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-outline-white {
  color: white;
  border-color: white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

/* Form Elements */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

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

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

/* Success Message */
.success-message {
  background: linear-gradient(135deg, var(--accent) 0%, #22c55e 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 2rem;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
}

/* Icons */
.icon-box {
  background: linear-gradient(135deg, var(--muted) 0%, #e5e7eb 100%);
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

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

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

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.stellatrixa_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.stellatrixa_mobile-menu {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--foreground);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .stellatrixa_mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: #fff;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #e5e7eb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--muted) 0%, #e5e7eb 100%);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

/* Sections */
section {
  padding: 7rem 0;
}

section:nth-child(even) {
  background: var(--muted);
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Cards */
.feature-card, .service-card, .benefit-card, .value-card, .team-card, .achievement-card, .stat-card, .service-overview-card, .contact-option-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-align: center;
}

.feature-card:hover, .service-card:hover, .benefit-card:hover, .value-card:hover, .team-card:hover, .achievement-card:hover, .stat-card:hover, .service-overview-card:hover, .contact-option-card:hover {
  transform: translateY(-5px);
}

.feature-card h3, .service-card h3, .benefit-card h3, .value-card h3, .team-card h3, .achievement-card h3, .stat-card h3, .service-overview-card h3, .contact-option-card h3 {
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

/* Partner Logos */
.partner-logos-section {
  background: var(--background);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.partner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--muted);
  border-radius: var(--radius);
  text-align: center;
}

.partner-icon {
  width: 3rem;
  height: 3rem;
  color: var(--muted-foreground);
}

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

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

@media (max-width: 768px) {
  .process-step {
    flex-direction: column;
    text-align: center;
  }
}

/* About Preview */
.about-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img, .story-img, .location-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .about-preview-content {
    grid-template-columns: 1fr;
  }
}

/* CTA Section */
.cta-section {
  background: var(--background);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin: 0 1rem;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.accordion-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: var(--muted);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accordion-title h3 {
  margin: 0;
  color: var(--card-foreground);
}

.accordion-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 2rem 2rem 2rem;
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-content ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

/* About Page */
.mission-statement {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

.mission-text {
  font-size: 1.5rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.company-story .story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.location-details {
  background: var(--muted);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.team-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.team-icon-lg {
  width: 4rem;
  height: 4rem;
}

@media (max-width: 768px) {
  .story-content, .location-content {
    grid-template-columns: 1fr;
  }
  
  .mission-text {
    font-size: 1.25rem;
  }
}

/* Contact Page */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.stellatrixa_contact-form {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-info-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

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

.contact-icon {
  background: var(--muted);
  padding: 0.75rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.contact-text p {
  margin: 0;
  color: var(--muted-foreground);
}

.map-placeholder {
  background: linear-gradient(135deg, var(--muted) 0%, #e5e7eb 100%);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.map-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.map-icon {
  width: 4rem;
  height: 4rem;
  color: var(--muted-foreground);
}

.contact-link {
  color: var(--primary);
  font-weight: 500;
}

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

/* Legal Pages */
.legal-content {
  padding: 4rem 0;
}

.legal-header {
  text-align: center;
  margin-bottom: 4rem;
}

.legal-intro {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 1rem auto;
}

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

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

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.legal-section h3 {
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.contact-details {
  background: var(--muted);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* Cookie Table */
.cookie-table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.cookie-table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 600;
}

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

/* Cookie Banner and Modal */
.stellatrixa_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  z-index: 10000;
  padding: 1rem 0;
}

.stellatrixa_cookie-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.stellatrixa_cookie-banner-text {
  flex: 1;
}

.stellatrixa_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.stellatrixa_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
}

.stellatrixa_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.stellatrixa_cookie-modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

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

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

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

.stellatrixa_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.mb-4 { margin-bottom: 1rem; }

@media (max-width: 768px) {
  .stellatrixa_cookie-banner-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stellatrixa_cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
  
  .stellatrixa_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Footer */
.footer {
  background: var(--muted);
  color: var(--foreground);
  padding: 4rem 0 2rem 0;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-tagline {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-contact h4 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

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

.animate-slide-left {
  opacity: 0;
  transform: translateX(-40px);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(40px);
}

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

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Focus States */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .stellatrixa_cookie-banner,
  .stellatrixa_cookie-modal,
  .footer {
    display: none;
  }
  
  .hero {
    background: white;
    color: black;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* === 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 */
#stellatrixa_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#stellatrixa_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#stellatrixa_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
