/* =========================================================
   Clearview Lagoon — site styles
   ========================================================= */
:root {
  --ink: #0F2A3F;
  --brand: #065A82;
  --teal: #1C7293;
  --accent: #00A6C9;
  --accent-2: #51C7DC;
  --sand: #F5EFE0;
  --paper: #FBFCFD;
  --paper-2: #F0F4F7;
  --text: #1A2A36;
  --mute: #5F7282;
  --line: #DCE5EB;
  --shadow-sm: 0 1px 3px rgba(15,42,63,0.06), 0 4px 12px rgba(15,42,63,0.06);
  --shadow-md: 0 6px 20px rgba(15,42,63,0.10);
  --shadow-lg: 0 18px 48px rgba(15,42,63,0.16);
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 22px;
  --max: 1180px;
  --pad: clamp(1rem, 4vw, 2.4rem);
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.eyebrow--light { color: var(--accent-2); }
.eyebrow--accent { color: var(--accent); }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,252,253,0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(251,252,253,0.92);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .01em;
}
.brand__mark {
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  display: block;
  object-fit: contain;
}
.brand__name { font-family: var(--serif); font-size: 1.15rem; }
.nav__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav__links a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--brand); }
.nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: .5rem .9rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--brand); }
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #062A40 0%, #0E446B 35%, #196899 70%, #2691BD 100%);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,42,64,0.65) 0%, rgba(6,42,64,0.35) 35%, rgba(6,42,64,0.55) 100%),
    linear-gradient(90deg, rgba(6,42,64,0.45) 0%, rgba(6,42,64,0) 60%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: .8rem 0 1.2rem;
  max-width: 22ch;
}
.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 56ch;
  color: #DDEFF6;
  margin: 0 0 2rem;
}
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__pills {
  list-style: none;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.hero__pills li {
  font-size: .85rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #EAF6FB;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(6px);
}
.hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.5);
  z-index: 3;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll 1.6s ease-in-out infinite;
}
@keyframes scroll {
  0%, 100% { transform: translate(-50%, 0); opacity: .9; }
  50% { transform: translate(-50%, 14px); opacity: .25; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0,166,201,.35);
}
.btn--primary:hover { background: #1FBADC; transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,0.16); }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--paper-2); }
.section--dark {
  background: var(--ink);
  color: #DDEFF6;
}
.section__inner > .eyebrow + .section__title { margin-top: 0; }
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1.4rem;
  max-width: 28ch;
  color: var(--ink);
}
.section__title--light { color: #fff; max-width: 28ch; }
.section__lede {
  font-size: 1.05rem;
  max-width: 58ch;
  color: var(--mute);
  margin: 0 0 2rem;
}

/* ===================== GRID ===================== */
.grid {
  display: grid;
  gap: 1.6rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.prose p { margin: 0 0 1rem; max-width: 56ch; }

/* ===================== STAT GRID ===================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-content: start;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.stat--accent {
  background: linear-gradient(140deg, var(--brand), var(--teal));
  color: #fff;
  border-color: transparent;
}
.stat__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat__sub {
  font-size: 1rem;
  color: var(--accent);
  margin-left: 2px;
}
.stat--accent .stat__sub { color: var(--accent-2); }
.stat__lbl {
  font-size: .85rem;
  color: var(--mute);
  margin-top: .4rem;
}
.stat--accent .stat__lbl { color: rgba(255,255,255,.85); }

/* ===================== CARDS (3-col) ===================== */
.card {
  background: #fff;
  border-radius: var(--r);
  padding: 1.6rem;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card__num {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: .04em;
  opacity: .9;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1.4rem 0 .5rem;
  color: var(--ink);
  max-width: 22ch;
}
.card__stat {
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 .8rem;
}
.card p { margin: 0 0 .4rem; color: var(--text); }

/* ===================== PILLARS (concept) ===================== */
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.6rem 1.6rem 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pillar__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: var(--brand);
}
.pillar__bar--brand { background: var(--brand); }
.pillar__bar--teal { background: var(--teal); }
.pillar__bar--accent { background: var(--accent); }
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 .4rem;
  color: var(--ink);
}
.pillar p { margin: 0; color: var(--text); }

/* ===================== PARTNERS ===================== */
.partner {
  border-radius: var(--r-lg);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.partner--airline { background: linear-gradient(135deg, var(--brand), #00689E); }
.partner--hotel   { background: linear-gradient(135deg, var(--teal), #28859C); }
.partner__tag {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 .8rem;
  color: rgba(255,255,255,.75);
  font-weight: 700;
}
.partner h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 .8rem;
}
.partner p { margin: 0 0 .8rem; }
.partner__metric {
  margin-top: 1rem;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.13);
  border-radius: 8px;
  font-size: .95rem;
}
.partner__metric strong { color: var(--accent-2); }

.partner-tech {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.partner-tech h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: .4rem 0 .6rem;
  color: var(--ink);
}
.partner-tech p { margin: 0 0 .6rem; }
.partner-tech__stat {
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: 1.6rem;
  border-radius: var(--r);
}
.big-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
}
.big-num__sub { font-size: 2rem; }
.partner-tech__stat p { margin: .6rem 0 0; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 720px) {
  .partner-tech { grid-template-columns: 1fr; }
}

/* ===================== GALLERY ===================== */
.section__lede--light { color: rgba(221,239,246,0.78); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.gallery__item {
  margin: 0;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #052238;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16 / 11;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}
.gallery__item:hover,
.gallery__item:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  border-color: var(--accent);
}
.gallery__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.4rem 1.2rem;
  background: linear-gradient(180deg, rgba(6,42,64,0) 0%, rgba(6,42,64,0.55) 45%, rgba(6,42,64,0.92) 100%);
  color: #fff;
}
.gallery__num {
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .14em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .25rem;
}
.gallery__caption h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 .3rem;
  color: #fff;
}
.gallery__caption p {
  margin: 0;
  font-size: .9rem;
  color: rgba(221,239,246,0.85);
}
.gallery__note {
  margin-top: 1.4rem;
  font-size: .8rem;
  color: rgba(221,239,246,0.55);
  font-style: italic;
}

/* ===================== FEATURE (image + copy split) ===================== */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.6rem;
  align-items: center;
  margin-top: 2rem;
}
.feature + .feature { margin-top: 3.5rem; }
.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature--reverse { direction: ltr; }
}
.feature__image {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.feature__image img,
.feature__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  display: block;
}
.feature__image--video { aspect-ratio: 16 / 10; }
.feature__image figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .55rem .9rem;
  background: linear-gradient(180deg, rgba(15,42,63,0) 0%, rgba(15,42,63,0.78) 100%);
  color: rgba(255,255,255,0.92);
  font-size: .8rem;
  font-style: italic;
}
.feature__copy h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 .8rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.feature__copy p { margin: 0 0 1rem; max-width: 56ch; }
.feature__bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.feature__bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin: .5rem 0;
  color: var(--text);
  font-size: .95rem;
}
.feature__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===================== TIMELINE ===================== */
.timeline {
  position: relative;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent) 18%, var(--line) 18%);
}
.timeline__item {
  position: relative;
  padding-left: 56px;
  min-height: 60px;
}
.timeline__dot {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
}
.timeline__item.is-active .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(0,166,201,.18);
}
.timeline__phase {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .25rem;
  font-weight: 700;
}
.timeline__body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 .4rem;
  color: var(--ink);
}
.timeline__body p { margin: 0; color: var(--text); max-width: 70ch; }

/* ===================== DOCUMENTS ===================== */
.docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.doc {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--r);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.doc:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.doc__icon {
  font-size: 2rem;
  line-height: 1;
}
.doc h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 .4rem;
  color: #fff;
}
.doc p { margin: 0 0 .25rem; color: rgba(221,239,246,0.78); font-size: .92rem; }
.doc__meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }

/* ===================== CONTACT ===================== */
.contact-form {
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
  margin-top: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.contact-form label {
  display: grid;
  gap: .35rem;
}
.contact-form span {
  font-size: .85rem;
  color: var(--mute);
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: .75rem .9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,166,201,.18);
}
.contact-form button { justify-self: start; }
.contact-form__note {
  font-size: .9rem;
  color: var(--brand);
  margin: .4rem 0 0;
  min-height: 1.2em;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  color: #DDEFF6;
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 .25rem;
  color: #fff;
}
.footer__copy { margin: 0; color: rgba(221,239,246,.7); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 540px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
.footer__cols a {
  display: block;
  text-decoration: none;
  color: rgba(221,239,246,.78);
  font-size: .92rem;
  padding: .25rem 0;
}
.footer__cols a:hover { color: var(--accent); }
.footer__head {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-2);
  margin: 0 0 .5rem;
}
.footer__base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(221,239,246,.55);
}
.footer__base p { margin: 0; }

/* ===================== A11Y ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
