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

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  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-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;
    gap: 1.5rem;
  }
}

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

.header-top {
  text-align: center;
  margin-bottom: 1rem;
}

.logo-link {
  display: inline-block;
}

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

.nav {
  text-align: center;
}

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

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

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

.mordavelia-top_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mordavelia-top_mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

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

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

/* Hero Section */
.hero {
  background: var(--primary);
  color: #fff;
  position: relative;
  min-height: 60vh;
  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.6);
}

.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;
  line-height: 1.2;
}

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

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

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

/* Button Styles */
.btn-primary,
.btn-outline,
.btn-white,
.btn-outline-white {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

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

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

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

.btn-white:hover {
  background: var(--muted);
}

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

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

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

.btn-full {
  width: 100%;
}

/* Icon Styles */
.icon-sm {
  width: 16px;
  height: 16px;
}

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

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

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

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

/* Card Styles */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Section Styles */
section {
  padding: 3rem 0;
}

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

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

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

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

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

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

.page-header p {
  font-size: 1.25rem;
  .9;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--muted);
  padding: 3rem 0;
}

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

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

.newsletter-form {
  display: flex;
  gap: 1rem;
  min-width: 400px;
}

.newsletter-input {
  flex: 1;
}

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

/* Testimonials */
.testimonials-section {
  padding: 3rem 0;
}

.testimonials-grid {
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-icon {
  color: var(--primary);
}

.author-name {
  font-weight: 600;
  margin: 0;
}

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

/* Pricing */
.pricing-preview-section,
.pricing-section {
  padding: 3rem 0;
}

.pricing-preview-grid,
.pricing-grid {
  margin-top: 3rem;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

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

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

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

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

/* Team */
.team-preview-section,
.team-section {
  background: var(--muted);
  padding: 3rem 0;
}

.team-preview-grid,
.team-grid {
  margin-top: 3rem;
}

.team-card,
.team-member {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.team-avatar,
.member-avatar {
  width: 80px;
  height: 80px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

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

.member-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

/* Process Steps */
.process-section {
  background: var(--muted);
  padding: 3rem 0;
}

.process-steps {
  margin-top: 3rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  width: 2px;
  height: 60px;
  background: var(--border);
}

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

.step-content {
  flex: 1;
}

.step-icon {
  margin-bottom: 1rem;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

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

.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-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Services Page */
.services-overview {
  padding: 3rem 0;
}

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

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 2rem;
}

.service-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content {
  flex: 1;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.service-features li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.service-features li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Service Categories */
.service-categories {
  background: var(--muted);
  padding: 3rem 0;
}

.categories-grid {
  margin-top: 3rem;
}

.category-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.category-content {
  padding: 2rem;
}

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

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

.category-content li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.category-content li::before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Implementation Process */
.implementation-process {
  padding: 3rem 0;
}

.process-timeline {
  margin-top: 3rem;
  position: relative;
}

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

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  width: 2px;
  height: 60px;
  background: var(--border);
}

.timeline-marker {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-duration {
  display: inline-block;
  background: var(--muted);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Contact Page */
.contact-info-bar {
  background: var(--muted);
  padding: 3rem 0;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

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

/* Contact Form */
.mordavelia-top_contact-form-section {
  padding: 3rem 0;
}

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

.mordavelia-top_contact-form {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

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

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

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

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-text {
  flex: 1;
}

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

.success-message {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--primary);
}

.success-icon {
  margin-bottom: 1rem;
}

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

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

/* Additional Contact Options */
.additional-contact {
  background: var(--muted);
  padding: 3rem 0;
}

.contact-options-grid {
  margin-top: 3rem;
}

.contact-option {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option-icon {
  margin-bottom: 1rem;
  color: var(--primary);
}

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

/* Business Hours */
.business-hours {
  padding: 3rem 0;
}

.hours-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hours-info {
  flex: 1;
}

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

.hours-list {
  margin-bottom: 2rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.day {
  font-weight: 600;
}

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

.hours-note {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.hours-image {
  flex: 1;
}

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

@media (max-width: 768px) {
  .hours-content {
    flex-direction: column;
  }
}

/* About Page */
.company-story {
  padding: 3rem 0;
}

.story-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.story-text {
  flex: 2;
}

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

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.story-image {
  flex: 1;
}

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

@media (max-width: 768px) {
  .story-content {
    flex-direction: column;
  }
}

/* Mission and Values */
.mission-values {
  background: var(--muted);
  padding: 3rem 0;
}

.values-grid {
  margin-top: 3rem;
}

.value-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1.5rem;
}

.value-icon {
  flex-shrink: 0;
  color: var(--primary);
}

.value-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* Company Timeline */
.company-timeline {
  padding: 3rem 0;
}

.timeline {
  margin-top: 3rem;
  position: relative;
}

.timeline-year {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 80px;
}

/* Achievements */
.achievements-section {
  background: var(--muted);
  padding: 3rem 0;
}

.achievements-grid {
  margin-top: 3rem;
}

.achievement-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1.5rem;
}

.achievement-icon {
  flex-shrink: 0;
  color: var(--primary);
}

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

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

/* Pricing Page */
.feature-comparison {
  background: var(--muted);
  padding: 3rem 0;
}

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

.comparison-table {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-collapse: collapse;
}

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

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

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

/* Pricing FAQ */
.pricing-faq {
  padding: 3rem 0;
}

.faq-grid {
  margin-top: 3rem;
}

.faq-item {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Plan Cards */
.plan-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.plan-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.plan-description {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.pricing-limits {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pricing-limits h4,
.pricing-features h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.pricing-limits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

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

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

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

.legal-content a {
  color: var(--primary);
  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-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

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

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

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

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

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

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

.footer-main {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-left {
  flex: 1;
}

.footer-brand {
  margin-bottom: 2rem;
}

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

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

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

.footer-address p {
  margin: 0.25rem 0;
}

.footer-right {
  flex: 1;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-column {
  flex: 1;
}

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

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

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

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

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Cookie Consent Styles */
.mordavelia-top_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 1rem 0;
}

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

.mordavelia-top_cookie-banner-text {
  flex: 1;
}

.mordavelia-top_cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
}

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

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

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

.mordavelia-top_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

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

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

.mordavelia-top_cookie-toggle-row div {
  flex: 1;
}

.mordavelia-top_cookie-toggle-row input[type="checkbox"] {
  margin-left: 1rem;
}

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

@media (max-width: 768px) {
  .mordavelia-top_cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .mordavelia-top_cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .mordavelia-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 */
#mordavelia-top_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#mordavelia-top_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#mordavelia-top_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
