/* ==========================================================================
   RJs BILSERVICE - HUVUDSTILMALL
   Färgpalett:
   - Mörkblå marin: #0B132B / #1C2541 / #0F172A
   - Skiffer & Grå: #F1F5F9 / #E2E8F0 / #64748B
   - Racing Röd: #DC2626 / #EF4444 / #B91C1C
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --color-primary-dark: #0B132B;
  --color-secondary-dark: #1E293B;
  --color-accent-red: #DC2626;
  --color-accent-red-hover: #B91C1C;
  --color-gray-bg: #F8FAFC;
  --color-border: #E2E8F0;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: #1e293b;
  background-color: #ffffff;
}

/* Offset for fixed navbar when scrolling to IDs */
section[id] {
  scroll-margin-top: 85px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* ==========================================================================
   SVENSK REGISTRERINGSSKYLT (License Plate Styling)
   ========================================================================== */
.swedish-plate-container {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  max-width: 320px;
  height: 48px;
  margin-top: 4px;
}

.swedish-plate-eu {
  background-color: #003399;
  width: 36px;
  min-width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 2px 0;
  color: #ffcc00;
  position: relative;
  user-select: none;
}

.swedish-plate-eu .eu-stars {
  font-size: 10px;
  line-height: 1;
  color: #ffcc00;
}

.swedish-plate-eu .eu-country {
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.swedish-plate-input {
  flex: 1;
  background: #ffffff;
  border: none;
  outline: none;
  font-family: 'Oswald', monospace, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #111827;
  padding: 0 12px;
  text-align: center;
}

.swedish-plate-input::placeholder {
  color: #94a3b8;
  letter-spacing: 2px;
  font-weight: 500;
}

.swedish-plate-container:focus-within {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

/* ==========================================================================
   KALENDERSTIL & INTERAKTION
   ========================================================================== */
.calendar-day-header {
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  color: #64748b;
  padding-bottom: 8px;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
}

.calendar-day-cell:hover:not(.disabled):not(.selected) {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.calendar-day-cell.selected {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.calendar-day-cell.today:not(.selected) {
  border: 2px solid #0f172a;
  color: #0f172a;
  font-weight: 800;
}

.calendar-day-cell.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background-color: transparent;
  pointer-events: none;
}

.calendar-day-cell.weekend-closed {
  color: #cbd5e1;
  cursor: not-allowed;
  background-color: #f8fafc;
  pointer-events: none;
}

.calendar-day-cell.has-slots::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #10b981;
}

.calendar-day-cell.selected.has-slots::after {
  background-color: #ffffff;
}

/* Vald servicedag och datumindikatorer */
.date-highlight-pill {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border: 1.5px solid #fecaca;
  color: #991b1b;
}



/* ==========================================================================
   ANIMATIONER OCH EFFEKTER
   ========================================================================== */
@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-open {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulseGreen 2s infinite;
}

/* Card hover transitions */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.12);
  border-color: #dc2626;
}

/* Gallery image zoom */
.gallery-card img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
  backdrop-filter: blur(8px);
}

/* Sticky mobile quick-action bar */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  }
  
  body {
    padding-bottom: 70px;
  }
}
