/* =================================================================
   UI ENHANCEMENTS — layered on top of styles.css
   ================================================================= */

/* ── CSS custom props additions ───────────────────────────────────────────── */
:root {
  --teal-glow: rgba(47, 143, 157, 0.25);
  --gold-glow: rgba(201, 162, 39, 0.2);
  --card-radius: 14px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Gradient text utility ────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section headings — teal accent line ──────────────────────────────────── */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  display: block;
  height: 3px;
  width: 48px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  margin-top: 10px;
}

.section-header .section-heading::after,
.about-content .section-heading::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero — enhanced depth ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #060f14 0%, #0e1a22 45%, #1a2e3a 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(47, 143, 157, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-headline {
  letter-spacing: -0.5px;
}

.hero-subheadline {
  opacity: 0.85;
}

/* ── Nav — sharper scrolled state ────────────────────────────────────────── */
.nav.scrolled {
  background: rgba(6, 15, 20, 0.97);
  box-shadow: 0 1px 0 rgba(47, 143, 157, 0.2), 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ── Buttons — shimmer effect ────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 80%
  );
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 160%;
}

.btn-primary {
  box-shadow: 0 4px 20px var(--teal-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(47, 143, 157, 0.5);
}

/* ── Principle cards — colored top accent + glow ─────────────────────────── */
.principle-card {
  border-radius: var(--card-radius);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: var(--transition-smooth);
}

.principle-card:nth-child(1) { border-top-color: var(--teal); }
.principle-card:nth-child(2) { border-top-color: var(--gold); }
.principle-card:nth-child(3) { border-top-color: var(--teal); }

.principle-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(47, 143, 157, 0.12);
}

.principle-icon {
  box-shadow: 0 4px 16px var(--teal-glow);
  transition: var(--transition-smooth);
}

.principle-card:hover .principle-icon {
  box-shadow: 0 6px 24px rgba(47, 143, 157, 0.35);
  transform: scale(1.05);
}

/* ── Reflection cards — richer hover ─────────────────────────────────────── */
.reflection-card {
  border-radius: var(--card-radius);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.reflection-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border-color: rgba(47, 143, 157, 0.2);
}

.reflection-image {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.reflection-card:hover .reflection-image {
  transform: scale(1.03);
}

.reflection-link {
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reflection-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s ease;
}

.reflection-link:hover::after {
  transform: translateX(5px);
}

/* ── Resource items — left glow on hover ─────────────────────────────────── */
.resource-item {
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.resource-item:hover {
  background: rgba(47, 143, 157, 0.1);
  border-left-color: var(--teal);
  transform: translateX(6px);
  box-shadow: inset 3px 0 0 var(--teal);
}

/* ── Feature items (coaching) ────────────────────────────────────────────── */
.feature-item {
  transition: var(--transition-smooth);
  padding: 1rem;
  border-radius: 10px;
}

.feature-item:hover {
  background: rgba(47, 143, 157, 0.05);
}

.feature-item svg {
  transition: var(--transition-smooth);
  stroke: var(--teal);
  flex-shrink: 0;
}

.feature-item:hover svg {
  stroke: var(--gold);
  transform: scale(1.1);
}

/* ── Form inputs — glowing focus ─────────────────────────────────────────── */
.contact-form input,
.contact-form select,
.contact-form textarea {
  transition: var(--transition-smooth);
  border-radius: 8px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* ── Info boxes (contact sidebar) ────────────────────────────────────────── */
.info-box {
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.info-box:not(.safety-note):hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ── Section dividers ────────────────────────────────────────────────────── */
.about::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 50%, transparent 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.5;
}

.about {
  position: relative;
}

/* ── Nav link hover ───────────────────────────────────────────────────────── */
.nav-link::after {
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

/* ── Footer top accent ────────────────────────────────────────────────────── */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--gold) 70%, transparent);
  opacity: 0.4;
}

/* ── Scroll indicator pulse ──────────────────────────────────────────────── */
.scroll-indicator svg {
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .btn::before { display: none; }
  .scroll-indicator svg { animation: none; }
}
