:root {
  --primary: #64748b;
  --primary-foreground: #FFFFFF;
  --secondary: #8b5cf6;
  --secondary-foreground: #FFFFFF;
  --accent: #16a34a;
  --accent-foreground: #111827;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #64748b;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Open Sans', sans-serif;
  --radius: 0.75rem;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  overflow-wrap: break-word;
}

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

/* Icons */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }

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

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px 32px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 12px 32px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Form Elements */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.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: 600;
  color: var(--foreground);
}

/* Success Message */
.success-message {
  background: var(--muted);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.success-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

/* Topbar */
.topbar {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 0;
  font-size: 0.875rem;
}

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

.topbar-contact {
  display: flex;
  gap: 2rem;
}

.topbar-contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-contact a,
.topbar-hours a {
  color: var(--primary-foreground);
  text-decoration: none;
}

.topbar-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .topbar-contact {
    gap: 1rem;
  }
}

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

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

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.glavordeni-top_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

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

.mobile-nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .glavordeni-top_mobile-menu-toggle {
    display: block;
  }
  
  .glavordeni-top_mobile-menu {
    display: flex;
  }
  
  .glavordeni-top_mobile-menu.hidden {
    display: none;
  }
}

/* Hero Section */
.hero {
  background: #111;
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  .4;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

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

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

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-side-image {
    height: 300px;
  }
}

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

.page-header-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

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

.last-updated {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* CTA Section */
.cta-section {
  background: var(--background);
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Cards with Side Accent */
.feature-card,
.service-card,
.value-card,
.team-card,
.achievement-card,
.option-card,
.pricing-card,
.contact-card {
  position: relative;
  padding: 1.5rem;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
}

.card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

.feature-card h3,
.service-card h3,
.value-card h3,
.team-card h3,
.achievement-card h3,
.option-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.feature-card p,
.service-card p,
.value-card p,
.team-card p,
.achievement-card p,
.option-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

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

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

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

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--foreground);
}

.process-step p {
  color: var(--muted-foreground);
}

/* About Section */
.about-content,
.story-content,
.why-content,
.faq-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2,
.story-text h2,
.why-text h2,
.faq-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.about-text p,
.story-text p,
.why-text p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.stat-item h4 {
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--foreground);
}

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

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

/* Partner Logos */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.partner-item p {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

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

/* FAQ */
.faq-item {
  margin-bottom: 2rem;
}

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

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

/* Services Page */
.service-features {
  list-style: none;
  margin: 1rem 0;
}

.service-features li {
  padding: 0.25rem 0;
  color: var(--muted-foreground);
  position: relative;
  padding-left: 1.5rem;
}

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

/* Accordion */
.accordion-container {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.accordion-header:hover {
  background: var(--muted);
}

.accordion-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

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

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
}

.service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.detail-column h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

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

.detail-column li {
  padding: 0.25rem 0;
  color: var(--muted-foreground);
  position: relative;
  padding-left: 1rem;
}

.detail-column li:before {
  content: "→";
  color: var(--primary);
  position: absolute;
  left: 0;
}

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

/* Pricing */
.pricing-card {
  text-align: center;
  position: relative;
}

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

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

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

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

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

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
}

/* Contact Page */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

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

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

.contact-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

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

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

.map-placeholder {
  background: var(--muted);
  border-radius: var(--radius);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content {
  text-align: center;
  color: var(--muted-foreground);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.method-details h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

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

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

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

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

.contact-cta h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

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

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

/* Team Section */
.team-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.avatar-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
}

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

/* Why Choose Us */
.why-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

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

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

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

.legal-document h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--foreground);
}

.legal-document h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--foreground);
}

.legal-document h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--foreground);
}

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

.legal-document ul {
  margin: 1rem 0 1rem 2rem;
  color: var(--muted-foreground);
}

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

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

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

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

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

/* Footer */
.footer {
  background: #111827;
  color: #f9fafb;
  padding: 3rem 0 1rem;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
}

.footer a:hover {
  color: #f9fafb;
}

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

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

.footer-brand h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f9fafb;
}

.footer-brand p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.footer-address p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

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

.footer-links h5,
.footer-contact h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
}

.copyright p {
  color: #d1d5db;
  font-size: 0.875rem;
}

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

/* Cookie Consent */
.glavordeni-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: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Animation Classes */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.service-card,
.feature-card,
.value-card,
.team-card,
.achievement-card,
.option-card,
.pricing-card,
.process-step,
.partner-item {
  
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered delays for grid items */
.service-card:nth-child(1),
.feature-card:nth-child(1),
.value-card:nth-child(1),
.team-card:nth-child(1),
.achievement-card:nth-child(1),
.option-card:nth-child(1),
.pricing-card:nth-child(1),
.process-step:nth-child(1),
.partner-item:nth-child(1) {
  transition-delay: 0ms;
}

.service-card:nth-child(2),
.feature-card:nth-child(2),
.value-card:nth-child(2),
.team-card:nth-child(2),
.achievement-card:nth-child(2),
.option-card:nth-child(2),
.pricing-card:nth-child(2),
.process-step:nth-child(2),
.partner-item:nth-child(2) {
  transition-delay: 100ms;
}

.service-card:nth-child(3),
.feature-card:nth-child(3),
.value-card:nth-child(3),
.team-card:nth-child(3),
.achievement-card:nth-child(3),
.option-card:nth-child(3),
.pricing-card:nth-child(3),
.process-step:nth-child(3),
.partner-item:nth-child(3) {
  transition-delay: 200ms;
}

.service-card:nth-child(4),
.feature-card:nth-child(4),
.value-card:nth-child(4),
.team-card:nth-child(4),
.achievement-card:nth-child(4),
.option-card:nth-child(4),
.pricing-card:nth-child(4),
.process-step:nth-child(4),
.partner-item:nth-child(4) {
  transition-delay: 300ms;
}

.service-card:nth-child(5),
.feature-card:nth-child(5),
.value-card:nth-child(5),
.team-card:nth-child(5),
.achievement-card:nth-child(5),
.option-card:nth-child(5),
.pricing-card:nth-child(5),
.process-step:nth-child(5),
.partner-item:nth-child(5) {
  transition-delay: 400ms;
}

.service-card:nth-child(6),
.feature-card:nth-child(6),
.value-card:nth-child(6),
.team-card:nth-child(6),
.achievement-card:nth-child(6),
.option-card:nth-child(6),
.pricing-card:nth-child(6),
.process-step:nth-child(6),
.partner-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: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: 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 */
#glavordeni-top_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#glavordeni-top_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#glavordeni-top_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
