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

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

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

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.text-primary {
  color: var(--primary);
}

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

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 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;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Icons */
.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}

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

/* Buttons */
.btn-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
}

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

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  text-decoration: none;
}

/* Top Bar */
.topbar {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 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,
.topbar-hours span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar a {
  color: var(--secondary-foreground);
}

@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;
  backdrop-filter: blur(10px);
}

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

.logo-img {
  height: 2.5rem;
  width: auto;
}

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

.nav-links a {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
  text-decoration: none;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary);
}

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

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

.kaldrevoni-top_mobile-menu a {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
}

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

/* 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;
  right: 0;
  width: 60%;
  height: 100%;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0;
}

.hero-text {
  max-width: 50%;
}

.hero-title {
  font-size: 3.5rem;
  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;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.hero-actions .btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hero-actions .btn-outline {
  border-color: #fff;
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero-background {
    display: none;
  }
  
  .hero-text {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

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

.page-header {
  background: var(--muted);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

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

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

/* Partner Logos */
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  .7;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}

.partner-name {
  font-size: 0.875rem;
  font-weight: 500;
}

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

.process-step {
  position: relative;
  text-align: center;
}

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

.step-content {
  background: var(--card);
  padding: 3rem 2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
}

.step-content h3 {
  margin-top: 1rem;
}

/* Process Timeline */
.process-timeline {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.process-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.process-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-content h3 {
  margin-bottom: 0.5rem;
}

.process-duration {
  display: inline-block;
  background: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

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

.testimonial-content blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

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

.author-info cite {
  display: block;
  font-weight: 600;
  font-style: normal;
}

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

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
}

.star-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--secondary);
  color: var(--secondary);
}

@media (max-width: 768px) {
  .testimonial-author {
    flex-direction: column;
    gap: 1rem;
  }
}

/* FAQ */
.faq-preview,
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
}

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

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

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  background: var(--background);
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* FAQ CTA */
.faq-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
}

.faq-cta-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

@media (max-width: 768px) {
  .faq-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .faq-cta-actions {
    justify-content: center;
  }
}

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

.feature-card h3 {
  margin-bottom: 1rem;
}

/* Services */
.services-alternating {
  display: grid;
  gap: 5rem;
}

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

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

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

.service-content h2 {
  margin-bottom: 1rem;
}

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

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

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

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

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

.service-category li {
  padding: 0.25rem 0;
  color: var(--muted-foreground);
}

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

/* About Page */
.mission-statement {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

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

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

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.company-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-item h4 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

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

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

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

.kaldrevoni-top_contact-form-container h2,
.contact-info-container h2 {
  margin-bottom: 1rem;
}

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

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

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

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

.contact-info {
  margin-top: 2rem;
}

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

.contact-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contact-details p {
  margin: 0;
}

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

.business-hours,
.service-area {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
}

.hours-list {
  margin-top: 1rem;
}

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

.hours-item:last-child {
  border-bottom: none;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

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

.success-message {
  background: #10B981;
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1rem;
}

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

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

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

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

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

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

.cta-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.cta-actions .btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.cta-actions .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-actions .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

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

footer a {
  color: rgba(255,255,255,0.85);
}

footer a:hover {
  color: #fff;
}

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

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

.footer-logo {
  height: 2rem;
  width: auto;
}

.footer-brand h3 {
  margin: 0;
}

.footer-brand p {
  color: rgba(255,255,255,0.85);
  margin: 0;
}

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

.footer-column h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-column a {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-contact h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

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

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

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.legal-intro {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.last-updated {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
}

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

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

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

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

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

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

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

.kaldrevoni-top_cookie-banner-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  white-space: nowrap;
}

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

.kaldrevoni-top_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

.kaldrevoni-top_cookie-modal-content {
  position: relative;
  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;
}

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

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

.kaldrevoni-top_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Animation Classes */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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