/* ============================================================
   Caribexport — Web base (dark / minimal / theshift inspired)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: "Mundial"; src: url("../fonts/MundialHair.otf") format("opentype");     font-weight: 100; font-display: swap; }
@font-face { font-family: "Mundial"; src: url("../fonts/MundialThin.otf") format("opentype");     font-weight: 200; font-display: swap; }
@font-face { font-family: "Mundial"; src: url("../fonts/MundialLight.otf") format("opentype");    font-weight: 300; font-display: swap; }
@font-face { font-family: "Mundial"; src: url("../fonts/MundialRegular.otf") format("opentype");  font-weight: 400; font-display: swap; }
@font-face { font-family: "Mundial"; src: url("../fonts/MundialDemibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mundial"; src: url("../fonts/MundialBold.otf") format("opentype");     font-weight: 700; font-display: swap; }

@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-Light.ttf") format("truetype");    font-weight: 300; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --cx-ocean-blue: #35A5E0;
  --cx-lime-pulse: #CAE22A;
  --cx-deep-teal:  #1C3A49;
  --cx-soft-gray:  #F0F0FF;

  --bg: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --fg: #ffffff;
  --fg-2: rgba(255,255,255,0.72);
  --fg-3: rgba(255,255,255,0.50);
  --fg-4: rgba(255,255,255,0.32);
  --hairline: rgba(255,255,255,0.10);
  --hairline-strong: rgba(255,255,255,0.18);

  /* Brand gradient (wave) — used for accent strokes and dividers */
  --cx-gradient-wave: linear-gradient(110deg, #35A5E0 0%, #5BC2C9 45%, #9ED548 75%, #CAE22A 100%);
  --cx-gradient-wave-soft: linear-gradient(110deg, rgba(53,165,224,0.10) 0%, rgba(202,226,42,0.10) 100%);

  --font-display: "Mundial", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Shared utilities ---------- */
.cx-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.cx-num {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Container train (horizontal infinite scroll) ---------- */
.train {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.train__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: train-roll var(--train-speed, 90s) linear infinite;
  will-change: transform;
}
.train__track.reverse { animation-direction: reverse; }
.train__car {
  flex: 0 0 auto;
  margin-right: clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
}
.train__car img {
  height: var(--car-h, 220px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.55));
}

@keyframes train-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Text marquee ---------- */
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-roll var(--marquee-speed, 40s) linear infinite;
}
.marquee__track.reverse { animation-direction: reverse; }
.marquee__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  white-space: nowrap;
}
@keyframes marquee-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Clock ---------- */
.clock-digits { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- Buttons ----------
   Restrained / institutional treatment per the design system.
   8px radius, no heavy glass, subtle Deep-Teal tinted shadow.
*/
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  position: relative;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  transition: background 220ms cubic-bezier(0.22,0.61,0.36,1),
              color 220ms,
              border-color 220ms,
              transform 220ms;
}
.btn-line:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-1px);
}
.btn-line:active { transform: translateY(0); }
.btn-line .arrow { width: 16px; height: 1px; background: currentColor; position: relative; }
.btn-line .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Form (shared base) ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 14px 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--fg);
  outline: none;
  transition: border-color 220ms;
}
.field input:focus { border-bottom-color: var(--fg); }
.field input::placeholder { color: var(--fg-4); font-weight: 300; }

/* ---------- Photo slot placeholder ---------- */
.photo-slot {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-4);
}
.photo-slot::before,
.photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.photo-slot::before {
  background:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px) 0 0 / 100% 100%,
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px) 0 0 / 100% 100%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-size: 24px 1px, 1px 24px, 24px 1px, 1px 24px;
  background-repeat: no-repeat;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
}
.photo-slot__label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-4);
  z-index: 1;
}

/* ---------- Hairline rule ---------- */
.hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
