:root {
  --color-bg: #f3f6fa;
  --color-surface: #ffffff;
  --color-surface-muted: #e9eff6;
  --color-text: #142033;
  --color-text-muted: #4b5b75;
  --color-text-primary: #142033;
  --color-primary: #1e3a5f;
  --color-secondary: #1f6b5c;
  --color-border: #cfd8e5;
  --motion-ease: 220ms ease;
}

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% 2%, rgba(31, 107, 92, 0.1) 0%, rgba(31, 107, 92, 0) 42%),
    radial-gradient(circle at 90% 0%, rgba(30, 58, 95, 0.13) 0%, rgba(30, 58, 95, 0) 46%),
    var(--color-bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 246, 250, 0.88);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  width: auto;
  height: 3.1rem;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.primary-nav a {
  position: relative;
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-ease);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.5rem 0.8rem;
}

.site-footer {
  background: #0e1a2b;
  color: #d7deea;
  padding: 1.7rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: #d7deea;
}

.brand-line {
  margin: 0;
  font-weight: 600;
}

.small {
  margin: 0.3rem 0 0;
  color: #a6b4cb;
  font-size: 0.9rem;
}

.button {
  display: inline-block;
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.button-sm {
  padding: 0.48rem 0.85rem;
}

.button-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ─── Cookie Consent Popup ─── */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9900;
  background: rgba(10, 18, 32, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: cookie-fade-in 200ms ease both;
}

.cookie-overlay[hidden] {
  display: none;
}

@keyframes cookie-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-modal {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow:
    0 2px 0 0 var(--color-secondary),
    0 24px 60px rgba(10, 18, 32, 0.28),
    0 6px 18px rgba(10, 18, 32, 0.14);
  animation: cookie-slide-up 240ms cubic-bezier(0.22, 0.78, 0.28, 1) both;
}

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-modal-body {
  padding: 2rem 1.85rem 1.6rem;
}

.cookie-modal-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cookie-modal-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

.cookie-modal-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.cookie-modal-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.62;
  margin: 0 0 1.4rem;
}

.cookie-modal-desc a {
  color: var(--color-primary);
  font-weight: 500;
}

.cookie-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.cookie-modal-actions .button {
  justify-content: center;
  text-align: center;
  font-size: 0.88rem;
  padding: 0.65rem 0.75rem;
}

.cookie-modal-links {
  text-align: center;
  font-size: 0.78rem;
  color: #6f7d95;
}

.cookie-modal-links a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-modal-links a:hover {
  color: var(--color-primary);
}

.cookie-modal-links span {
  margin: 0 0.3rem;
  opacity: 0.4;
}

@media (max-width: 760px) {
  .brand-logo {
    height: 2.5rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .cookie-modal-actions {
    grid-template-columns: 1fr;
  }
}
