/* SimpliLEAD — global styles
   These complement Tailwind utility classes loaded via CDN. */

:root {
  --brand: #1AA7A6;
  --brand-700: #086B6B;
  --accent: #E63946;
  --ink: #0B1F2A;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F4F6F8;
}
::-webkit-scrollbar-thumb {
  background: #C0EBEB;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* Selection */
::selection {
  background: var(--brand);
  color: #fff;
}

/* Line clamp utility (in case Tailwind plugin not loaded via CDN) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Header scrolled state */
#site-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(11, 31, 42, 0.1);
}

/* Reveal-on-scroll animations */
[data-aos] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(0.95); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Back-to-top */
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Focus visible — improved a11y */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Form field placeholder */
input::placeholder,
textarea::placeholder {
  color: rgba(11, 31, 42, 0.4);
}

/* Image loading shimmer */
img {
  background: linear-gradient(90deg, #E3E8EC 0%, #F4F6F8 50%, #E3E8EC 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
img.loaded {
  background: none;
  animation: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
