/* ============================================================
   AVEA — Recovery, intelligently hosted.
   Design system: Direction B (Futuristic Serene · Glass Light)
   Faithful rebuild of docs/AVEA design export.
   ============================================================ */

:root {
  /* — Palette — */
  --deep:          #21343c;   /* primary dark / nav pill / hotels bg */
  --footer-dark:   #1a2a31;
  --ice:           #5b8aa0;   /* accent / emphasis */
  --eyebrow:       #7aa0b0;
  --accent-light:  #8fb6c7;   /* hotels heading emphasis */
  --slate:         #52656e;   /* body text */
  --on-dark:       #eef3f5;
  --muted-dark:    #b9c6cd;
  --footer-text:   #8fa1aa;
  --footer-muted:  #6c7e87;
  --white:         #ffffff;

  /* — Placeholders / surfaces — */
  --ph-fill:       #dbe3e7;
  --ph-fill-2:     #dde5e9;
  --app-fill:      #e6ecef;
  --border:        #dbe3e7;
  --border-2:      #d6dee2;

  /* — Gradients — */
  --grad-hero: radial-gradient(120% 90% at 78% 8%, #eaf1f4 0%, #e4e9ec 40%, #dde2e6 100%);
  --grad-down: linear-gradient(180deg, #eef2f4 0%, #e7edef 100%);
  --grad-up:   linear-gradient(180deg, #e7edef 0%, #eef2f4 100%);

  /* — Layout — */
  --container: 1200px;
  --pad-x: 40px;

  --font: 'Hanken Grotesk', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

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

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 24px;
}
.eyebrow--wide { letter-spacing: .32em; margin-bottom: 34px; }
.eyebrow--on-dark { letter-spacing: .2em; margin-bottom: 0; }

.section-title {
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.25rem);   /* 52px */
  line-height: 1.1;
  letter-spacing: -.02em;
}
.section-title--hotels {
  font-size: clamp(2.1rem, 4.6vw, 3.375rem); /* 54px */
  line-height: 1.08;
}

.accent { color: var(--ice); }
.accent--light { color: var(--accent-light); }

.lead {
  margin-top: 26px;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.125rem);  /* 17-18px */
  line-height: 1.65;
  color: var(--slate);
}
.lead--on-dark { color: var(--muted-dark); }

.measure-lg { max-width: 780px; }
.measure-md { max-width: 600px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .03em;
  border-radius: 999px;
}
.btn--dark {
  font-weight: 500;
  color: var(--on-dark);
  background: var(--deep);
  padding: 16px 32px;
}
.btn--light {
  font-size: 15px;
  font-weight: 500;
  color: var(--deep);
  background: var(--on-dark);
  padding: 18px 36px;
}
.btn--text {
  color: var(--deep);
  padding: 0;
}

/* ---------- Placeholder blocks (faithful to design export) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--ph-fill);
  background-image: repeating-linear-gradient(135deg, rgba(33,52,60,.05) 0 2px, transparent 2px 12px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 10px;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 13px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(33,52,60,.34);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding-bottom: 96px;
}
.hero > .container { position: relative; z-index: 1; }

/* glass nav */
.nav {
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(40,60,70,.06);
}
.nav__logo {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .34em;
  color: var(--deep);
  padding-left: 6px;
  text-decoration: none;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  letter-spacing: .02em;
}
.navlink {
  color: var(--slate);
  text-decoration: none;
  transition: color .2s;
}
.navlink:hover { color: var(--deep); }
.nav__cta {
  text-decoration: none;
  background: var(--deep);
  color: var(--on-dark);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 500;
  letter-spacing: .04em;
}

/* hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--deep);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

.hero__body {
  padding-top: clamp(150px, 17vh, 190px);
  text-align: center;
}
.hero__title {
  margin: 0 auto;
  max-width: 1000px;
  font-weight: 300;
  font-size: clamp(2.75rem, 7vw, 5.25rem);  /* 84px */
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero__lead {
  max-width: 580px;
  margin: 32px auto 0;
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);  /* 18px */
  line-height: 1.6;
  color: var(--slate);
}
.hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
  flex-wrap: wrap;
}
.hero__band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
  text-align: left;
}
.hero__band .ph { height: 300px; }

.quote-card {
  height: 300px;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-card__label {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.quote-card__text {
  font-weight: 300;
  font-size: 27px;
  line-height: 1.2;
}

/* ============================================================
   Section shells
   ============================================================ */
.section { padding: 120px 0; }
.section--white { background: var(--white); }
.section--grad-down { background: var(--grad-down); }
.section--grad-up { background: var(--grad-up); }
.section--dark {
  background: var(--deep);
  color: var(--on-dark);
  padding: 130px 0;
}
#intelligence { padding: 130px 0; }

/* ============================================================
   CONCEPT — numbered steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 72px;
}
.step { border-top: 1px solid var(--ph-fill); padding-top: 26px; }
.step__num {
  font-weight: 300;
  font-size: 40px;
  color: var(--ice);
  letter-spacing: -.02em;
}
.step__title {
  font-weight: 500;
  font-size: 19px;
  margin-top: 14px;
}
.step__text {
  margin-top: 10px;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.portfolio__note {
  max-width: 340px;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.modality {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(33,52,60,.06);
}
.ph--modality {
  height: 230px;
  border: 0;
  border-radius: 0;
  background-color: var(--ph-fill-2);
}
.modality__body { padding: 26px 28px 30px; }
.modality__title { font-weight: 500; font-size: 20px; }
.modality__text {
  margin-top: 8px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}
.modality--dark {
  background: var(--deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.modality__dark-text {
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
  color: var(--on-dark);
  margin-top: 12px;
}

/* ============================================================
   INTELLIGENCE
   ============================================================ */
.intelligence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.stats { display: flex; gap: 40px; margin-top: 40px; }
.stat__num { font-weight: 300; font-size: 34px; color: var(--ice); }
.stat__label {
  font-weight: 300;
  font-size: 14px;
  color: var(--slate);
  margin-top: 4px;
}
.ph--app {
  height: 460px;
  border-radius: 14px;
  background-color: var(--app-fill);
  border: 1px solid var(--border-2);
}

/* ============================================================
   CONCIERGE
   ============================================================ */
.concierge__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.concierge__head .lead { margin-top: 24px; }
.concierge__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}
.feature-card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(33,52,60,.06);
}
.feature-card__title {
  font-weight: 300;
  font-size: 30px;
  line-height: 1.15;
  margin-top: 14px;
}
.feature-card__text {
  margin-top: 16px;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}

/* ============================================================
   FOR HOTELS
   ============================================================ */
.hotels__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
}
.value {
  border-top: 1px solid rgba(143,182,199,.3);
  padding-top: 24px;
}
.value__title { font-weight: 500; font-size: 18px; }
.value__text {
  margin-top: 8px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-dark);
}
.hotels__cta {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hotels__note {
  font-weight: 300;
  font-size: 15px;
  color: var(--muted-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 56px 0;
  background: var(--footer-dark);
  color: var(--footer-text);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .34em;
  color: var(--on-dark);
}
.footer__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 300;
}
.footer__copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--footer-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --pad-x: 28px; }
  .section, .section--dark, #intelligence { padding: 84px 0; }

  .intelligence { grid-template-columns: 1fr; gap: 40px; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .hotels__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__body { padding-top: 120px; }
}

@media (max-width: 768px) {
  /* mobile nav */
  .nav { position: relative; flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    padding: 20px 6px 6px;
  }
  .nav--open .nav__menu { display: flex; }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__cta { display: inline-block; }
}

@media (max-width: 620px) {
  .hero__band { grid-template-columns: 1fr; }
  .hero__band .ph, .quote-card { height: 240px; }
  .steps { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .concierge__grid { grid-template-columns: 1fr; }
  .hotels__grid { grid-template-columns: 1fr; }
  .feature-card { padding: 30px; }
  .hero__actions { flex-direction: column; gap: 16px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MOTION & ATMOSPHERE  (added in the polish pass)
   ============================================================ */

/* ---- Filmic grain overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Sticky, condensing header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header--scrolled {
  padding: 10px 0;
  background: rgba(238, 243, 245, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(33, 52, 60, .06), 0 10px 30px -18px rgba(33, 52, 60, .35);
}
.site-header--scrolled .nav {
  padding: 9px 22px;
  background: rgba(255, 255, 255, .55);
}

/* animated underline on nav links */
.navlink { position: relative; }
.navlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 1px; width: 0;
  background: currentColor;
  transition: width .28s cubic-bezier(.2,.7,.2,1);
}
.navlink:hover::after { width: 100%; }
.nav__cta { transition: transform .25s ease, box-shadow .25s ease; }
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(33,52,60,.6); }

/* ---- Hero ambient light-on-water field ---- */
.hero__aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  will-change: transform;
}
.orb--1 {
  width: 620px; height: 620px;
  top: -180px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(143, 182, 199, .8), transparent 62%);
  animation: drift1 22s ease-in-out infinite;
}
.orb--2 {
  width: 520px; height: 520px;
  top: 60px; left: -160px;
  background: radial-gradient(circle at 50% 50%, rgba(91, 138, 160, .55), transparent 60%);
  animation: drift2 28s ease-in-out infinite;
}
.orb--3 {
  width: 460px; height: 460px;
  bottom: -140px; left: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(234, 241, 244, .9), transparent 60%);
  animation: drift3 26s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-60px, 50px) scale(1.08); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(70px, -40px) scale(1.12); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-50px, -60px) scale(1.06); }
}

/* ---- Orchestrated hero load ---- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.js .hero__body > * { opacity: 0; animation: riseIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero__body > *:nth-child(1) { animation-delay: .10s; }
.js .hero__body > *:nth-child(2) { animation-delay: .20s; }
.js .hero__body > *:nth-child(3) { animation-delay: .32s; }
.js .hero__body > *:nth-child(4) { animation-delay: .44s; }
.js .hero__body > *:nth-child(5) { animation-delay: .56s; }

/* ---- Scroll reveals ---- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].in { opacity: 1; transform: none; }
/* staggered children within a revealed grid */
.js [data-reveal-stagger] .reveal-child {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--stagger, 0ms);
}
.js [data-reveal-stagger].in .reveal-child { opacity: 1; transform: none; }

/* ---- Placeholder sheen (keeps empty slots alive) ---- */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.35) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { transform: translateX(-130%); }
  50%      { transform: translateX(130%); }
}

/* ---- Card & button micro-interactions ---- */
.modality {
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1);
}
.modality:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -20px rgba(33, 52, 60, .35);
}
.ph--modality { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.modality:hover .ph--modality { transform: scale(1.05); }
.modality__title { transition: color .3s ease; }
.modality:hover .modality__title { color: var(--ice); }

.modality--dark { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.modality--dark:hover { transform: translateY(-6px); }

.feature-card {
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -22px rgba(33, 52, 60, .3);
}

.btn--dark, .btn--light {
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(33, 52, 60, .7);
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .35);
}
.btn--text { transition: opacity .3s ease; }
.btn--text:hover { opacity: .62; }

.step { transition: border-color .4s ease; }
.step:hover { border-top-color: var(--ice); }

/* ---- Reduced-motion: strip it all back ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .hero__aura { display: none; }
  .js .hero__body > * { opacity: 1; }
  .js [data-reveal],
  .js [data-reveal-stagger] .reveal-child { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
