/* ==========================================================================
   BUSY HANDS & BRAINS — Global Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --gold: #d4af37;
  --gold-light: #f5e8a5;
  --black: #000000;
  --zinc-950: #09090b;
  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--zinc-950);
  color: #ffffff;
}

.logo-font {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero-bg {
  background: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.82)), url('https://picsum.photos/id/1015/2000/1200');
  background-size: cover;
  background-position: center;
}

.page-hero-bg {
  background: linear-gradient(rgba(0,0,0,0.75), rgba(9,9,11,0.96)), url('https://picsum.photos/id/1015/2000/900');
  background-size: cover;
  background-position: center;
}

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
  color: #d4d4d8;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--gold); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -8px rgba(212,175,55,0.45);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  transition: all 0.25s ease;
}
.btn-outline:hover { background: #fff; color: #000; }

.btn-ghost {
  background: var(--zinc-800);
  color: #fff;
  transition: background 0.25s ease;
}
.btn-ghost:hover { background: var(--zinc-700); }

/* ---------- Cards ---------- */
.card {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-700);
  border-radius: 1.5rem;
}

.service-card {
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1), border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45);
  border-color: var(--gold);
}

.price-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4); }

/* ---------- Section heading ---------- */
.section-eyebrow {
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb a { color: #a1a1aa; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--gold); }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}
@media (max-width: 480px) {
  .floating-whatsapp { bottom: 16px; right: 16px; width: 56px; height: 56px; font-size: 1.75rem; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(84vw, 340px);
  background: var(--black);
  border-left: 1px solid var(--zinc-800);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--zinc-800);
  color: #e4e4e7;
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--gold); background: var(--zinc-900); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--zinc-800); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.5rem 0;
  font-weight: 600;
  font-size: 1.15rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.faq-icon { transition: transform 0.3s ease; color: var(--gold); flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: #a1a1aa;
  line-height: 1.7;
}
.faq-answer.open { max-height: 500px; padding-bottom: 1.5rem; }

/* No-JS fallback: show all answers if JS never runs the accordion class toggle */
.no-js .faq-answer { max-height: none; padding-bottom: 1.5rem; }

/* ---------- Forms ---------- */
.form-input {
  width: 100%;
  background: var(--zinc-900);
  border: 1px solid var(--zinc-700);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  color: #fff;
  transition: border-color 0.2s ease;
}
.form-input:focus { border-color: var(--gold); outline: none; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #d4d4d8; margin-bottom: 0.5rem; }
.form-error { color: #f87171; font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.form-input:invalid.touched { border-color: #f87171; }
.form-input:invalid.touched ~ .form-error { display: block; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Process steps (About page) ---------- */
.process-step {
  position: relative;
  padding-left: 3.5rem;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0; top: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.375rem; top: 2.75rem;
  bottom: -1.75rem;
  width: 2px;
  background: var(--zinc-700);
}
