/* 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: 'Open Sans', sans-serif;
  --radius: 0.25rem;
}

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

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

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

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

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

.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: 1.5rem;
}

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

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

.btn-primary:hover {
  background: rgba(0, 0, 0, 0.8);
}

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

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

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

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

.form-input::placeholder {
  color: var(--muted-foreground);
}

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

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

/* Icon Styles */
.icon-box {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

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

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

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

/* Navigation */
.navbar {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
}

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

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

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

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

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

.malvorestin-top_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

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

.mobile-nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .malvorestin-top_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-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  .3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 0;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  .9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

/* Section Styles */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

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

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

/* FAQ Preview */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.faq-item:nth-child(even) {
  transform: translateX(40px);
}

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

.faq-item h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

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

.partner-item {
  text-align: center;
  padding: 1.5rem;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.partner-item:nth-child(even) {
  transform: translateX(40px);
}

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

.partner-item p {
  margin-top: 1rem;
  font-weight: 500;
}

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

.process-step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.process-step:nth-child(even) {
  transform: translateX(40px);
}

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

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

.process-step h3 {
  margin: 1rem 0;
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.stat-item:nth-child(even) {
  transform: translateX(40px);
}

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

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

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

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 300px;
}

.newsletter-text h2 {
  margin-bottom: 0.5rem;
}

.newsletter-form {
  flex: 1;
  min-width: 300px;
}

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

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

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

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

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

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

/* Service Rows */
.service-row {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.service-content.reverse {
  direction: rtl;
}

.service-content.reverse > * {
  direction: ltr;
}

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

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

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

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

.service-image img {
  border-radius: var(--radius);
}

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

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

.pricing-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.pricing-card:nth-child(even) {
  transform: translateX(40px);
}

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

.pricing-card.featured {
  border-color: var(--secondary);
  background: rgba(245, 159, 10, 0.1);
}

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

.pricing-features {
  margin: 1.5rem 0;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

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

/* About Page Styles */
.company-intro {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

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

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

.intro-image img {
  border-radius: var(--radius);
}

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

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.value-card:nth-child(even) {
  transform: translateX(40px);
}

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

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

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.team-member:nth-child(even) {
  transform: translateX(40px);
}

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

.member-avatar {
  margin-bottom: 1rem;
}

.team-member h3 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.125rem;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.achievement-card:nth-child(even) {
  transform: translateX(40px);
}

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

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

/* Company Info */
.company-info {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

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

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

.company-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.info-image img {
  border-radius: var(--radius);
}

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

/* Contact Page Styles */
.contact-info-bar {
  background: var(--muted);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.contact-info-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

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

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

.contact-info-item a:hover {
  color: var(--primary);
}

/* Contact Form */
.malvorestin-top_contact-form-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

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

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.form-header p {
  color: var(--muted-foreground);
}

.malvorestin-top_contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--foreground);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

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

.checkbox-label a:hover {
  text-decoration: underline;
}

.form-actions {
  text-align: center;
  margin-top: 1rem;
}

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

/* Alternative Contact */
.alternative-contact {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.contact-method {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.contact-method h3 {
  margin: 1rem 0;
}

.contact-method p {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.contact-method a {
  color: var(--foreground);
  text-decoration: none;
}

.contact-method a:hover {
  color: var(--primary);
}

/* Blog Styles */
.featured-article {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

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

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

.featured-image img {
  border-radius: var(--radius);
}

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

/* Blog Articles */
.blog-articles {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.article-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.article-card:nth-child(even) {
  transform: translateX(40px);
}

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

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

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

.article-category {
  color: var(--secondary);
  font-weight: 500;
}

.article-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
}

.article-content p {
  color: var(--muted-foreground);
  margin: 0;
}

/* Blog Categories */
.blog-categories {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.category-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.category-card:nth-child(even) {
  transform: translateX(40px);
}

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

.category-card h3 {
  margin: 1rem 0;
}

/* Legal Content */
.legal-content {
  padding: 5rem 0;
}

.legal-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

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

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

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

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

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

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

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

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

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

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

.cookie-table th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  color: var(--foreground);
}

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

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

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

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

footer a:hover {
  text-decoration: underline;
}

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

.footer-column h3,
.footer-column h4 {
  margin-bottom: 1rem;
}

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

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

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

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

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

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

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

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

/* Cookie Consent Styles */
.malvorestin-top_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 9999;
}

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

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

.malvorestin-top_cookie-banner-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--foreground);
}

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

.malvorestin-top_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.malvorestin-top_cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.malvorestin-top_cookie-toggle-row input[type="checkbox"] {
  flex-shrink: 0;
}

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

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

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