/* shared.css — styles used across 3+ pages */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #1B2A4A;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, blockquote {
  font-family: 'Source Serif 4', Georgia, serif;
}

*:focus-visible {
  outline: 2px solid #0E7C6B;
  outline-offset: 3px;
}

a.link { color: #0A5F53; text-decoration: underline; text-underline-offset: 3px; }
a.link:hover { color: #084D44; }

/* Nav */
.nav-shadow { box-shadow: 0 1px 0 #D8DDE2; }
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* Gold rule */
.gold-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: #C4841D;
  border-radius: 2px;
}

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Cookie consent banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1B2A4A;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 32px rgba(11,21,34,0.5);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner .cb-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#cookie-banner .cb-text {
  flex: 1;
  min-width: 260px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
#cookie-banner .cb-text a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cookie-banner .cb-text a:hover { color: #fff; }
#cookie-banner .cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
#cookie-banner .cb-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
#cookie-banner .cb-btn:hover { transform: translateY(-1px); }
#cookie-banner .cb-btn:active { transform: none; }
#cookie-banner .cb-accept {
  background: #0E7C6B;
  color: #fff;
}
#cookie-banner .cb-accept:hover { background: #0A5F53; }
#cookie-banner .cb-necessary {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
#cookie-banner .cb-necessary:hover { background: rgba(255,255,255,0.15); }
#cookie-banner .cb-manage {
  background: none;
  color: rgba(255,255,255,0.45);
  padding: 9px 12px;
  font-size: 12px;
}
#cookie-banner .cb-manage:hover { color: rgba(255,255,255,0.7); }

/* Cookie preferences panel */
#cookie-panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px 4px;
  max-width: 72rem;
  margin: 0 auto;
}
#cookie-panel.open { display: block; }
#cookie-panel .cp-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#cookie-panel .cp-group:last-child { border-bottom: none; }
#cookie-panel .cp-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
#cookie-panel .cp-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}
#cookie-panel .cp-toggle input:disabled { cursor: not-allowed; }
#cookie-panel .cp-track {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  transition: background .2s;
}
#cookie-panel .cp-toggle input:checked + .cp-track { background: #0E7C6B; }
#cookie-panel .cp-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
#cookie-panel .cp-toggle input:checked + .cp-track::after { transform: translateX(16px); }
#cookie-panel .cp-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2px;
}
#cookie-panel .cp-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
#cookie-panel .cp-always {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-top: 2px;
}

/* Accessibility: respect motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
