/* ============================================================
   Northgate Consulting Inc. — Custom Styles
   Tailwind CDN handles utility classes; this file covers
   animations, component states, and print overrides.
   ============================================================ */

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

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

/* Sticky-header offset for in-page anchors */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Fade-In Animation ────────────────────────────────────── */
.animate-hidden {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.animate-visible {
  opacity: 1;
}

/* ── Header Scroll State ──────────────────────────────────── */
.header-scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e5e7eb;
  background-color: rgba(255, 255, 255, 0.98) !important;
}

/* ── Mobile Full-Screen Overlay ───────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker,
details summary::marker {
  display: none;
}

details summary .faq-chevron {
  transition: transform 0.25s ease;
}

details[open] summary .faq-chevron {
  transform: rotate(180deg);
}

details .faq-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

details[open] .faq-body {
  max-height: 600px;
  opacity: 1;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ── Form Focus States ────────────────────────────────────── */
input:focus,
textarea:focus,
select:focus {
  border-color: #14b8a6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.error,
textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.visible {
  display: block;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-pill {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pill:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* ── Cards — Outline-Accent ───────────────────────────────── */
.card-outline {
  transition: box-shadow 0.2s ease;
}

.card-outline:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* ── Cookie Consent Banner ────────────────────────────────── */
.cookie-card {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-card.hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

/* ── Dot Separator Divider ────────────────────────────────── */
.dot-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.dot-divider span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #5eead4; /* brand-300 */
}

/* ── Custom Checkbox ──────────────────────────────────────── */
input[type="checkbox"].custom-check {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  position: relative;
  flex-shrink: 0;
}

input[type="checkbox"].custom-check:checked {
  background-color: #0d9488; /* brand-600 */
  border-color: #0d9488;
}

input[type="checkbox"].custom-check:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Print Styles ─────────────────────────────────────────── */
@media print {
  header,
  footer,
  .cookie-card,
  .mobile-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  section[id] {
    scroll-margin-top: 0;
  }

  .animate-hidden {
    opacity: 1 !important;
  }
}
