@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --brand-slate-900: #0f172a;
  --brand-slate-50: #f8fafc;
  --brand-orange-500: #f97316;
  --brand-orange-600: #ea580c;
  --brand-slate-400: #94a3b8;
}

body.overflow-hidden {
  overflow: hidden;
}

.site-header__logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-button--primary {
  background-color: var(--brand-orange-500);
  color: #fff;
}

.site-button--primary:hover {
  background-color: var(--brand-orange-600);
}

.site-button--ghost {
  border-color: rgba(148, 163, 184, 0.4);
  background-color: #fff;
  color: #1e293b;
}

.site-button--ghost:hover {
  border-color: var(--brand-orange-500);
  color: var(--brand-orange-500);
}

.site-section__title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #1e293b;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.site-footer__link {
  font-size: 0.875rem;
  color: var(--brand-slate-400);
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-slider {
  isolation: isolate;
  touch-action: pan-y;
}

.site-slider__track {
  position: relative;
  cursor: grab;
}

.site-slider.is-dragging .site-slider__track {
  cursor: grabbing;
}

.site-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-slider__slide.is-active {
  position: absolute;
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.site-slider__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(248, 250, 252, 0.6);
  background-color: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.site-slider:hover .site-slider__control,
.site-slider:focus-within .site-slider__control,
.site-slider:focus-visible .site-slider__control {
  opacity: 1;
}

.site-slider__control--prev {
  left: 1rem;
}

.site-slider__control--next {
  right: 1rem;
}

.site-slider__control:hover {
  background-color: rgba(249, 115, 22, 0.8);
  border-color: rgba(249, 115, 22, 0.8);
}

.site-slider__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
  z-index: 3;
}

.site-slider__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-slider__dot[aria-selected="true"] {
  background-color: #f97316;
  transform: scale(1.2);
}

.site-slider__dot:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}
