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

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

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

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

/* 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 {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--muted);
  border-color: var(--secondary);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-link-white {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: opacity 0.3s ease;
}

.btn-link-white:hover {
  opacity: 0.8;
}

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

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

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

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

.success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 2rem;
}

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

.icon-box {
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

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

.logo-link {
  text-decoration: none;
}

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

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

.moltrevian-top_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moltrevian-top_mobile-menu-content {
  text-align: center;
}

.moltrevian-top_mobile-menu-link {
  display: block;
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.moltrevian-top_mobile-menu-link:hover {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

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

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

.hero-image {
  position: relative;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

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

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-image {
    clip-path: none;
  }
}

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

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

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

.page-header {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

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

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  text-align: center;
}

/* Partner Logos */
.partner-logos {
  text-align: center;
}

.partner-logos h2 {
  margin-bottom: 3rem;
  font-size: 1.5rem;
  color: var(--muted-foreground);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.partner-item:hover {
  transform: scale(1.03);
}

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

/* Newsletter */
.newsletter {
  background: var(--card);
}

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

.newsletter-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
}

@media (max-width: 768px) {
  .newsletter-content {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* Process Steps */
.process-steps {
  text-align: center;
}

.process-steps h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: scale(1.03);
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 2rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

/* Testimonials */
.testimonials {
  background: var(--card);
  text-align: center;
}

.testimonial-quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author {
  display: flex;
  justify-content: center;
}

.author-name {
  font-weight: 600;
  font-style: normal;
}

.author-title {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* About Preview */
.about-preview {
  background: var(--background);
}

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

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

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

/* Stats Counter */
.stats-counter {
  background: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.03);
}

.stat-item h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

/* CTA Section */
.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

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

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  .9;
}

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

/* Services Page */
.service-row {
  padding: 4rem 0;
}

.service-row-reverse .service-content {
  flex-direction: row-reverse;
}

.service-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.service-text {
  flex: 1;
}

.service-text h2 {
  font-size: 2rem;
  margin: 1rem 0;
}

.service-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-image {
  flex: 1;
}

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

@media (max-width: 768px) {
  .service-content,
  .service-row-reverse .service-content {
    flex-direction: column;
  }
}

/* Pricing */
.pricing-section {
  text-align: center;
}

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

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

.pricing-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

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

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

.pricing-card h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.price-period {
  font-size: 1rem;
  color: var(--muted-foreground);
}

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

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

/* Mission Statement */
.mission-statement {
  text-align: center;
  background: var(--card);
}

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

/* Company Story */
.company-story {
  background: var(--background);
}

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

.story-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.story-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

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

/* Values */
.values-section {
  background: var(--muted);
}

.values-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: scale(1.03);
}

.value-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

/* Achievements */
.achievements-section {
  background: var(--background);
}

.achievements-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: scale(1.03);
}

.achievement-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

/* Team Preview */
.team-preview {
  background: var(--card);
  text-align: center;
}

.team-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.team-preview-content p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Contact */
.contact-section {
  background: var(--background);
}

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

.moltrevian-top_contact-form-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

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

.contact-info-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

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

.contact-info-text a {
  color: var(--secondary);
  text-decoration: none;
}

.contact-info-text a:hover {
  text-decoration: underline;
}

.map-placeholder {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.map-placeholder h4 {
  margin: 1rem 0;
}

.contact-options {
  background: var(--muted);
}

.contact-options h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-option-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-option-card:hover {
  transform: scale(1.03);
}

.contact-option-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

.contact-option-card a {
  color: var(--secondary);
  text-decoration: none;
}

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

/* Team */
.team-section {
  background: var(--background);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: scale(1.03);
}

.team-avatar {
  margin-bottom: 1.5rem;
}

.avatar-icon {
  width: 4rem;
  height: 4rem;
  color: var(--secondary);
}

.team-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.team-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.team-values {
  background: var(--muted);
}

.team-values h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.join-team {
  background: var(--card);
  text-align: center;
}

.join-team h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

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

/* Portfolio */
.portfolio-section {
  background: var(--background);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.03);
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.portfolio-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: var(--muted);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.results-section {
  background: var(--muted);
}

.results-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.result-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: scale(1.03);
}

.result-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

.portfolio-testimonial {
  background: var(--card);
  text-align: center;
}

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

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.footer-brand p {
  margin-bottom: 1rem;
  .8;
}

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

.footer-address {
  margin-top: 1.5rem;
  .8;
}

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

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

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

.footer-column a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.footer-legal-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-legal-links a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

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

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

/* Legal Pages */
.legal-page {
  background: var(--background);
  padding: 4rem 0;
}

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

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

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

.legal-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--foreground);
}

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

.legal-content ul,
.legal-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--muted-foreground);
}

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

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

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

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

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

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

.cookie-table td {
  color: var(--muted-foreground);
}

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

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

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

.moltrevian-top_cookie-banner-text p {
  margin: 0;
  color: var(--foreground);
}

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

.moltrevian-top_cookie-banner-actions button {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

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

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

.moltrevian-top_cookie-modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 1;
  max-height: 80vh;
  overflow-y: auto;
}

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

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

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

.moltrevian-top_cookie-toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-left: 1rem;
}

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

.moltrevian-top_cookie-modal-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

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