/* Caribbean Gateway — global tokens & base styles */

:root {
  /* Palette */
  --ivory: #f5f1e8;
  --ivory-2: #efe9da;
  --paper: #fbf8f1;
  --navy: #0f1f33;
  --navy-2: #1a2d44;
  --ink: #16202e;
  --sage: #7a8f7a;
  --sage-2: #5e7361;
  --gold: #b8924a;
  --clay: #c47a5a;
  --rule: rgba(15, 31, 51, 0.14);
  --rule-2: rgba(15, 31, 51, 0.08);
  --muted: #5b6473;

  /* Type */
  --display: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Sizing */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 10vw, 128px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

/* Type scale */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 24;
  color: var(--gold);
}

h1.display { font-size: clamp(44px, 7vw, 96px); }
h2.display { font-size: clamp(34px, 5vw, 64px); }
h3.display { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-2);
  font-weight: 500;
}

.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.005em;
  max-width: 64ch;
  text-wrap: pretty;
}

.body-lg {
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  max-width: 64ch;
  text-wrap: pretty;
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--ivory);
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--navy-2); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--ivory); }
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: #a47e3a; border-color: #a47e3a; color: var(--ivory); }

.arrow {
  width: 14px; height: 10px;
  display: inline-block;
}

/* Links with underline-draw */
.link {
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}
.link:hover { background-size: 100% 2px; }

/* Rule */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { height: 1px; background: var(--navy); opacity: 0.85; border: 0; margin: 0; }

/* Image placeholder slot */
.slot {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--ivory-2) 0px,
      var(--ivory-2) 8px,
      var(--paper) 8px,
      var(--paper) 16px
    );
  border: 1px solid var(--rule);
  overflow: hidden;
}
.slot__label {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sage-2);
  background: var(--ivory);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.slot--dark {
  background:
    repeating-linear-gradient(
      135deg,
      #16263b 0px,
      #16263b 8px,
      #0f1f33 8px,
      #0f1f33 16px
    );
  border-color: rgba(255,255,255,0.08);
}
.slot--dark .slot__label {
  background: var(--navy);
  color: rgba(245,241,232,0.7);
  border-color: rgba(255,255,255,0.12);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ivory);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 14px;
  font-style: italic;
  letter-spacing: -0.02em;
}
.brand__name b { font-weight: 500; white-space: nowrap; }
.brand__name span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sage-2);
  text-transform: uppercase;
  margin-top: 1px;
  white-space: nowrap;
}
.nav__links {
  display: flex; gap: 28px; align-items: center;
}
.nav__link {
  font-size: 14px;
  color: var(--navy);
  opacity: 0.78;
  transition: opacity 0.15s ease;
  position: relative;
  padding: 6px 0;
}
.nav__link:hover { opacity: 1; }
.nav__link[aria-current="page"] {
  opacity: 1;
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.nav__cta {
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
}
.nav__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .nav__links--open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
  }
  .nav__links--open .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule-2);
  }
  .nav__links--open .nav__cta {
    margin-top: 12px;
    align-self: flex-start;
  }
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 80px 0 32px;
  margin-top: 120px;
}
.footer a:hover { color: var(--gold); }
.footer .display em { color: var(--gold); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245,241,232,0.55);
  text-transform: uppercase;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.55);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Page transitions */
.page {
  animation: fadeUp 0.4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tag/chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--ivory-2);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 999px;
}
.tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px;
}

/* Form */
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--navy);
  padding: 10px 0;
  color: var(--navy);
  outline: none;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}
.field textarea { min-height: 100px; resize: vertical; }
