/* ============================================
   M Ford McBride, PhD — Clinical Psychologist
   Custom Styles
   ============================================ */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #d94f2e;
  color: #fff;
}

/* --- Geometric hero shapes --- */
.hero-geo {
  position: absolute;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217, 79, 46, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: -50px;
  border-radius: 50%;
  animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(244, 234, 201, 0.4) 0%, transparent 70%);
  top: 30%;
  left: 40%;
  border-radius: 50%;
  animation: float-slow 5s ease-in-out infinite;
}

.geo-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(217, 79, 46, 0.06);
  border: 2px solid rgba(217, 79, 46, 0.1);
  border-radius: 20px;
  top: 25%;
  right: 5%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(244, 234, 201, 0.3);
  bottom: 20%;
  right: 15%;
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

/* --- Service cards --- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d94f2e, #d4a853);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Navbar scroll state --- */
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

/* --- Mobile menu --- */
#mobileMenu.open {
  transform: translateX(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #c43d22;
}

/* --- Mobile menu link --- */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d94f2e;
  transition: width 0.3s ease;
}

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

/* --- Form select arrow --- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b2619' 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;
  appearance: none;
}
