/* ============================================================
   Poor Mountain — custom styles
   Tailwind handles layout/colors via the CDN. This file holds:
   - component-level styles that are too verbose to inline
   - keyframes/animations
   - scroll-reveal + form polish
   ============================================================ */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
}

html { -webkit-font-smoothing: antialiased; }
body { text-rendering: optimizeLegibility; }

/* Header shrink-on-scroll */
#site-header.is-scrolled nav {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 14px 30px -18px rgba(15, 23, 42, 0.18);
}
.dark #site-header.is-scrolled nav {
  background-color: rgba(11, 18, 32, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}

/* Nav links */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 0.625rem;
  color: rgb(30 41 59 / 0.85);
  transition: color 200ms var(--ease-out-expo), background-color 200ms var(--ease-out-expo);
}
.dark .nav-link { color: rgb(226 232 240 / 0.85); }
.nav-link:hover { background-color: rgb(15 23 42 / 0.04); color: rgb(15 23 42); }
.dark .nav-link:hover { background-color: rgb(255 255 255 / 0.06); color: rgb(255 255 255); }
.nav-link.is-active { color: rgb(15 23 42); }
.dark .nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #f5b88a);
}

.mobile-link {
  display: block;
  padding: 0.85rem 1rem;
  color: rgb(30 41 59);
}
.dark .mobile-link { color: rgb(226 232 240); }
.mobile-link:hover { background-color: rgb(15 23 42 / 0.04); }
.dark .mobile-link:hover { background-color: rgb(255 255 255 / 0.05); }

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-float-slow { animation: none !important; }
}

/* ============================================================
   Service cards
   ============================================================ */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgb(15 23 42 / 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 22px 40px -34px rgba(15, 23, 42, 0.25);
  transition: transform 350ms var(--ease-out-expo), box-shadow 350ms var(--ease-out-expo), border-color 350ms ease;
  overflow: hidden;
}
.dark .service-card {
  border-color: rgb(255 255 255 / 0.08);
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.85), rgba(11, 18, 32, 0.85));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.7);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16,185,129,0.45), rgba(245,184,138,0.45));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 350ms var(--ease-out-expo);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 60px -30px rgba(15, 23, 42, 0.28);
}
.service-card:hover::before { opacity: 1; }

.service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(15 23 42);
}
.dark .service-card h3 { color: #fff; }
.service-card p {
  color: rgb(51 65 85);
  line-height: 1.6;
}
.dark .service-card p { color: rgb(203 213 225); }
.service-card ul {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: rgb(71 85 105);
}
.dark .service-card ul { color: rgb(148 163 184); }
.service-card ul li {
  position: relative;
  padding-left: 1.25rem;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(135deg, #10b981, #f5b88a);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
}
.service-icon svg { width: 1.35rem; height: 1.35rem; }

/* ============================================================
   Why cards
   ============================================================ */
.why-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgb(15 23 42 / 0.06);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  transition: transform 350ms var(--ease-out-expo);
}
.dark .why-card {
  border-color: rgb(255 255 255 / 0.08);
  background: rgba(18, 26, 44, 0.6);
}
.why-card:hover { transform: translateY(-3px); }
.why-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.6rem;
  color: rgb(15 23 42);
}
.dark .why-card h3 { color: #fff; }
.why-card p {
  margin-top: 0.4rem;
  color: rgb(71 85 105);
  font-size: 0.95rem;
  line-height: 1.55;
}
.dark .why-card p { color: rgb(203 213 225); }
.why-num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #10b981, #f5b88a);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ============================================================
   Testimonials
   ============================================================ */
.t-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(15 23 42 / 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,243,236,0.9));
  box-shadow: 0 30px 60px -45px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dark .t-card {
  border-color: rgb(255 255 255 / 0.08);
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.85), rgba(11, 18, 32, 0.85));
}
.t-quote {
  width: 1.85rem;
  height: 1.85rem;
  color: rgb(16 185 129 / 0.45);
}
.dark .t-quote { color: rgb(52 216 176 / 0.45); }
.t-card blockquote p {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgb(15 23 42);
  letter-spacing: -0.005em;
}
.dark .t-card blockquote p { color: rgb(241 245 249); }
.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.t-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.t-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: rgb(15 23 42);
}
.dark .t-name { color: #fff; }
.t-role {
  font-size: 0.8rem;
  color: rgb(100 116 139);
}
.dark .t-role { color: rgb(148 163 184); }

.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.18);
  transition: width 250ms var(--ease-out-expo), background-color 250ms ease;
}
.dark .t-dot { background: rgb(255 255 255 / 0.22); }
.t-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, #10b981, #f5b88a);
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgb(16 185 129 / 0.12);
  color: rgb(16 163 113);
  flex-shrink: 0;
}
.dark .contact-ico { color: rgb(52 216 176); }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(30 41 59);
  letter-spacing: 0.01em;
}
.dark .field label { color: rgb(226 232 240); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(15 23 42 / 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: rgb(15 23 42);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.dark .field input,
.dark .field select,
.dark .field textarea {
  border-color: rgb(255 255 255 / 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgb(241 245 249);
}
.field input::placeholder,
.field textarea::placeholder { color: rgb(100 116 139 / 0.7); }
.dark .field input::placeholder,
.dark .field textarea::placeholder { color: rgb(148 163 184 / 0.7); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgb(16 185 129 / 0.7);
  box-shadow: 0 0 0 4px rgb(16 185 129 / 0.16);
  background: #fff;
}
.dark .field input:focus,
.dark .field select:focus,
.dark .field textarea:focus {
  background: rgba(255, 255, 255, 0.08);
}

.field textarea { resize: vertical; min-height: 7rem; }

.field-error {
  display: none;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgb(225 29 72);
}
.dark .field-error { color: rgb(253 164 175); }
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: rgb(225 29 72 / 0.6);
  box-shadow: 0 0 0 4px rgb(225 29 72 / 0.12);
}

/* Budget chip radios */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.5rem;
  border-radius: 0.7rem;
  border: 1px solid rgb(15 23 42 / 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgb(30 41 59);
  cursor: pointer;
  transition: all 200ms var(--ease-out-expo);
}
.dark .chip {
  border-color: rgb(255 255 255 / 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgb(226 232 240);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: rgb(16 185 129 / 0.55); }
.chip:has(input:checked) {
  border-color: rgb(16 185 129);
  background: rgb(16 185 129 / 0.12);
  color: rgb(16 163 113);
}
.dark .chip:has(input:checked) {
  background: rgb(16 185 129 / 0.15);
  color: rgb(52 216 176);
}

/* ============================================================
   Footer
   ============================================================ */
.footer-h {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(30 41 59);
}
.dark .footer-h { color: rgb(226 232 240); }
.footer-list {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgb(71 85 105);
}
.dark .footer-list { color: rgb(148 163 184); }
.footer-list a:hover { color: rgb(15 23 42); }
.dark .footer-list a:hover { color: #fff; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgb(15 23 42 / 0.08);
  color: rgb(51 65 85);
  background: rgba(255, 255, 255, 0.8);
  transition: all 200ms var(--ease-out-expo);
}
.dark .footer-social {
  border-color: rgb(255 255 255 / 0.1);
  color: rgb(203 213 225);
  background: rgba(255, 255, 255, 0.04);
}
.footer-social svg { width: 1rem; height: 1rem; }
.footer-social:hover {
  transform: translateY(-2px);
  border-color: rgb(16 185 129 / 0.6);
  color: rgb(16 163 113);
}
.dark .footer-social:hover { color: rgb(52 216 176); }

/* Scrollbar polish (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.dark ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.35); background-clip: padding-box; }
.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); background-clip: padding-box; }
