/* ==========================================================================
   Taeona Morgan — Psychology Tutoring
   Custom styles layered on top of Tailwind
   ========================================================================== */

/* ---- Base typography refinements ---- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fraunces — restrained settings for a refined, editorial look */
.font-display {
  font-variation-settings: "opsz" 96, "SOFT" 25;
  letter-spacing: -0.025em;
}

/* Largest headline gets a slightly tighter optical size */
h1.font-display {
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.03em;
}

/* Selection color matches brand */
::selection {
  background: #FCE4EC;
  color: #AD1457;
}

/* Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Hide alpine cloak before init */
[x-cloak] {
  display: none !important;
}

/* ---- Section anchor offset for sticky nav ---- */
section[id] {
  scroll-margin-top: 5rem;
}

/* ---- Buttons & links: refined focus rings ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #D81B60;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---- Custom scrollbar (subtle) ---- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #FBF7F2;
}
::-webkit-scrollbar-thumb {
  background: #EAE5DD;
  border-radius: 10px;
  border: 2px solid #FBF7F2;
}
::-webkit-scrollbar-thumb:hover {
  background: #D81B60;
}

/* ---- Fancy underline animation for nav links on desktop ---- */
@media (min-width: 768px) {
  header nav ul li a {
    position: relative;
    padding-bottom: 4px;
  }
  header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #D81B60;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.4s var(--ease-out);
  }
  header nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* ---- Hero accent shape: subtle parallax on hover ---- */
section:first-of-type .aspect-\[4\/5\] {
  transition: transform 0.6s var(--ease-out);
}

/* ---- Card hover lift ---- */
[data-aos] {
  will-change: transform, opacity;
}

#who .group,
#testimonials figure {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
}

#who .group:hover {
  transform: translateY(-3px);
  border-color: #D81B60;
  box-shadow: 0 16px 32px -20px rgba(216, 27, 96, 0.2);
}

#testimonials figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(26, 27, 46, 0.12);
  border-color: #FCE4EC;
}

/* ---- Sessions grid: subtle inner-cell hover lift ---- */
#sessions .grid > div {
  transition: background-color 0.3s ease, transform 0.3s ease;
}
#sessions .grid > div:hover {
  background: #FFFFFF;
}

/* ---- Credentials cards: gradient border on hover ---- */
#credentials .grid > div {
  position: relative;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}
#credentials .grid > div:hover {
  transform: translateY(-4px);
}

/* ---- Form: refined input look ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: #1A1B2E;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9C9DAE;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5C73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---- Decorative blob animation ---- */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -15px) scale(1.05); }
}

section:first-of-type .absolute.rounded-full {
  animation: float 14s ease-in-out infinite;
}

/* ---- Reduced motion: disable animations ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Print styles ---- */
@media print {
  header, footer, #contact form { display: none; }
  body { background: white; color: black; }
}
