/* ============================================================
 * DESIGN TOKENS (CSS Custom Properties)
 * ============================================================ */
:root {
  --color-brand: #1e40af;
  --color-brand-hover: #1e3a8a;
  --color-brand-light: #dbeafe;
  --color-accent: #0f172a;
  --color-accent-hover: #1e293b;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;

  --radius-btn: 0.625rem;
  --radius-card: 0.75rem;
  --radius-container: 1rem;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.04);

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --interact-speed: 200ms;
  --interact-ease: ease-out;
}

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

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.03em;
}

.nav-link {
  letter-spacing: 0.03em;
}

/* ============================================================
 * SCROLL ANIMATIONS
 * ============================================================ */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.65s var(--ease-out-expo) forwards; }

.section-fade { transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo); }
.section-fade.section-hidden { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .section-fade { animation: none; opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
 * MOBILE MENU
 * ============================================================ */
@keyframes slide-down {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 80vh; }
}
.mobile-menu-open {
  display: block !important;
  animation: slide-down 0.35s var(--ease-out-expo);
}

/* ============================================================
 * COOKIE PULSE
 * ============================================================ */
@keyframes cookie-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.cookie-pulse { animation: cookie-pulse 2.4s var(--ease-out-expo) infinite; }
@media (prefers-reduced-motion: reduce) {
  .cookie-pulse { animation: none; }
}

/* ============================================================
 * FOCUS STATES
 * ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: var(--radius-btn);
}

/* ============================================================
 * IMAGE INSET BORDER
 * Prevents "floating cutout" look on rounded images
 * ============================================================ */
.img-border {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* ============================================================
 * SECTION ANCHOR OFFSET
 * Compensates for fixed header height
 * ============================================================ */
section[id] {
  scroll-margin-top: 100px;
}

/* ============================================================
 * UNIFIED HOVER EFFECTS
 * Consistent timing, easing & lift across ALL links/buttons
 * Page-specific colours/transforms via Tailwind still work.
 * ============================================================ */

/* Every link / button gets the same micro-interaction */
a:not(.skip-link),
button:not(:disabled),
.gf-tab-btn {
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: var(--interact-speed);
  transition-timing-function: var(--interact-ease);
}

a:hover,
button:hover,
.gf-tab-btn:hover {
  transform: translateY(-1px);
}

/* Nav links — blue tint on hover, clearly visible on both backgrounds */
.nav-link:hover {
  color: var(--color-brand);
}

/* Card headings inside group containers — blue on hover */
.group h2:hover,
.group h3:hover {
  color: var(--color-brand);
}

/* Icon bg blocks — subtle tint + border */
.icon-bg-light:hover {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

/* Active tab — suppress lift */
[aria-selected="true"]:hover {
  transform: none !important;
}

/* SVG icons inside groups — reset lift */
.group svg {
  transform: none !important;
  transition: fill var(--interact-speed) var(--interact-ease);
}

/* Gallery card images — smooth zoom on card hover */
.group img.zoomable {
  transition: transform 500ms ease-out;
}
.group:hover img.zoomable {
  transform: scale(1.05);
}

/* ============================================================
 * HONEY POT
 * ============================================================ */
.hp-field { display: none !important; }
