/* Cape Waters Holdings — landing page
   Minimalist mono base + deep coastal teal accent, full-screen tidal-waters video. */

:root {
  --ink: #232022;          /* brand near-black (from the logo) */
  --paper: #ffffff;
  --deep: #11272c;         /* deep coastal water — page/video fallback base */
  --deep-2: #0c3b42;       /* secondary water tone for the fallback gradient */
  --accent: #4cc4cf;       /* coastal teal accent (links, rule) */
  --accent-soft: rgba(76, 196, 207, 0.55);

  --maxw: 34rem;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--deep);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Stage (full viewport) ---------- */
.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh; /* better on mobile browsers with dynamic toolbars */
  overflow: hidden;
  isolation: isolate;

  /* Animated water fallback — shows if the video is absent or still loading.
     The video sits above this and covers it once it plays. */
  background:
    radial-gradient(120% 90% at 50% 0%, var(--deep-2) 0%, var(--deep) 55%),
    linear-gradient(200deg, #0a2227 0%, #11363d 50%, #0a2227 100%);
  background-size: 100% 100%, 200% 200%;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    background-position: 50% 0%, 0% 50%;
  }
  to {
    background-position: 50% 0%, 100% 50%;
  }
}

/* ---------- Background video ---------- */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Legibility overlay ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 120% at 50% 45%,
      rgba(8, 22, 26, 0.35) 0%,
      rgba(8, 22, 26, 0.62) 70%,
      rgba(6, 18, 22, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 26, 30, 0.45) 0%,
      rgba(10, 26, 30, 0.25) 35%,
      rgba(10, 26, 30, 0.55) 100%
    );
}

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  width: clamp(190px, 30vw, 320px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.28));
}

.rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 1.9rem 0 1.6rem;
  background: var(--accent);
  opacity: 0.85;
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 1.05rem + 0.6vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.contact {
  margin-top: 2.2rem;
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #ffffff;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact:hover,
.contact:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

/* ---------- Footer ---------- */
.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  z-index: 2;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .content {
    animation: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .rule {
    margin: 1.5rem 0 1.3rem;
  }
  .contact {
    margin-top: 1.8rem;
    font-size: 0.9rem;
  }
}
