:root {
  --primary: #64748b;
  --primary-foreground: #FFFFFF;
  --secondary: #ec4899;
  --secondary-foreground: #FFFFFF;
  --accent: #dc2626;
  --accent-foreground: #FFFFFF;
  --background: #FAFAFA;
  --foreground: #18181B;
  --card: #FFFFFF;
  --card-foreground: #18181B;
  --border: #E4E4E7;
  --input: #E4E4E7;
  --ring: #64748b;
  --muted: #F4F4F5;
  --muted-foreground: #71717A;
  --font-family: 'Open Sans', sans-serif;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  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.3;
}

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;
}

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

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

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

/* Icons */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.mb-4 { margin-bottom: 1rem; }

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.btn-primary:hover {
  border-bottom: 3px solid var(--accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.btn-outline:hover {
  border-bottom: 3px solid var(--accent);
  background: var(--primary);
  color: var(--primary-foreground);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.cta-button:hover {
  border-bottom: 3px solid var(--accent);
  transform: translateY(-2px);
}

.cta-button-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.cta-button-outline:hover {
  border-bottom: 3px solid var(--accent);
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Header */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-container {
  text-align: center;
  flex: 1;
}

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

.nav-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 3px solid var(--accent);
}

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

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

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.mobile-nav-links a:hover {
  border-bottom: 3px solid var(--accent);
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .nexorvanti-top_mobile-menu-toggle {
    display: block;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-container {
    order: 1;
  }
  
  .nexorvanti-top_mobile-menu-toggle {
    order: 2;
  }
}

/* Hero Section */
.hero {
  background: var(--background);
  color: var(--foreground);
  padding: 5rem 0;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

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

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

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

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

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Cards */
.pricing-card,
.service-card,
.value-card,
.achievement-card,
.team-member,
.contact-option,
.service-addon {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  position: relative;
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

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

.success-message {
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #15803d;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Feature Items */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-highlights {
  margin: 2rem 0;
}

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

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

/* Page Header */
.page-header {
  background: var(--muted);
  padding: 3rem 0;
  text-align: center;
}

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

.page-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}

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

.timeline-year {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

.timeline-content h4 {
  margin-bottom: 0.5rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

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

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.partner-item {
  text-align: center;
  padding: 1rem;
}

.partner-item p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Testimonials */
.testimonials {
  background: var(--muted);
  padding: 5rem 0;
}

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

.testimonial-quote {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

.testimonial-quote p {
  margin-bottom: 2rem;
}

.testimonial-quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* Contact Page Specific */
.contact-section {
  padding: 3rem 0;
}

.contact-info-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

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

.contact-item h4 {
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.contact-item a:hover {
  border-bottom: 1px solid var(--primary);
}

.map-container {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

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

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

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

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-answer {
  padding: 0 0 1.5rem 0;
  color: var(--muted-foreground);
  display: none;
}

.faq-answer.show {
  display: block;
}

.faq-icon {
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-cta {
  background: var(--muted);
  padding: 3rem 0;
  text-align: center;
}

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

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

.legal-content h1 {
  margin-bottom: 0.5rem;
}

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

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.legal-content a:hover {
  border-bottom: 1px solid var(--primary);
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 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: var(--muted);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

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

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

.footer-column a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.footer-column a:hover {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  text-align: center;
}

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

/* Cookie Banner */
.nexorvanti-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: 2000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

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

.nexorvanti-top_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nexorvanti-top_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
}

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

.nexorvanti-top_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;
}

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

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

@media (max-width: 768px) {
  .nexorvanti-top_cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .nexorvanti-top_cookie-banner-actions {
    justify-content: center;
  }
  
  .nexorvanti-top_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Pricing Specific */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.pricing-features h4 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.pricing-timeline {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
}

.pricing-cta {
  margin-top: 2rem;
}

/* Service Cards */
.service-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.service-cta:hover {
  border-bottom: 3px solid var(--accent);
  transform: translateY(-1px);
}

.service-features {
  margin: 1.5rem 0;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  section {
    padding: 3rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-year {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nexorvanti-top_cookie-banner-actions {
    flex-direction: column;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
}

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