/* Dansk Clean - Professional Website Styles */
/* Custom enhancements beyond Tailwind */

:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-light: #14B8A6;
  --accent: #F59E0B;
  --bg-light: #F0FDFA;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --success: #10B981;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Keyboard focus states — visible, on-brand, and consistent across every
   link/button/input instead of relying on inconsistent browser defaults. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll-reveal for content sections. Progressive enhancement only:
   elements are fully visible by default and only animate in if
   js/main.js's IntersectionObserver actually runs (see initScrollReveal). */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Professional card styles */
.card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Trust checkmarks */
.trust-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-check svg {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 0.125rem;
}

/* Step indicators */
.step-number {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Quote calculator styles */
.calculator-panel {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.result-highlight {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgb(13 148 136 / 0.3);
}

/* Form styles */
.form-input, .form-select, .form-textarea {
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  outline: none;
}

/* Give <select> a consistent custom arrow instead of the browser default,
   which renders inconsistently (and looks unpolished) across browsers. */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 
              0 4px 6px -4px rgb(0 0 0 / 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 
              0 8px 10px -6px rgb(0 0 0 / 0.15);
}

/* Modal */
.modal {
  animation: modalPopIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Pricing table */
.pricing-table th {
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
}

.pricing-table td {
  transition: background-color 0.2s ease;
}

.pricing-table tr:hover td {
  background-color: #f8fafc;
}

/* Service card icon */
.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  color: var(--primary);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.card:hover .service-icon {
  background-color: var(--primary);
  color: white;
  transform: rotate(5deg) scale(1.05);
}

/* Industry badges */
.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.industry-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
}

.footer a {
  color: #CBD5E1;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }
}

/* Print styles for quote */
@media print {
  .no-print {
    display: none !important;
  }
}