/* CSS Variables */
:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #16A249;
  --secondary-foreground: #111827;
  --accent: #F59F0A;
  --accent-foreground: #111827;
  --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;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* 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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

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

.btn-primary:hover {
  opacity: 0.9;
  border-bottom-color: var(--secondary);
}

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

.btn-outline:hover {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.btn-hero {
  background: transparent;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid #fff;
  margin-right: 1rem;
}

.btn-hero:hover {
  border-bottom-color: var(--accent);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid rgba(255,255,255,0.3);
}

.btn-hero-outline:hover {
  border-bottom-color: #fff;
  background: rgba(255,255,255,0.1);
}

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

.btn-cta:hover {
  border-bottom-color: var(--accent);
}

.btn-pricing {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid var(--primary);
  width: 100%;
}

.btn-pricing:hover {
  border-bottom-color: var(--secondary);
}

.btn-pricing-featured {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid var(--secondary);
  width: 100%;
}

.btn-pricing-featured:hover {
  border-bottom-color: var(--accent);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav {
  padding: 1rem 0;
}

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

.nav-logo .logo-img {
  height: 2rem;
}

.plaxorenti-top_mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.plaxorenti-top_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

.plaxorenti-top_mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plaxorenti-top_mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.plaxorenti-top_mobile-menu-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem;
  border-bottom: 3px solid transparent;
  transition: border-bottom-color 0.2s;
}

.plaxorenti-top_mobile-menu-link:hover {
  border-bottom-color: var(--accent);
}

/* Main Content Spacing */
main {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(22,163,73,0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.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;
  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;
  }
  
  .btn-hero {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

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

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

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

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

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

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

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

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

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

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

/* FAQ Section */
.faq-preview {
  background: var(--background);
}

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

.faq-item {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.faq-item p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.faq-cta {
  text-align: center;
}

/* FAQ Page */
.faq-section {
  background: var(--background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto 4rem;
}

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

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

.faq-question:hover {
  background: var(--muted);
}

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

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

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

.faq-contact h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

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

/* Testimonials */
.testimonials {
  background: var(--muted);
}

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

.testimonial-large blockquote {
  margin: 0;
  padding: 0;
}

.testimonial-large p {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--foreground);
  margin-bottom: 2rem;
}

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

/* Stats Section */
.stats-section {
  background: var(--background);
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Features */
.features {
  background: var(--background);
}

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

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Pricing Preview */
.pricing-preview {
  background: var(--background);
}

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

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

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

.pricing-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.875rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

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

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

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

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.pricing-cta {
  text-align: center;
}

.pricing-cta p {
  color: var(--muted-foreground);
}

.pricing-cta a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
}

.pricing-cta a:hover {
  border-bottom-color: var(--secondary);
}

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

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

.newsletter-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

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

.newsletter-form .form-group {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

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

/* Forms */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

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

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

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

.success-message {
  background: var(--muted);
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

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

.success-content h3 {
  color: var(--secondary);
  margin: 0;
}

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

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

.service-row:nth-child(even) {
  background: var(--muted);
}

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

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

.service-row-reverse .service-text {
  direction: ltr;
}

.service-icon {
  margin-bottom: 2rem;
}

.service-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-text p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

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

.price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

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

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

.service-categories {
  background: var(--background);
}

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

.category-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.category-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* About Page */
.story-timeline {
  background: var(--background);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 6rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-year {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.timeline-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item {
    padding-left: 4rem;
  }
  
  .timeline-marker {
    width: 2rem;
    height: 2rem;
  }
  
  .timeline-year {
    font-size: 0.75rem;
  }
}

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

.mission-content,
.values-content {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mission-content h2,
.values-content h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mission-content p,
.values-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

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

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

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

.team-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

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

.achievements {
  background: var(--muted);
}

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

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

.achievement-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.achievement-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

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

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

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

.plaxorenti-top_contact-form-container h2,
.contact-info h2 {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plaxorenti-top_contact-form-container p,
.contact-info p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
}

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

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

.contact-text h3 {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

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

.contact-text a:hover {
  border-bottom-color: var(--secondary);
}

.contact-additional {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
}

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

.additional-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.additional-contacts strong {
  color: var(--foreground);
}

.additional-contacts a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
}

.additional-contacts a:hover {
  border-bottom-color: var(--secondary);
}

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

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

.portfolio-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

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

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-category {
  display: inline-block;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.portfolio-content h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.portfolio-stats {
  background: var(--muted);
}

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

.case-studies {
  background: var(--background);
}

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

.case-study-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-study-header h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.case-study-industry {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.case-study-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.case-study-results {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study-results li {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.case-study-results li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

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

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

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

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

.legal-content h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.legal-content h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

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

.legal-content ul {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

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

.legal-content a:hover {
  border-bottom-color: var(--secondary);
}

.legal-content strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

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

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

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

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

.footer a:hover {
  border-bottom-color: rgba(255,255,255,0.85);
}

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

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

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

.footer-logo {
  height: 2rem;
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.footer-address p {
  .85;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

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

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

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

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

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

.footer-bottom p {
  .85;
  margin: 0;
}

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

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

@media (max-width: 768px) {
  .plaxorenti-top_cookie-banner-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

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

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

@media (max-width: 768px) {
  .plaxorenti-top_cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

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

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

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

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

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

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

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

/* Animation Classes */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered Animation Delays */
.animate-item:nth-child(1) { transition-delay: 0ms; }
.animate-item:nth-child(2) { transition-delay: 100ms; }
.animate-item:nth-child(3) { transition-delay: 200ms; }
.animate-item:nth-child(4) { transition-delay: 300ms; }
.animate-item:nth-child(5) { transition-delay: 400ms; }
.animate-item:nth-child(6) { transition-delay: 500ms; }

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
}

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