/* CSS Variables */
:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #F59F0A;
  --secondary-foreground: #111827;
  --accent: #16A249;
  --accent-foreground: #111827;
  --background: #0F172A;
  --foreground: #F8FAFC;
  --card: #1E293B;
  --card-foreground: #F8FAFC;
  --border: #334155;
  --input: #334155;
  --ring: #000000;
  --muted: #1E293B;
  --muted-foreground: #94A3B8;
  --font-family: 'Roboto', sans-serif;
  --radius: 0.25rem;
}

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

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

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

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

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

p {
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--secondary-foreground);
  text-decoration: none;
}

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

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

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

.btn-full {
  width: 100%;
  text-align: center;
}

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

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

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo-img {
  height: 40px;
  width: auto;
}

.alphaluxis_mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.alphaluxis_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alphaluxis_mobile-menu-content {
  text-align: center;
}

.alphaluxis_mobile-menu-link {
  display: block;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 0;
  text-decoration: none;
}

.alphaluxis_mobile-menu-link:hover {
  color: var(--secondary);
  text-decoration: none;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
}

.hero-text {
  max-width: 600px;
}

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Sections */
.section {
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.section:nth-child(even) {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

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

.section-title {
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

/* Page Header */
.page-header {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8rem 0 4rem;
  text-align: center;
}

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

.page-header p {
  font-size: 1.25rem;
  .9;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
}

/* Cards */
.feature-card, .service-card, .team-card, .pricing-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

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

.service-image, .image-rounded {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Icons */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(245, 159, 10, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.icon-md {
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xl {
  width: 40px;
  height: 40px;
}

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

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

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

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

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

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.success-message {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--card-foreground);
  margin-top: 1rem;
}

.success-message h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  padding: 3rem 0 1rem;
}

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

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

.footer-brand h3 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

/* Cookie Banner */
.alphaluxis_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 1500;
}

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

.alphaluxis_cookie-banner-text {
  flex: 1;
  color: var(--card-foreground);
}

.alphaluxis_cookie-banner-actions {
  display: flex;
  gap: 1rem;
}

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

/* Cookie Modal */
.alphaluxis_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.alphaluxis_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.alphaluxis_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  color: var(--card-foreground);
}

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

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

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

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

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

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

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

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

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.align-items-center {
  align-items: center;
}

/* Specific Page Styles */

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

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

.value-card, .achievement-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.team-member {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.expertise-tags {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: rgba(245, 159, 10, 0.1);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  margin: 0.25rem;
}

.stats-section {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.stat-card {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0.5rem 0;
}

.stat-label {
  color: var(--primary-foreground);
  .9;
}

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

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

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

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

.accordion-header:hover {
  background: rgba(245, 159, 10, 0.05);
}

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

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

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--card-foreground);
  display: none;
}

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

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

.category-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-card ul {
  list-style: none;
  margin: 1rem 0;
}

.category-card li {
  padding: 0.5rem 0;
  color: var(--muted-foreground);
}

/* Contact Page */
.contact-layout {
  gap: 4rem;
}

.contact-info-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.contact-method-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.faq-contact-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  color: var(--card-foreground);
}

.faq-question:hover {
  background: rgba(245, 159, 10, 0.05);
}

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

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

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

.faq-item.active .faq-answer {
  display: block;
}

.faq-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Pricing Page */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--secondary);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

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

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features ul {
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.feature-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-right: 0.75rem;
}

.pricing-best-for {
  background: rgba(245, 159, 10, 0.05);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-best-for h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.pricing-info {
  margin-bottom: 3rem;
}

.info-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comparison-table {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.comparison-table table {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--card-foreground);
}

.comparison-table th {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}

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

.legal-content h1 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.legal-intro {
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 3rem;
}

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

.legal-content h3 {
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--card-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

.legal-content li {
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

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

.cookie-table table {
  width: 100%;
  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);
  color: var(--card-foreground);
}

.cookie-table th {
  background: var(--muted);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: var(--background);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  position: relative;
  padding: 4rem 0;
  margin: 3rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--primary-foreground);
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  .9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 1.75rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Newsletter */
.newsletter-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  margin-top: 2rem;
}

.newsletter-form .form-group {
  display: flex;
  gap: 1rem;
  align-items: end;
}

.newsletter-form .form-input {
  flex: 1;
}

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

/* Process Steps */
.process-step {
  text-align: center;
  padding: 1rem;
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

.animate-slide-in {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

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

.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}

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

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

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .contact-layout {
    gap: 2rem;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

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