/* ARQ Copiadora — custom styles that go beyond Tailwind utilities */

:root {
  --color-primary: #386f6a;
  --color-secondary: #be4238;
  --color-neutral: #e1e1e1;
  --color-dark: #1f2937;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', system-ui, sans-serif;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Halftone dot texture — a nod to print/offset production */
.halftone {
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
}

.halftone-dark {
  background-image: radial-gradient(rgba(31, 41, 55, 0.12) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
}

/* Hero background: solid white */
.hero-gradient {
  background: #ffffff;
}

/* Section eyebrow label */
.eyebrow {
  letter-spacing: 0.12em;
}

/* Card lift on hover */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(31, 41, 55, 0.18);
}

/* Service icon badge */
.icon-badge {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.card-lift:hover .icon-badge {
  background-color: var(--color-secondary);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(90deg, #386f6a, #4f9188);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header transition */
#site-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
}

/* WhatsApp floating button pulse */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}
.whatsapp-pulse {
  animation: pulse-ring 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Swiper pagination / navigation theming */
.swiper-pagination-bullet {
  background: var(--color-neutral) !important;
  opacity: 1 !important;
  width: 9px !important;
  height: 9px !important;
}
.swiper-pagination-bullet-active {
  background: var(--color-secondary) !important;
  width: 22px !important;
  border-radius: 9999px !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary) !important;
  background: #fff;
  width: 44px !important;
  height: 44px !important;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -8px rgba(31, 41, 55, 0.25);
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px !important;
  font-weight: 900;
}
@media (max-width: 767px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Portfolio video mask */
.video-mask {
  cursor: pointer;
}

/* Portfolio image zoom */
.portfolio-frame {
  overflow: hidden;
}
.portfolio-frame img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-frame:hover img {
  transform: scale(1.08);
}

/* Star rating */
.star {
  color: #f5b400;
}

/* Custom scrollbar (progressive enhancement, not required for function) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 9999px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .whatsapp-pulse {
    animation: none;
  }
  .card-lift, .card-lift:hover, .portfolio-frame img {
    transition: none !important;
    transform: none !important;
  }
}
