/* ============================================
   Auto Keys Made Here — Custom Styles
   Classic & Elegant · Teal + Slate Grey
   ============================================ */

/* ---- Base / Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(19, 78, 74, 0.2);
  color: #134e4a;
}

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

/* ---- Scroll Reveal (progressive enhancement) ---- */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Navbar ---- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #14b8a6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Mobile Menu ---- */
.menu-line {
  display: block;
  height: 2px;
  background-color: #134e4a;
  transition: all 0.3s ease;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 1.5rem;
}

/* ---- Buttons ---- */
button, [type="submit"] {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Form Focus ---- */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: none;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ---- Back to Top ---- */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Service Card Hover ---- */
.group:hover .group-hover\:bg-teal-800 {
  background-color: #134e4a;
}

/* ---- Print ---- */
@media print {
  nav, #back-to-top, button {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
  }
}
