/**
 * SRC Auto Care - Main Stylesheet
 */

/* ===== Base Styles ===== */
:root {
  --src-red: #fe0a0a;
  --src-dark: #1a1a1a;
  --src-light: #f5f5f5;
  --src-gray: #6b7280;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: var(--src-light);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1em;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col {
  flex: 1;
  padding: 0 0.5rem;
}

/* Responsive columns */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
}

/* ===== Header ===== */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Text color classes */
.text-src-red {
  color: var(--src-red);
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-700 {
  color: #374151;
}

/* Background color classes */
.bg-white {
  background-color: white;
}

.bg-src-red {
  background-color: var(--src-red);
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

/* Hover utilities */
.hover\:bg-red-700:hover {
  background-color: #c41230;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:underline:hover {
  text-decoration: underline;
}

/* Opacity and transitions */
.opacity-0 {
  opacity: 0;
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.transition-opacity {
  transition-property: opacity;
}

.duration-200 {
  transition-duration: 200ms;
}

/* Border utilities */
.border {
  border-width: 1px;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.rounded-md {
  border-radius: 0.375rem;
}

/* Ring utilities for dropdown shadow */
.ring-1 {
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-black {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgba(0, 0, 0, var(--tw-ring-opacity));
}

.ring-opacity-5 {
  --tw-ring-opacity: 0.05;
}

/* Shadow utilities */
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--tw-shadow);
}

/* For Alpine.js */
[x-cloak] {
  display: none !important;
}

.gap-1 {
  gap: 0.25rem;
}

/* Hide/Show based on screen size */
@media (min-width: 640px) {
  .sm\:inline {
    display: inline !important;
  }
  
  .sm\:hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block !important;
  }
}

.hidden {
  display: none;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-sm {
  font-size: 0.875rem;
}

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

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.p-1\.5 {
  padding: 0.375rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.text-gray-600 {
  color: #4b5563;
}

.gap-2 {
  gap: 0.5rem;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.fixed {
  position: fixed;
}

.bg-black {
  background-color: #000;
}

.bg-opacity-25 {
  --tw-bg-opacity: 0.25;
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-150 {
  transition-duration: 150ms;
}

.transform {
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-x-5 {
  --tw-translate-x: 1.25rem;
}

.translate-x-0 {
  --tw-translate-x: 0px;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.rounded-bl-md {
  border-bottom-left-radius: 0.375rem;
}

.border-t {
  border-top: 1px solid #e5e7eb;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.w-6 {
  width: 1.5rem;
}

.w-72 {
  width: 18rem;
}

.h-6 {
  height: 1.5rem;
}

.h-0\.5 {
  height: 0.125rem;
}

.bg-gray-600 {
  background-color: #4b5563;
}

.rounded-full {
  border-radius: 9999px;
}

.space-y-1\.5 > * + * {
  margin-top: 0.375rem;
}

.flex-col {
  flex-direction: column;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.rounded-b-md {
  border-bottom-right-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.absolute {
  position: absolute;
}

.-translate-y-1 {
  --tw-translate-y: -0.25rem;
  transform: var(--tw-transform);
}

.translate-y-0 {
  --tw-translate-y: 0px;
  transform: var(--tw-transform);
}

.top-\[56px\] {
  top: 56px;
}

.top-\[calc\(100\%\+2px\)\] {
  top: calc(100% + 2px);
}

.bg-red-50 {
  background-color: rgba(254, 0, 0, 0.05);
}

.hover\:bg-red-50:hover {
  background-color: rgba(254, 0, 0, 0.05);
}

/* Menu dropdown styling */
.menu-dropdown {
  background-color: #ffffff !important;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
}

.menu-dropdown li a {
  text-align: left;
  display: block;
  width: 100%;
  position: relative;
  z-index: 51;
  cursor: pointer;
  pointer-events: auto;
}

.menu-dropdown li a.bg-red-50 {
  background-color: rgba(254, 0, 0, 0.08) !important;
}

.menu-dropdown li a:hover {
  background-color: rgba(254, 0, 0, 0.08) !important;
}

/* Header spacer */
.header-spacer {
  height: 60px;
}

/* On small screens, make sure the header is fixed properly */
@media (max-width: 640px) {
  .header-spacer {
    height: 56px;
  }
}

.border {
  border-width: 1px;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.right-4 {
  right: 1rem;
}

.w-full {
  width: 100%;
}

.h-16 {
  height: 4rem;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.justify-center {
  justify-content: center;
}

.inline-block {
  display: inline-block;
}

.relative {
  position: relative;
}

.p-1\.5 {
  padding: 0.375rem;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .md\:h-12 {
    height: 3rem;
  }
}

.nav-links li {
  margin: 0 0.75rem;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--src-red);
}

.nav-links a.active {
  color: var(--src-red);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.booking-btn {
  background-color: var(--src-red);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(204, 0, 0, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(0);
}

.booking-btn:hover {
  background-color: #cc0000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(204, 0, 0, 0.3);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-menu ul {
    list-style: none;
  }
  
  .mobile-menu li {
    margin: 0.75rem 0;
  }
}

/* ===== Footer ===== */
footer {
  background-color: var(--src-dark);
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  /* Space between columns (footer is capped at .container max-width 1200px, so columns are ~250–270px each) */
  gap: 1.75rem 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.2s;
}

.social-icon:hover {
  background-color: var(--src-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Special holiday hours: row layout (opening-hours in footer + booking/contact) */
.opening-hours .holiday-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.opening-hours .holiday-hours-row .holiday-hours-row__label {
  flex: 1 1 12rem;
  min-width: 0;
}

.opening-hours .holiday-hours-row .holiday-hours-row__hours {
  flex: 0 1 auto;
  text-align: right;
}

/* Footer only: full column width for readability (narrow max-width caused date/hours to wrap) */
footer .opening-hours .opening-hours__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-inline: 0;
}

/* Keep date + hours on one line in the footer holiday card (column ~260px: nowrap + compact hours) */
footer .opening-hours .holiday-hours-row {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

footer .opening-hours .holiday-hours-row .holiday-hours-row__label {
  flex: 1 1 auto;
  min-width: 0;
}

footer .opening-hours .holiday-hours-row .holiday-hours-row__hours {
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}

footer .opening-hours .opening-hours__holiday {
  width: 100%;
  margin-top: 0;
  border-radius: 0.375rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--src-red);
  color: white;
}

.btn-primary:hover {
  background-color: #cc0000;
}

.btn-secondary {
  background-color: white;
  color: var(--src-dark);
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

.btn-dark {
  background-color: var(--src-dark);
  color: white;
}

.btn-dark:hover {
  background-color: #333;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1rem;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--src-red);
  box-shadow: 0 0 0 3px rgba(254, 10, 10, 0.1);
}

.form-error {
  color: var(--src-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* ===== Flatpickr Date Picker Customization ===== */
@keyframes flatpickrFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.flatpickr-calendar {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  width: 100%;
  max-width: 307px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: flatpickrFadeInDown 300ms cubic-bezier(0, 1, 0.4, 1);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.flatpickr-calendar.open {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.flatpickr-calendar.animate.open {
  animation: flatpickrFadeInDown 300ms cubic-bezier(0, 1, 0.4, 1);
}

.flatpickr-calendar.animate.close {
  animation: flatpickrFadeOutUp 300ms cubic-bezier(0, 1, 0.4, 1);
}

@keyframes flatpickrFadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.flatpickr-day {
  border-radius: 0.25rem;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
  background: var(--src-red);
  border-color: var(--src-red);
}

.flatpickr-day.inRange, 
.flatpickr-day.prevMonthDay.inRange, 
.flatpickr-day.nextMonthDay.inRange, 
.flatpickr-day.today.inRange, 
.flatpickr-day.prevMonthDay.today.inRange, 
.flatpickr-day.nextMonthDay.today.inRange, 
.flatpickr-day:hover, 
.flatpickr-day.prevMonthDay:hover, 
.flatpickr-day.nextMonthDay:hover, 
.flatpickr-day:focus, 
.flatpickr-day.prevMonthDay:focus, 
.flatpickr-day.nextMonthDay:focus {
  background: #ffeaea;
  border-color: #ffeaea;
  position: relative;
  z-index: 1;
  transform: scale(1.1);
  transition: transform 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
  color: rgba(57, 57, 57, 0.3);
  background: transparent;
  cursor: not-allowed;
}

.flatpickr-day.sunday,
.flatpickr-day.sunday:hover {
  background-color: #ffeeee;
  color: rgba(57, 57, 57, 0.3);
  text-decoration: line-through;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.flatpickr-day.holiday,
.flatpickr-day.holiday:hover {
  background-color: #fff0f0;
  color: rgba(57, 57, 57, 0.3);
  text-decoration: line-through;
  cursor: not-allowed;
  border: 1px dashed rgba(255, 0, 0, 0.2);
  transform: none;
  box-shadow: none;
}

.flatpickr-day.today-highlight {
  border: 2px solid var(--src-red) !important;
  font-weight: bold;
  color: var(--src-red);
  position: relative;
}

.flatpickr-day.today-highlight:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--src-red);
  border-radius: 50%;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.flatpickr-months .flatpickr-month {
  background: var(--src-red);
  color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--src-red);
  color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background-color: white;
  color: #333;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: white;
  fill: white;
}

/* Dark mode form fields */
.dark-form label {
  color: white;
}

.dark-form input[type="text"],
.dark-form input[type="email"],
.dark-form input[type="tel"],
.dark-form input[type="date"],
.dark-form select,
.dark-form textarea {
  background-color: #333;
  border-color: #444;
  color: white;
}

.dark-form input:focus,
.dark-form select:focus,
.dark-form textarea:focus {
  border-color: var(--src-red);
}

/* ===== Cards ===== */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--src-gray);
  margin-bottom: 1rem;
}

/* ===== Hero Section ===== */
.hero {
  color: white;
  padding: 4rem 0;
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Avoid scroll anchoring nudging the viewport when carousel/paint updates shift layout above the services block */
  overflow-anchor: none;
}

/* Carousel styling */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}

.hero-carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

/* Responsive adjustments for the hero section */
@media (max-width: 768px) {
  .hero {
    height: 400px;
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 350px;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== Service Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ===== Page Headers ===== */
.page-header {
  padding: 3rem 0 2rem;
  background-color: var(--src-light);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--src-dark);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: #4b5563;
  font-size: 1.125rem;
  max-width: 800px;
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--src-red);
}

/* ===== Utilities ===== */
.text-center {
  text-align: center;
}

.text-red {
  color: var(--src-red);
}

.inline-link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.bg-red {
  background-color: var(--src-red);
}

.bg-dark {
  background-color: var(--src-dark);
}

.bg-light {
  background-color: var(--src-light);
}

/* Date picker legend colors */
.bg-ffeeee {
  background-color: #ffeeee;
}

.bg-fff0f0 {
  background-color: #fff0f0;
}

.border-red-200 {
  border-color: rgba(255, 0, 0, 0.2);
}

.border-red {
  border-color: var(--src-red);
}

.border-2 {
  border-width: 2px;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

.rounded {
  border-radius: 0.375rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-sm {
  border-radius: 0.125rem;
}

.w-1 {
  width: 0.25rem;
}

.h-1 {
  height: 0.25rem;
}

.bg-red {
  background-color: var(--src-red);
}

.shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  
  .md\:hidden {
    display: none !important;
  }
}

/* Calendar input styling */
.date-input-wrapper {
  position: relative;
}

.date-input-wrapper input {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-input-wrapper input:hover {
  border-color: var(--src-red);
}

.date-input-wrapper input:focus {
  border-color: var(--src-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
  outline: none;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.right-3 {
  right: 0.75rem;
}

.top-1\/2 {
  top: 50%;
}

.transform {
  transform: translateY(-50%);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.pointer-events-none {
  pointer-events: none;
}

.text-gray-500 {
  color: #718096;
}

.pr-10 {
  padding-right: 2.5rem;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .flatpickr-calendar {
    width: 100%;
    max-width: 280px;
    font-size: 14px;
  }
  
  .flatpickr-day {
    line-height: 32px;
    height: 32px;
  }
  
  .date-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .date-legend span {
    font-size: 12px;
  }
  
  .date-info {
    padding: 8px;
  }
}



/* ===== React Style Service Cards ===== */
.service-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.service-card-image {
  width: 100%;
  height: 192px; /* Uniform height for all service images */
  object-fit: cover;
  object-position: center;
}

.service-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--src-dark);
}

.service-card-description {
  color: #6b7280;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card-link {
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: color 0.2s ease;
}

.service-card-link svg {
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.service-card-link:hover svg {
  transform: translateX(3px);
}

.service-card-link.primary {
  color: var(--src-red);
}

.service-card-link.primary:hover {
  color: #d90000;
}

.service-card-link.secondary {
  color: var(--src-dark);
}

.service-card-link.secondary:hover {
  color: #444;
}

/* Featured Service Card */
.featured-service-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border-top: 4px solid var(--src-red);
}

.featured-service-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.featured-service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .featured-service-image {
    height: 100%;
    max-height: 400px;
  }
  
  .featured-service-card-flex {
    display: flex;
  }
  
  .featured-service-image-container {
    width: 50%;
  }
  
  .featured-service-content {
    width: 50%;
  }
}

.featured-service-content {
  padding: 2rem;
}

.featured-service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--src-dark);
}

.featured-service-short-desc {
  color: #4b5563;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.featured-service-full-desc {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.featured-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.service-btn.primary {
  background-color: var(--src-red);
  color: white;
}

.service-btn.primary:hover {
  background-color: #d90000;
}

.service-btn.secondary {
  background-color: var(--src-dark);
  color: white;
}

.service-btn.secondary:hover {
  background-color: #333;
}

.service-btn svg {
  margin-left: 0.5rem;
}

/* Service Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Detail Page Styles */
.service-detail {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .service-detail {
    flex-direction: row;
  }

  .service-detail-image-container {
    width: 50%;
  }

  .service-detail-content {
    width: 50%;
  }
}

.service-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-detail-content {
  padding: 2rem;
}

.service-detail-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--src-dark);
}

.service-detail-description {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.service-detail-section {
  margin-bottom: 1.5rem;
}

.service-detail-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--src-dark);
}

.service-detail-section-description {
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.service-detail-section-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.service-detail-section-list li {
  margin-bottom: 0.5rem;
}

.service-detail-cta {
  display: flex;
  flex-direction: column;
  background-color: var(--src-light);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

.service-detail-phone {
  margin-bottom: 1rem;
}

.service-detail-cta-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .service-detail-cta-title {
    font-size: 1.125rem;
  }
}

/* Global phone number link styling */
.phone-link {
  color: var(--src-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.phone-link:hover {
  text-decoration: underline;
}

.service-detail-phone-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--src-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-detail-phone-number:hover {
  text-decoration: underline;
}

.service-detail-booking {
  background-color: white;
  padding: 1rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.service-detail-booking-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--src-red);
  margin-bottom: 0.5rem;
}

.service-detail-booking-text {
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.service-detail-back {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Two-Section Service Detail Layout (alternating image/text) */
.service-detail-two-section {
  padding: 2rem;
}

.service-detail-header {
  margin-bottom: 2rem;
  text-align: center;
}

.service-detail-header .service-detail-title {
  margin-bottom: 1rem;
}

.service-detail-header .service-detail-description {
  max-width: 800px;
  margin: 0 auto;
}

.service-detail-text-section {
  margin-bottom: 3rem;
}

.service-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .service-detail-row {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .service-detail-row .service-detail-row-image,
  .service-detail-row .service-detail-row-content {
    flex: 1;
    width: 50%;
  }
  
  .service-detail-row.reverse {
    flex-direction: row-reverse;
  }
}

.service-detail-row-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-detail-row-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .service-detail-row-img {
    height: 100%;
    min-height: 300px;
    max-height: 450px;
  }
}

.service-detail-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-cta-wrapper {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* ===== About Page Styles ===== */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-layout {
    grid-template-columns: 2fr 1fr;
  }
}

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

/* Story section with image and text */
.story-section {
  margin-bottom: 1.5rem;
}

.story-content {
  position: relative;
  overflow: hidden;
}

.story-image {
  float: right;
  width: 220px;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sidebar-box {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  padding-left: 1.5rem;
}

.service-list li::before {
  content: "✓";
  color: var(--src-red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.service-list li:last-child {
  border-bottom: none;
}

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

@media (min-width: 768px) {
  .facilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.facility-card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-light {
  background-color: white;
  color: var(--src-red);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-light:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* ===== Z-index Utilities ===== */
.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

/* ===== Modal Styles ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0;
  padding: 0;
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin: 40px auto;
  max-width: 1200px;
  width: 90%;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--src-dark);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #fee2e2;
  color: var(--src-red);
}

.modal-body {
  padding: 20px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  min-height: 0;
}

.modal-body img {
  max-width: 100%;
  max-height: calc(100vh - 240px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.modal-body a {
  display: inline-block;
}

.promo-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.promo-modal-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.promo-modal-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.promo-modal-phone-link:hover {
  color: #fe0a0a;
}

.promo-modal-phone-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.promo-modal-phone-link:hover .promo-modal-phone-icon {
  opacity: 1;
}

.promo-modal-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fe0a0a;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.promo-modal-contact-link:hover {
  color: #cc0808;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 20px auto;
    max-width: 95%;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-header h3 {
    font-size: 1.125rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-body img {
    max-height: calc(100vh - 130px);
  }
}

/* Very small mobile devices */
@media (max-width: 480px) {
  .modal-content {
    margin: 10px auto;
    max-width: 98%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 8px;
  }
  
  .modal-header {
    padding: 12px 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-body img {
    max-height: calc(100vh - 100px);
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ===== Promotion Badge Styles ===== */
.promotion-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
  z-index: 10;
  transition: all 0.3s ease;
  animation: promotionPulse 2s ease-in-out infinite;
}

.promotion-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(238, 90, 36, 0.6);
  animation: none;
}

button.promotion-badge {
  border: 0;
  appearance: none;
}

.promotion-badge-icon {
  font-size: 1rem;
  line-height: 1;
  animation: promotionBounce 1s ease-in-out infinite;
}

.promotion-badge-text {
  line-height: 1;
}

/* Promotion Badge Animations */
@keyframes promotionPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
  }
}

@keyframes promotionBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Responsive adjustments for promotion badge */
@media (max-width: 768px) {
  .promotion-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    top: -6px;
    right: -6px;
  }
  
  .promotion-badge-icon {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .promotion-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
    top: -4px;
    right: -4px;
  }
  
  .promotion-badge-icon {
    font-size: 0.75rem;
  }
}

/* ===== Promo Ticker Styles (Home page) ===== */
.promo-ticker {
  /* Default accent/bg: slightly deeper than site --src-red for prominence on the Home strip; overridable per promotion via tickerAccentHex / tickerBgHex */
  --promo-ticker-accent: #e20606;
  --promo-ticker-bg: #ffe6e9;
  /* Brighter than strip accent; used only in pulse keyframes below — tune for glow prominence */
  --promo-ticker-pulse-accent: #fe0a0a;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin: 0 0 14px 0;
  padding: 10px 14px;

  border-radius: 9999px;
  background: var(--promo-ticker-bg);
  border: 1px solid color-mix(in srgb, var(--promo-ticker-accent) 30%, transparent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--promo-ticker-accent) 12%, transparent);
}

/* Gradual SRC-red “breathing”: box-shadow only (avoids border animation reflow with siblings). Duration matches promoTickerPulse / promoTickerPulseSticky below. Trough/peak color-mix % are the main visibility knobs (low % reads washed on #ffe6e9). */
@keyframes promoTickerPulse {
  0%,
  100% {
    box-shadow: 0 4px 18px color-mix(in srgb, var(--promo-ticker-pulse-accent) 13%, transparent);
  }

  50% {
    box-shadow: 0 10px 32px color-mix(in srgb, var(--promo-ticker-pulse-accent) 72%, transparent);
  }
}

@keyframes promoTickerPulseSticky {
  0%,
  100% {
    box-shadow:
      0 12px 36px rgba(15, 23, 42, 0.18),
      0 4px 18px color-mix(in srgb, var(--promo-ticker-pulse-accent) 13%, transparent);
  }

  50% {
    box-shadow:
      0 12px 36px rgba(15, 23, 42, 0.18),
      0 10px 34px color-mix(in srgb, var(--promo-ticker-pulse-accent) 72%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .promo-ticker {
    animation: promoTickerPulse 3.5s ease-in-out infinite;
  }

  .promo-ticker.promo-ticker--sticky {
    animation: promoTickerPulseSticky 3.5s ease-in-out infinite;
  }
}

.promo-ticker-placeholder {
  display: none;
  width: 100%;
  height: 0;
}

.promo-ticker--sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2rem));
  /* Below fixed header (.z-50 = 50) so nav menu dropdown is not covered */
  z-index: 40;
  margin-bottom: 0;
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.18),
    0 4px 18px color-mix(in srgb, var(--promo-ticker-accent) 12%, transparent);
}

/* Pull ticker close to hero while keeping normal flow */
.home-services-section {
  padding-top: 0.5rem;
  padding-bottom: 4rem;
  overflow-anchor: none;
}

.promo-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.promo-ticker-label {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--promo-ticker-accent);
  white-space: nowrap;
  text-decoration: none;
}

.promo-ticker-item {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;

  border: 1px solid rgba(226, 6, 6, 0.3);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 9999px;

  padding: 10px 16px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(226, 6, 6, 0.16);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

/* Fixed slot avoids flex jump when SVG decodes (intrinsic size matches promotions.svg). */
.promo-ticker-icon-slot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(168px, 38vw);
  height: 32px;
  overflow: hidden;
}

.promo-ticker-icon-slot:has(img[hidden]) {
  width: 0;
  min-width: 0;
  height: 0;
  overflow: hidden;
}

.promo-ticker-icon {
  flex-shrink: 0;
  width: auto;
  height: 32px;
  max-width: min(168px, 38vw);
  object-fit: contain;
}

.promo-ticker-icon[hidden] {
  display: none;
}

.promo-ticker-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(226, 6, 6, 0.19);
}

.promo-ticker-item:disabled {
  cursor: default;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

/* Horizontal scroll when title exceeds pill width (flex-safe: min-width chain). */
.promo-ticker-title-track {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  /* Reserve line + scrollbar row so flex row height does not change when overflow toggles. */
  min-height: calc(1.02rem * 1.5 + 8px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  text-align: center;
}

.promo-ticker-title-track::-webkit-scrollbar {
  height: 0;
  display: none;
}

.promo-ticker-title {
  display: inline-block;
  min-width: min-content;
  font-weight: 900;
  font-size: 1.02rem;
  color: #0f172a;
  white-space: nowrap;
  text-align: center;
}

.promo-ticker-title--animate {
  animation: promoTickerSlideIn 0.35s ease-out both;
}

@keyframes promoTickerSlideIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Non-clickable badges when promo popups are disabled */
.promotion-badge.promo-badge-disabled,
.promotion-badge.promo-badge-disabled:hover {
  cursor: default;
  pointer-events: none;
  transform: none;
  animation: none;
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.22);
}

/* Reduced motion: remove slide animations and ambient ticker pulse */
@media (prefers-reduced-motion: reduce) {
  .promo-ticker {
    animation: none;
    border-color: color-mix(in srgb, var(--promo-ticker-accent) 30%, transparent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--promo-ticker-accent) 12%, transparent);
  }

  .promo-ticker.promo-ticker--sticky {
    animation: none;
    box-shadow:
      0 12px 36px rgba(15, 23, 42, 0.18),
      0 4px 18px color-mix(in srgb, var(--promo-ticker-accent) 12%, transparent);
  }

  .promo-ticker-title--animate {
    animation: none;
  }

  .promo-ticker-item {
    transition: none;
  }
}

/* Responsive adjustments (desktop/tablet/mobile) */
@media (max-width: 768px) {
  .home-services-section {
    padding-top: 0.35rem;
    padding-bottom: 3rem;
  }

  .promo-ticker {
    padding: 9px 12px;
  }

  .promo-ticker-label {
    font-size: 0.85rem;
  }

  .promo-ticker-item {
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .home-services-section {
    padding-top: 0.25rem;
    padding-bottom: 2.5rem;
  }

  .promo-ticker-label {
    display: none;
  }

  .promo-ticker-inner {
    gap: 8px;
  }

  .promo-ticker {
    margin-bottom: 10px;
  }
}

/* ===== Emergency Alert Styles ===== */
.emergency-alert {
  --emergency-accent: #be123c;
  --emergency-bg: #ffe4e6;

  width: 100%;
  margin: 0 0 14px 0;
  padding: 8px 12px;
  border-radius: 9999px;
  background: var(--emergency-bg);
  border: 2px solid rgba(190, 18, 60, 0.6);
  box-shadow: 0 10px 24px rgba(190, 18, 60, 0.24);
  position: relative;
}

/* Reduce vertical gap when emergency sits directly under Home promo ticker. */
.promo-ticker + .emergency-alert,
.promo-ticker-placeholder + .emergency-alert {
  margin-top: -10px;
}

/* When sticky, top offset is JS-controlled, so cancel flow compaction margin. */
.promo-ticker--sticky + .emergency-alert--sticky,
.promo-ticker-placeholder + .emergency-alert--sticky {
  margin-top: 0;
}

.emergency-alert-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.emergency-alert-label {
  flex-shrink: 0;
  background: var(--emergency-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.emergency-alert-trigger {
  flex: 1 1 auto;
  min-width: 0;
  border: 2px solid rgba(190, 18, 60, 0.45);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1f2937;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(190, 18, 60, 0.22);
}

.emergency-alert-text {
  display: inline-block;
  min-width: 0;
  font-size: 1.03rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emergency-alert-counter {
  flex-shrink: 0;
  background: var(--emergency-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.emergency-alert-hover-preview {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 41;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  padding: 6px;
  max-width: min(400px, calc(100vw - 2rem));
}

.emergency-alert-hover-preview img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
}

.emergency-alert-noscript {
  border: 2px solid rgba(190, 18, 60, 0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(190, 18, 60, 0.16);
}

.emergency-alert-noscript-title {
  margin: 0 0 6px 0;
  color: #9f1239;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.emergency-alert-noscript-text {
  margin: 0;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.45;
}

.emergency-alert-noscript-link {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 800;
  color: #9f1239;
  text-decoration: underline;
}

.emergency-alert-placeholder {
  display: none;
  width: 100%;
  height: 0;
}

.emergency-alert--sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2rem));
  z-index: 39;
  margin-bottom: 0;
}

.emergency-alert--global {
  margin: 0 auto 10px auto;
  width: min(1200px, calc(100% - 2rem));
}

.emergency-alert-modal-content {
  max-width: 860px;
  width: min(92vw, 860px);
  margin: 12px auto;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

.emergency-alert-modal-body {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  min-height: 0;
}

.emergency-alert-modal-message {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.55;
}

.emergency-alert-modal-image-link {
  display: inline-block;
}

.emergency-alert-modal-image-link img {
  border-radius: 10px;
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(42vh, 260px);
  max-height: min(42dvh, 260px);
}

.emergency-alert-modal-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #be123c;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .emergency-alert {
    padding: 8px 10px;
  }

  .emergency-alert-label {
    font-size: 0.78rem;
  }

  .emergency-alert-trigger {
    padding: 9px 12px;
  }

  .emergency-alert-text {
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .emergency-alert {
    margin-bottom: 10px;
  }

  .emergency-alert-label {
    display: none;
  }

  .emergency-alert-trigger {
    gap: 8px;
  }

  .emergency-alert-counter {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .emergency-alert-noscript {
    padding: 10px 12px;
  }

  .emergency-alert-noscript-title {
    font-size: 0.82rem;
  }

  .emergency-alert-noscript-text {
    font-size: 0.9rem;
  }
}

/* ===== Promotional Popup Styles ===== */
.promo-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.promo-popup-content {
  background: white;
  border-radius: 12px;
  max-width: 90%;
  width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  position: relative;
  display: flex;
  flex-direction: column;
}

.promo-popup-header {
  background: linear-gradient(135deg, #fe0a0a, #d00808);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-popup-header h3 {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.promo-popup-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.promo-popup-close:hover {
  opacity: 0.8;
}

.promo-popup-body {
  padding: 0;
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* Swiper styles */
.promoSwiper {
  width: 100%;
  height: 100%;
  max-height: calc(90vh - 80px);
}

.promoSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 20px;
  height: auto;
}

.promoSwiper .swiper-slide img {
  max-width: 100%;
  max-height: calc(90vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.promoSwiper .swiper-pagination-bullet {
  background: #fe0a0a;
}

.promoSwiper .swiper-button-next,
.promoSwiper .swiper-button-prev {
  color: #fe0a0a;
}

/* Prevent body scroll when popup is open */
body.promo-popup-open {
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .promo-popup-content {
    max-width: 95%;
    max-height: 85vh;
  }
  
  .promo-popup-header h3 {
    font-size: 1.25rem;
  }
  
  .promoSwiper {
    max-height: calc(85vh - 75px);
  }
  
  .promoSwiper .swiper-slide {
    padding: 15px;
  }
  
  .promoSwiper .swiper-slide img {
    max-height: calc(85vh - 135px);
  }
}

@media (max-width: 480px) {
  .promo-popup-header {
    padding: 16px;
  }
  
  .promo-popup-header h3 {
    font-size: 1.1rem;
  }
  
  .promoSwiper {
    max-height: calc(85vh - 68px);
  }
  
  .promoSwiper .swiper-slide {
    padding: 10px;
  }
  
  .promoSwiper .swiper-slide img {
    max-height: calc(85vh - 118px);
  }
  
  .promo-popup-close {
    padding: 4px;
  }
}

/* Mobile landscape */
@media (max-height: 600px) and (orientation: landscape) {
  .emergency-alert-modal-content {
    width: min(96vw, 860px);
    margin: 6px auto;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .emergency-alert-modal .modal-header {
    padding: 10px 14px;
  }

  .emergency-alert-modal .modal-header h3 {
    font-size: 1rem;
  }

  .emergency-alert-modal-body {
    padding: 12px;
    gap: 0.75rem;
  }

  .emergency-alert-modal-image-link img {
    max-height: min(34vh, 180px);
    max-height: min(34dvh, 180px);
  }

  .promo-popup-content {
    max-height: 95vh;
  }
  
  .promoSwiper {
    max-height: calc(95vh - 60px);
  }
  
  .promoSwiper .swiper-slide {
    padding: 10px;
  }
  
  .promoSwiper .swiper-slide img {
    max-height: calc(95vh - 100px);
  }
  
  .promo-popup-header {
    padding: 12px 16px;
  }
  
  .promo-popup-header h3 {
    font-size: 1rem;
  }
}

/* ===== Grid Layout Utilities ===== */
.grid {
  display: grid;
}

.gap-8 {
  gap: 2rem;
}

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

/* Responsive Grid Columns */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
}

.cookie-consent-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e0e0e0;
  margin-bottom: 0;
}

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

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.cookie-accept {
  background-color: var(--src-red);
  color: white;
}

.cookie-accept:hover {
  background-color: #d00909;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(254, 10, 10, 0.3);
}

.cookie-accept:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.cookie-reject {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.cookie-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cookie-reject:focus {
  outline: 2px solid var(--src-red);
  outline-offset: 2px;
}

/* Tablet and desktop layout */
@media (min-width: 768px) {
  .cookie-consent-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-consent-actions {
    flex-shrink: 0;
  }
}

/* Cookie Preferences Link (Footer) */
.cookie-preferences-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-preferences-link:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* ===== Utility Classes ===== */

/* --- Layout --- */
.block { display: block; }
.inline-flex { display: inline-flex; align-items: center; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }

/* --- Position --- */
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.z-50 { z-index: 50; }

/* --- Sizing --- */
.w-auto { width: auto; }
.w-12 { width: 3rem; }
.w-1\.5 { width: 0.375rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-1\.5 { height: 0.375rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.min-h-\[300px\] { min-height: 300px; }

/* --- Spacing --- */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.gap-0 { gap: 0; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }
.cursor-pointer { cursor: pointer; }

/* --- Text Colors --- */
.text-white { color: #ffffff; }
.text-src-dark { color: var(--src-dark); }
.text-gray-400 { color: #9ca3af; }
.text-gray-800 { color: #1f2937; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-red-900 { color: #7f1d1d; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-yellow-700 { color: #a16207; }
.text-yellow-800 { color: #854d0e; }
.text-orange-500 { color: #f97316; }

/* --- Background Colors --- */
.bg-src-light { background-color: var(--src-light); }
.bg-src-dark { background-color: var(--src-dark); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-red-100 { background-color: #fee2e2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-600 { background-color: #16a34a; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-opacity-20 { --tw-bg-opacity: 0.2; }
.bg-opacity-50 { --tw-bg-opacity: 0.5; }

/* --- Gradient Utilities --- */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-green-500 { --tw-gradient-from: #22c55e; --tw-gradient-to: #22c55e; }
.to-green-600 { --tw-gradient-to: #16a34a; }
.from-black\/80 { --tw-gradient-from: rgba(0, 0, 0, 0.8); --tw-gradient-to: rgba(0, 0, 0, 0); }
.to-transparent { --tw-gradient-to: transparent; }

/* --- Border --- */
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-dashed { border-style: dashed; }
.border-src-red { border-color: var(--src-red); }
.border-red-400 { border-color: #f87171; }
.border-red-500 { border-color: #ef4444; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-500 { border-color: #3b82f6; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-500 { border-color: #22c55e; }
.border-yellow-200 { border-color: #fef08a; }
.border-yellow-300 { border-color: #fde047; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* --- Shadow --- */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

/* --- Opacity --- */
.opacity-90 { opacity: 0.9; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* --- Object Fit --- */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* --- Flexbox Alignment --- */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

/* --- Hover States --- */
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }

/* --- Responsive: sm (640px) --- */
@media (min-width: 640px) {
  .sm\:px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .sm\:h-5 { height: 1.25rem !important; }
  .sm\:w-5 { width: 1.25rem !important; }
}

/* --- Additional Missing Utilities (utilities above already define duplicates) --- */
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.justify-end { justify-content: flex-end; }
.rounded-xl { border-radius: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.bg-orange-100 { background-color: #ffedd5; }
.max-h-\[90vh\] { max-height: 90vh; }

/* --- Additional Hover States --- */
.hover\:text-gray-700:hover { color: #374151; }
.hover\:text-src-red:hover { color: var(--src-red); }
.hover\:bg-red-50:hover { background-color: #fef2f2; }

/* --- Responsive: md (768px) --- */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:h-12 { height: 3rem !important; }
}
