/* ==========================================================
   Admin Anchor — Custom styles (complements Tailwind CDN)
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, .font-serif {
  font-family: 'Cormorant Garamond', serif;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Eyebrow label ---------------- */
.eyebrow {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1F3D36;
  opacity: 0.55;
}

/* ---------------- Navigation ---------------- */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #D16D57;
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #1F3D36;
}
.nav-link:hover::after {
  width: 100%;
}
.mobile-link {
  display: block;
  color: #222;
  padding: 0.25rem 0;
}

#navbar.scrolled {
  background-color: rgba(247, 243, 236, 0.92);
  border-bottom-color: rgba(31, 61, 54, 0.08);
  box-shadow: 0 4px 24px -8px rgba(31, 61, 54, 0.08);
}

/* ---------------- Buttons ---------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #1F3D36;
  color: #F7F3EC;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background-color: #16302a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(31, 61, 54, 0.45);
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-gradient:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D16D57;
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1F3D36;
  text-underline-offset: 4px;
  text-decoration: underline;
  text-decoration-color: rgba(31, 61, 54, 0.35);
  transition: text-decoration-color 0.25s ease, opacity 0.25s ease;
}
.btn-secondary:hover {
  text-decoration-color: #D16D57;
}

.btn-gradient {
  align-items: center;
  gap: 0.4rem;
  background-image: linear-gradient(135deg, #D16D57 0%, #b95940 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px -10px rgba(209, 109, 87, 0.5);
}

/* Ripple effect (JS adds .ripple span on click) */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple span.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-anim 600ms ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ---------------- Cards ---------------- */
.problem-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 30px -14px rgba(31, 61, 54, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(31, 61, 54, 0.2);
}

.service-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 30px -14px rgba(31, 61, 54, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid rgba(31, 61, 54, 0.06);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(31, 61, 54, 0.18);
  border-color: rgba(209, 109, 87, 0.3);
}
.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(209, 109, 87, 0.1);
  color: #D16D57;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.dot {
  margin-top: 0.5rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D16D57;
  flex-shrink: 0;
}

.testimonial-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 8px 30px -14px rgba(31, 61, 54, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(31, 61, 54, 0.18);
}
.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #1F3D36;
  color: #F7F3EC;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F7F3EC;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* ---------------- Step numbers ---------------- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #D16D57;
  background: #fff;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  box-shadow: 0 8px 24px -10px rgba(31, 61, 54, 0.2);
}

/* ---------------- FAQ ---------------- */
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 1.75rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1F3D36;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: #D16D57;
  transition: transform 0.3s ease;
}
.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}
.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* ---------------- Social icons ---------------- */
.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(31, 61, 54, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F3D36;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-icon svg {
  width: 1rem;
  height: 1rem;
}
.social-icon:hover {
  background-color: #1F3D36;
  color: #F7F3EC;
  transform: translateY(-2px);
}

/* ---------------- Scroll reveal animations ---------------- */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}
[data-animate="fade-up"] {
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="fade-in"] {
  transition: opacity 0.9s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Text balance for headline wrapping */
.text-balance {
  text-wrap: balance;
}

/* Animated bar in hero mockup */
.animate-pulse-bar {
  animation: pulse-bar 2.4s ease-in-out infinite;
}
@keyframes pulse-bar {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.js-counter-bar {
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Fit lists (good fit / not a fit) ---------------- */
.fit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}
.fit-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.fit-icon svg { width: 0.8rem; height: 0.8rem; }
.fit-yes .fit-icon { background: rgba(31, 61, 54, 0.1); color: #1F3D36; }
.fit-no .fit-icon { background: rgba(209, 109, 87, 0.12); color: #D16D57; }

/* ---------------- Tools pills ---------------- */
.tool-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1F3D36;
  background: #fff;
  border: 1px solid rgba(31, 61, 54, 0.1);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tool-pill:hover {
  border-color: #D16D57;
  transform: translateY(-2px);
}

/* ---------------- Comparison table ---------------- */
.compare-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 30px -14px rgba(31, 61, 54, 0.1);
}
.compare-card.is-highlighted {
  background: #1F3D36;
  color: #F7F3EC;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  line-height: 1.5;
}
.compare-list .fit-icon { margin-top: 0.05rem; }

/* ---------------- About photo ---------------- */
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 1.75rem;
  background: linear-gradient(160deg, #1F3D36 0%, #2c5148 60%, #D16D57 140%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F7F3EC;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -18px rgba(31, 61, 54, 0.35);
}

/* ---------------- Pricing card ---------------- */
.pricing-card {
  background: #fff;
  border-radius: 1.75rem;
  padding: 3rem;
  box-shadow: 0 8px 30px -14px rgba(31, 61, 54, 0.12);
  border: 1px solid rgba(31, 61, 54, 0.06);
}
